Home
last modified time | relevance | path

Searched refs:ThrowingRunnable (Results 1 – 21 of 21) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java164 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity()
172 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity()
183 @NonNull UiAutomation automan, @NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity()
196 @NonNull ThrowingRunnable runnable, String... permissions) { in runWithShellPermissionIdentity()
DSafeCleanerRule.java43 private final List<ThrowingRunnable> mCleaners = new ArrayList<>();
51 public SafeCleanerRule run(@NonNull ThrowingRunnable cleaner) { in run()
99 for (ThrowingRunnable runner : mCleaners) { in apply()
DThrowingRunnable.java21 public interface ThrowingRunnable { interface
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DSystemUtil.java150 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity()
158 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity()
169 @NonNull UiAutomation automan, @NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity()
182 @NonNull ThrowingRunnable runnable, String... permissions) { in runWithShellPermissionIdentity()
DSafeCleanerRule.java43 private final List<ThrowingRunnable> mCleaners = new ArrayList<>();
51 public SafeCleanerRule run(@NonNull ThrowingRunnable cleaner) { in run()
99 for (ThrowingRunnable runner : mCleaners) { in apply()
DThrowingRunnable.java21 public interface ThrowingRunnable { interface
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DDirectActionsTest.java31 import com.android.compatibility.common.util.ThrowingRunnable;
192 boolean detectDirectActionsInvalidated(@NonNull ThrowingRunnable postActionCommand) in detectDirectActionsInvalidated()
201 @Nullable Bundle arguments, @Nullable ThrowingRunnable postActionCommand) in executeCommand()
272 private boolean detectInteractorDestroyed(ThrowingRunnable destroyTrigger) in detectInteractorDestroyed()
293 @Nullable ThrowingRunnable postActionCommand) throws Exception { in executeRemoteCommand()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsUtils.kt26 import com.android.compatibility.common.util.ThrowingRunnable
104 fun runWithShellPermissionIdentity(runnable: ThrowingRunnable) { in runWithShellPermissionIdentity()
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionGroupChange.java77 private void eventually(ThrowingRunnable runnable, long timeoutSec) throws Throwable { in eventually()
184 private interface ThrowingRunnable { interface in PermissionGroupChange
DLocationAccessCheckTest.java164 private interface ThrowingRunnable { interface in LocationAccessCheckTest
175 public static void eventually(@NonNull ThrowingRunnable r, long timeout) throws Throwable { in eventually()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java395 public interface ThrowingRunnable { interface in EncryptionAppTest
400 Class<? extends Violation> expected, ThrowingRunnable r) throws Exception { in assertViolation()
405 private static void assertNoViolation(StrictMode.VmPolicy policy, ThrowingRunnable r) in assertNoViolation()
411 private static void inspectViolation(StrictMode.VmPolicy policy, ThrowingRunnable violating, in inspectViolation()
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java312 public interface ThrowingRunnable extends Runnable { interface in PermissionUtils
331 public static void eventually(@NonNull ThrowingRunnable r) { in eventually()
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java107 public interface ThrowingRunnable { interface in StrictModeTest
642 private static void assertViolation(String expected, ThrowingRunnable r) throws Exception { in assertViolation()
646 private static void assertNoViolation(ThrowingRunnable r) throws Exception { in assertNoViolation()
652 ThrowingRunnable violating, Consumer<ViolationInfo> consume) throws Exception { in inspectViolation()
/cts/tests/tests/net/src/android/net/cts/
DCaptivePortalApiTest.kt44 import com.android.compatibility.common.util.ThrowingRunnable
268 runWithShellPermissionIdentity(ThrowingRunnable { ret = task() }, *permissions) in runAsShell()
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java61 @Mock private ThrowingRunnable mGoodGuyRunner1;
62 @Mock private ThrowingRunnable mGoodGuyRunner2;
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DSafeCleanerRuleTest.java61 @Mock private ThrowingRunnable mGoodGuyRunner1;
62 @Mock private ThrowingRunnable mGoodGuyRunner2;
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
DAppBindingHostTest.java55 private interface ThrowingRunnable { interface in AppBindingHostTest
178 private void runWithRetries(int timeoutSeconds, ThrowingRunnable r) throws Throwable { in runWithRetries()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java50 import com.android.compatibility.common.util.ThrowingRunnable;
603 protected void eventuallyWithSessionClose(@NonNull ThrowingRunnable runnable) throws Throwable { in eventuallyWithSessionClose()
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java57 import com.android.compatibility.common.util.ThrowingRunnable;
548 private void assertOnRoleHoldersChangedListenerIsNotified(@NonNull ThrowingRunnable runnable) in assertOnRoleHoldersChangedListenerIsNotified()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java65 import com.android.compatibility.common.util.ThrowingRunnable;
871 private static void doInExclusionLimitSession(ThrowingRunnable task) throws Throwable { in doInExclusionLimitSession()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java45 import android.permission.cts.PermissionUtils.ThrowingRunnable;
1153 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity()