/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/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/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomManagerTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 39 runWithShellPermissionIdentity(() -> in testGetCurrentTtyMode() 60 runWithShellPermissionIdentity(() -> in testIsInEmergencyCall_noOngoingEmergencyCall() 93 runWithShellPermissionIdentity(() -> in testIsInEmergencyCall_ongoingEmergencyCall()
|
D | CtsRoleManagerAdapter.java | 22 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 118 runWithShellPermissionIdentity(() -> { in getRoleHolder() method 131 runWithShellPermissionIdentity(() -> { in addRoleHolder() method 150 runWithShellPermissionIdentity(() -> { in removeRoleHolder() method
|
D | ThirdPartyCallScreeningServiceTest.java | 22 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 544 runWithShellPermissionIdentity(() -> { in rememberPreviousCallScreeningApp() method 560 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 579 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder() 593 runWithShellPermissionIdentity(() -> { in grantReadContactPermission() method 601 runWithShellPermissionIdentity(() -> { in revokeReadContactPermission() method
|
D | CallRedirectionServiceTest.java | 21 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 240 runWithShellPermissionIdentity(() -> { in rememberPreviousCallRedirectionApp() method 256 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 275 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
|
D | DefaultPhoneAccountTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 81 runWithShellPermissionIdentity(() -> in testSetUserSelectedOutgoingPhoneAccount()
|
D | ConnectionServiceTest.java | 21 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 96 runWithShellPermissionIdentity(() -> in testAddExistingConnection_invalidPhoneAccountPackageName() 119 runWithShellPermissionIdentity(() -> in testAddExistingConnection_invalidPhoneAccountAccountId()
|
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 | ToastTest.java | 78 SystemUtil.runWithShellPermissionIdentity(() -> { in setUp() 98 SystemUtil.runWithShellPermissionIdentity(() -> { in tearDown()
|
/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/permission/src/android/permission/cts/ |
D | LocationAccessCheckTest.java | 30 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 348 runWithShellPermissionIdentity(() -> { in reduceDelays() method 393 runWithShellPermissionIdentity(() -> DeviceConfig.setProperty( in enableLocationAccessCheck() 402 runWithShellPermissionIdentity(() -> DeviceConfig.setProperty( in disableLocationAccessCheck() 510 runWithShellPermissionIdentity(() -> { in resetDelays() method 525 runWithShellPermissionIdentity( in resetPrivacyConfig() 658 runWithShellPermissionIdentity(() -> { in noNotificationIfBlamerNotSystemOrLocationProvider() method
|
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/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 760 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 960 eventually(() -> runWithShellPermissionIdentity(() -> { in assertRestrictedPermissionWhitelisted() 1113 runWithShellPermissionIdentity(() -> { in installApp() method [all …]
|
/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/telephonyprovider/src/android/telephonyprovider/cts/ |
D | DefaultSmsAppHelper.java | 19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 52 runWithShellPermissionIdentity(() -> { in ensureDefaultSmsApp() method
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 369 SystemUtil.runWithShellPermissionIdentity(() -> { in launchTestActivityOnDisplaySync() 455 SystemUtil.runWithShellPermissionIdentity( in moveTopActivityToPinnedStack() 547 SystemUtil.runWithShellPermissionIdentity( in removeStacksWithActivityTypes() 553 SystemUtil.runWithShellPermissionIdentity( in removeStacksInWindowingModes() 665 SystemUtil.runWithShellPermissionIdentity(() -> { in launchActivityInSplitScreenWithRecents() 695 SystemUtil.runWithShellPermissionIdentity(() -> { in moveTaskToPrimarySplitScreen() 758 SystemUtil.runWithShellPermissionIdentity( in setActivityTaskWindowingMode() 769 SystemUtil.runWithShellPermissionIdentity( in moveActivityToStack() 781 SystemUtil.runWithShellPermissionIdentity( in resizeActivityTask() 787 SystemUtil.runWithShellPermissionIdentity(() -> in resizeDockedStack() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityDiagnosticsManagerTest.java | 40 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 161 runWithShellPermissionIdentity(() -> { in tearDown() method 214 runWithShellPermissionIdentity( in testRegisterCallbackWithCarrierPrivileges() 241 runWithShellPermissionIdentity( in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable() method 251 runWithShellPermissionIdentity( in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable() 373 runWithShellPermissionIdentity( in verifyOnDataStallSuspected()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 21 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 552 runWithShellPermissionIdentity(() -> sRoleManager.addOnRoleHoldersChangedListenerAsUser( in assertOnRoleHoldersChangedListenerIsNotified() 559 runWithShellPermissionIdentity(() -> in assertOnRoleHoldersChangedListenerIsNotified() 572 runWithShellPermissionIdentity(() -> { in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() method 685 runWithShellPermissionIdentity(() -> sRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 693 runWithShellPermissionIdentity(() -> sRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder() 700 runWithShellPermissionIdentity(() -> sRoleManager.clearRoleHoldersAsUser(roleName, 0, in clearRoleHolders()
|
/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/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()
|