Home
last modified time | relevance | path

Searched refs:ThrowingSupplier (Results 1 – 17 of 17) sorted by relevance

/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DPermissionHelper.java38 import com.android.compatibility.common.util.ThrowingSupplier;
222 (ThrowingSupplier<Void>) in runWithRevokedPermissions()
233 String packageName, String permission, ThrowingSupplier<T> supplier) throws Exception { in runWithRevokedPermission()
239 ThrowingSupplier<T> supplier, String packageName, String... permissions) in runWithRevokedPermissions()
266 String packageName, String permission, ThrowingSupplier<T> supplier) throws Exception { in runWithUserFixedPermission()
286 String key, String value, ThrowingSupplier<T> supplier) throws Exception { in runWithDeviceConfigForController()
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DCleanup.kt22 import com.android.testutils.FunctionalUtils.ThrowingSupplier in <lambda>()
118 fun <T> testAndCleanup(tryBlock: ThrowingSupplier<T>, vararg cleanupBlock: ThrowingRunnable): T { in cleanup()
124 return testAndCleanup(ThrowingSupplier { tryBlock.run() }, *cleanupBlock) in testAndCleanup()
DFunctionalUtils.java40 public interface ThrowingSupplier<T> { interface in FunctionalUtils
59 public static <T> Supplier<T> ignoreExceptions(ThrowingSupplier<T> func) { in ignoreExceptions()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/testutils/
DHandlerUtilsTest.kt21 import com.android.testutils.FunctionalUtils.ThrowingSupplier in <lambda>()
75 y = visibleOnHandlerThread(handler, ThrowingSupplier<Int> { x = attempt; attempt }) in <lambda>()
86 assertNull(visibleOnHandlerThread(handler, ThrowingSupplier<Nothing?> { null })) in <lambda>()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DHandlerUtils.kt26 import com.android.testutils.FunctionalUtils.ThrowingSupplier
68 fun <T> visibleOnHandlerThread(handler: Handler, supplier: ThrowingSupplier<T>): T { in visibleOnHandlerThread()
89 visibleOnHandlerThread(handler, ThrowingSupplier<Unit> { r.run() }) in visibleOnHandlerThread()
DTestPermissionUtil.kt24 import com.android.testutils.FunctionalUtils.ThrowingSupplier
69 supplier: ThrowingSupplier<T> in runAsShell()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DBinderUtils.java76 @NonNull ThrowingSupplier<T, E> action) throws E { in withCleanCallingIdentity()
92 public interface ThrowingSupplier<T, E extends Exception> { interface in BinderUtils
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleControllerManagerTest.kt33 import com.android.compatibility.common.util.ThrowingSupplier
131 ThrowingSupplier { in isRoleVisible()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DFunctionUtilsTest.java31 import com.android.car.internal.util.FunctionalUtils.ThrowingSupplier;
103 ThrowingSupplier<Integer> ts = () -> { in testUncheckedExceptionsThrowingSupplier()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DFunctionalUtils.java69 public static <T> Supplier<T> uncheckExceptions(ThrowingSupplier<T> action) { in uncheckExceptions()
126 public interface ThrowingSupplier<T> extends Supplier<T> {
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DJsFetcherTest.java393 private <T> T waitForFuture(JsFetcherTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture()
402 interface ThrowingSupplier<T> { interface in JsFetcherTest
DReportImpressionScriptEngineTest.java1313 private <T> T waitForFuture(ThrowingSupplier<ListenableFuture<T>> function) throws Exception {
1322 interface ThrowingSupplier<T> {
DAdOutcomeSelectorImplTest.java469 AdsScoreGeneratorImplTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture()
DAdSelectionScriptEngineTest.java1875 private <T> T waitForFuture(ThrowingSupplier<ListenableFuture<T>> function) throws Exception {
1925 interface ThrowingSupplier<T> {
DAdsScoreGeneratorImplTest.java1995 AdsScoreGeneratorImplTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture()
2004 interface ThrowingSupplier<T> { interface
DAdBidGeneratorImplTest.java3247 AdsScoreGeneratorImplTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt104 import com.android.compatibility.common.util.ThrowingSupplier in <lambda>()
1170 val snapshots = runWithShellPermissionIdentity(ThrowingSupplier { in testSetSubscriberId()