Searched refs:timeUnit (Results 1 – 9 of 9) sorted by relevance
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AsyncUtils.java | 39 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/ |
D | FakeSensorOperation.java | 40 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()
|
D | DelaySensorOperation.java | 40 public DelaySensorOperation(SensorOperation operation, long delay, TimeUnit timeUnit) { in DelaySensorOperation() argument 44 mTimeUnit = timeUnit; in DelaySensorOperation()
|
D | ParallelSensorOperation.java | 59 public ParallelSensorOperation(long timeout, TimeUnit timeUnit) { in ParallelSensorOperation() argument 60 if (timeUnit == null) { in ParallelSensorOperation() 64 mTimeUnit = timeUnit; in ParallelSensorOperation()
|
D | AlarmOperation.java | 67 TimeUnit timeUnit) { in AlarmOperation() argument 72 mTimeUnit = timeUnit; in AlarmOperation()
|
D | TestSensorOperation.java | 352 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/ |
D | TestSensorEventListener.java | 340 public void waitForEvents(long duration, TimeUnit timeUnit) throws InterruptedException { in waitForEvents() argument 341 SensorCtsHelper.sleep(duration, timeUnit); in waitForEvents()
|
D | SensorCtsHelper.java | 174 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/ |
D | NetworkSecurityPolicyTestBase.java | 331 public T get(long timeout, TimeUnit timeUnit) in get() argument 337 long timeoutMillis = timeUnit.toMillis(timeout); in get()
|