/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 150 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() method in SystemUtil 152 runWithShellPermissionIdentity(automan, runnable); in runWithShellPermissionIdentity() 158 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity() method in SystemUtil 161 runWithShellPermissionIdentity(automan, runnable, permissions); in runWithShellPermissionIdentity() 168 public static void runWithShellPermissionIdentity( in runWithShellPermissionIdentity() method in SystemUtil 170 runWithShellPermissionIdentity(automan, runnable, null /* permissions */); in runWithShellPermissionIdentity() 181 public static void runWithShellPermissionIdentity(@NonNull UiAutomation automan, in runWithShellPermissionIdentity() method in SystemUtil
|
D | DeviceConfigStateManager.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 63 runWithShellPermissionIdentity(() -> setWithPermissionsGranted(value), in set() 81 runWithShellPermissionIdentity(() in get()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 164 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() method in SystemUtil 166 runWithShellPermissionIdentity(automan, runnable); in runWithShellPermissionIdentity() 172 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity() method in SystemUtil 175 runWithShellPermissionIdentity(automan, runnable, permissions); in runWithShellPermissionIdentity() 182 public static void runWithShellPermissionIdentity( in runWithShellPermissionIdentity() method in SystemUtil 184 runWithShellPermissionIdentity(automan, runnable, null /* permissions */); in runWithShellPermissionIdentity() 195 public static void runWithShellPermissionIdentity(@NonNull UiAutomation automan, in runWithShellPermissionIdentity() method in SystemUtil
|
D | DeviceConfigStateManager.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 63 runWithShellPermissionIdentity(() -> setWithPermissionsGranted(value), in set() 81 runWithShellPermissionIdentity(() in get()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomManagerTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 34 runWithShellPermissionIdentity(() -> in testGetCurrentTtyMode() 55 runWithShellPermissionIdentity(() -> in testIsInEmergencyCall()
|
D | CtsRoleManagerAdapter.java | 22 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 151 runWithShellPermissionIdentity(() -> { in getRoleHolder() method 164 runWithShellPermissionIdentity(() -> { in addRoleHolder() method 183 runWithShellPermissionIdentity(() -> { in removeRoleHolder() method
|
D | CallRedirectionServiceTest.java | 21 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 198 runWithShellPermissionIdentity(() -> { in rememberPreviousCallRedirectionApp() method 213 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 232 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
|
D | ThirdPartyCallScreeningServiceTest.java | 22 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 304 runWithShellPermissionIdentity(() -> { in rememberPreviousCallScreeningApp() method 320 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 339 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
|
D | DefaultPhoneAccountTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 81 runWithShellPermissionIdentity(() -> in testSetUserSelectedOutgoingPhoneAccount()
|
D | PhoneAccountSuggestionServiceTest.java | 21 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 50 runWithShellPermissionIdentity( in setUp() 68 runWithShellPermissionIdentity(() -> in tearDown()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | VirtualDisplayHelper.java | 79 SystemUtil.runWithShellPermissionIdentity(() -> { in createAndWaitForDisplay() 89 SystemUtil.runWithShellPermissionIdentity(() -> { in turnDisplayOff() 97 SystemUtil.runWithShellPermissionIdentity(() -> { in turnDisplayOn() 105 SystemUtil.runWithShellPermissionIdentity(() -> { in releaseDisplay()
|
D | MultiDisplaySecurityTests.java | 218 SystemUtil.runWithShellPermissionIdentity(() -> in testCanAccessPublicVirtualDisplayWithInternalPermission() 240 SystemUtil.runWithShellPermissionIdentity(() -> in testCanAccessPrivateVirtualDisplayWithInternalPermission() 283 SystemUtil.runWithShellPermissionIdentity(() -> in testCantAccessPublicVirtualDisplayActivityEmbeddingNotAllowed() 305 SystemUtil.runWithShellPermissionIdentity(() -> in testCanAccessPublicVirtualDisplayActivityEmbeddingAllowed() 859 SystemUtil.runWithShellPermissionIdentity(() -> assertFalse( in testGettingFlagFromUntrustedDisplay() 864 SystemUtil.runWithShellPermissionIdentity(() -> assertFalse( in testGettingFlagFromUntrustedDisplay() 882 SystemUtil.runWithShellPermissionIdentity(() -> { in testSettingFlagToTrustedDisplay() 903 SystemUtil.runWithShellPermissionIdentity(() -> { in testSettingFlagToTrustedDisplay()
|
D | PrereleaseSdkTest.java | 46 SystemUtil.runWithShellPermissionIdentity( in setUp()
|
D | ActivityViewTest.java | 94 SystemUtil.runWithShellPermissionIdentity(() -> { in setUp() 105 SystemUtil.runWithShellPermissionIdentity(() -> mActivityView.release()); in tearDown() 279 SystemUtil.runWithShellPermissionIdentity(() -> mActivityView.startActivity(intent)); in launchActivityInActivityView()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PowerManagerTest.java | 79 SystemUtil.runWithShellPermissionIdentity(() -> { in tearDown() 92 SystemUtil.runWithShellPermissionIdentity(() -> { in testPowerManager_getPowerSaveMode() 111 SystemUtil.runWithShellPermissionIdentity(() -> { in testPowerManager_setDynamicPowerSavings()
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | DefaultSmsAppHelper.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 45 runWithShellPermissionIdentity(() -> { in ensureDefaultSmsApp() method
|
/cts/tests/app/src/android/app/cts/ |
D | KeyguardManagerTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 54 runWithShellPermissionIdentity(() -> { in testPrivateNotificationsAllowed() method
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 756 runWithShellPermissionIdentity(() -> in installRestrictedPermissionUserApp() 767 runWithShellPermissionIdentity(() -> { in assertHasFullStorageAccess() method 777 runWithShellPermissionIdentity(() -> { in assertHasIsolatedStorageAccess() method 802 runWithShellPermissionIdentity(() -> { in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() method 818 runWithShellPermissionIdentity(() -> { in assertCannotWhitelistStorage() method 846 runWithShellPermissionIdentity(() -> { in assertCannotWhitelistStorage() method 865 runWithShellPermissionIdentity(() -> { in assertCannotUnWhitelistStorage() method 897 runWithShellPermissionIdentity(() -> { in assertCannotUnWhitelistStorage() method 957 eventually(() -> runWithShellPermissionIdentity(() -> { in assertRestrictedPermissionWhitelisted() 1110 runWithShellPermissionIdentity(() -> { in installApp() method [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | LocationAccessCheckTest.java | 30 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 339 runWithShellPermissionIdentity(() -> { in reduceDelays() method 376 runWithShellPermissionIdentity(() -> DeviceConfig.setProperty( in enableLocationAccessCheck() 479 runWithShellPermissionIdentity(() -> { in resetDelays() method 494 runWithShellPermissionIdentity( in resetPrivacyConfig()
|
D | PermissionControllerTest.java | 34 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 108 runWithShellPermissionIdentity(() -> resetAppState()); in setup() 186 runWithShellPermissionIdentity(() -> { in doNotRevokeAlreadyRevokedPermission() method 249 runWithShellPermissionIdentity(() -> in useExecutorForCallback() 449 runWithShellPermissionIdentity(() -> resetAppState()); in dropShellPermissions()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 21 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 464 runWithShellPermissionIdentity(() -> sRoleManager.addOnRoleHoldersChangedListenerAsUser( in assertOnRoleHoldersChangedListenerIsNotified() 471 runWithShellPermissionIdentity(() -> in assertOnRoleHoldersChangedListenerIsNotified() 484 runWithShellPermissionIdentity(() -> { in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() method 597 runWithShellPermissionIdentity(() -> sRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 605 runWithShellPermissionIdentity(() -> sRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder() 612 runWithShellPermissionIdentity(() -> sRoleManager.clearRoleHoldersAsUser(roleName, 0, in clearRoleHolders()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 36 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 125 runWithShellPermissionIdentity( in setAppOpByName() 271 runWithShellPermissionIdentity( in setPermissionFlags()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 368 SystemUtil.runWithShellPermissionIdentity(() -> { in launchTestActivityOnDisplaySync() 454 SystemUtil.runWithShellPermissionIdentity( in moveTopActivityToPinnedStack() 520 SystemUtil.runWithShellPermissionIdentity( in removeStacksWithActivityTypes() 526 SystemUtil.runWithShellPermissionIdentity( in removeStacksInWindowingModes() 638 SystemUtil.runWithShellPermissionIdentity(() -> { in launchActivityInSplitScreenWithRecents() 666 SystemUtil.runWithShellPermissionIdentity(() -> { in moveTaskToPrimarySplitScreen() 711 SystemUtil.runWithShellPermissionIdentity( in setActivityTaskWindowingMode() 722 SystemUtil.runWithShellPermissionIdentity( in moveActivityToStack() 734 SystemUtil.runWithShellPermissionIdentity( in resizeActivityTask() 740 SystemUtil.runWithShellPermissionIdentity(() -> in resizeDockedStack() [all …]
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 35 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 359 runWithShellPermissionIdentity( in setFlag() 365 runWithShellPermissionIdentity( in clearFlag() 392 runWithShellPermissionIdentity( in setAppOp()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | LauncherAppsTest.java | 172 SystemUtil.runWithShellPermissionIdentity(() -> in registerObserver() 179 SystemUtil.runWithShellPermissionIdentity(() -> in unregisterObserver()
|