/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 | AlarmOperation.java | 67 TimeUnit timeUnit) { in AlarmOperation() argument 72 mTimeUnit = timeUnit; in AlarmOperation()
|
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 | TestSensorOperation.java | 360 final TimeUnit timeUnit) { in createOperation() argument 367 listener.waitForEvents(duration, timeUnit); in createOperation() 411 final TimeUnit timeUnit) { in createFlushOperation() argument 413 return createFlushOperation(environment, new int[] {(int)timeUnit.toMillis(duration)}, -1); in createFlushOperation()
|
/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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/ |
D | PacFileServer.java | 147 public boolean awaitPacSent(long timeout, TimeUnit timeUnit) throws InterruptedException { in awaitPacSent() argument 148 return mPacSentLatch.await(timeout, timeUnit); in awaitPacSent()
|
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/ |
D | TestQuickAccessWalletService.java | 148 public static void awaitRequests(long timeout, TimeUnit timeUnit) throws InterruptedException { in awaitRequests() argument 149 sRequestCountDownLatch.await(timeout, timeUnit); in awaitRequests()
|
/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 | 180 public static void sleep(long duration, TimeUnit timeUnit) throws InterruptedException { in sleep() argument 181 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()
|