Home
last modified time | relevance | path

Searched refs:PERMISSION_GRANTED (Results 1 – 25 of 152) sorted by relevance

1234567

/frameworks/support/core-utils/java/android/support/v4/content/
DPermissionChecker.java59 public static final int PERMISSION_GRANTED = PackageManager.PERMISSION_GRANTED; field in PermissionChecker
69 @IntDef({PERMISSION_GRANTED,
100 return PERMISSION_GRANTED; in checkPermission()
116 return PERMISSION_GRANTED; in checkPermission()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java71 return (permission == PackageManager.PERMISSION_GRANTED); in checkConfigOverridePermission()
147 == PackageManager.PERMISSION_GRANTED; in checkCallerHasPeersMacAddressPermission()
171 == PackageManager.PERMISSION_GRANTED; in checkInteractAcrossUsersFull()
231 == PackageManager.PERMISSION_GRANTED) in checkCallersLocationPermission()
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java68 return PackageManager.PERMISSION_GRANTED; in checkPermission()
82 checkPermission(context, permission) == PackageManager.PERMISSION_GRANTED; in hasPermissions()
/frameworks/base/services/core/java/com/android/server/os/
DDeviceIdentifiersPolicyService.java60 != PackageManager.PERMISSION_GRANTED in getSerial()
63 != PackageManager.PERMISSION_GRANTED) { in getSerial()
DSchedulingPolicyService.java74 return PackageManager.PERMISSION_GRANTED; in requestPriority()
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java73 != PackageManager.PERMISSION_GRANTED) { in transmit()
105 != PackageManager.PERMISSION_GRANTED) { in getCarrierFrequencies()
DHardwarePropertiesManagerService.java108 != PackageManager.PERMISSION_GRANTED) { in enforceHardwarePropertiesRetrievalAllowed()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java226 != PackageManager.PERMISSION_GRANTED) { in createProjection()
256 != PackageManager.PERMISSION_GRANTED) { in getActiveProjectionInfo()
271 != PackageManager.PERMISSION_GRANTED) { in stopActiveProjection()
289 != PackageManager.PERMISSION_GRANTED) { in addCallback()
304 != PackageManager.PERMISSION_GRANTED) { in removeCallback()
330 == PackageManager.PERMISSION_GRANTED; in checkPermission()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java80 != PackageManager.PERMISSION_GRANTED) { in checkDumpPermission()
110 != PackageManager.PERMISSION_GRANTED) { in checkUsageStatsPermission()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java96 permissionDenied[i] = permissionCheck != PackageManager.PERMISSION_GRANTED; in checkPermission()
131 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java125 READ_NETWORK_USAGE_HISTORY) == PackageManager.PERMISSION_GRANTED) { in checkAccessLevel()
184 return permissionCheck == PackageManager.PERMISSION_GRANTED; in hasAppOpsPermission()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java110 return PackageManager.PERMISSION_GRANTED; in checkUriPermission()
115 return PackageManager.PERMISSION_GRANTED; in checkUriPermission()
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateService.java204 != PackageManager.PERMISSION_GRANTED) { in changeProviderAndSetting()
252 != PackageManager.PERMISSION_GRANTED) { in enableFallbackLogic()
278 != PackageManager.PERMISSION_GRANTED) { in enableMultiProcess()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccPhoneBookInterfaceManager.java168 != PackageManager.PERMISSION_GRANTED) { in updateAdnRecordsInEfBySearch()
221 != PackageManager.PERMISSION_GRANTED) { in updateAdnRecordsInEfByIndex()
289 != PackageManager.PERMISSION_GRANTED) { in getAdnRecordsInEf()
/frameworks/support/compat/tests/java/android/support/v4/content/
DContextCompatTest.java138 assertEquals("Vibrate permission granted", PackageManager.PERMISSION_GRANTED, in testCheckSelfPermission()
141 assertEquals("Wake lock permission granted", PackageManager.PERMISSION_GRANTED, in testCheckSelfPermission()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java105 if (permission == PermissionChecker.PERMISSION_GRANTED) { in getLastKnownLocation()
111 if (permission == PermissionChecker.PERMISSION_GRANTED) { in getLastKnownLocation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java36 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
61 if (getBaseContext().checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) { in checkPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsAccessTest.java169 hasPermission ? PackageManager.PERMISSION_GRANTED in setHasAppOpsPermission()
175 .thenReturn(hasPermission ? PackageManager.PERMISSION_GRANTED in setHasReadHistoryPermission()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java374 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_GRANTED); in testRegisteredReceivePermissionGranted()
403 PERMISSION_GRANTED); in testRegisteredBroadcastPermissionGranted() local
451 PERMISSION_GRANTED); in testLocalBroadcastPermissionGranted() local
497 PERMISSION_GRANTED); in testRemoteBroadcastPermissionGranted() local
DIntentSenderTest.java31 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_GRANTED); in testRegisteredReceivePermissionGranted()
/frameworks/base/services/core/java/com/android/server/media/
DRemoteDisplayProviderWatcher.java177 packageName) == PackageManager.PERMISSION_GRANTED) { in hasCaptureVideoPermission()
181 packageName) == PackageManager.PERMISSION_GRANTED) { in hasCaptureVideoPermission()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java130 .thenReturn(PackageManager.PERMISSION_GRANTED); in testCheckConfigOverridePermissionApproved()
369 mCoarseLocationPermission = PackageManager.PERMISSION_GRANTED; in testLegacyAppHasLocationAndAllPermissions()
440 mCoarseLocationPermission = PackageManager.PERMISSION_GRANTED; in testEnforceLocationPermission()
475 return PackageManager.PERMISSION_GRANTED; in createPermissionAnswer()
/frameworks/support/core-utils/kitkat/android/support/v4/provider/
DDocumentsContractApi19.java94 != PackageManager.PERMISSION_GRANTED) { in canRead()
109 != PackageManager.PERMISSION_GRANTED) { in canWrite()
/frameworks/base/services/core/java/com/android/server/am/
DUidRecord.java111 uid) == PackageManager.PERMISSION_GRANTED; in updateHasInternetPermission()
/frameworks/support/compat/java/android/support/v4/content/pm/
DShortcutManagerCompat.java59 != PackageManager.PERMISSION_GRANTED) { in isRequestPinShortcutSupported()

1234567