/frameworks/base/tests/net/java/android/net/ |
D | NetworkStackTest.java | 52 when(mCtx.checkCallingOrSelfPermission(eq(NETWORK_STACK))).thenReturn(PERMISSION_GRANTED); in testCheckNetworkStackPermission() 53 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission() 58 when(mCtx.checkCallingOrSelfPermission(eq(NETWORK_STACK))).thenReturn(PERMISSION_DENIED); in testCheckNetworkStackPermission() 59 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission() 64 when(mCtx.checkCallingOrSelfPermission(any())).thenReturn(PERMISSION_DENIED); in testCheckNetworkStackPermission()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScoreServiceTest.java | 354 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testClearScores_notActiveScorer_noRequestNetworkScoresPermission() 367 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testClearScores_activeScorer_noRequestNetworkScoresPermission() 388 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testClearScores_notActiveScorer_hasRequestNetworkScoresPermission() 400 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testSetActiveScorer_noScoreNetworksPermission() 402 when(mContext.checkCallingOrSelfPermission(permission.SCORE_NETWORKS)) in testSetActiveScorer_noScoreNetworksPermission() 415 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testSetActiveScorer_requestNetworkScoresPermission() 424 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testDisableScoring_notActiveScorer_noRequestNetworkScoresPermission() 438 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testDisableScoring_activeScorer_noRequestNetworkScoresPermission() 459 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testGetAllValidScorer_requestNetworkScoresPermission() 552 when(mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES)) in testGetActiveScorerPackage_missingRequiredPermissions() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConsumerIrService.java | 72 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.TRANSMIT_IR) in transmit() 104 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.TRANSMIT_IR) in getCarrierFrequencies()
|
D | SystemUpdateManagerService.java | 115 if (mContext.checkCallingOrSelfPermission(Manifest.permission.READ_SYSTEM_UPDATE_INFO) in retrieveSystemUpdateInfo() 117 && mContext.checkCallingOrSelfPermission(Manifest.permission.RECOVERY) in retrieveSystemUpdateInfo()
|
D | DynamicSystemService.java | 106 if (mContext.checkCallingOrSelfPermission( in checkPermission()
|
D | HardwarePropertiesManagerService.java | 168 && mContext.checkCallingOrSelfPermission(Manifest.permission.DEVICE_POWER) in enforceHardwarePropertiesRetrievalAllowed()
|
D | PersistentDataBlockService.java | 203 if (mContext.checkCallingOrSelfPermission(Manifest.permission.READ_OEM_UNLOCK_STATE) in enforceOemUnlockReadPermission() 205 && mContext.checkCallingOrSelfPermission(Manifest.permission.OEM_UNLOCK_STATE) in enforceOemUnlockReadPermission()
|
D | NetworkScoreService.java | 743 if (mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES) in enforceSystemOrHasScoreNetworks() 745 && mContext.checkCallingOrSelfPermission(permission.SCORE_NETWORKS) in enforceSystemOrHasScoreNetworks() 753 if (mContext.checkCallingOrSelfPermission(permission.REQUEST_NETWORK_SCORES) in enforceSystemOrIsActiveScorer()
|
D | SensorPrivacyService.java | 126 if (mContext.checkCallingOrSelfPermission( in enforceSensorPrivacyPermission()
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetServiceImpl.java | 73 return mContext.checkCallingOrSelfPermission( in checkUseRestrictedNetworksPermission() 172 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) in dump()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | IccPhoneBookInterfaceManager.java | 169 if (mPhone.getContext().checkCallingOrSelfPermission( in updateAdnRecordsInEfBySearch() 221 if (mPhone.getContext().checkCallingOrSelfPermission( in updateAdnRecordsInEfByIndex() 287 if (mPhone.getContext().checkCallingOrSelfPermission( in getAdnRecordsInEf()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | TimeDetectorServiceTest.java | 94 when(mMockContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)) in testDump() 99 verify(mMockContext).checkCallingOrSelfPermission(eq(android.Manifest.permission.DUMP)); in testDump()
|
/frameworks/base/services/core/java/com/android/server/oemlock/ |
D | OemLockService.java | 260 if (mContext.checkCallingOrSelfPermission(Manifest.permission.READ_OEM_UNLOCK_STATE) in enforceOemUnlockReadPermission() 262 && mContext.checkCallingOrSelfPermission(Manifest.permission.OEM_UNLOCK_STATE) in enforceOemUnlockReadPermission()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 95 if (context.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) in checkDumpPermission() 126 if (context.checkCallingOrSelfPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) in checkUsageStatsPermission()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStack.java | 88 if (context.checkCallingOrSelfPermission(permission) == PERMISSION_GRANTED) { in checkAnyPermissionOf()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 76 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in MockLockSettingsContext
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 527 if (context.checkCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE) == in enforceCallingOrSelfModifyPermissionOrCarrierPrivilege() 544 if (context.checkCallingOrSelfPermission(android.Manifest.permission.READ_PHONE_STATE) in enforeceCallingOrSelfReadPhoneStatePermissionOrCarrierPrivilege() 564 if (context.checkCallingOrSelfPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE) in enforeceCallingOrSelfReadPrivilegedPhoneStatePermissionOrCarrierPrivilege()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioPolicy.java | 506 == checkCallingOrSelfPermission(android.Manifest.permission.MODIFY_AUDIO_ROUTING); in policyReadyToUse() 535 private @PackageManager.PermissionResult int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in AudioPolicy 537 return mContext.checkCallingOrSelfPermission(permission); in checkCallingOrSelfPermission()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 124 if (hasAppOpsPermission || context.checkCallingOrSelfPermission( in checkAccessLevel()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Session.java | 97 mCanAddInternalSystemWindow = service.mContext.checkCallingOrSelfPermission( in Session() 99 mCanHideNonSystemOverlayWindows = service.mContext.checkCallingOrSelfPermission( in Session() 101 mCanAcquireSleepToken = service.mContext.checkCallingOrSelfPermission(DEVICE_POWER) in Session()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardService.java | 67 if (getBaseContext().checkCallingOrSelfPermission(PERMISSION) != PERMISSION_GRANTED) { in checkPermission()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableContext.java | 316 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() method in TestableContext 320 return super.checkCallingOrSelfPermission(permission); in checkCallingOrSelfPermission()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsAccessTest.java | 188 when(mContext.checkCallingOrSelfPermission(permission.READ_NETWORK_USAGE_HISTORY)) in setHasReadHistoryPermission()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityManager.java | 384 || context.checkCallingOrSelfPermission( in getInstance() 387 || context.checkCallingOrSelfPermission( in getInstance()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | TrampolineTest.java | 1302 when(mContextMock.checkCallingOrSelfPermission( in dump_callerDoesNotHavePermission_ignored() 1314 when(mContextMock.checkCallingOrSelfPermission( in dump_calledBeforeInitialize_ignored() 1325 when(mContextMock.checkCallingOrSelfPermission( in dump_callerHasPermission_forwarded()
|