Home
last modified time | relevance | path

Searched defs:runWithShellPermissionIdentity (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java760 runWithShellPermissionIdentity(() -> { in installRestrictedPermissionUserApp() method
770 runWithShellPermissionIdentity(() -> { in assertHasFullStorageAccess() method
780 runWithShellPermissionIdentity(() -> { in assertHasIsolatedStorageAccess() method
805 runWithShellPermissionIdentity(() -> { in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() method
821 runWithShellPermissionIdentity(() -> { in assertCannotWhitelistStorage() method
849 runWithShellPermissionIdentity(() -> { in assertCannotWhitelistStorage() method
868 runWithShellPermissionIdentity(() -> { in assertCannotUnWhitelistStorage() method
900 runWithShellPermissionIdentity(() -> { in assertCannotUnWhitelistStorage() method
1113 runWithShellPermissionIdentity(() -> { in installApp() method
1122 runWithShellPermissionIdentity(() -> { in installApp() method
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java150 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() method in SystemUtil
158 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity() method in SystemUtil
168 public static void runWithShellPermissionIdentity( in runWithShellPermissionIdentity() method in SystemUtil
181 public static void runWithShellPermissionIdentity(@NonNull UiAutomation automan, in runWithShellPermissionIdentity() method in SystemUtil
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java164 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() method in SystemUtil
172 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity() method in SystemUtil
182 public static void runWithShellPermissionIdentity( in runWithShellPermissionIdentity() method in SystemUtil
195 public static void runWithShellPermissionIdentity(@NonNull UiAutomation automan, in runWithShellPermissionIdentity() method in SystemUtil
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsRoleManagerAdapter.java118 runWithShellPermissionIdentity(() -> { in getRoleHolder() method
131 runWithShellPermissionIdentity(() -> { in addRoleHolder() method
150 runWithShellPermissionIdentity(() -> { in removeRoleHolder() method
DThirdPartyCallScreeningServiceTest.java544 runWithShellPermissionIdentity(() -> { in rememberPreviousCallScreeningApp() method
593 runWithShellPermissionIdentity(() -> { in grantReadContactPermission() method
601 runWithShellPermissionIdentity(() -> { in revokeReadContactPermission() method
DThirdPartyInCallServiceTest.java210 runWithShellPermissionIdentity(() -> { in cacheCurrentRoleHolder() method
DCallRedirectionServiceTest.java240 runWithShellPermissionIdentity(() -> { in rememberPreviousCallRedirectionApp() method
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsUtils.kt104 fun runWithShellPermissionIdentity(runnable: ThrowingRunnable) { in runWithShellPermissionIdentity() method
DAppOpsTest.kt407 private fun runWithShellPermissionIdentity(command: () -> Unit) { in runWithShellPermissionIdentity() method
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DDefaultSmsAppHelper.java52 runWithShellPermissionIdentity(() -> { in ensureDefaultSmsApp() method
/cts/tests/app/src/android/app/cts/
DKeyguardManagerTest.java54 runWithShellPermissionIdentity(() -> { in testPrivateNotificationsAllowed() method
/cts/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java348 runWithShellPermissionIdentity(() -> { in reduceDelays() method
510 runWithShellPermissionIdentity(() -> { in resetDelays() method
658 runWithShellPermissionIdentity(() -> { in noNotificationIfBlamerNotSystemOrLocationProvider() method
DPermissionControllerTest.java186 runWithShellPermissionIdentity(() -> { in doNotRevokeAlreadyRevokedPermission() method
/cts/tests/tests/net/src/android/net/cts/
DIkev2VpnTest.java197 runWithShellPermissionIdentity(() -> { in setAppop() method
486 runWithShellPermissionIdentity(() -> { in testStartStopVpnProfileV4() method
496 runWithShellPermissionIdentity(() -> { in testStartStopVpnProfileV6() method
DConnectivityDiagnosticsManagerTest.java161 runWithShellPermissionIdentity(() -> { in tearDown() method
241 runWithShellPermissionIdentity( in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable() method
DConnectivityManagerTest.java992 runWithShellPermissionIdentity(() -> { in testKeepaliveWifiUnsupported() method
1017 runWithShellPermissionIdentity(() -> { in testCreateTcpKeepalive() method
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityLaunchTest.java121 runWithShellPermissionIdentity(() -> { in tearDown() method
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java572 runWithShellPermissionIdentity(() -> { in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() method