Home
last modified time | relevance | path

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

12

/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallPreVerifiedDomainsTest.kt31 import org.junit.function.ThrowingRunnable
58 ThrowingRunnable { in testSetPreVerifiedDomainsWithoutPermission()
72 ThrowingRunnable { in testSetPreVerifiedDomainsAfterSessionCommit()
88 ThrowingRunnable { in testSetPreVerifiedDomainsNotInstantAppInstaller()
97 ThrowingRunnable { in testSetPreVerifiedDomainsNotInstantAppInstaller()
/cts/tests/tests/car/lib/CarIntegrationTestUtilsLib/src/android/car/cts/utils/
DShellPermissionUtils.java30 import com.android.compatibility.common.util.ThrowingRunnable;
51 public static void runWithShellPermissionIdentity(ThrowingRunnable throwingRunnable) { in runWithShellPermissionIdentity()
97 public static void runWithShellPermissionIdentity(ThrowingRunnable throwingRunnable, in runWithShellPermissionIdentity()
109 public static void runWithShellPermissionIdentity(ThrowingRunnable throwingRunnable, in runWithShellPermissionIdentity()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DSystemUtil.java35 @NonNull ThrowingRunnable runnable, String... permissions) { in runWithShellPermissionIdentity()
51 @NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity()
DThrowingRunnable.java20 public interface ThrowingRunnable { interface
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDeviceStateUtils.java30 import com.android.compatibility.common.util.ThrowingRunnable;
40 public static void runWithControlDeviceStatePermission(@NonNull ThrowingRunnable runnable) in runWithControlDeviceStatePermission()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/wifi/
DCarWifiManagerPermissionTest.java33 import org.junit.function.ThrowingRunnable;
57 private void expectPermissionException(String permission, ThrowingRunnable runnable) { in expectPermissionException()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DWindowManagerReflectionTests.java25 import org.junit.function.ThrowingRunnable;
69 private void runAndUnwrapTargetException(ThrowingRunnable r) throws Throwable { in runAndUnwrapTargetException()
/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()
DCarrierPrivilegeUtils.java302 public static void withCarrierPrivileges(Context c, int subId, ThrowingRunnable action) in withCarrierPrivileges()
328 public static void withCarrierPrivilegesForShell(Context c, int subId, ThrowingRunnable action) in withCarrierPrivilegesForShell()
375 public static void asCarrierService(Context c, int subId, ThrowingRunnable action) in asCarrierService()
404 public static void asCarrierServiceForShell(Context c, int subId, ThrowingRunnable action) in asCarrierServiceForShell()
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/tests/tests/attributionsource/src/android/attributionsource/cts/
DRenouncedPermissionsTest.kt40 import org.junit.function.ThrowingRunnable
65 ThrowingRunnable { in testRenouncePermissionsChain()
72 ThrowingRunnable { in testRenouncePermissionsChain()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/watchdog/
DCarWatchdogManagerPermissionTest.java38 import org.junit.function.ThrowingRunnable;
200 private void expectPermissionException(String permission, ThrowingRunnable runnable) { in expectPermissionException()
205 private void expectPermissionException(List<String> permissions, ThrowingRunnable runnable) { in expectPermissionException()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DVoiceInteractionSessionControl.java30 import com.android.compatibility.common.util.ThrowingRunnable;
77 @Nullable Bundle arguments, @Nullable ThrowingRunnable postActionCommand) in executeCommand()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DBaseHostTestCase.java61 protected static void eventually(ThrowingRunnable r, long timeoutMillis) { in eventually()
125 protected interface ThrowingRunnable { interface in BaseHostTestCase
/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/voiceinteraction/src/android/voiceinteraction/cts/
DDirectActionsTest.java38 import com.android.compatibility.common.util.ThrowingRunnable;
215 boolean detectDirectActionsInvalidated(@NonNull ThrowingRunnable postActionCommand) in detectDirectActionsInvalidated()
265 private boolean detectInteractorDestroyed(ThrowingRunnable destroyTrigger) in detectInteractorDestroyed()
299 @Nullable ThrowingRunnable postActionCommand) throws Exception { in executeRemoteCommand()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DBaseHostTestCase.java101 protected static void eventually(ThrowingRunnable r, long timeoutMillis) { in eventually()
156 protected interface ThrowingRunnable { interface in BaseHostTestCase
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DChannelSoundingParamsTest.java54 import org.junit.function.ThrowingRunnable;
160 private void enforceConnectAndPrivileged(ThrowingRunnable runnable) { in enforceConnectAndPrivileged()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java484 public interface ThrowingRunnable { interface in EncryptionAppTest
489 Class<? extends Violation> expected, ThrowingRunnable r) throws Exception { in assertViolation()
494 private static void assertNoViolation(StrictMode.VmPolicy policy, ThrowingRunnable r) in assertNoViolation()
500 private static void inspectViolation(StrictMode.VmPolicy policy, ThrowingRunnable violating, in inspectViolation()
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/
DWallpaperManagerTestUtils.java32 import com.android.compatibility.common.util.ThrowingRunnable;
72 ThrowingRunnable runnable) { in runAndAwaitChanges()
105 ThrowingRunnable runnable) { in runAndAwaitColorChanges()

12