/packages/apps/Dialer/java/com/android/dialer/util/ |
D | PermissionsUtil.java | 83 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 …]
|
D | CallUtil.java | 67 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/ |
D | OsUtil.java | 194 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/ |
D | TelecomUtil.java | 191 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/ |
D | NoPermissionsLaunchSmokeTest.java | 3 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/ |
D | LocalCallingIdentity.java | 76 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/ |
D | PermissionsUtil.java | 44 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/ |
D | UndemoteOutgoingCallReceiver.java | 44 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/ |
D | CallUtil.java | 153 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/ |
D | P2pPermissionManager.java | 246 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/ |
D | RequestPermissionsActivityBase.java | 130 if (!PermissionsUtil.hasPermission(this, permission)) { in requestPermissions() 151 if (!PermissionsUtil.hasPermission(context, permission)) { in hasPermissions()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | PermissionControllerServiceImpl.java | 150 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/ |
D | SetNewPasswordActivity.java | 85 final boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate() 87 if (hasPermission) { in onCreate()
|
D | SetupChooseLockGeneric.java | 84 boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate() 86 if (!hasPermission) { in onCreate()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | ManageAppOp.java | 122 private boolean hasPermission(int uid) { 139 hasPermission(uid),
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | SetNewPasswordActivity.java | 90 final boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate() 92 if (hasPermission) { in onCreate()
|
D | SetupChooseLockGeneric.java | 85 boolean hasPermission = PasswordUtils.isCallingAppPermitted( in onCreate() 87 if (!hasPermission) { in onCreate()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogNotificationsService.java | 143 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG) in onHandleIntent() 144 || !PermissionsUtil.hasPermission(this, android.Manifest.permission.WRITE_CALL_LOG)) { in onHandleIntent()
|
D | CallLogNotificationsActivity.java | 53 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onCreate()
|
D | CallLogNotificationsQueryHelper.java | 358 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/ |
D | CellBroadcastHandler.java | 690 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/ |
D | GalleryComposerFragment.java | 87 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/ |
D | AllAppPermissionsFragment.java | 303 if (currentPermissionGroup.hasPermission(permission)) { in getPermissionForegroundGroup() 308 && currentPermissionGroup.getBackgroundPermissions().hasPermission( in getPermissionForegroundGroup()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/ |
D | AutoAllAppPermissionsFragment.java | 282 if (currentPermissionGroup.hasPermission(permission)) { in getPermissionForegroundGroup() 287 && currentPermissionGroup.getBackgroundPermissions().hasPermission( in getPermissionForegroundGroup()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateInstallAppsBridge.java | 78 private boolean hasPermission(String permission, int uid) { in hasPermission() method in AppStateInstallAppsBridge
|