/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()
|
D | ContactUtil.java | 546 return OsUtil.hasPermission(Manifest.permission.READ_CONTACTS); in hasReadContactsPermission()
|
/packages/apps/Dialer/src/com/android/dialer/util/ |
D | TelecomUtil.java | 180 || (hasPermission(context, Manifest.permission.READ_VOICEMAIL) in hasReadWriteVoicemailPermissions() 181 && hasPermission(context, Manifest.permission.WRITE_VOICEMAIL)); in hasReadWriteVoicemailPermissions() 186 || hasPermission(context, Manifest.permission.MODIFY_PHONE_STATE); in hasModifyPhoneStatePermission() 191 || hasPermission(context, Manifest.permission.READ_PHONE_STATE); in hasReadPhoneStatePermission() 196 || hasPermission(context, Manifest.permission.CALL_PHONE); in hasCallPhonePermission() 199 private static boolean hasPermission(Context context, String permission) { in hasPermission() method in TelecomUtil
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/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/src/com/android/dialer/interactions/ |
D | UndemoteOutgoingCallReceiver.java | 47 if (!PermissionsUtil.hasPermission(context, READ_CONTACTS) in onReceive() 48 || !PermissionsUtil.hasPermission(context, WRITE_CONTACTS)) { in onReceive() 72 if (PermissionsUtil.hasPermission(context, WRITE_CONTACTS)) { in undemoteContactWithId() 82 if (!PermissionsUtil.hasPermission(context, READ_CONTACTS)) { in getContactIdFromPhoneNumber()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
D | CallUtil.java | 133 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in getVideoCallingAvailability() 185 if (!PermissionsUtil.hasPermission(context, android.Manifest.permission.READ_PHONE_STATE) in isCallWithSubjectSupported()
|
D | ContactPhotoManager.java | 1460 if (!PermissionsUtil.hasPermission(mContext, in loadPhotosInBackground()
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogFragment.java | 338 PermissionsUtil.hasPermission(getActivity(), READ_CALL_LOG); in onResume() 402 if (!PermissionsUtil.hasPermission(context, READ_CALL_LOG)) { in updateEmptyMessage() 490 if (!PermissionsUtil.hasPermission(activity, READ_CALL_LOG)) { in onEmptyViewActionButtonClicked()
|
D | CallLogNotificationsHelper.java | 257 if (!PermissionsUtil.hasPermission(mContext, Manifest.permission.READ_CALL_LOG)) { in query() 336 if (!PermissionsUtil.hasPermission(mContext, Manifest.permission.READ_CONTACTS)) { in query()
|
D | CallLogNotificationsService.java | 118 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onHandleIntent()
|
D | ContactInfoHelper.java | 302 if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.WRITE_CALL_LOG)) { in updateCallLogContactInfo()
|
D | CallLogAdapter.java | 359 if (PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) { in onResume()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | AllContactsFragment.java | 111 if (PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in startLoading() 178 if (!PermissionsUtil.hasPermission(activity, READ_CONTACTS)) { in onEmptyViewActionButtonClicked()
|
D | SmartDialSearchFragment.java | 94 if (!PermissionsUtil.hasPermission(getActivity(), CALL_PHONE)) { in setupEmptyView()
|
D | RegularSearchFragment.java | 98 if (!PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in setupEmptyView()
|
D | SpeedDialFragment.java | 486 if (!PermissionsUtil.hasPermission(activity, READ_CONTACTS)) { in onEmptyViewActionButtonClicked()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/ |
D | AppPermissions.java | 166 if (group.hasPermission(permission)) { in hasGroupForPermission()
|
D | AppPermissionGroup.java | 284 public boolean hasPermission(String permission) { in hasPermission() method in AppPermissionGroup
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpClient.java | 190 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | CalendarInteractionsLoader.java | 61 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_CALENDAR) in loadInBackground()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 870 boolean hasDrawOverOtherApps = hasPermission(permission.SYSTEM_ALERT_WINDOW); 871 boolean hasWriteSettings = hasPermission(permission.WRITE_SETTINGS); 945 private boolean hasPermission(String permission) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MtpClient.java | 192 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
D | GrantPermissionsActivity.java | 135 if (nextGroup.hasPermission(requestedPermission)) { in onCreate()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | CallerInfoAsyncQuery.java | 344 if (!PermissionsUtil.hasPermission(context, Manifest.permission.READ_CONTACTS)) { in startQuery()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 1198 return OsUtil.hasPermission(Manifest.permission.CAMERA); in hasCameraPermission()
|