/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | TimeUnit.java | 14 public final class TimeUnit { class 22 private TimeUnit(String name, int ordinal) { in TimeUnit() method in TimeUnit 32 public static final TimeUnit YEAR = new TimeUnit("year", 0); 35 public static final TimeUnit MONTH = new TimeUnit("month", 1); 38 public static final TimeUnit WEEK = new TimeUnit("week", 2); 41 public static final TimeUnit DAY = new TimeUnit("day", 3); 44 public static final TimeUnit HOUR = new TimeUnit("hour", 4); 47 public static final TimeUnit MINUTE = new TimeUnit("minute", 5); 50 public static final TimeUnit SECOND = new TimeUnit("second", 6); 53 public static final TimeUnit MILLISECOND = new TimeUnit("millisecond", 7); [all …]
|
D | TimeUnitConstants.java | 15 public static final TimeUnit YEAR = TimeUnit.YEAR; 18 public static final TimeUnit MONTH = TimeUnit.MONTH; 21 public static final TimeUnit WEEK = TimeUnit.WEEK; 24 public static final TimeUnit DAY = TimeUnit.DAY; 27 public static final TimeUnit HOUR = TimeUnit.HOUR; 30 public static final TimeUnit MINUTE = TimeUnit.MINUTE; 33 public static final TimeUnit SECOND = TimeUnit.SECOND; 36 public static final TimeUnit MILLISECOND = TimeUnit.MILLISECOND;
|
D | BasicPeriodBuilderFactory.java | 31 static long approximateDurationOf(TimeUnit unit) { in approximateDurationOf() 32 return TimeUnit.approxDurations[unit.ordinal]; in approximateDurationOf() 38 TimeUnit maxUnit = TimeUnit.YEAR; 39 TimeUnit minUnit = TimeUnit.MILLISECOND; 56 result.maxUnit = TimeUnit.YEAR; in setUnits() 57 result.minUnit = TimeUnit.MILLISECOND; in setUnits() 60 for (int i = 0; i < TimeUnit.units.length; ++i) { in setUnits() 63 result.maxUnit = TimeUnit.units[i]; in setUnits() 72 result.minUnit = TimeUnit.units[lastUnit]; in setUnits() 83 return (short)(uset & ~(1 << TimeUnit.MILLISECOND.ordinal)); in effectiveSet() [all …]
|
D | Period.java | 39 public static Period at(float count, TimeUnit unit) { in at() 51 public static Period moreThan(float count, TimeUnit unit) { in moreThan() 63 public static Period lessThan(float count, TimeUnit unit) { in lessThan() 79 public Period and(float count, TimeUnit unit) { in and() 90 public Period omit(TimeUnit unit) { in omit() 179 public boolean isSet(TimeUnit unit) { in isSet() 189 public float getCount(TimeUnit unit) { in getCount() 291 private Period(int limit, boolean future, float count, TimeUnit unit) { in Period() 294 this.counts = new int[TimeUnit.units.length]; in Period() 310 private Period setTimeUnitValue(TimeUnit unit, float value) { in setTimeUnitValue() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | tmunit.cpp | 15 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeUnit) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 56 TimeUnit* U_EXPORT2 in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 57 TimeUnit::createInstance(TimeUnit::UTimeUnitFields timeUnitField, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 66 return new TimeUnit(timeUnitField); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 70 TimeUnit::TimeUnit(TimeUnit::UTimeUnitFields timeUnitField) { in TimeUnit() function in TimeUnit 100 TimeUnit::TimeUnit(const TimeUnit& other) in TimeUnit() function in TimeUnit 105 TimeUnit::clone() const { in clone() 106 return new TimeUnit(*this); in clone() 109 TimeUnit& 110 TimeUnit::operator=(const TimeUnit& other) { in operator =() [all …]
|
D | tmutfmt.cpp | 111 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in TimeUnitFormat() 112 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in TimeUnitFormat() 113 i = (TimeUnit::UTimeUnitFields)(i+1)) { in TimeUnitFormat() 127 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in ~TimeUnitFormat() 128 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in ~TimeUnitFormat() 129 i = (TimeUnit::UTimeUnitFields)(i+1)) { in ~TimeUnitFormat() 148 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in operator =() 149 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in operator =() 150 i = (TimeUnit::UTimeUnitFields)(i+1)) { in operator =() 154 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | PeriodTest.java | 14 import com.ibm.icu.impl.duration.TimeUnit; 26 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 28 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 29 assertFalse(null, p.isSet(TimeUnit.MONTH)); in testIsSet() 30 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet() 31 p = p.omit(TimeUnit.YEAR); in testIsSet() 32 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 36 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 49 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 53 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | tufmtts.cpp | 75 for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR; in testBasic() 76 j < TimeUnit::UTIMEUNIT_FIELD_COUNT; in testBasic() 77 j = (TimeUnit::UTimeUnitFields)(j+1)) { in testBasic() 125 TimeUnit* tmunit = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status); in testAPI() 128 TimeUnit* another = (TimeUnit*)tmunit->clone(); in testAPI() 129 TimeUnit third(*tmunit); in testAPI() 130 TimeUnit fourth = third; in testAPI() 135 TimeUnit* tmunit_m = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_MONTH, status); in testAPI() 138 TimeUnit::UTimeUnitFields field = tmunit_m->getTimeUnitField(); in testAPI() 139 assertTrue("field of month time unit is month", (field == TimeUnit::UTIMEUNIT_MONTH)); in testAPI() [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | WrappingScheduledExecutorServiceTest.java | 29 import java.util.concurrent.TimeUnit; 48 testExecutor.schedule(DO_NOTHING, 10, TimeUnit.SECONDS); in testSchedule() 49 mock.assertLastMethodCalled("scheduleRunnable", 10, TimeUnit.SECONDS); in testSchedule() 51 testExecutor.schedule(Executors.callable(DO_NOTHING), 5, TimeUnit.SECONDS); in testSchedule() 52 mock.assertLastMethodCalled("scheduleCallable", 5, TimeUnit.SECONDS); in testSchedule() 58 testExecutor.scheduleWithFixedDelay(DO_NOTHING, 100, 10, TimeUnit.SECONDS); in testSchedule_repeating() 59 mock.assertLastMethodCalled("scheduleWithFixedDelay", 100, 10, TimeUnit.SECONDS); in testSchedule_repeating() 61 testExecutor.scheduleAtFixedRate(DO_NOTHING, 3, 7, TimeUnit.SECONDS); in testSchedule_repeating() 62 mock.assertLastMethodCalled("scheduleAtFixedRate", 3, 7, TimeUnit.SECONDS); in testSchedule_repeating() 110 TimeUnit lastUnit; [all …]
|
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 …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderGwtTest.java | 35 import java.util.concurrent.TimeUnit; 138 .expireAfterAccess(1000, TimeUnit.MILLISECONDS) in testExpireAfterAccess() 145 fakeTicker.advance(999, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 147 fakeTicker.advance(1, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 149 fakeTicker.advance(1000, TimeUnit.MILLISECONDS); in testExpireAfterAccess() 155 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testExpireAfterWrite() 163 fakeTicker.advance(999, TimeUnit.MILLISECONDS); in testExpireAfterWrite() 168 fakeTicker.advance(2, TimeUnit.MILLISECONDS); in testExpireAfterWrite() 176 fakeTicker.advance(1000, TimeUnit.MILLISECONDS); in testExpireAfterWrite() 182 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testExpireAfterWriteAndAccess() [all …]
|
D | CacheBuilderSpecTest.java | 28 import java.util.concurrent.TimeUnit; 265 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); in testParse_writeExpirationDays() 269 …CacheBuilder.newBuilder().expireAfterWrite(24 * 60 * 60 * 10L, TimeUnit.SECONDS), CacheBuilder.fro… in testParse_writeExpirationDays() 274 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); in testParse_writeExpirationHours() 277 …CacheBuilder.newBuilder().expireAfterWrite(60 * 60 * 150L, TimeUnit.SECONDS), CacheBuilder.from(sp… in testParse_writeExpirationHours() 282 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); in testParse_writeExpirationMinutes() 285 … CacheBuilder.newBuilder().expireAfterWrite(60 * 10L, TimeUnit.SECONDS), CacheBuilder.from(spec)); in testParse_writeExpirationMinutes() 290 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); in testParse_writeExpirationSeconds() 293 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.SECONDS), CacheBuilder.from(spec)); in testParse_writeExpirationSeconds() 315 assertEquals(TimeUnit.SECONDS, spec.accessExpirationTimeUnit); in testParse_accessExpirationDays() [all …]
|
/external/icu/icu4c/source/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); 109 virtual ~TimeUnit(); 118 TimeUnit(UTimeUnitFields timeUnitField);
|
/external/guava/guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/ |
D | FakeTickerTest.java | 24 import java.util.concurrent.TimeUnit; 39 ticker.advance(1, TimeUnit.MILLISECONDS); in testAdvance() 45 assertSame(ticker, ticker.setAutoIncrementStep(10, TimeUnit.NANOSECONDS)); in testAutoIncrementStep_returnsSameInstance() 49 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); in testAutoIncrementStep_nanos() 56 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS); in testAutoIncrementStep_millis() 63 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(3, TimeUnit.SECONDS); in testAutoIncrementStep_seconds() 70 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); in testAutoIncrementStep_resetToZero() 75 for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) { in testAutoIncrementStep_resetToZero() 86 ticker.setAutoIncrementStep(-1, TimeUnit.NANOSECONDS); in testAutoIncrement_negative()
|
/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.DAYS; 22 import static java.util.concurrent.TimeUnit.HOURS; 23 import static java.util.concurrent.TimeUnit.MICROSECONDS; 24 import static java.util.concurrent.TimeUnit.MILLISECONDS; 25 import static java.util.concurrent.TimeUnit.MINUTES; 26 import static java.util.concurrent.TimeUnit.NANOSECONDS; 27 import static java.util.concurrent.TimeUnit.SECONDS; 32 import java.util.concurrent.TimeUnit; 208 public long elapsed(TimeUnit desiredUnit) { in elapsed() 212 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() [all …]
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 63 import java.util.concurrent.TimeUnit; 196 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 197 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 243 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 244 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 272 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 273 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 302 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() 303 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in responseCachingAndRedirects() 307 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|
/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/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
D | UrlConnectionCacheTest.java | 64 import java.util.concurrent.TimeUnit; 174 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 175 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 222 new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 223 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 256 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 257 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 289 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() 290 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in responseCachingAndRedirects() 293 server.enqueue(new MockResponse().addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeUnitFormat.java | 24 import com.ibm.icu.util.TimeUnit; 98 private transient Map<TimeUnit, Map<String, Object[]>> timeUnitToCountToPatterns; 262 TimeUnit resultTimeUnit = null; in parseObject() 270 for (TimeUnit timeUnit : timeUnitToCountToPatterns.keySet()) { in parseObject() 357 timeUnitToCountToPatterns = new HashMap<TimeUnit, Map<String, Object[]>>(); in setup() 364 …private void setup(String resourceKey, Map<TimeUnit, Map<String, Object[]>> timeUnitToCountToPatte… in setup() argument 374 TimeUnit timeUnit = null; in setup() 376 timeUnit = TimeUnit.YEAR; in setup() 378 timeUnit = TimeUnit.MONTH; in setup() 380 timeUnit = TimeUnit.DAY; in setup() [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; 206 public long elapsed(TimeUnit desiredUnit) { in elapsed() 217 TimeUnit unit = chooseUnit(nanos); in toString() 224 private static TimeUnit chooseUnit(long nanos) { in chooseUnit() 237 private static String abbreviate(TimeUnit unit) { in abbreviate()
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
D | FakeTickerTest.java | 29 import java.util.concurrent.TimeUnit; 50 ticker.advance(1, TimeUnit.MILLISECONDS); in testAdvance() 56 assertSame(ticker, ticker.setAutoIncrementStep(10, TimeUnit.NANOSECONDS)); in testAutoIncrementStep_returnsSameInstance() 60 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); in testAutoIncrementStep_nanos() 67 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS); in testAutoIncrementStep_millis() 74 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(3, TimeUnit.SECONDS); in testAutoIncrementStep_seconds() 81 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); in testAutoIncrementStep_resetToZero() 86 for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) { in testAutoIncrementStep_resetToZero() 97 ticker.setAutoIncrementStep(-1, TimeUnit.NANOSECONDS); in testAutoIncrement_negative() 129 new FakeTicker().setAutoIncrementStep(incrementByNanos, TimeUnit.NANOSECONDS); in testConcurrentAutoIncrementStep()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | RateLimiter.java | 24 import java.util.concurrent.TimeUnit; 274 public static RateLimiter create(double permitsPerSecond, long warmupPeriod, TimeUnit unit) { in create() 280 SleepingTicker ticker, double permitsPerSecond, long warmupPeriod, TimeUnit unit) { in create() 288 SleepingTicker ticker, double permitsPerSecond, long maxBurstBuildup, TimeUnit unit) { in createWithCapacity() 359 double stableIntervalMicros = TimeUnit.SECONDS.toMicros(1L) / permitsPerSecond; in setRate() 375 return TimeUnit.SECONDS.toMicros(1L) / stableIntervalMicros; in getRate() 402 return 1.0 * microsToWait / TimeUnit.SECONDS.toMicros(1L); in acquire() 442 public boolean tryAcquire(long timeout, TimeUnit unit) { in tryAcquire() 457 return tryAcquire(permits, 0, TimeUnit.MICROSECONDS); in tryAcquire() 471 return tryAcquire(1, 0, TimeUnit.MICROSECONDS); in tryAcquire() [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | AsyncTimeoutTest.java | 23 import java.util.concurrent.TimeUnit; 44 a.timeout( 250, TimeUnit.MILLISECONDS); in setUp() 45 b.timeout( 500, TimeUnit.MILLISECONDS); in setUp() 46 c.timeout( 750, TimeUnit.MILLISECONDS); in setUp() 47 d.timeout(1000, TimeUnit.MILLISECONDS); in setUp() 52 timeout.timeout(0, TimeUnit.MILLISECONDS); in zeroTimeoutIsNoTimeout() 136 timeout.deadline(250, TimeUnit.MILLISECONDS); in deadlineOnly() 145 timeout.deadline(250, TimeUnit.MILLISECONDS); in deadlineBeforeTimeout() 146 timeout.timeout(750, TimeUnit.MILLISECONDS); in deadlineBeforeTimeout() 155 timeout.timeout(250, TimeUnit.MILLISECONDS); in deadlineAfterTimeout() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | CacheTest.java | 46 import java.util.concurrent.TimeUnit; 165 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 166 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 215 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 216 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 252 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 253 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 287 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() 288 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in responseCachingAndRedirects() 292 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|