Home
last modified time | relevance | path

Searched refs:timeUnit (Results 1 – 9 of 9) sorted by relevance

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAsyncUtils.java39 public static <T> T await(Future<T> f, long time, TimeUnit timeUnit) { in await() argument
41 return f.get(time, timeUnit); in await()
51 public static Throwable awaitFailure(Future<?> f, long time, TimeUnit timeUnit) { in awaitFailure() argument
52 return assertThrows(() -> await(f, time, timeUnit)); in awaitFailure()
60 Future<T> f, long time, TimeUnit timeUnit) { in awaitCancellation() argument
61 Throwable ex = awaitFailure(f, time, timeUnit); in awaitCancellation()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensoroperations/
DFakeSensorOperation.java40 public FakeSensorOperation(long delay, TimeUnit timeUnit) { in FakeSensorOperation() argument
41 this(false, delay, timeUnit); in FakeSensorOperation()
47 public FakeSensorOperation(boolean fail, long delay, TimeUnit timeUnit) { in FakeSensorOperation() argument
48 if (timeUnit == null) { in FakeSensorOperation()
53 mTimeUnit = timeUnit; in FakeSensorOperation()
DDelaySensorOperation.java40 public DelaySensorOperation(SensorOperation operation, long delay, TimeUnit timeUnit) { in DelaySensorOperation() argument
44 mTimeUnit = timeUnit; in DelaySensorOperation()
DParallelSensorOperation.java59 public ParallelSensorOperation(long timeout, TimeUnit timeUnit) { in ParallelSensorOperation() argument
60 if (timeUnit == null) { in ParallelSensorOperation()
64 mTimeUnit = timeUnit; in ParallelSensorOperation()
DAlarmOperation.java67 TimeUnit timeUnit) { in AlarmOperation() argument
72 mTimeUnit = timeUnit; in AlarmOperation()
DTestSensorOperation.java352 final TimeUnit timeUnit) { in createOperation() argument
359 listener.waitForEvents(duration, timeUnit); in createOperation()
379 final TimeUnit timeUnit) { in createFlushOperation() argument
381 return createFlushOperation(environment, new int[] {(int)timeUnit.toMillis(duration)}, -1); in createFlushOperation()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DTestSensorEventListener.java340 public void waitForEvents(long duration, TimeUnit timeUnit) throws InterruptedException { in waitForEvents() argument
341 SensorCtsHelper.sleep(duration, timeUnit); in waitForEvents()
DSensorCtsHelper.java174 public static void sleep(long duration, TimeUnit timeUnit) throws InterruptedException { in sleep() argument
175 long durationNs = TimeUnit.NANOSECONDS.convert(duration, timeUnit); in sleep()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java331 public T get(long timeout, TimeUnit timeUnit) in get() argument
337 long timeoutMillis = timeUnit.toMillis(timeout); in get()