/frameworks/support/v4/java/android/support/v4/content/ |
D | PermissionChecker.java | 56 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/ |
D | ContextCompatTest.java | 138 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/ |
D | ChipsUtil.java | 68 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/ |
D | MediaProjectionManagerService.java | 225 != 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/ |
D | ConsumerIrService.java | 73 != PackageManager.PERMISSION_GRANTED) { in transmit() 105 != PackageManager.PERMISSION_GRANTED) { in getCarrierFrequencies()
|
D | UpdateLockService.java | 116 != PackageManager.PERMISSION_GRANTED) { in dump()
|
D | VibratorService.java | 284 != 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/ |
D | IccPhoneBookInterfaceManager.java | 168 != 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/ |
D | KeyguardService.java | 34 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/ |
D | NetworkStatsAccess.java | 125 READ_NETWORK_USAGE_HISTORY) == PackageManager.PERMISSION_GRANTED) { in checkAccessLevel() 184 return permissionCheck == PackageManager.PERMISSION_GRANTED; in hasAppOpsPermission()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 110 return PackageManager.PERMISSION_GRANTED; in checkUriPermission() 115 return PackageManager.PERMISSION_GRANTED; in checkUriPermission()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | TwilightManager.java | 87 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/ |
D | NetworkStatsAccessTest.java | 169 hasPermission ? PackageManager.PERMISSION_GRANTED in setHasAppOpsPermission() 175 .thenReturn(hasPermission ? PackageManager.PERMISSION_GRANTED in setHasReadHistoryPermission()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | BroadcastTest.java | 374 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
|
D | IntentSenderTest.java | 31 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_GRANTED); in testRegisteredReceivePermissionGranted()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | RemoteDisplayProviderWatcher.java | 177 packageName) == PackageManager.PERMISSION_GRANTED) { in hasCaptureVideoPermission() 181 packageName) == PackageManager.PERMISSION_GRANTED) { in hasCaptureVideoPermission()
|
/frameworks/support/v4/kitkat/android/support/v4/provider/ |
D | DocumentsContractApi19.java | 77 != PackageManager.PERMISSION_GRANTED) { in canRead() 92 != PackageManager.PERMISSION_GRANTED) { in canWrite()
|
/frameworks/base/core/java/android/net/ |
D | NetworkScorerAppManager.java | 138 PackageManager.PERMISSION_GRANTED) { in getAllValidScorers() 237 PackageManager.PERMISSION_GRANTED; in isCallerActiveScorer()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | SchedulingPolicyService.java | 62 return PackageManager.PERMISSION_GRANTED; in requestPriority()
|
/frameworks/base/services/core/java/com/android/server/webkit/ |
D | WebViewUpdateService.java | 196 != PackageManager.PERMISSION_GRANTED) { in changeProviderAndSetting() 238 != PackageManager.PERMISSION_GRANTED) { in enableFallbackLogic()
|
/frameworks/base/docs/html/training/permissions/ |
D | requesting.jd | 138 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/ |
D | UserController.java | 413 != 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/ |
D | JobSchedulerShellCommand.java | 62 if (perm != PackageManager.PERMISSION_GRANTED) { in runJob()
|
/frameworks/base/core/java/android/content/ |
D | ContentProvider.java | 23 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/ |
D | AccessibilityManager.java | 197 == PackageManager.PERMISSION_GRANTED in getInstance() 200 == PackageManager.PERMISSION_GRANTED) { in getInstance()
|