/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | PermissionHelper.java | 38 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/ |
D | Cleanup.kt | 22 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()
|
D | FunctionalUtils.java | 40 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/ |
D | HandlerUtilsTest.kt | 21 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/ |
D | HandlerUtils.kt | 26 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()
|
D | TestPermissionUtil.kt | 24 import com.android.testutils.FunctionalUtils.ThrowingSupplier 69 supplier: ThrowingSupplier<T> in runAsShell()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | BinderUtils.java | 76 @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/ |
D | RoleControllerManagerTest.kt | 33 import com.android.compatibility.common.util.ThrowingSupplier 131 ThrowingSupplier { in isRoleVisible()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/ |
D | FunctionUtilsTest.java | 31 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/ |
D | FunctionalUtils.java | 69 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/ |
D | JsFetcherTest.java | 393 private <T> T waitForFuture(JsFetcherTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture() 402 interface ThrowingSupplier<T> { interface in JsFetcherTest
|
D | ReportImpressionScriptEngineTest.java | 1313 private <T> T waitForFuture(ThrowingSupplier<ListenableFuture<T>> function) throws Exception { 1322 interface ThrowingSupplier<T> {
|
D | AdOutcomeSelectorImplTest.java | 469 AdsScoreGeneratorImplTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture()
|
D | AdSelectionScriptEngineTest.java | 1875 private <T> T waitForFuture(ThrowingSupplier<ListenableFuture<T>> function) throws Exception { 1925 interface ThrowingSupplier<T> {
|
D | AdsScoreGeneratorImplTest.java | 1995 AdsScoreGeneratorImplTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture() 2004 interface ThrowingSupplier<T> { interface
|
D | AdBidGeneratorImplTest.java | 3247 AdsScoreGeneratorImplTest.ThrowingSupplier<ListenableFuture<T>> function) in waitForFuture()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 104 import com.android.compatibility.common.util.ThrowingSupplier in <lambda>() 1170 val snapshots = runWithShellPermissionIdentity(ThrowingSupplier { in testSetSubscriberId()
|