Home
last modified time | relevance | path

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

12

/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
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
DDeviceConfigStateManager.java19 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/
DSystemUtil.java164 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
DDeviceConfigStateManager.java19 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/
DTelecomManagerTest.java19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
34 runWithShellPermissionIdentity(() -> in testGetCurrentTtyMode()
55 runWithShellPermissionIdentity(() -> in testIsInEmergencyCall()
DCtsRoleManagerAdapter.java22 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
151 runWithShellPermissionIdentity(() -> { in getRoleHolder() method
164 runWithShellPermissionIdentity(() -> { in addRoleHolder() method
183 runWithShellPermissionIdentity(() -> { in removeRoleHolder() method
DCallRedirectionServiceTest.java21 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()
DThirdPartyCallScreeningServiceTest.java22 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()
DDefaultPhoneAccountTest.java19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
81 runWithShellPermissionIdentity(() -> in testSetUserSelectedOutgoingPhoneAccount()
DPhoneAccountSuggestionServiceTest.java21 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/
DVirtualDisplayHelper.java79 SystemUtil.runWithShellPermissionIdentity(() -> { in createAndWaitForDisplay()
89 SystemUtil.runWithShellPermissionIdentity(() -> { in turnDisplayOff()
97 SystemUtil.runWithShellPermissionIdentity(() -> { in turnDisplayOn()
105 SystemUtil.runWithShellPermissionIdentity(() -> { in releaseDisplay()
DMultiDisplaySecurityTests.java218 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()
DPrereleaseSdkTest.java46 SystemUtil.runWithShellPermissionIdentity( in setUp()
DActivityViewTest.java94 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/
DPowerManagerTest.java79 SystemUtil.runWithShellPermissionIdentity(() -> { in tearDown()
92 SystemUtil.runWithShellPermissionIdentity(() -> { in testPowerManager_getPowerSaveMode()
111 SystemUtil.runWithShellPermissionIdentity(() -> { in testPowerManager_setDynamicPowerSavings()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DDefaultSmsAppHelper.java19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
45 runWithShellPermissionIdentity(() -> { in ensureDefaultSmsApp() method
/cts/tests/app/src/android/app/cts/
DKeyguardManagerTest.java19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
54 runWithShellPermissionIdentity(() -> { in testPrivateNotificationsAllowed() method
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java756 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/
DLocationAccessCheckTest.java30 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()
DPermissionControllerTest.java34 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/
DRoleManagerTest.java21 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/
DPermissionUtils.java36 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/
DActivityManagerTestBase.java368 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/
DPermissionTest.java35 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/
DLauncherAppsTest.java172 SystemUtil.runWithShellPermissionIdentity(() -> in registerObserver()
179 SystemUtil.runWithShellPermissionIdentity(() -> in unregisterObserver()

12