/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | Retry.java | 49 public static <E> Retry<E> logic(Poll.ValueSupplier<E> supplier) { in logic() argument 50 return new Retry<>(supplier); in logic() 60 private Retry(Poll.ValueSupplier<E> supplier) { in Retry() argument 61 mPoll = Poll.forValue(supplier) in Retry()
|
D | Poll.java | 77 private Poll(String valueName, ValueSupplier<E> supplier) { in Poll() argument 79 mSupplier = supplier; in Poll() 89 public static <E> Poll<E> forValue(ValueSupplier<E> supplier) { in forValue() argument 90 return forValue("value", supplier); in forValue() 98 public static <E> Poll<E> forValue(String valueName, ValueSupplier<E> supplier) { in forValue() argument 99 return new Poll<>(valueName, supplier); in forValue()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PollingCheck.java | 84 public <E> E runWaitAndReturnResult(Supplier<E> supplier, Function<E, Boolean> condition) { in runWaitAndReturnResult() argument 85 E output = supplier.get(); in runWaitAndReturnResult() 97 output = supplier.get(); in runWaitAndReturnResult() 173 public static <E> E waitFor(long timeout, Supplier<E> supplier, in waitFor() argument 182 }.runWaitAndReturnResult(supplier, condition); in waitFor() argument
|
D | SystemUtil.java | 229 public static <T> T runWithShellPermissionIdentity(@NonNull ThrowingSupplier<T> supplier) { in runWithShellPermissionIdentity() argument 232 runWithShellPermissionIdentity(automan, () -> result.set(supplier.get())); in runWithShellPermissionIdentity() 240 public static <T> T runWithShellPermissionIdentity(@NonNull ThrowingSupplier<T> supplier, in runWithShellPermissionIdentity() argument 244 runWithShellPermissionIdentity(automan, () -> result.set(supplier.get()), permissions); in runWithShellPermissionIdentity()
|
D | ShellIdentityUtils.java | 362 public static <T> T invokeWithShellPermissions(Supplier<T> supplier) { in invokeWithShellPermissions() argument 367 return supplier.get(); in invokeWithShellPermissions()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/ |
D | AutoCloseableRule.java | 17 public AutoCloseableRule(Supplier<AutoCloseable> supplier) { in AutoCloseableRule() argument 18 mSupplier = supplier; in AutoCloseableRule()
|
/cts/tests/inputmethod/mocka11yime/client/src/com/android/cts/mocka11yime/ |
D | MockA11yImeEventStream.java | 44 MockA11yImeEventStream(@NonNull Supplier<EventArray> supplier) { in MockA11yImeEventStream() argument 45 this(supplier, 0 /* position */); in MockA11yImeEventStream() 48 private MockA11yImeEventStream(@NonNull Supplier<EventArray> supplier, int position) { in MockA11yImeEventStream() argument 49 mEventSupplier = supplier; in MockA11yImeEventStream()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEventStream.java | 50 ImeEventStream(@NonNull Supplier<ImeEventArray> supplier) { in ImeEventStream() argument 51 this(supplier, 0 /* position */); in ImeEventStream() 54 private ImeEventStream(@NonNull Supplier<ImeEventArray> supplier, int position) { in ImeEventStream() argument 55 mEventSupplier = supplier; in ImeEventStream()
|
D | MultiUserUtils.java | 59 @NonNull ThrowingSupplier<T> supplier, String... permissions) { in runWithShellPermissionIdentity() argument 62 placeholder[0] = supplier.get(); in runWithShellPermissionIdentity() 79 @NonNull ThrowingSupplier<T> supplier) { in runWithShellPermissionIdentity() argument 80 return runWithShellPermissionIdentity(uiAutomation, supplier, in runWithShellPermissionIdentity()
|
D | MockIme.java | 1463 @NonNull Supplier<T> supplier) { 1464 return recordEventInternal(eventName, supplier, new Bundle()); 1468 @NonNull Supplier<T> supplier, @NonNull Bundle arguments) { 1481 result = supplier.get(); 1503 void onVerify(String name, @NonNull BooleanSupplier supplier) { 1506 recordEventInternal("onVerify", supplier::getAsBoolean, arguments); 1524 boolean onEvaluateFullscreenMode(@NonNull BooleanSupplier supplier) { 1525 return recordEventInternal("onEvaluateFullscreenMode", supplier::getAsBoolean); 1528 boolean onEvaluateInputViewShown(@NonNull BooleanSupplier supplier) { 1529 return recordEventInternal("onEvaluateInputViewShown", supplier::getAsBoolean); [all …]
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | RollbackUtils.java | 202 Supplier<List<RollbackInfo>> supplier, String packageName) throws InterruptedException { in waitForRollbackGone() argument 203 retry(supplier, rollbacks -> !hasRollbackInclude(rollbacks, packageName), in waitForRollbackGone() 207 private static <T> T retry(Supplier<T> supplier, Predicate<T> predicate, String message) in retry() argument 210 T result = supplier.get(); in retry()
|
/cts/tests/inputmethod/mocka11yime/service/src/com/android/cts/mocka11yime/ |
D | MockA11yIme.java | 383 @NonNull Supplier<T> supplier) { in recordEventInternal() argument 384 return recordEventInternal(eventName, supplier, new Bundle()); in recordEventInternal() 388 @NonNull Supplier<T> supplier, @NonNull Bundle arguments) { in recordEventInternal() argument 406 result = supplier.get(); in recordEventInternal() 472 InputMethod onCreateInputMethod(@NonNull Supplier<InputMethod> supplier) { in onCreateInputMethod() argument 474 return recordEventInternal("onCreateInputMethod", supplier, arguments); in onCreateInputMethod()
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/ |
D | Utils.java | 96 public static void waitForIdleService(@NonNull SensorStatesSupplier supplier) throws Exception { in waitForIdleService() argument 98 if (!supplier.getSensorStates().areAllSensorsIdle()) { in waitForIdleService() 117 public static void waitForBusySensor(int sensorId, @NonNull SensorStatesSupplier supplier) in waitForBusySensor() argument 120 if (!supplier.getSensorStates().sensorStates.get(sensorId).isBusy()) { in waitForBusySensor()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | Condition.java | 95 public Condition<T> setResultSupplier(Supplier<T> supplier) { in setResultSupplier() argument 96 mResultSupplier = supplier; in setResultSupplier()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | Condition.java | 95 public Condition<T> setResultSupplier(Supplier<T> supplier) { in setResultSupplier() argument 96 mResultSupplier = supplier; in setResultSupplier()
|
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/ |
D | VirtualDeviceRule.java | 322 public <T> T runWithTemporaryPermission(Supplier<T> supplier, String... permissions) { in runWithTemporaryPermission() argument 327 return supplier.get(); in runWithTemporaryPermission() 339 public <T> T runWithoutPermissions(Supplier<T> supplier) { in runWithoutPermissions() argument 344 return supplier.get(); in runWithoutPermissions()
|
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
D | MultiUserMockImeTest.java | 141 @NonNull ThrowingSupplier<T> supplier, String... permissions) { in runWithShellPermissionIdentity() argument 144 placeholder[0] = supplier.get(), permissions); in runWithShellPermissionIdentity()
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | AtomicInstallTest.java | 102 private static <T> T retry(Supplier<T> supplier, Predicate<T> predicate, String message) in retry() argument 105 T result = supplier.get(); in retry()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | MediaCodecBlockModelHelper.java | 69 public static Result runThread(Supplier<Result> supplier) throws InterruptedException { in runThread() argument 73 result.set(supplier.get()); in runThread()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 120 public static <T> T getOnMainSync(@NonNull Supplier<T> supplier) { in getOnMainSync() argument 123 instrumentation.runOnMainSync(() -> result.set(supplier.get())); in getOnMainSync()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecodeOnlyTest.java | 449 private void sleepUntil(Supplier<Boolean> supplier, Duration maxWait) throws Exception { in sleepUntil() argument 453 } while (!supplier.get() && System.currentTimeMillis() < deadLineMs); in sleepUntil()
|
D | DecoderTest.java | 4377 private void sleepUntil(Supplier<Boolean> supplier, Duration maxWait) throws Exception { 4381 } while (!supplier.get() && System.currentTimeMillis() < deadLineMs);
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerTest.java | 2496 private boolean waitUntilTrue(long maxWait, Supplier<Boolean> supplier) throws Exception { 2501 } while (!(result = supplier.get()) && SystemClock.uptimeMillis() < deadLine);
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerTest.java | 2374 private <T> T uncheck(ThrowingSupplier<T> supplier) { in uncheck() argument 2376 return supplier.get(); in uncheck()
|