Home
last modified time | relevance | path

Searched refs:enforcePermission (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationEnforcer.java73 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/
DPermissionEnforcer.java129 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/
DDomainVerificationSettingsMutationTest.kt65 enforcePermission( in <lambda>()
71 enforcePermission( in <lambda>()
77 enforcePermission( in <lambda>()
83 enforcePermission( in <lambda>()
DDomainVerificationUserSelectionOverrideTest.kt70 whenever(enforcePermission(anyString(), anyInt(), anyInt(), anyString())) in makeService()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java122 .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/
DTelephonyPermissions.java120 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/
DPackageManagerHelper.java75 void enforcePermission(String permission, String message) throws SecurityException; in enforcePermission() method
DOverlayActorEnforcer.java143 mPackageManager.enforcePermission( in isAllowedActor()
173 mPackageManager.enforcePermission( in isAllowedActor()
/frameworks/base/media/java/android/media/permission/
DPermissionUtil.java112 context.enforcePermission(middlemanPermission, middlemanIdentity.pid, in establishIdentityIndirect()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManagerInternal.java297 public abstract void enforcePermission(String callerPackage, String permission, in enforcePermission() method in DevicePolicyManagerInternal
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java335 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/
DBugreportManagerServiceImpl.java478 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/
DTestableContext.java445 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/
DContextualSearchManagerService.java378 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/
DDisplayPolicy.java1054 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/
DLockSettingsShellCommand.java277 mContext.enforcePermission(android.Manifest.permission.BIND_RESUME_ON_REBOOT_SERVICE, in runSetResumeOnRebootProviderPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayActorEnforcerTests.kt412 override fun enforcePermission(permission: String?, message: String?) { in <lambda>() method in com.android.server.om.OverlayActorEnforcerTests.TestState
DOverlayManagerServiceImplTestsBase.java459 public void enforcePermission(String permission, String message) throws SecurityException { in enforcePermission() method in OverlayManagerServiceImplTestsBase.FakePackageManagerHelper
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java5261 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/
DAppOpsUpgradeTest.java163 doNothing().when(mTestContext).enforcePermission(anyString(), anyInt(), anyInt(), in setUp()
DAppOpsServiceTest.java125 doNothing().when(mAppOpsService.mContext).enforcePermission(anyString(), anyInt(), in setupAppOpsService()
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodBaseContext.java611 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission() method in RavenwoodBaseContext
/frameworks/base/location/java/android/location/
DLocationManager.java1921 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/
DContextWrapper.java971 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/
DApplicationContext.java991 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()

12