Home
last modified time | relevance | path

Searched refs:hasPermission (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java83 return hasPermission(context, permission.CALL_PHONE); in hasPhonePermissions()
87 return hasPermission(context, permission.READ_PHONE_STATE); in hasReadPhoneStatePermissions()
91 return hasPermission(context, permission.READ_CONTACTS); in hasContactsReadPermissions()
95 return hasPermission(context, permission.WRITE_CONTACTS); in hasContactsWritePermissions()
99 return hasPermission(context, permission.ACCESS_FINE_LOCATION); in hasLocationPermissions()
103 return hasPermission(context, permission.CAMERA); in hasCameraPermissions()
107 return hasPermission(context, permission.RECORD_AUDIO); in hasMicrophonePermissions()
111 return hasPermission(context, permission.READ_CALL_LOG); in hasCallLogReadPermissions()
115 return hasPermission(context, permission.WRITE_CALL_LOG); in hasCallLogWritePermissions()
119 return hasPermission(context, CEQUINT_PERMISSION); in hasCequintPermissions()
[all …]
DCallUtil.java67 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE)) { in getVideoCallingAvailability()
128 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE)) { in isCallWithSubjectSupported()
/packages/apps/Messaging/src/com/android/messaging/util/
DOsUtil.java194 public static boolean hasPermission(final String permission) { in hasPermission() method in OsUtil
214 if (!hasPermission(permission)) { in hasPermissions()
222 return hasPermission(Manifest.permission.READ_PHONE_STATE); in hasPhonePermission()
226 return hasPermission(Manifest.permission.READ_SMS); in hasSmsPermission()
230 return OsUtil.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION); in hasLocationPermission()
237 return OsUtil.hasPermission(Manifest.permission.READ_EXTERNAL_STORAGE); in hasStoragePermission()
241 return OsUtil.hasPermission(Manifest.permission.RECORD_AUDIO); in hasRecordAudioPermission()
253 if (!hasPermission(permission)) { in getMissingPermissions()
/packages/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java191 if (!hasPermission(context, permission.READ_PHONE_STATE)) { in getSubscriptionInfo()
274 || (hasPermission(context, Manifest.permission.READ_VOICEMAIL) in hasReadWriteVoicemailPermissions()
275 && hasPermission(context, Manifest.permission.WRITE_VOICEMAIL)); in hasReadWriteVoicemailPermissions()
282 || hasPermission(context, Manifest.permission.MODIFY_PHONE_STATE); in hasModifyPhoneStatePermission()
288 return isDefaultDialer(context) || hasPermission(context, Manifest.permission.READ_PHONE_STATE); in hasReadPhoneStatePermission()
294 return isDefaultDialer(context) || hasPermission(context, Manifest.permission.CALL_PHONE); in hasCallPhonePermission()
297 private static boolean hasPermission(Context context, String permission) { in hasPermission() method in TelecomUtil
298 return instance.hasPermission(context, permission); in hasPermission()
359 public boolean hasPermission(Context context, String permission) { in hasPermission() method in TelecomUtil.TelecomUtilImpl
/packages/apps/Contacts/tests/src/com/android/contacts/
DNoPermissionsLaunchSmokeTest.java3 import static com.android.contacts.util.PermissionsUtil.hasPermission;
52 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.READ_CONTACTS)); in setUp()
53 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.WRITE_CONTACTS)); in setUp()
54 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.GET_ACCOUNTS)); in setUp()
55 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.READ_PHONE_STATE)); in setUp()
56 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.CALL_PHONE)); in setUp()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java76 ident.hasPermission = ~(PERMISSION_IS_LEGACY | PERMISSION_IS_REDACTION_NEEDED); in fromSelf()
152 private int hasPermission; field in LocalCallingIdentity
155 public boolean hasPermission(int permission) { in hasPermission() method in LocalCallingIdentity
158 hasPermission |= permission; in hasPermission()
162 return (hasPermission & permission) != 0; in hasPermission()
230 …if (hasPermission(PERMISSION_IS_SYSTEM) || PermissionChecker.checkPermissionForDataDelivery(getCon… in isRedactionNeededInternal()
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java44 return hasPermission(context, PHONE); in hasPhonePermissions()
48 return hasPermission(context, CONTACTS); in hasContactsPermissions()
52 return hasPermission(context, LOCATION); in hasLocationPermissions()
55 public static boolean hasPermission(Context context, String permission) { in hasPermission() method in PermissionsUtil
/packages/apps/Dialer/java/com/android/dialer/interactions/
DUndemoteOutgoingCallReceiver.java44 if (!PermissionsUtil.hasPermission(context, READ_CONTACTS) in onReceive()
45 || !PermissionsUtil.hasPermission(context, WRITE_CONTACTS)) { in onReceive()
69 if (PermissionsUtil.hasPermission(context, WRITE_CONTACTS)) { in undemoteContactWithId()
79 if (!PermissionsUtil.hasPermission(context, READ_CONTACTS)) { in getContactIdFromPhoneNumber()
/packages/apps/Contacts/src/com/android/contacts/
DCallUtil.java153 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in getVideoCallingAvailability()
200 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in isCallWithSubjectSupported()
237 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in isTachyonEnabled()
/packages/services/BuiltInPrintService/src/com/android/bips/
DP2pPermissionManager.java246 boolean hasPermission = hasP2pPermission(); in getState()
247 if (hasPermission && state != State.ALLOWED) { in getState()
251 } else if (!hasPermission && state == State.ALLOWED) { in getState()
/packages/apps/Contacts/src/com/android/contacts/activities/
DRequestPermissionsActivityBase.java130 if (!PermissionsUtil.hasPermission(this, permission)) { in requestPermissions()
151 if (!PermissionsUtil.hasPermission(context, permission)) { in hasPermissions()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DPermissionControllerServiceImpl.java150 if (group.hasPermission(reqPerm)) { in getRevocableGroupsForPermissions()
161 if (bgPerms != null && bgPerms.hasPermission(reqPerm)) { in getRevocableGroupsForPermissions()
460 if (group.hasPermission(perm)) { in onCountPermissionApps()
464 if (bgGroup != null && bgGroup.hasPermission(perm)) { in onCountPermissionApps()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DSetNewPasswordActivity.java85 final boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate()
87 if (hasPermission) { in onCreate()
DSetupChooseLockGeneric.java84 boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate()
86 if (!hasPermission) { in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageAppOp.java122 private boolean hasPermission(int uid) {
139 hasPermission(uid),
/packages/apps/Settings/src/com/android/settings/password/
DSetNewPasswordActivity.java90 final boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate()
92 if (hasPermission) { in onCreate()
DSetupChooseLockGeneric.java85 boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate()
87 if (!hasPermission) { in onCreate()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogNotificationsService.java143 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG) in onHandleIntent()
144 || !PermissionsUtil.hasPermission(this, android.Manifest.permission.WRITE_CALL_LOG)) { in onHandleIntent()
DCallLogNotificationsActivity.java53 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onCreate()
DCallLogNotificationsQueryHelper.java358 if (!PermissionsUtil.hasPermission(context, Manifest.permission.READ_CALL_LOG)) { in query()
416 if (!PermissionsUtil.hasPermission(context, Manifest.permission.READ_CALL_LOG)) { in queryUnreadVoicemail()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java690 if (!hasPermission(Manifest.permission.ACCESS_FINE_LOCATION) in isLocationServiceAvailable()
691 && !hasPermission(Manifest.permission.ACCESS_COARSE_LOCATION)) return false; in isLocationServiceAvailable()
698 private boolean hasPermission(String permission) { in hasPermission() method in CellBroadcastHandler.LocationRequester
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryComposerFragment.java87 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onCreateView()
214 && PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onActivityResult()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DAllAppPermissionsFragment.java303 if (currentPermissionGroup.hasPermission(permission)) { in getPermissionForegroundGroup()
308 && currentPermissionGroup.getBackgroundPermissions().hasPermission( in getPermissionForegroundGroup()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/
DAutoAllAppPermissionsFragment.java282 if (currentPermissionGroup.hasPermission(permission)) { in getPermissionForegroundGroup()
287 && currentPermissionGroup.getBackgroundPermissions().hasPermission( in getPermissionForegroundGroup()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateInstallAppsBridge.java78 private boolean hasPermission(String permission, int uid) { in hasPermission() method in AppStateInstallAppsBridge

12