/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedStoragePermissionTest.java | 509 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
|
D | RestrictedPermissionsTest.java | 413 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/ |
D | PermissionUpdateListenerTest.java | 94 runWithShellPermissionIdentity(() -> { in grantNotifiesListener() method 107 runWithShellPermissionIdentity(() -> { in revokeNotifiesListener() method 120 runWithShellPermissionIdentity(() -> { in updateFlagsNotifiesListener() method
|
D | PermissionControllerTest.java | 99 runWithShellPermissionIdentity(() -> { in resetAppState() method 239 runWithShellPermissionIdentity(() -> { in revokePermissionsDoNotAlreadyRevokedPermission() method 431 runWithShellPermissionIdentity( in revokePermissionAutomaticallyExtendsToWholeGroup() method 447 runWithShellPermissionIdentity( in revokePermissionCustom() method 486 runWithShellPermissionIdentity( in countPermissionAppsGranted() method
|
D | OneTimePermissionTest.java | 92 runWithShellPermissionIdentity(() -> { in prepareDeviceForOneTime() method 234 runWithShellPermissionIdentity(() -> { in exitApp() method
|
D | LocationAccessCheckTest.java | 340 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/ |
D | SystemUtil.java | 176 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/ |
D | DefaultSmsAppHelper.java | 52 runWithShellPermissionIdentity(() -> { in ensureDefaultSmsApp() method 84 runWithShellPermissionIdentity(() -> { in stopBeingDefaultSmsApp() method
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerApi29Test.java | 117 runWithShellPermissionIdentity(()-> { in setUp() method 137 runWithShellPermissionIdentity(() -> { in tearDown() method 279 runWithShellPermissionIdentity(() -> { in testAppOpsHistoricalOps() method
|
D | KeyguardManagerTest.java | 54 runWithShellPermissionIdentity(() -> { in testPrivateNotificationsAllowed() method
|
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/ |
D | UninstallPinnedTest.java | 121 runWithShellPermissionIdentity(() -> { in testCantUninstallAppDirectly() method 150 runWithShellPermissionIdentity(() -> { in pinActivity() method
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsRoleManagerAdapter.java | 118 runWithShellPermissionIdentity(() -> { in getRoleHolder() method 131 runWithShellPermissionIdentity(() -> { in addRoleHolder() method 150 runWithShellPermissionIdentity(() -> { in removeRoleHolder() method
|
D | ThirdPartyCallScreeningServiceTest.java | 544 runWithShellPermissionIdentity(() -> { in rememberPreviousCallScreeningApp() method 593 runWithShellPermissionIdentity(() -> { in grantReadContactPermission() method 601 runWithShellPermissionIdentity(() -> { in revokeReadContactPermission() method
|
D | ThirdPartyInCallServiceTest.java | 210 runWithShellPermissionIdentity(() -> { in cacheCurrentRoleHolder() method
|
D | CallRedirectionServiceTest.java | 240 runWithShellPermissionIdentity(() -> { in rememberPreviousCallRedirectionApp() method
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | StartActivityAsUserTests.java | 104 runWithShellPermissionIdentity(() -> { in startActivityValidUser() method 131 runWithShellPermissionIdentity(() -> { in startActivityInvalidUser() method
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | RecognitionServiceMicIndicatorTest.java | 110 runWithShellPermissionIdentity(() -> { in setup() method 142 runWithShellPermissionIdentity(() -> { in setIndicatorsEnabledStateIfNeeded() method
|
/cts/tests/tests/net/src/android/net/cts/ |
D | Ikev2VpnTest.java | 197 runWithShellPermissionIdentity(() -> { in setAppop() method 486 runWithShellPermissionIdentity(() -> { in testStartStopVpnProfileV4() method 496 runWithShellPermissionIdentity(() -> { in testStartStopVpnProfileV6() method
|
D | ConnectivityDiagnosticsManagerTest.java | 166 runWithShellPermissionIdentity(() -> { in tearDown() method 247 runWithShellPermissionIdentity( in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable() method
|
D | ConnectivityManagerTest.java | 987 runWithShellPermissionIdentity(() -> { in testKeepaliveWifiUnsupported() method 1012 runWithShellPermissionIdentity(() -> { in testCreateTcpKeepalive() method
|
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/ |
D | AppOpsUtils.kt | 104 inline fun <T> runWithShellPermissionIdentity(runnable: () -> T): T { in runWithShellPermissionIdentity() method
|
/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/ |
D | BackgroundActivityLaunchTest.java | 122 runWithShellPermissionIdentity(() -> { in tearDown() method
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpsTest.kt | 580 private fun runWithShellPermissionIdentity(command: () -> Unit) { in <lambda>() method
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 819 runWithShellPermissionIdentity(() -> { in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() method
|
/cts/tests/app/AppExitTest/src/android/app/cts/ |
D | ActivityManagerAppExitInfoTest.java | 766 runWithShellPermissionIdentity(() -> { in testPermissionChangeWithReason() method
|