Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DNearbyMediaDevicesProviderTest.kt10 import com.android.compatibility.common.util.ThrowingSupplier
41 ThrowingSupplier { in unregisterNearbyMediaDevicesProvider_noPermission_throwsSecurityException()
55 ThrowingSupplier { in registerNearbyMediaDevicesProvider_hasPermission_noCrash()
66 ThrowingSupplier { in unregisterNearbyMediaDevicesProvider_hasPermission_noCrash()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DThrowingSupplier.java25 public interface ThrowingSupplier<T> { interface
DExceptionUtils.java77 Function<Throwable, Throwable> exceptionTransformer, ThrowingSupplier<R> action) { in wrappingExceptions()
DCarrierPrivilegeUtils.java349 public static <R> R withCarrierPrivileges(Context c, int subId, ThrowingSupplier<R> action) in withCarrierPrivileges()
430 public static <R> R asCarrierService(Context c, int subId, ThrowingSupplier<R> action) in asCarrierService()
DSystemUtil.java229 public static <T> T runWithShellPermissionIdentity(@NonNull ThrowingSupplier<T> supplier) { in runWithShellPermissionIdentity()
240 public static <T> T runWithShellPermissionIdentity(@NonNull ThrowingSupplier<T> supplier, in runWithShellPermissionIdentity()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMultiUserUtils.java39 import com.android.compatibility.common.util.ThrowingSupplier;
59 @NonNull ThrowingSupplier<T> supplier, String... permissions) { in runWithShellPermissionIdentity()
79 @NonNull ThrowingSupplier<T> supplier) { in runWithShellPermissionIdentity()
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DBasicPipTests.kt38 import com.android.compatibility.common.util.ThrowingSupplier in <lambda>()
129 return SystemUtil.runWithShellPermissionIdentity(ThrowingSupplier { in <lambda>()
/cts/tests/tests/time/src/android/app/time/cts/
DNetworkTimeUpdateServiceSntpTest.java44 import com.android.compatibility.common.util.ThrowingSupplier;
217 private static <T> T runWithShellPermissionIdentity(ThrowingSupplier<T> command) in runWithShellPermissionIdentity()
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserMockImeTest.java46 import com.android.compatibility.common.util.ThrowingSupplier;
141 @NonNull ThrowingSupplier<T> supplier, String... permissions) { in runWithShellPermissionIdentity()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBaseBroadcastTest.java44 import com.android.compatibility.common.util.ThrowingSupplier;
172 ThrowingSupplier<List<BroadcastReceipt>> actualBroadcastsSupplier, in verifyReceivedBroadcasts()
184 ThrowingSupplier<List<BroadcastReceipt>> actualBroadcastsSupplier, in verifyReceivedBroadcasts()
/cts/tests/input/src/android/input/cts/
DModifierKeyRemappingTest.kt29 import com.android.compatibility.common.util.ThrowingSupplier
251 ThrowingSupplier<Map<Int, Int>> { inputManager.modifierKeyRemapping }, in getModifierKeyRemapping()
/cts/tests/tests/hibernation/src/android/hibernation/cts/
DAppHibernationUtils.kt47 import com.android.compatibility.common.util.ThrowingSupplier in <lambda>()
207 val oldValue = runWithShellPermissionIdentity(ThrowingSupplier { in withDeviceConfig()
DAutoRevokeTest.kt59 import com.android.compatibility.common.util.ThrowingSupplier in <lambda>()
541 ThrowingSupplier { in <lambda>()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java108 import com.android.compatibility.common.util.ThrowingSupplier;
2374 private <T> T uncheck(ThrowingSupplier<T> supplier) { in uncheck()