/external/icu4c/i18n/ |
D | tmunit.cpp | 16 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeUnit) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 57 TimeUnit* U_EXPORT2 in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 58 TimeUnit::createInstance(TimeUnit::UTimeUnitFields timeUnitField, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 67 return new TimeUnit(timeUnitField); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 71 TimeUnit::TimeUnit(TimeUnit::UTimeUnitFields timeUnitField) { in TimeUnit() function in TimeUnit 76 TimeUnit::TimeUnit(const TimeUnit& other) in TimeUnit() function in TimeUnit 83 TimeUnit::clone() const { in clone() 84 return new TimeUnit(*this); in clone() 88 TimeUnit& 89 TimeUnit::operator=(const TimeUnit& other) { in operator =() [all …]
|
D | tmutfmt.cpp | 107 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in TimeUnitFormat() 108 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in TimeUnitFormat() 109 i = (TimeUnit::UTimeUnitFields)(i+1)) { in TimeUnitFormat() 119 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in ~TimeUnitFormat() 120 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in ~TimeUnitFormat() 121 i = (TimeUnit::UTimeUnitFields)(i+1)) { in ~TimeUnitFormat() 142 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in operator =() 143 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in operator =() 144 i = (TimeUnit::UTimeUnitFields)(i+1)) { in operator =() 155 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in operator =() [all …]
|
D | tmutamt.cpp | 18 TimeUnit::UTimeUnitFields timeUnitField, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 20 : Measure(number, TimeUnit::createInstance(timeUnitField, status), status) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 25 TimeUnit::UTimeUnitFields timeUnitField, in TimeUnitAmount() 28 TimeUnit::createInstance(timeUnitField, status), in TimeUnitAmount() 62 const TimeUnit& 64 return (const TimeUnit&) getUnit(); in getTimeUnit() 68 TimeUnit::UTimeUnitFields
|
/external/icu4c/test/intltest/ |
D | tufmtts.cpp | 55 for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR; in testBasic() 56 j < TimeUnit::UTIMEUNIT_FIELD_COUNT; in testBasic() 57 j = (TimeUnit::UTimeUnitFields)(j+1)) { in testBasic() 105 TimeUnit* tmunit = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status); in testAPI() 108 TimeUnit* another = (TimeUnit*)tmunit->clone(); in testAPI() 109 TimeUnit third(*tmunit); in testAPI() 110 TimeUnit fourth = third; in testAPI() 115 TimeUnit* tmunit_m = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_MONTH, status); in testAPI() 118 TimeUnit::UTimeUnitFields field = tmunit_m->getTimeUnitField(); in testAPI() 119 assertTrue("field of month time unit is month", (field == TimeUnit::UTIMEUNIT_MONTH)); in testAPI() [all …]
|
/external/icu4c/i18n/unicode/ |
D | tmunit.h | 30 class U_I18N_API TimeUnit: public MeasureUnit { 57 static TimeUnit* U_EXPORT2 createInstance(UTimeUnitFields timeUnitField, 71 TimeUnit(const TimeUnit& other); 77 TimeUnit& operator=(const TimeUnit& other); 123 virtual ~TimeUnit(); 132 TimeUnit(UTimeUnitFields timeUnitField); 138 TimeUnit::operator!=(const UObject& other) const {
|
D | tmutamt.h | 46 TimeUnit::UTimeUnitFields timeUnitField, 61 TimeUnitAmount(double amount, TimeUnit::UTimeUnitFields timeUnitField, 145 const TimeUnit& getTimeUnit() const; 152 TimeUnit::UTimeUnitFields getTimeUnitField() const;
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | SimpleTimeLimiterTest.java | 24 import java.util.concurrent.TimeUnit; 43 TimeUnit.MILLISECONDS.sleep(DELAY_MS); in someGoodStaticMethod() 49 TimeUnit.MILLISECONDS.sleep(DELAY_MS); in someBadStaticMethod() 66 }, ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testGoodCallableWithEnoughTime() 80 }, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testGoodCallableWithNotEnoughTime() 96 }, ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testBadCallableWithEnoughTime() 112 }, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testBadCallableWithNotEnoughTime() 122 target, Sample.class, ENOUGH_MS, TimeUnit.MILLISECONDS); in testGoodMethodWithEnoughTime() 132 target, Sample.class, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS); in testGoodMethodWithNotEnoughTime() 143 TimeUnit.MILLISECONDS.sleep(ENOUGH_MS); in testGoodMethodWithNotEnoughTime() [all …]
|
D | MoreExecutorsTest.java | 22 import static java.util.concurrent.TimeUnit.SECONDS; 37 import java.util.concurrent.TimeUnit; 143 barrier.await(1, TimeUnit.SECONDS); in testSameThreadExecutorServiceTermination() 146 barrier.await(1, TimeUnit.SECONDS); in testSameThreadExecutorServiceTermination() 151 barrier.await(1, TimeUnit.SECONDS); in testSameThreadExecutorServiceTermination() 166 barrier.await(1, TimeUnit.SECONDS); in testSameThreadExecutorServiceTermination() 181 barrier.await(1, TimeUnit.SECONDS); in testSameThreadExecutorServiceTermination() 182 assertFalse(executor.awaitTermination(20, TimeUnit.MILLISECONDS)); in testSameThreadExecutorServiceTermination() 185 barrier.await(1, TimeUnit.SECONDS); in testSameThreadExecutorServiceTermination() 186 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testSameThreadExecutorServiceTermination() [all …]
|
D | ListenableFutureTaskTest.java | 26 import java.util.concurrent.TimeUnit; 99 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerDoesNotRunUntilTaskCompletes() 113 task.get(5, TimeUnit.SECONDS); in testListenerCalledOnException() 119 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerCalledOnException() 131 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromNotRunning() 150 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromRunning()
|
D | InterruptionUtil.java | 19 import static java.util.concurrent.TimeUnit.MILLISECONDS; 20 import static java.util.concurrent.TimeUnit.NANOSECONDS; 26 import java.util.concurrent.TimeUnit; 75 static void requestInterruptIn(final long time, final TimeUnit unit) { in requestInterruptIn() 118 Thread thread, long timeout, TimeUnit unit) { in joinUninterruptibly()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | QueuesTest.java | 33 import java.util.concurrent.TimeUnit; 68 threadPool.awaitTermination(1, TimeUnit.SECONDS)); in tearDown() 72 long timeout, TimeUnit unit, boolean interruptibly) throws InterruptedException { in drain() 94 int elements = drain(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS, interruptibly); in testMultipleProducers() 109 assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, TimeUnit.MILLISECONDS)); in testDrainTimesOut() 117 int drained = drain(q, Lists.newArrayList(), 2, 10, TimeUnit.MILLISECONDS, interruptibly); in testDrainTimesOut() 120 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); in testDrainTimesOut() 139 assertEquals(0, drain(q, ImmutableList.of(), 0, 10, TimeUnit.MILLISECONDS, interruptibly)); in testZeroElements() 163 int elements = Queues.drain(q, buf, -1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testNegativeMaxElements() 169 Queues.drain(q, buf, 1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testNegativeMaxElements() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Stopwatch.java | 21 import static java.util.concurrent.TimeUnit.MICROSECONDS; 22 import static java.util.concurrent.TimeUnit.MILLISECONDS; 23 import static java.util.concurrent.TimeUnit.NANOSECONDS; 24 import static java.util.concurrent.TimeUnit.SECONDS; 30 import java.util.concurrent.TimeUnit; 156 public long elapsedTime(TimeUnit desiredUnit) { in elapsedTime() 188 TimeUnit unit = chooseUnit(nanos); in toString() 196 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() 209 private static String abbreviate(TimeUnit unit) { in abbreviate()
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
D | Stopwatch.java | 21 import static java.util.concurrent.TimeUnit.MICROSECONDS; 22 import static java.util.concurrent.TimeUnit.MILLISECONDS; 23 import static java.util.concurrent.TimeUnit.NANOSECONDS; 24 import static java.util.concurrent.TimeUnit.SECONDS; 29 import java.util.concurrent.TimeUnit; 155 public long elapsedTime(TimeUnit desiredUnit) { in elapsedTime() 168 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() 181 private static String abbreviate(TimeUnit unit) { in abbreviate()
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpResponseCacheTest.java | 61 import java.util.concurrent.TimeUnit; 188 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 189 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 289 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 290 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 324 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 325 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 378 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() 379 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in responseCachingAndRedirects() 382 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | MoreExecutors.java | 35 import java.util.concurrent.TimeUnit; 69 ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingExecutorService() 101 TimeUnit timeUnit) { in getExitingScheduledExecutorService() 129 final TimeUnit timeUnit) { in addDelayedShutdownHook() 166 return getExitingExecutorService(executor, 120, TimeUnit.SECONDS); in getExitingExecutorService() 187 return getExitingScheduledExecutorService(executor, 120, TimeUnit.SECONDS); in getExitingScheduledExecutorService() 297 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() 413 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() 455 Runnable command, long delay, TimeUnit unit) { in schedule() 461 Callable<V> callable, long delay, TimeUnit unit) { in schedule() [all …]
|
D | Uninterruptibles.java | 19 import static java.util.concurrent.TimeUnit.NANOSECONDS; 28 import java.util.concurrent.TimeUnit; 74 long timeout, TimeUnit unit) { in awaitUninterruptibly() 154 Future<V> future, long timeout, TimeUnit unit) in getUninterruptibly() 183 long timeout, TimeUnit unit) { in joinUninterruptibly() 253 public static void sleepUninterruptibly(long sleepFor, TimeUnit unit) { in sleepUninterruptibly()
|
D | TimeLimiter.java | 22 import java.util.concurrent.TimeUnit; 79 long timeoutDuration, TimeUnit timeoutUnit); in newProxy() 105 TimeUnit timeoutUnit, boolean interruptible) throws Exception; in callWithTimeout()
|
D | Monitor.java | 26 import java.util.concurrent.TimeUnit; 309 public boolean enter(long time, TimeUnit unit) { in enter() 321 return lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS); in enter() 339 public boolean enterInterruptibly(long time, TimeUnit unit) throws InterruptedException { in enterInterruptibly() 403 public boolean enterWhen(Guard guard, long time, TimeUnit unit) throws InterruptedException { in enterWhen() 436 public boolean enterWhenUninterruptibly(Guard guard, long time, TimeUnit unit) { in enterWhenUninterruptibly() 453 if (lock.tryLock(remainingNanos, TimeUnit.NANOSECONDS)) { in enterWhenUninterruptibly() 533 public boolean enterIf(Guard guard, long time, TimeUnit unit) { in enterIf() 558 public boolean enterIfInterruptibly(Guard guard, long time, TimeUnit unit) in enterIfInterruptibly() 639 public boolean waitFor(Guard guard, long time, TimeUnit unit) throws InterruptedException { in waitFor() [all …]
|
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/ |
D | AbstractListenableFutureTest.java | 30 import java.util.concurrent.TimeUnit; 96 assertTrue(successLatch.await(10, TimeUnit.SECONDS)); in testGetBlocksUntilValueAvailable() 115 future.get(20, TimeUnit.MILLISECONDS); in testTimeoutOnGetWorksCorrectly() 158 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testCanceledFutureThrowsCancellation() 194 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError() 195 assertTrue(listenerLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError() 200 exec.awaitTermination(100, TimeUnit.MILLISECONDS); in testListenersNotifiedOnError() 241 listenerLatch.await(500, TimeUnit.MILLISECONDS); in testAllListenersCompleteSuccessfully() 244 exec.awaitTermination(500, TimeUnit.MILLISECONDS); in testAllListenersCompleteSuccessfully()
|
D | MockFutureListener.java | 27 import java.util.concurrent.TimeUnit; 61 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertSuccess() 77 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertException() 90 Assert.assertFalse(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertTimeout()
|
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
D | TimeUnit.java | 13 public enum TimeUnit { enum 22 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert() 33 public long convert(long d, TimeUnit u) { return u.toMicros(d); } in convert() 44 public long convert(long d, TimeUnit u) { return u.toMillis(d); } in convert() 55 public long convert(long d, TimeUnit u) { return u.toSeconds(d); } in convert() 66 public long convert(long d, TimeUnit u) { return u.toMinutes(d); } in convert() 77 public long convert(long d, TimeUnit u) { return u.toHours(d); } in convert() 88 public long convert(long d, TimeUnit u) { return u.toDays(d); } in convert() 111 public long convert(long sourceDuration, TimeUnit sourceUnit) { in convert()
|
/external/smack/src/com/kenai/jbosh/ |
D | AttrMaxPause.java | 19 import java.util.concurrent.TimeUnit; 61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds() 62 intValue(), TimeUnit.SECONDS); in getInMilliseconds()
|
D | AttrPolling.java | 19 import java.util.concurrent.TimeUnit; 61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds() 62 intValue(), TimeUnit.SECONDS); in getInMilliseconds()
|
D | AttrPause.java | 19 import java.util.concurrent.TimeUnit; 61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds() 62 intValue(), TimeUnit.SECONDS); in getInMilliseconds()
|
/external/apache-http/src/org/apache/http/conn/ |
D | ClientConnectionManager.java | 35 import java.util.concurrent.TimeUnit; 90 void releaseConnection(ManagedClientConnection conn, long validDuration, TimeUnit timeUnit) in releaseConnection() 108 void closeIdleConnections(long idletime, TimeUnit tunit) in closeIdleConnections()
|