Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java36 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 …]
DCallUtil.java67 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/
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.java174 || (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/
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.READ_CALL_LOG)); in setUp()
57 assumeTrue(!hasPermission(mTargetContext, Manifest.permission.CALL_PHONE)); in setUp()
/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/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/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/Settings/src/com/android/settings/applications/
DAppStateInstallAppsBridge.java79 private boolean hasPermission(String permission, int uid) { in hasPermission() method in AppStateInstallAppsBridge
97 appState.permissionGranted = hasPermission(Manifest.permission.REQUEST_INSTALL_PACKAGES, in createInstallAppsStateFor()
DInstalledAppDetails.java1115 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/
DCallUtil.java129 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/
DCallLogFragment.java352 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()
DCallLogNotificationsActivity.java53 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onCreate()
DCallLogNotificationsService.java113 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onHandleIntent()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DAllContactsFragment.java106 if (PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in startLoading()
172 if (!PermissionsUtil.hasPermission(activity, READ_CONTACTS)) { in onEmptyViewActionButtonClicked()
DRegularSearchFragment.java86 if (!PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in setupEmptyView()
DSmartDialSearchFragment.java85 if (!PermissionsUtil.hasPermission(getActivity(), CALL_PHONE)) { in setupEmptyView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageExternalSources.java175 private boolean hasPermission(String permission, int uid) {
197 appState.permissionGranted = hasPermission(Manifest.permission.REQUEST_INSTALL_PACKAGES,
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DGalleryComposerFragment.java97 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/
DGrantPermissionsActivity.java148 if (nextGroup.hasPermission(requestedPermission)) { in onCreate()
320 if (groupState.mGroup.hasPermission(permission)) { in onPermissionGrantResult()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissions.java154 if (group.hasPermission(permission)) { in hasGroupForPermission()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCallActivity.java97 } else if (PermissionsUtil.hasPermission(this, permission.SEND_SMS)) { in onMessageFragmentSendMessage()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java190 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java116 if (!mUsbManager.hasPermission(accessory)) { in onAccessoryAttached()
/packages/apps/Dialer/java/com/android/contacts/common/
DContactPhotoManagerImpl.java1014 if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) { in preloadPhotosInBackground()
1101 if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) { in loadPhotosInBackground()

12