Searched refs:ThrowingSupplier (Results 1 – 14 of 14) sorted by relevance
/cts/tests/app/src/android/app/cts/ |
D | NearbyMediaDevicesProviderTest.kt | 10 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/ |
D | ThrowingSupplier.java | 25 public interface ThrowingSupplier<T> { interface
|
D | ExceptionUtils.java | 77 Function<Throwable, Throwable> exceptionTransformer, ThrowingSupplier<R> action) { in wrappingExceptions()
|
D | CarrierPrivilegeUtils.java | 349 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()
|
D | SystemUtil.java | 229 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/ |
D | MultiUserUtils.java | 39 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/ |
D | BasicPipTests.kt | 38 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/ |
D | NetworkTimeUpdateServiceSntpTest.java | 44 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/ |
D | MultiUserMockImeTest.java | 46 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/ |
D | BaseBroadcastTest.java | 44 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/ |
D | ModifierKeyRemappingTest.kt | 29 import com.android.compatibility.common.util.ThrowingSupplier 251 ThrowingSupplier<Map<Int, Int>> { inputManager.modifierKeyRemapping }, in getModifierKeyRemapping()
|
/cts/tests/tests/hibernation/src/android/hibernation/cts/ |
D | AppHibernationUtils.kt | 47 import com.android.compatibility.common.util.ThrowingSupplier in <lambda>() 207 val oldValue = runWithShellPermissionIdentity(ThrowingSupplier { in withDeviceConfig()
|
D | AutoRevokeTest.kt | 59 import com.android.compatibility.common.util.ThrowingSupplier in <lambda>() 541 ThrowingSupplier { in <lambda>()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerTest.java | 108 import com.android.compatibility.common.util.ThrowingSupplier; 2374 private <T> T uncheck(ThrowingSupplier<T> supplier) { in uncheck()
|