Home
last modified time | relevance | path

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

12

/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateUtils.java27 import com.android.compatibility.common.util.ThrowingRunnable;
37 public static void runWithControlDeviceStatePermission(@NonNull ThrowingRunnable runnable) in runWithControlDeviceStatePermission()
DDeviceStateManagerTestBase.java38 import com.android.compatibility.common.util.ThrowingRunnable;
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java251 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity()
259 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity()
270 @NonNull UiAutomation automan, @NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity()
283 @NonNull ThrowingRunnable runnable, String... permissions) { in runWithShellPermissionIdentity()
331 public static void eventually(@NonNull ThrowingRunnable r) { in eventually()
342 public static void eventually(@NonNull ThrowingRunnable r, long timeoutMillis) { in eventually()
DThrowingRunnable.java21 public interface ThrowingRunnable { interface
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()
DExceptionUtils.java96 Function<Throwable, Throwable> exceptionTransformer, ThrowingRunnable action) { in wrappingExceptions()
DMatcherUtils.java117 Matcher<? super Throwable> exceptionCond, ThrowingRunnable action) {
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DThrowingRunnable.java21 public interface ThrowingRunnable { interface
DMatcherUtils.java99 Matcher<? super Throwable> exceptionCond, ThrowingRunnable action) {
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DBaseHostTestCase.java55 protected static void eventually(ThrowingRunnable r, long timeoutMillis) { in eventually()
102 protected interface ThrowingRunnable { interface in BaseHostTestCase
/cts/tests/tests/permission5/src/android/permission5/cts/
DRenouncedPermissionsTest.kt37 import org.junit.function.ThrowingRunnable
58 assertThrows(SecurityException::class.java, ThrowingRunnable{ in testRenouncePermissionsChain()
62 assertThrows(SecurityException::class.java, ThrowingRunnable{ in testRenouncePermissionsChain()
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/
DCarrierPrivilegeUtils.java20 import static com.android.internal.util.FunctionalUtils.ThrowingRunnable;
173 public static void withCarrierPrivileges(Context c, int subId, ThrowingRunnable action) in withCarrierPrivileges()
184 public static void withCarrierPrivilegesForShell(Context c, int subId, ThrowingRunnable action) in withCarrierPrivilegesForShell()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DVoiceInteractionSessionControl.java30 import com.android.compatibility.common.util.ThrowingRunnable;
76 @Nullable Bundle arguments, @Nullable ThrowingRunnable postActionCommand) in executeCommand()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DDirectActionsTest.java37 import com.android.compatibility.common.util.ThrowingRunnable;
178 boolean detectDirectActionsInvalidated(@NonNull ThrowingRunnable postActionCommand) in detectDirectActionsInvalidated()
227 private boolean detectInteractorDestroyed(ThrowingRunnable destroyTrigger) in detectInteractorDestroyed()
248 @Nullable ThrowingRunnable postActionCommand) throws Exception { in executeRemoteCommand()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DUserActionCallback.java150 public void runAndUnregisterSelf(ThrowingRunnable runnable) throws Exception { in runAndUnregisterSelf()
169 interface ThrowingRunnable { interface in UserActionCallback
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionGroupChange.java79 private void eventually(ThrowingRunnable runnable, long timeoutSec) throws Throwable { in eventually()
200 private interface ThrowingRunnable { interface in PermissionGroupChange
DLocationAccessCheckTest.java200 private interface ThrowingRunnable { interface in LocationAccessCheckTest
211 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.java465 public interface ThrowingRunnable { interface in EncryptionAppTest
470 Class<? extends Violation> expected, ThrowingRunnable r) throws Exception { in assertViolation()
475 private static void assertNoViolation(StrictMode.VmPolicy policy, ThrowingRunnable r) in assertNoViolation()
481 private static void inspectViolation(StrictMode.VmPolicy policy, ThrowingRunnable violating, in inspectViolation()
/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.java69 private interface ThrowingRunnable { interface in AppBindingHostTest
192 private void runWithRetries(int timeoutSeconds, ThrowingRunnable r) throws Throwable { in runWithRetries()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java48 import com.android.compatibility.common.util.ThrowingRunnable;
246 private void runInNotificationSession(ThrowingRunnable task) throws Exception { in runInNotificationSession()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedStoragePermissionTest.java42 import com.android.compatibility.common.util.ThrowingRunnable;
665 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity()
DRestrictedPermissionsTest.java55 import com.android.compatibility.common.util.ThrowingRunnable;
697 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiBackupRestoreTest.java51 import com.android.compatibility.common.util.ThrowingRunnable;
449 List<WifiConfiguration> expectedConfigurations, ThrowingRunnable restoreMethod)
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java140 public interface ThrowingRunnable { interface in StrictModeTest
1351 private static void assertViolation(String expected, ThrowingRunnable r) throws Exception { in assertViolation()
1355 private static void assertNoViolation(ThrowingRunnable r) throws Exception { in assertNoViolation()
1361 ThrowingRunnable violating, Consumer<ViolationInfo> consume) throws Exception { in inspectViolation()

12