/packages/apps/Dialer/java/com/android/dialer/util/ |
D | PermissionsUtil.java | 36 return hasPermission(context, permission.CALL_PHONE); in hasPhonePermissions() 40 return hasPermission(context, permission.READ_CONTACTS); in hasContactsReadPermissions() 44 return hasPermission(context, permission.ACCESS_FINE_LOCATION); in hasLocationPermissions() 48 return hasPermission(context, permission.CAMERA); in hasCameraPermissions() 52 return hasPermission(context, permission.RECORD_AUDIO); in hasMicrophonePermissions() 56 return hasPermission(context, permission.READ_CALL_LOG); in hasCallLogReadPermissions() 60 return hasPermission(context, permission.WRITE_CALL_LOG); in hasCallLogWritePermissions() 64 return hasPermission(context, CEQUINT_PERMISSION); in hasCequintPermissions() 68 return hasPermission(context, permission.READ_VOICEMAIL); in hasReadVoicemailPermissions() 72 return hasPermission(context, permission.WRITE_VOICEMAIL); in hasWriteVoicemailPermissions() [all …]
|
D | CallUtil.java | 67 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in getVideoCallingAvailability() 117 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 | 174 || (hasPermission(context, Manifest.permission.READ_VOICEMAIL) in hasReadWriteVoicemailPermissions() 175 && hasPermission(context, Manifest.permission.WRITE_VOICEMAIL)); in hasReadWriteVoicemailPermissions() 180 || hasPermission(context, Manifest.permission.MODIFY_PHONE_STATE); in hasModifyPhoneStatePermission() 184 return isDefaultDialer(context) || hasPermission(context, Manifest.permission.READ_PHONE_STATE); in hasReadPhoneStatePermission() 188 return isDefaultDialer(context) || hasPermission(context, Manifest.permission.CALL_PHONE); in hasCallPhonePermission() 191 private static boolean hasPermission(Context context, String permission) { in hasPermission() method in TelecomUtil 228 public static void setHasPermissionForTesting(Boolean hasPermission) { in setHasPermissionForTesting() argument 229 hasPermissionForTesting = hasPermission; in setHasPermissionForTesting()
|
/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.READ_CALL_LOG)); in setUp() 57 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.CALL_PHONE)); in setUp()
|
/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/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/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/Settings/src/com/android/settings/applications/ |
D | AppStateInstallAppsBridge.java | 79 private boolean hasPermission(String permission, int uid) { in hasPermission() method in AppStateInstallAppsBridge 97 appState.permissionGranted = hasPermission(Manifest.permission.REQUEST_INSTALL_PACKAGES, in createInstallAppsStateFor()
|
D | InstalledAppDetails.java | 1115 boolean hasDrawOverOtherApps = hasPermission(permission.SYSTEM_ALERT_WINDOW); 1116 boolean hasWriteSettings = hasPermission(permission.WRITE_SETTINGS); 1242 private boolean hasPermission(String permission) {
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | CallUtil.java | 129 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in getVideoCallingAvailability() 176 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in isCallWithSubjectSupported()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogFragment.java | 352 PermissionsUtil.hasPermission(getActivity(), READ_CALL_LOG); in onResume() 428 if (!PermissionsUtil.hasPermission(context, READ_CALL_LOG)) { in updateEmptyMessage() 517 if (!PermissionsUtil.hasPermission(activity, READ_CALL_LOG)) { in onEmptyViewActionButtonClicked()
|
D | CallLogNotificationsActivity.java | 53 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onCreate()
|
D | CallLogNotificationsService.java | 113 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onHandleIntent()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | AllContactsFragment.java | 106 if (PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in startLoading() 172 if (!PermissionsUtil.hasPermission(activity, READ_CONTACTS)) { in onEmptyViewActionButtonClicked()
|
D | RegularSearchFragment.java | 86 if (!PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in setupEmptyView()
|
D | SmartDialSearchFragment.java | 85 if (!PermissionsUtil.hasPermission(getActivity(), CALL_PHONE)) { in setupEmptyView()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | ManageExternalSources.java | 175 private boolean hasPermission(String permission, int uid) { 197 appState.permissionGranted = hasPermission(Manifest.permission.REQUEST_INSTALL_PACKAGES,
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryComposerFragment.java | 97 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onCreateView() 224 && PermissionsUtil.hasPermission(getContext(), permission.READ_EXTERNAL_STORAGE)) { in onActivityResult()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
D | GrantPermissionsActivity.java | 148 if (nextGroup.hasPermission(requestedPermission)) { in onCreate() 320 if (groupState.mGroup.hasPermission(permission)) { in onPermissionGrantResult()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/ |
D | AppPermissions.java | 154 if (group.hasPermission(permission)) { in hasGroupForPermission()
|
/packages/apps/Dialer/java/com/android/dialer/postcall/ |
D | PostCallActivity.java | 97 } else if (PermissionsUtil.hasPermission(this, permission.SEND_SMS)) { in onMessageFragmentSendMessage()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpClient.java | 190 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
|
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/ |
D | AoapPhoneCompanionActivity.java | 116 if (!mUsbManager.hasPermission(accessory)) { in onAccessoryAttached()
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
D | ContactPhotoManagerImpl.java | 1014 if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) { in preloadPhotosInBackground() 1101 if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) { in loadPhotosInBackground()
|