/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationEnforcer.java | 73 mContext.enforcePermission(android.Manifest.permission.DUMP, in assertApprovedQuerent() 80 mContext.enforcePermission(android.Manifest.permission.QUERY_ALL_PACKAGES, in assertApprovedQuerent() 117 mContext.enforcePermission(android.Manifest.permission.QUERY_ALL_PACKAGES, in assertApprovedVerifier() 138 mContext.enforcePermission( in assertApprovedUserStateQuerent() 159 mContext.enforcePermission( in assertApprovedUserSelector() 165 mContext.enforcePermission( in assertApprovedUserSelector() 185 mContext.enforcePermission( in callerIsLegacyUserSelector() 212 mContext.enforcePermission( in callerIsLegacyUserQuerent() 237 mContext.enforcePermission(android.Manifest.permission.INTERACT_ACROSS_USERS, in assertOwnerQuerent() 241 mContext.enforcePermission(android.Manifest.permission.QUERY_ALL_PACKAGES, in assertOwnerQuerent() [all …]
|
/frameworks/base/core/java/android/os/ |
D | PermissionEnforcer.java | 129 public void enforcePermission(@NonNull String permission, @NonNull in enforcePermission() method in PermissionEnforcer 137 public void enforcePermission(@NonNull String permission, int pid, int uid) in enforcePermission() method in PermissionEnforcer 141 enforcePermission(permission, source); in enforcePermission()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationSettingsMutationTest.kt | 65 enforcePermission( in <lambda>() 71 enforcePermission( in <lambda>() 77 enforcePermission( in <lambda>() 83 enforcePermission( in <lambda>()
|
D | DomainVerificationUserSelectionOverrideTest.kt | 70 whenever(enforcePermission(anyString(), anyInt(), anyInt(), anyString())) in makeService()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyPermissionsTest.java | 122 .enforcePermission(anyString(), eq(PID), eq(UID), eq(MSG)); in setUp() 124 .enforcePermission(anyString(), eq(PID), eq(UID), eq(MSG)); in setUp() 159 doNothing().when(mMockContext).enforcePermission( in testCheckReadPhoneState_hasPrivilegedPermission() 167 doNothing().when(mMockContext).enforcePermission( in testCheckReadPhoneState_hasPermissionAndAppOp() 179 doNothing().when(mMockContext).enforcePermission( in testCheckReadPhoneState_hasPermissionWithoutAppOp() 203 doNothing().when(mMockContext).enforcePermission( in testCheckReadPhoneStateOnAnyActiveSub_hasPrivilegedPermission() 211 doNothing().when(mMockContext).enforcePermission( in testCheckReadPhoneStateOnAnyActiveSub_hasPermissionAndAppOp() 223 doNothing().when(mMockContext).enforcePermission( in testCheckReadPhoneStateOnAnyActiveSub_hasPermissionWithoutAppOp()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 120 context.enforcePermission(Manifest.permission.INTERNET, in checkInternetPermissionNoThrow() 138 context.enforcePermission( in checkCallingOrSelfReadNonDangerousPhoneStateNoThrow() 173 context.enforcePermission( in checkReadPhoneState() 180 context.enforcePermission( in checkReadPhoneState() 230 context.enforcePermission( in checkReadPhoneStateOnAnyActiveSub() 237 context.enforcePermission( in checkReadPhoneStateOnAnyActiveSub()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | PackageManagerHelper.java | 75 void enforcePermission(String permission, String message) throws SecurityException; in enforcePermission() method
|
D | OverlayActorEnforcer.java | 143 mPackageManager.enforcePermission( in isAllowedActor() 173 mPackageManager.enforcePermission( in isAllowedActor()
|
/frameworks/base/media/java/android/media/permission/ |
D | PermissionUtil.java | 112 context.enforcePermission(middlemanPermission, middlemanIdentity.pid, in establishIdentityIndirect()
|
/frameworks/base/core/java/android/app/admin/ |
D | DevicePolicyManagerInternal.java | 297 public abstract void enforcePermission(String callerPackage, String permission, in enforcePermission() method in DevicePolicyManagerInternal
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | IpConnectivityMetrics.java | 335 enforcePermission(android.Manifest.permission.DUMP); in enforceDumpPermission() 338 private void enforcePermission(String what) { in enforcePermission() method in IpConnectivityMetrics.Impl
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | BugreportManagerServiceImpl.java | 478 enforcePermission(callingPackage, Binder.getCallingUid(), true); in preDumpUiData() 498 enforcePermission(callingPackage, callingUid, bugreportMode in startBugreport() 555 enforcePermission(callingPackage, callingUid, true /* checkCarrierPrivileges */); in cancelBugreport() 584 enforcePermission(callingPackage, callingUid, false); in retrieveBugreport() 671 private void enforcePermission( in enforcePermission() method in BugreportManagerServiceImpl
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableContext.java | 445 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission() method in TestableContext 449 super.enforcePermission(permission, pid, uid, message); in enforcePermission()
|
/frameworks/base/services/contextualsearch/java/com/android/server/contextualsearch/ |
D | ContextualSearchManagerService.java | 378 private void enforcePermission(@NonNull final String func) { in enforcePermission() method in ContextualSearchManagerService 448 enforcePermission("startContextualSearch"); in startContextualSearch()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayPolicy.java | 1054 mContext.enforcePermission( in validateAddingWindowLw() 1064 mContext.enforcePermission( in validateAddingWindowLw() 1072 mContext.enforcePermission( in validateAddingWindowLw() 1082 mContext.enforcePermission(android.Manifest.permission.STATUS_BAR_SERVICE, in validateAddingWindowLw() 1089 mContext.enforcePermission(android.Manifest.permission.STATUS_BAR_SERVICE, in validateAddingWindowLw() 1095 mContext.enforcePermission( in validateAddingWindowLw() 1106 mContext.enforcePermission( in validateAddingWindowLw()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsShellCommand.java | 277 mContext.enforcePermission(android.Manifest.permission.BIND_RESUME_ON_REBOOT_SERVICE, in runSetResumeOnRebootProviderPackage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayActorEnforcerTests.kt | 412 override fun enforcePermission(permission: String?, message: String?) { in <lambda>() method in com.android.server.om.OverlayActorEnforcerTests.TestState
|
D | OverlayManagerServiceImplTestsBase.java | 459 public void enforcePermission(String permission, String message) throws SecurityException { in enforcePermission() method in OverlayManagerServiceImplTestsBase.FakePackageManagerHelper
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 5261 enforcePermission(MANAGE_DEVICE_POLICY_LOCK_CREDENTIALS, 5664 enforcePermission(MANAGE_DEVICE_POLICY_LOCK_CREDENTIALS, 5719 enforcePermission(MANAGE_DEVICE_POLICY_LOCK_CREDENTIALS, 9030 enforcePermission(SET_TIME, caller.getPackageName(), UserHandle.USER_ALL); 11546 enforcePermission( 11952 enforcePermission( 12016 enforcePermission( 13366 enforcePermission( 13893 enforcePermission(MANAGE_DEVICE_POLICY_PACKAGE_STATE, caller.getPackageName(), userId); in setApplicationHidden() 13952 enforcePermission(MANAGE_DEVICE_POLICY_PACKAGE_STATE, caller.getPackageName(), userId); in isApplicationHidden() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsUpgradeTest.java | 163 doNothing().when(mTestContext).enforcePermission(anyString(), anyInt(), anyInt(), in setUp()
|
D | AppOpsServiceTest.java | 125 doNothing().when(mAppOpsService.mContext).enforcePermission(anyString(), anyInt(), in setupAppOpsService()
|
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/ |
D | RavenwoodBaseContext.java | 611 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission() method in RavenwoodBaseContext
|
/frameworks/base/location/java/android/location/ |
D | LocationManager.java | 1921 mContext.enforcePermission(ACCESS_FINE_LOCATION, Process.myPid(), in getProvider() 1924 mContext.enforcePermission(ACCESS_COARSE_LOCATION, Process.myPid(), in getProvider() 1928 mContext.enforcePermission(ACCESS_FINE_LOCATION, Process.myPid(), Process.myUid(), in getProvider()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 971 public void enforcePermission( in enforcePermission() method in ContextWrapper 973 mBase.enforcePermission(permission, pid, uid, message); in enforcePermission()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | ApplicationContext.java | 991 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission() method in ApplicationContext 994 context.enforcePermission(permission, pid, uid, message); in enforcePermission()
|