Home
last modified time | relevance | path

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

/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedStoragePermissionTest.java509 runWithShellPermissionIdentity(() -> { in assertHasFullStorageAccess() method
519 runWithShellPermissionIdentity(() -> { in assertHasIsolatedStorageAccess() method
531 runWithShellPermissionIdentity(() -> { in assertCannotWhitelistStorage() method
563 runWithShellPermissionIdentity(() -> { in assertCannotWhitelistStorage() method
581 runWithShellPermissionIdentity(() -> { in assertCannotUnWhitelistStorage() method
617 runWithShellPermissionIdentity(() -> { in assertCannotUnWhitelistStorage() method
665 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity() method in RestrictedStoragePermissionTest
704 runWithShellPermissionIdentity(() -> { in installApp() method
715 runWithShellPermissionIdentity(() -> { in installApp() method
730 runWithShellPermissionIdentity(() -> { in installApp() method
DRestrictedPermissionsTest.java413 runWithShellPermissionIdentity(() -> { in installRestrictedPermissionUserApp() method
438 runWithShellPermissionIdentity(() -> { in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() method
647 runWithShellPermissionIdentity(() -> { in installApp() method
656 runWithShellPermissionIdentity(() -> { in installApp() method
668 runWithShellPermissionIdentity(() -> { in installApp() method
689 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity() method in RestrictedPermissionsTest
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionUpdateListenerTest.java94 runWithShellPermissionIdentity(() -> { in grantNotifiesListener() method
107 runWithShellPermissionIdentity(() -> { in revokeNotifiesListener() method
120 runWithShellPermissionIdentity(() -> { in updateFlagsNotifiesListener() method
DPermissionControllerTest.java99 runWithShellPermissionIdentity(() -> { in resetAppState() method
239 runWithShellPermissionIdentity(() -> { in revokePermissionsDoNotAlreadyRevokedPermission() method
431 runWithShellPermissionIdentity( in revokePermissionAutomaticallyExtendsToWholeGroup() method
447 runWithShellPermissionIdentity( in revokePermissionCustom() method
486 runWithShellPermissionIdentity( in countPermissionAppsGranted() method
DOneTimePermissionTest.java92 runWithShellPermissionIdentity(() -> { in prepareDeviceForOneTime() method
234 runWithShellPermissionIdentity(() -> { in exitApp() method
DLocationAccessCheckTest.java340 runWithShellPermissionIdentity(() -> { in reduceDelays() method
548 runWithShellPermissionIdentity(() -> { in resetDelays() method
703 runWithShellPermissionIdentity(() -> { in noNotificationIfBlamerNotSystemOrLocationProvider() method
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java176 public static <T> T runWithShellPermissionIdentity(@NonNull ThrowingSupplier<T> supplier) { in runWithShellPermissionIdentity() method in SystemUtil
187 public static <T> T runWithShellPermissionIdentity(@NonNull ThrowingSupplier<T> supplier, in runWithShellPermissionIdentity() method in SystemUtil
198 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() method in SystemUtil
206 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity() method in SystemUtil
216 public static void runWithShellPermissionIdentity( in runWithShellPermissionIdentity() method in SystemUtil
229 public static void runWithShellPermissionIdentity(@NonNull UiAutomation automan, in runWithShellPermissionIdentity() method in SystemUtil
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DDefaultSmsAppHelper.java52 runWithShellPermissionIdentity(() -> { in ensureDefaultSmsApp() method
84 runWithShellPermissionIdentity(() -> { in stopBeingDefaultSmsApp() method
/cts/tests/app/src/android/app/cts/
DActivityManagerApi29Test.java117 runWithShellPermissionIdentity(()-> { in setUp() method
137 runWithShellPermissionIdentity(() -> { in tearDown() method
279 runWithShellPermissionIdentity(() -> { in testAppOpsHistoricalOps() method
DKeyguardManagerTest.java54 runWithShellPermissionIdentity(() -> { in testPrivateNotificationsAllowed() method
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallPinnedTest.java121 runWithShellPermissionIdentity(() -> { in testCantUninstallAppDirectly() method
150 runWithShellPermissionIdentity(() -> { in pinActivity() method
/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/framework/base/windowmanager/src/android/server/wm/
DStartActivityAsUserTests.java104 runWithShellPermissionIdentity(() -> { in startActivityValidUser() method
131 runWithShellPermissionIdentity(() -> { in startActivityInvalidUser() method
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DRecognitionServiceMicIndicatorTest.java110 runWithShellPermissionIdentity(() -> { in setup() method
142 runWithShellPermissionIdentity(() -> { in setIndicatorsEnabledStateIfNeeded() 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.java166 runWithShellPermissionIdentity(() -> { in tearDown() method
247 runWithShellPermissionIdentity( in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable() method
DConnectivityManagerTest.java987 runWithShellPermissionIdentity(() -> { in testKeepaliveWifiUnsupported() method
1012 runWithShellPermissionIdentity(() -> { in testCreateTcpKeepalive() method
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt104 inline fun <T> runWithShellPermissionIdentity(runnable: () -> T): T { in runWithShellPermissionIdentity() method
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityLaunchTest.java122 runWithShellPermissionIdentity(() -> { in tearDown() method
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsTest.kt580 private fun runWithShellPermissionIdentity(command: () -> Unit) { in <lambda>() method
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java819 runWithShellPermissionIdentity(() -> { in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() method
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java766 runWithShellPermissionIdentity(() -> { in testPermissionChangeWithReason() method