Home
last modified time | relevance | path

Searched refs:checkSelfPermission (Results 1 – 25 of 78) sorted by relevance

1234

/packages/apps/TV/common/src/com/android/tv/common/util/
DPermissionUtils.java36 context.checkSelfPermission( in hasAccessAllEpg()
46 context.checkSelfPermission( in hasAccessWatchedHistory()
56 context.checkSelfPermission("android.permission.MODIFY_PARENTAL_CONTROLS") in hasModifyParentalControls()
63 return context.checkSelfPermission(PERMISSION_READ_TV_LISTINGS) in hasReadTvListings()
68 return context.checkSelfPermission("android.permission.INTERNET") in hasInternet()
73 return context.checkSelfPermission("android.permission.WRITE_EXTERNAL_STORAGE") in hasWriteExternalStorage()
80 context.checkSelfPermission( in hasChangeHdmiCecActiveSource()
90 context.checkSelfPermission( in hasReadContetnRatingSystem()
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/
DDialogsActivity.java70 if (checkSelfPermission(READ_EXTERNAL_STORAGE) != PERMISSION_GRANTED in onCreate()
71 || checkSelfPermission(WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) { in onCreate()
78 if (checkSelfPermission(READ_MEDIA_AUDIO) != PERMISSION_GRANTED in onCreate()
79 || checkSelfPermission(READ_MEDIA_IMAGES) != PERMISSION_GRANTED in onCreate()
80 || checkSelfPermission(READ_MEDIA_VIDEO) != PERMISSION_GRANTED) { in onCreate()
/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java93 if (checkSelfPermission(Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) { in checkPermissions()
97 if (checkSelfPermission(Manifest.permission.RECORD_AUDIO) in checkPermissions()
103 && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) in checkPermissions()
105 && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) in checkPermissions()
/packages/modules/Permission/tests/cts/permission/AppThatRequestCustomCameraPermission/src/android/permission/cts/appthatrequestcustomcamerapermission/
DRequestCameraPermission.java43 checkSelfPermission(CAMERA) == PERMISSION_GRANTED; in onCreate()
45 checkSelfPermission(CUSTOM_PERMISSION) == PERMISSION_GRANTED; in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/permissions/
DPermissionsUtil.java45 if (ContextCompat.checkSelfPermission(context, permission) in getDeniedPermissions()
86 if (ContextCompat.checkSelfPermission(context, permission) in checkAllPermissionsGranted()
/packages/services/Telephony/testapps/SmsManagerTestApp/src/com/android/phone/testapps/smsmanagertestapp/
DSmsManagerTestApp.java85 if (checkSelfPermission(Manifest.permission.READ_PHONE_STATE) in onResume()
87 || checkSelfPermission(Manifest.permission.SEND_SMS) in onResume()
211 if (checkSelfPermission(PERFORM_IMS_SINGLE_REGISTRATION) in checkSingleRegPermission()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DIkeContext.java54 != context.checkSelfPermission(android.Manifest.permission.NETWORK_FACTORY)) { in getIkeCaller()
114 return mContext.checkSelfPermission(android.Manifest.permission.READ_DEVICE_CONFIG) in hasReadDeviceConfigPermission()
/packages/apps/Dialer/java/com/android/incallui/legacyblocking/
DDeleteBlockedCallTask.java65 if (ContextCompat.checkSelfPermission(context, permission.READ_CALL_LOG) in doInBackground()
67 || ContextCompat.checkSelfPermission(context, permission.WRITE_CALL_LOG) in doInBackground()
/packages/apps/Camera2/src/com/android/camera/app/
DFirstRunDialog.java214 if (mContext.checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) in checkLocationPermission()
215 == PackageManager.PERMISSION_GRANTED || mContext.checkSelfPermission( in checkLocationPermission()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DDynamicShortcuts.java101 if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_CONTACTS) in refresh()
147 if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_CONTACTS) in updateIcons()
/packages/apps/Tag/src/com/android/apps/tag/record/
DUriRecord.java166 if (activity.checkSelfPermission(Manifest.permission.CALL_PHONE) in requestPermissionIfNeeded()
178 …activity.checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSI… in requestPermissionIfNeeded()
/packages/apps/TV/common/src/com/android/tv/common/feature/
DPermissionFeature.java36 return context.checkSelfPermission(permissionName) == PackageManager.PERMISSION_GRANTED; in isEnabled()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DInlinePreviewIntentFactory.java37 return ContextCompat.checkSelfPermission(context, BIND_WALLPAPER) == PERMISSION_GRANTED; in shouldUseInternalLivePicker()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DPermissionsTest.java44 context.checkSelfPermission(Manifest.permission.INTERACT_ACROSS_USERS)); in testPermissionGranted_interactAcrossUsersOnR()
/packages/modules/Permission/tests/cts/permissionui/UsePermissionApp22CalendarOnly/src/android/permissionui/cts/usepermission/
DCheckPermissionService.kt37 result.send(checkSelfPermission(permission), null) in onHandleIntent()
/packages/apps/Dialer/java/com/android/voicemail/
DVoicemailPermissionHelper.java54 if (context.checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in getMissingPermissions()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DUtils.java46 if (context.checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED) { in hasRequiredPermissions()
/packages/apps/Dialer/java/com/android/incallui/videotech/utils/
DVideoUtils.java43 return ContextCompat.checkSelfPermission(context, android.Manifest.permission.CAMERA) in hasCameraPermission()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DBluetoothPermissionChecker.java38 return mActivity.checkSelfPermission(permission) in isPermissionGranted()
/packages/apps/ThemePicker/src/com/android/customization/model/themedicon/
DThemedIconUtils.java51 if (mContext.checkSelfPermission(mProviderInfo.readPermission) in ThemedIconUtils()
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java56 return ContextCompat.checkSelfPermission(context, permission) in hasPermission()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java227 mEnv.getContext().checkSelfPermission(Manifest.permission.MODIFY_QUIET_MODE) in InflateMessage()
254 && mEnv.getContext().checkSelfPermission( in setCanModifyQuietMode()
258 return mEnv.getContext().checkSelfPermission(Manifest.permission.MODIFY_QUIET_MODE) in setCanModifyQuietMode()
/packages/apps/DevCamera/src/com/android/devcamera/
DDevCameraActivity.java328 if ((checkSelfPermission(Manifest.permission.CAMERA) in checkPermissions()
330 || (checkSelfPermission(Manifest.permission.RECORD_AUDIO) in checkPermissions()
332 || (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) in checkPermissions()
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java255 if (mContext.checkSelfPermission(SET_DEFAULT_ACCOUNT_FOR_CONTACTS) in clearDefaultAccount()
267 if (mContext.checkSelfPermission(SET_DEFAULT_ACCOUNT_FOR_CONTACTS) in setDefaultAccount()
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/
DMainActivity.java63 if (ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_CONNECT) in requestBtPermissions()

1234