/libcore/jsr166-tests/src/test/java/jsr166/ |
TimeUnitTest.java | 13 import java.util.concurrent.TimeUnit; 25 TimeUnit.SECONDS.convert(t, 26 TimeUnit.DAYS)); 28 TimeUnit.SECONDS.convert(t, 29 TimeUnit.HOURS)); 31 TimeUnit.SECONDS.convert(t, 32 TimeUnit.MINUTES)); 34 TimeUnit.SECONDS.convert(t, 35 TimeUnit.SECONDS)); 37 TimeUnit.SECONDS.convert(1000L*t [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
tmunit.cpp | 16 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeUnit) 21 * So, TimeUnit could be made as singleton 23 * in which a static TimeUnit* array is created, and 24 * the creatInstance() returns a const TimeUnit*). 25 * But the constraint is TimeUnit is a data member of Measure. 37 * Since TimeUnit is such a light weight object, comparing with the heavy weight 40 * So, both TimeUnit and CurrencyUnit (the 2 subclasses of MeasureUnit) are 47 * there might be performance hit because 10,000 TimeUnit object, 57 TimeUnit* U_EXPORT2 58 TimeUnit::createInstance(TimeUnit::UTimeUnitFields timeUnitField, [all...] |
tmutamt.cpp | 18 TimeUnit::UTimeUnitFields timeUnitField, 20 : Measure(number, TimeUnit::createInstance(timeUnitField, status), status) { 25 TimeUnit::UTimeUnitFields timeUnitField, 28 TimeUnit::createInstance(timeUnitField, status), 62 const TimeUnit& 64 return (const TimeUnit&) getUnit(); 68 TimeUnit::UTimeUnitFields
|
tmutfmt.cpp | 106 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; 107 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; 108 i = (TimeUnit::UTimeUnitFields)(i+1)) { 118 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; 119 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; 120 i = (TimeUnit::UTimeUnitFields)(i+1)) { 141 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR [all...] |
/external/icu/icu4c/source/i18n/ |
tmunit.cpp | 15 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeUnit) 20 * So, TimeUnit could be made as singleton 22 * in which a static TimeUnit* array is created, and 23 * the creatInstance() returns a const TimeUnit*). 24 * But the constraint is TimeUnit is a data member of Measure. 36 * Since TimeUnit is such a light weight object, comparing with the heavy weight 39 * So, both TimeUnit and CurrencyUnit (the 2 subclasses of MeasureUnit) are 46 * there might be performance hit because 10,000 TimeUnit object, 56 TimeUnit* U_EXPORT2 57 TimeUnit::createInstance(TimeUnit::UTimeUnitFields timeUnitField, [all...] |
tmutamt.cpp | 18 TimeUnit::UTimeUnitFields timeUnitField, 20 : Measure(number, TimeUnit::createInstance(timeUnitField, status), status) { 25 TimeUnit::UTimeUnitFields timeUnitField, 28 TimeUnit::createInstance(timeUnitField, status), 62 const TimeUnit& 64 return (const TimeUnit&) getUnit(); 68 TimeUnit::UTimeUnitFields
|
tmutfmt.cpp | 110 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; 111 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; 112 i = (TimeUnit::UTimeUnitFields)(i+1)) { 126 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; 127 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; 128 i = (TimeUnit::UTimeUnitFields)(i+1)) { 147 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
Duration.java | 30 public TimeUnit timeUnit; 32 public enum TimeUnit { 39 TimeUnit(int value) { 51 public Duration(int timeInterval, TimeUnit timeUnit) { 53 this.timeUnit = timeUnit; 58 timeUnit = TimeUnit.values()[in.readInt()] [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
FakeSensorOperation.java | 24 import java.util.concurrent.TimeUnit; 35 private final TimeUnit mTimeUnit; 40 public FakeSensorOperation(long delay, TimeUnit timeUnit) { 41 this(false, delay, timeUnit); 47 public FakeSensorOperation(boolean fail, long delay, TimeUnit timeUnit) { 48 if (timeUnit == null) { 53 mTimeUnit = timeUnit; 61 long delayNs = TimeUnit.NANOSECONDS.convert(mDelay, mTimeUnit) [all...] |
DelaySensorOperation.java | 22 import java.util.concurrent.TimeUnit; 31 private final TimeUnit mTimeUnit; 38 * @param timeUnit the unit of the delay 40 public DelaySensorOperation(SensorOperation operation, long delay, TimeUnit timeUnit) { 44 mTimeUnit = timeUnit;
|
/external/icu/icu4c/source/i18n/unicode/ |
tmunit.h | 27 * @see TimeUnit 30 class U_I18N_API TimeUnit: public MeasureUnit { 54 * @return a TimeUnit instance 57 static TimeUnit* U_EXPORT2 createInstance(UTimeUnitFields timeUnitField, 71 TimeUnit(const TimeUnit& other); 77 TimeUnit& operator=(const TimeUnit& other); 109 virtual ~TimeUnit(); 118 TimeUnit(UTimeUnitFields timeUnitField) [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
tmunit.h | 27 * @see TimeUnit 30 class U_I18N_API TimeUnit: public MeasureUnit { 54 * @return a TimeUnit instance 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) [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorCtsHelperTest.java | 25 import java.util.concurrent.TimeUnit; 107 * Test {@link SensorCtsHelper#getFrequency(Number, TimeUnit)}. 110 assertEquals(1.0, SensorCtsHelper.getFrequency(1, TimeUnit.SECONDS), 0.001); 111 assertEquals(10.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.SECONDS), 0.001); 112 assertEquals(10.0, SensorCtsHelper.getFrequency(100, TimeUnit.MILLISECONDS), 0.001); 113 assertEquals(1000.0, SensorCtsHelper.getFrequency(1, TimeUnit.MILLISECONDS), 0.001); 114 assertEquals(10000.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.MILLISECONDS), 0.001); 115 assertEquals(10000.0, SensorCtsHelper.getFrequency(100, TimeUnit.MICROSECONDS), 0.001); 116 assertEquals(1000000.0, SensorCtsHelper.getFrequency(1, TimeUnit.MICROSECONDS), 0.001); 117 assertEquals(10000000.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.MICROSECONDS), 0.001) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/ |
RobolectricBackgroundExecutorService.java | 12 import java.util.concurrent.TimeUnit; 37 public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { 73 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException { 83 public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException {
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
FakeTicker.java | 23 import java.util.concurrent.TimeUnit; 40 /** Advances the ticker value by {@code time} in {@code timeUnit}. */ 41 public FakeTicker advance(long time, TimeUnit timeUnit) { 42 return advance(timeUnit.toNanos(time));
|
/external/icu/icu4c/source/test/intltest/ |
tufmtts.cpp | 76 for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR; 77 j < TimeUnit::UTIMEUNIT_FIELD_COUNT; 78 j = (TimeUnit::UTimeUnitFields)(j+1)) { 123 //================= TimeUnit ================= 126 TimeUnit* tmunit = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status); 127 if (!assertSuccess("TimeUnit::createInstance", status)) return; 129 TimeUnit* another = (TimeUnit*)tmunit->clone() [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
SimpleTimeLimiterTest.java | 24 import java.util.concurrent.TimeUnit; 43 TimeUnit.MILLISECONDS.sleep(DELAY_MS); 49 TimeUnit.MILLISECONDS.sleep(DELAY_MS); 66 }, ENOUGH_MS, TimeUnit.MILLISECONDS, true); 80 }, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS, true); 96 }, ENOUGH_MS, TimeUnit.MILLISECONDS, true); 112 }, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS, true); 122 target, Sample.class, ENOUGH_MS, TimeUnit.MILLISECONDS); 132 target, Sample.class, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS); 143 TimeUnit.MILLISECONDS.sleep(ENOUGH_MS) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
QueuesTest.java | 33 import java.util.concurrent.TimeUnit; 68 threadPool.awaitTermination(1, TimeUnit.SECONDS)); 72 long timeout, TimeUnit unit, boolean interruptibly) throws InterruptedException { 94 int elements = drain(q, buf, 100, Long.MAX_VALUE, TimeUnit.NANOSECONDS, interruptibly); 109 assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, TimeUnit.MILLISECONDS)); 117 int drained = drain(q, Lists.newArrayList(), 2, 10, TimeUnit.MILLISECONDS, interruptibly); 120 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); 139 assertEquals(0, drain(q, ImmutableList.of(), 0, 10, TimeUnit.MILLISECONDS, interruptibly)); 163 int elements = Queues.drain(q, buf, -1, Long.MAX_VALUE, TimeUnit.NANOSECONDS); 169 Queues.drain(q, buf, 1, Long.MAX_VALUE, TimeUnit.NANOSECONDS) [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
tufmtts.cpp | 55 for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR; 56 j < TimeUnit::UTIMEUNIT_FIELD_COUNT; 57 j = (TimeUnit::UTimeUnitFields)(j+1)) { 102 //================= TimeUnit ================= 105 TimeUnit* tmunit = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status); 106 if (!assertSuccess("TimeUnit::createInstance", status)) return; 108 TimeUnit* another = (TimeUnit*)tmunit->clone() [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
FakeTimeLimiter.java | 22 import java.util.concurrent.TimeUnit; 38 TimeUnit timeoutUnit) { 44 TimeUnit timeoutUnit, boolean amInterruptible) throws Exception {
|
Uninterruptibles.java | 19 import static java.util.concurrent.TimeUnit.NANOSECONDS; 28 import java.util.concurrent.TimeUnit; 70 * {@code latch.}{@link CountDownLatch#await(long, TimeUnit) 74 long timeout, TimeUnit unit) { 146 * {@code future.}{@link Future#get(long, TimeUnit) get(timeout, unit)} 154 Future<V> future, long timeout, TimeUnit unit) 179 * {@code unit.}{@link TimeUnit#timedJoin(Thread, long) 183 long timeout, TimeUnit unit) { 191 // TimeUnit.timedJoin() treats negative timeouts just like zero. 250 * Invokes {@code unit.}{@link TimeUnit#sleep(long) sleep(sleepFor) [all...] |
/external/guava/guava-bootstrap/src/java/util/concurrent/ |
ExecutorService.java | 25 boolean awaitTermination(long timeout, TimeUnit unit) 38 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) 45 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
|
/external/okhttp/okio/src/main/java/okio/ |
Deadline.java | 20 import java.util.concurrent.TimeUnit; 28 @Override public Deadline start(long timeout, TimeUnit unit) { 42 public Deadline start(long timeout, TimeUnit unit) {
|
/external/smack/src/com/kenai/jbosh/ |
AttrMaxPause.java | 19 import java.util.concurrent.TimeUnit; 61 return (int) TimeUnit.MILLISECONDS.convert( 62 intValue(), TimeUnit.SECONDS);
|
AttrPause.java | 19 import java.util.concurrent.TimeUnit; 61 return (int) TimeUnit.MILLISECONDS.convert( 62 intValue(), TimeUnit.SECONDS);
|