Home
last modified time | relevance | path

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

123456

/frameworks/support/v4/java/android/support/v4/content/
DPermissionChecker.java56 public static final int PERMISSION_GRANTED = PackageManager.PERMISSION_GRANTED; field in PermissionChecker
64 @IntDef({PERMISSION_GRANTED,
95 return PERMISSION_GRANTED; in checkPermission()
111 return PERMISSION_GRANTED; in checkPermission()
/frameworks/support/v4/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()
158 assertEquals("Read contacts permission denied", PackageManager.PERMISSION_GRANTED, in testCheckSelfPermission()
161 assertEquals("Write contacts permission denied", PackageManager.PERMISSION_GRANTED, in testCheckSelfPermission()
/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/media/projection/
DMediaProjectionManagerService.java225 != PackageManager.PERMISSION_GRANTED) { in createProjection()
255 != PackageManager.PERMISSION_GRANTED) { in getActiveProjectionInfo()
270 != PackageManager.PERMISSION_GRANTED) { in stopActiveProjection()
288 != PackageManager.PERMISSION_GRANTED) { in addCallback()
303 != PackageManager.PERMISSION_GRANTED) { in removeCallback()
319 != PackageManager.PERMISSION_GRANTED) { in dump()
336 == PackageManager.PERMISSION_GRANTED; in checkPermission()
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java73 != PackageManager.PERMISSION_GRANTED) { in transmit()
105 != PackageManager.PERMISSION_GRANTED) { in getCarrierFrequencies()
DUpdateLockService.java116 != PackageManager.PERMISSION_GRANTED) { in dump()
DVibratorService.java284 != PackageManager.PERMISSION_GRANTED) { in vibrate()
331 != PackageManager.PERMISSION_GRANTED) { in vibratePattern()
772 != PackageManager.PERMISSION_GRANTED) { in dump()
/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/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardService.java34 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
59 if (getBaseContext().checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) { in checkPermission()
/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/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java87 if (permission == PermissionChecker.PERMISSION_GRANTED) { in getLastKnownLocation()
93 if (permission == PermissionChecker.PERMISSION_GRANTED) { in getLastKnownLocation()
/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/support/v4/kitkat/android/support/v4/provider/
DDocumentsContractApi19.java77 != PackageManager.PERMISSION_GRANTED) { in canRead()
92 != PackageManager.PERMISSION_GRANTED) { in canWrite()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java138 PackageManager.PERMISSION_GRANTED) { in getAllValidScorers()
237 PackageManager.PERMISSION_GRANTED; in isCallerActiveScorer()
/frameworks/base/services/core/java/com/android/server/os/
DSchedulingPolicyService.java62 return PackageManager.PERMISSION_GRANTED; in requestPriority()
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateService.java196 != PackageManager.PERMISSION_GRANTED) { in changeProviderAndSetting()
238 != PackageManager.PERMISSION_GRANTED) { in enableFallbackLogic()
/frameworks/base/docs/html/training/permissions/
Drequesting.jd138 android.content.pm.PackageManager#PERMISSION_GRANTED
139 PackageManager.PERMISSION_GRANTED}, and the app can proceed with the
226 != PackageManager.PERMISSION_GRANTED) {
284 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
315 android.content.pm.PackageManager#PERMISSION_GRANTED PERMISSION_GRANTED}, the
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java413 != PackageManager.PERMISSION_GRANTED) { in stopUser()
750 != PackageManager.PERMISSION_GRANTED) { in startUser()
913 != PackageManager.PERMISSION_GRANTED) { in unlockUser()
1182 callingUid, -1, true) == PackageManager.PERMISSION_GRANTED) { in handleIncomingUser()
1189 callingUid, -1, true) != PackageManager.PERMISSION_GRANTED) { in handleIncomingUser()
1252 != PackageManager.PERMISSION_GRANTED) { in registerUserSwitchObserver()
1388 != PackageManager.PERMISSION_GRANTED) && ( in getCurrentUser()
1390 != PackageManager.PERMISSION_GRANTED)) { in getCurrentUser()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerShellCommand.java62 if (perm != PackageManager.PERMISSION_GRANTED) { in runJob()
/frameworks/base/core/java/android/content/
DContentProvider.java23 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
514 == PERMISSION_GRANTED; in checkUser()
524 callerToken) != PERMISSION_GRANTED) { in checkPermissionAndAppOp()
595 callerToken) == PERMISSION_GRANTED) { in enforceReadPermissionInner()
669 callerToken) == PERMISSION_GRANTED) { in enforceWritePermissionInner()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityManager.java197 == PackageManager.PERMISSION_GRANTED in getInstance()
200 == PackageManager.PERMISSION_GRANTED) { in getInstance()

123456