Home
last modified time | relevance | path

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

12

/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()
DContactUtil.java546 return OsUtil.hasPermission(Manifest.permission.READ_CONTACTS); in hasReadContactsPermission()
/packages/apps/Dialer/src/com/android/dialer/util/
DTelecomUtil.java180 || (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/
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/src/com/android/dialer/interactions/
DUndemoteOutgoingCallReceiver.java47 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/
DCallUtil.java133 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()
DContactPhotoManager.java1460 if (!PermissionsUtil.hasPermission(mContext, in loadPhotosInBackground()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogFragment.java338 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()
DCallLogNotificationsHelper.java257 if (!PermissionsUtil.hasPermission(mContext, Manifest.permission.READ_CALL_LOG)) { in query()
336 if (!PermissionsUtil.hasPermission(mContext, Manifest.permission.READ_CONTACTS)) { in query()
DCallLogNotificationsService.java118 if (!PermissionsUtil.hasPermission(this, android.Manifest.permission.READ_CALL_LOG)) { in onHandleIntent()
DContactInfoHelper.java302 if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.WRITE_CALL_LOG)) { in updateCallLogContactInfo()
DCallLogAdapter.java359 if (PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) { in onResume()
/packages/apps/Dialer/src/com/android/dialer/list/
DAllContactsFragment.java111 if (PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in startLoading()
178 if (!PermissionsUtil.hasPermission(activity, READ_CONTACTS)) { in onEmptyViewActionButtonClicked()
DSmartDialSearchFragment.java94 if (!PermissionsUtil.hasPermission(getActivity(), CALL_PHONE)) { in setupEmptyView()
DRegularSearchFragment.java98 if (!PermissionsUtil.hasPermission(getActivity(), READ_CONTACTS)) { in setupEmptyView()
DSpeedDialFragment.java486 if (!PermissionsUtil.hasPermission(activity, READ_CONTACTS)) { in onEmptyViewActionButtonClicked()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissions.java166 if (group.hasPermission(permission)) { in hasGroupForPermission()
DAppPermissionGroup.java284 public boolean hasPermission(String permission) { in hasPermission() method in AppPermissionGroup
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java190 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DCalendarInteractionsLoader.java61 if (!PermissionsUtil.hasPermission(getContext(), permission.READ_CALENDAR) in loadInBackground()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java870 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/
DMtpClient.java192 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DGrantPermissionsActivity.java135 if (nextGroup.hasPermission(requestedPermission)) { in onCreate()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DCallerInfoAsyncQuery.java344 if (!PermissionsUtil.hasPermission(context, Manifest.permission.READ_CONTACTS)) { in startQuery()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java1198 return OsUtil.hasPermission(Manifest.permission.CAMERA); in hasCameraPermission()

12