/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/ |
D | TimeUnit.java | 18 public final class TimeUnit { class 26 private TimeUnit(String name, int ordinal) { in TimeUnit() method in TimeUnit 37 public static final TimeUnit YEAR = new TimeUnit("year", 0); 40 public static final TimeUnit MONTH = new TimeUnit("month", 1); 43 public static final TimeUnit WEEK = new TimeUnit("week", 2); 46 public static final TimeUnit DAY = new TimeUnit("day", 3); 49 public static final TimeUnit HOUR = new TimeUnit("hour", 4); 52 public static final TimeUnit MINUTE = new TimeUnit("minute", 5); 55 public static final TimeUnit SECOND = new TimeUnit("second", 6); 58 public static final TimeUnit MILLISECOND = new TimeUnit("millisecond", 7); [all …]
|
D | TimeUnitConstants.java | 19 public static final TimeUnit YEAR = TimeUnit.YEAR; 22 public static final TimeUnit MONTH = TimeUnit.MONTH; 25 public static final TimeUnit WEEK = TimeUnit.WEEK; 28 public static final TimeUnit DAY = TimeUnit.DAY; 31 public static final TimeUnit HOUR = TimeUnit.HOUR; 34 public static final TimeUnit MINUTE = TimeUnit.MINUTE; 37 public static final TimeUnit SECOND = TimeUnit.SECOND; 40 public static final TimeUnit MILLISECOND = TimeUnit.MILLISECOND;
|
D | BasicPeriodBuilderFactory.java | 34 static long approximateDurationOf(TimeUnit unit) { in approximateDurationOf() 35 return TimeUnit.approxDurations[unit.ordinal]; in approximateDurationOf() 41 TimeUnit maxUnit = TimeUnit.YEAR; 42 TimeUnit minUnit = TimeUnit.MILLISECOND; 59 result.maxUnit = TimeUnit.YEAR; in setUnits() 60 result.minUnit = TimeUnit.MILLISECOND; in setUnits() 63 for (int i = 0; i < TimeUnit.units.length; ++i) { in setUnits() 66 result.maxUnit = TimeUnit.units[i]; in setUnits() 75 result.minUnit = TimeUnit.units[lastUnit]; in setUnits() 86 return (short)(uset & ~(1 << TimeUnit.MILLISECOND.ordinal)); in effectiveSet() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/ |
D | TimeUnit.java | 16 public final class TimeUnit { class 24 private TimeUnit(String name, int ordinal) { in TimeUnit() method in TimeUnit 35 public static final TimeUnit YEAR = new TimeUnit("year", 0); 38 public static final TimeUnit MONTH = new TimeUnit("month", 1); 41 public static final TimeUnit WEEK = new TimeUnit("week", 2); 44 public static final TimeUnit DAY = new TimeUnit("day", 3); 47 public static final TimeUnit HOUR = new TimeUnit("hour", 4); 50 public static final TimeUnit MINUTE = new TimeUnit("minute", 5); 53 public static final TimeUnit SECOND = new TimeUnit("second", 6); 56 public static final TimeUnit MILLISECOND = new TimeUnit("millisecond", 7); [all …]
|
D | TimeUnitConstants.java | 17 public static final TimeUnit YEAR = TimeUnit.YEAR; 20 public static final TimeUnit MONTH = TimeUnit.MONTH; 23 public static final TimeUnit WEEK = TimeUnit.WEEK; 26 public static final TimeUnit DAY = TimeUnit.DAY; 29 public static final TimeUnit HOUR = TimeUnit.HOUR; 32 public static final TimeUnit MINUTE = TimeUnit.MINUTE; 35 public static final TimeUnit SECOND = TimeUnit.SECOND; 38 public static final TimeUnit MILLISECOND = TimeUnit.MILLISECOND;
|
D | BasicPeriodBuilderFactory.java | 33 static long approximateDurationOf(TimeUnit unit) { in approximateDurationOf() 34 return TimeUnit.approxDurations[unit.ordinal]; in approximateDurationOf() 40 TimeUnit maxUnit = TimeUnit.YEAR; 41 TimeUnit minUnit = TimeUnit.MILLISECOND; 58 result.maxUnit = TimeUnit.YEAR; in setUnits() 59 result.minUnit = TimeUnit.MILLISECOND; in setUnits() 62 for (int i = 0; i < TimeUnit.units.length; ++i) { in setUnits() 65 result.maxUnit = TimeUnit.units[i]; in setUnits() 74 result.minUnit = TimeUnit.units[lastUnit]; in setUnits() 85 return (short)(uset & ~(1 << TimeUnit.MILLISECOND.ordinal)); in effectiveSet() [all …]
|
/external/grpc-grpc-java/context/src/test/java/io/grpc/ |
D | DeadlineTest.java | 33 import java.util.concurrent.TimeUnit; 64 Deadline d = Deadline.after(0, TimeUnit.SECONDS); in defaultTickerIsSystemTicker() 66 Deadline reference = Deadline.after(0, TimeUnit.SECONDS, ticker); in defaultTickerIsSystemTicker() 68 assertAbout(deadline()).that(d).isWithin(1, TimeUnit.SECONDS).of(reference); in defaultTickerIsSystemTicker() 74 Deadline d = Deadline.after(10, TimeUnit.DAYS, ticker); in timeCanOverflow() 75 assertEquals(10, d.timeRemaining(TimeUnit.DAYS)); in timeCanOverflow() 76 assertTrue(Deadline.after(0, TimeUnit.DAYS, ticker).isBefore(d)); in timeCanOverflow() 79 ticker.increment(10, TimeUnit.DAYS); in timeCanOverflow() 86 Deadline d = Deadline.after(-10, TimeUnit.DAYS, ticker); in timeCanUnderflow() 87 assertEquals(-10, d.timeRemaining(TimeUnit.DAYS)); in timeCanUnderflow() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | tmunit.cpp | 17 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeUnit) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 58 TimeUnit* U_EXPORT2 in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 59 TimeUnit::createInstance(TimeUnit::UTimeUnitFields timeUnitField, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 68 return new TimeUnit(timeUnitField); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 72 TimeUnit::TimeUnit(TimeUnit::UTimeUnitFields timeUnitField) { in TimeUnit() function in TimeUnit 102 TimeUnit::TimeUnit(const TimeUnit& other) in TimeUnit() function in TimeUnit 107 TimeUnit::clone() const { in clone() 108 return new TimeUnit(*this); in clone() 111 TimeUnit& 112 TimeUnit::operator=(const TimeUnit& other) { in operator =() [all …]
|
D | tmutfmt.cpp | 114 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in TimeUnitFormat() 115 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in TimeUnitFormat() 116 i = (TimeUnit::UTimeUnitFields)(i+1)) { in TimeUnitFormat() 130 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in ~TimeUnitFormat() 131 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in ~TimeUnitFormat() 132 i = (TimeUnit::UTimeUnitFields)(i+1)) { in ~TimeUnitFormat() 151 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in operator =() 152 i < TimeUnit::UTIMEUNIT_FIELD_COUNT; in operator =() 153 i = (TimeUnit::UTimeUnitFields)(i+1)) { in operator =() 157 for (TimeUnit::UTimeUnitFields i = TimeUnit::UTIMEUNIT_YEAR; in operator =() [all …]
|
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
D | ShortDuration.java | 33 import java.util.concurrent.TimeUnit; 47 public static ShortDuration of(long duration, TimeUnit unit) { in of() 54 long nanos = TimeUnit.NANOSECONDS.convert(duration, unit); in of() 58 public static ShortDuration of(BigDecimal duration, TimeUnit unit) { in of() 73 TimeUnit unit = ABBREV_TO_UNIT.get(abbrev); in valueOf() 106 public long to(TimeUnit unit) { in to() 110 public abstract long to(TimeUnit unit, RoundingMode roundingMode); in to() 165 @Override public long to(TimeUnit unit, RoundingMode roundingMode) { 214 @Override public long to(TimeUnit unit, RoundingMode roundingMode) { in to() 268 TimeUnit bestUnit = TimeUnit.NANOSECONDS; in toString() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | PeriodTest.java | 20 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() 37 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 50 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 54 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
D | PeriodTest.java | 21 import android.icu.impl.duration.TimeUnit; 29 Period p = Period.at(0, TimeUnit.YEAR); in testIsSet() 31 assertTrue(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 32 assertFalse(null, p.isSet(TimeUnit.MONTH)); in testIsSet() 33 assertEquals(null, 0f, p.getCount(TimeUnit.YEAR), .1f); in testIsSet() 34 p = p.omit(TimeUnit.YEAR); in testIsSet() 35 assertFalse(null, p.isSet(TimeUnit.YEAR)); in testIsSet() 40 Period p = Period.moreThan(1, TimeUnit.YEAR); in testMoreLessThan() 53 p = Period.lessThan(1, TimeUnit.YEAR); in testMoreLessThan() 57 p = Period.at(1, TimeUnit.YEAR); in testMoreLessThan() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | tufmtts.cpp | 121 for (TimeUnit::UTimeUnitFields j = TimeUnit::UTIMEUNIT_YEAR; in testBasic() 122 j < TimeUnit::UTIMEUNIT_FIELD_COUNT; in testBasic() 123 j = (TimeUnit::UTimeUnitFields)(j+1)) { in testBasic() 171 TimeUnit* tmunit = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_YEAR, status); in testAPI() 174 TimeUnit* another = (TimeUnit*)tmunit->clone(); in testAPI() 175 TimeUnit third(*tmunit); in testAPI() 176 TimeUnit fourth = third; in testAPI() 181 TimeUnit* tmunit_m = TimeUnit::createInstance(TimeUnit::UTIMEUNIT_MONTH, status); in testAPI() 184 TimeUnit::UTimeUnitFields field = tmunit_m->getTimeUnitField(); in testAPI() 185 assertTrue("field of month time unit is month", (field == TimeUnit::UTIMEUNIT_MONTH)); in testAPI() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | KeepAliveManagerTest.java | 33 import java.util.concurrent.TimeUnit; 76 isA(TimeUnit.class)); in sendKeepAlivePings() 83 .when(scheduler).schedule(isA(Runnable.class), isA(Long.class), isA(TimeUnit.class)); in sendKeepAlivePings() 89 isA(TimeUnit.class)); in sendKeepAlivePings() 98 isA(TimeUnit.class)); in sendKeepAlivePings() 110 .when(scheduler).schedule(isA(Runnable.class), isA(Long.class), isA(TimeUnit.class)); in keepAlivePingDelayedByIncomingData() 116 isA(TimeUnit.class)); in keepAlivePingDelayedByIncomingData() 130 isA(TimeUnit.class)); in keepAlivePingDelayedByIncomingData() 173 .schedule(sendPingCaptor.capture(), isA(Long.class), isA(TimeUnit.class)); in onTransportTerminationCancelsShutdownFuture() 178 .when(scheduler).schedule(isA(Runnable.class), isA(Long.class), isA(TimeUnit.class)); in onTransportTerminationCancelsShutdownFuture() [all …]
|
D | FakeClockTest.java | 27 import java.util.concurrent.TimeUnit; 49 .schedule(newRunnable(), 100L, TimeUnit.NANOSECONDS); in testScheduledExecutorService_isDone() 62 .schedule(newRunnable(), 100L, TimeUnit.NANOSECONDS); in testScheduledExecutorService_cancel() 75 .schedule(newRunnable(), 100L, TimeUnit.NANOSECONDS); in testScheduledExecutorService_getDelay() 78 assertEquals(10L, future.getDelay(TimeUnit.NANOSECONDS)); in testScheduledExecutorService_getDelay() 93 TimeUnit.NANOSECONDS); in testScheduledExecutorService_result() 109 assertEquals(expectedElapsedNanos, stopwatch.elapsed(TimeUnit.NANOSECONDS)); in testStopWatch() 111 fakeClock.forwardTime(10L, TimeUnit.MINUTES); in testStopWatch() 112 expectedElapsedNanos += TimeUnit.MINUTES.toNanos(10L); in testStopWatch() 113 assertEquals(expectedElapsedNanos, stopwatch.elapsed(TimeUnit.NANOSECONDS)); in testStopWatch() [all …]
|
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/ |
D | AbstractTransportTest.java | 83 import java.util.concurrent.TimeUnit; 204 assertTrue(serverListener.waitForShutdown(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in tearDown() 212 protected void advanceClock(long offset, TimeUnit unit) { in advanceClock() 245 = serverListener.takeListenerOrFail(TIMEOUT_MS, TimeUnit.MILLISECONDS); in frameAfterRstStreamShouldNotBreakClientChannel() 256 = serverTransportListener.takeStreamOrFail(TIMEOUT_MS, TimeUnit.MILLISECONDS); in frameAfterRstStreamShouldNotBreakClientChannel() 268 Status.CANCELLED, clientStreamListener.status.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in frameAfterRstStreamShouldNotBreakClientChannel() 269 assertNotNull(clientStreamListener.trailers.get(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in frameAfterRstStreamShouldNotBreakClientChannel() 278 = serverTransportListener.takeStreamOrFail(TIMEOUT_MS, TimeUnit.MILLISECONDS); in frameAfterRstStreamShouldNotBreakClientChannel() 291 assertTrue(serverListener.waitForShutdown(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in serverNotListening() 327 = serverListener.takeListenerOrFail(TIMEOUT_MS, TimeUnit.MILLISECONDS); in clientStartAndStopOnceConnected() [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.MINUTES); in testSchedule() 49 mock.assertLastMethodCalled("scheduleRunnable", 10, TimeUnit.MINUTES); 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.MINUTES); in testSchedule_repeating() 59 mock.assertLastMethodCalled("scheduleWithFixedDelay", 100, 10, TimeUnit.MINUTES); 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 …]
|
/external/junit/src/main/java/org/junit/rules/ |
D | Timeout.java | 7 import java.util.concurrent.TimeUnit; 42 private final TimeUnit timeUnit; 67 this(millis, TimeUnit.MILLISECONDS); in Timeout() 79 public Timeout(long timeout, TimeUnit timeUnit) { in Timeout() 102 return new Timeout(millis, TimeUnit.MILLISECONDS); in millis() 112 return new Timeout(seconds, TimeUnit.SECONDS); in seconds() 120 protected final long getTimeout(TimeUnit unit) { in getTimeout() 159 private TimeUnit timeUnit = TimeUnit.SECONDS; 179 public Builder withTimeout(long timeout, TimeUnit unit) { in withTimeout() 189 protected TimeUnit getTimeUnit() { in getTimeUnit()
|
/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 …]
|
/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/ |
D | GrpcCleanupRuleTest.java | 37 import java.util.concurrent.TimeUnit; 114 inOrder.verify(channel).awaitTermination(anyLong(), any(TimeUnit.class)); in singleChannelCleanup() 141 inOrder.verify(server).awaitTermination(anyLong(), any(TimeUnit.class)); in singleServerCleanup() 151 doReturn(true).when(resource1).awaitReleased(anyLong(), any(TimeUnit.class)); in multiResource_cleanupGracefully() 152 doReturn(true).when(resource2).awaitReleased(anyLong(), any(TimeUnit.class)); in multiResource_cleanupGracefully() 153 doReturn(true).when(resource3).awaitReleased(anyLong(), any(TimeUnit.class)); in multiResource_cleanupGracefully() 172 inOrder.verify(resource3).awaitReleased(anyLong(), any(TimeUnit.class)); in multiResource_cleanupGracefully() 173 inOrder.verify(resource2).awaitReleased(anyLong(), any(TimeUnit.class)); in multiResource_cleanupGracefully() 174 inOrder.verify(resource1).awaitReleased(anyLong(), any(TimeUnit.class)); in multiResource_cleanupGracefully() 210 verify(resource, never()).awaitReleased(anyLong(), any(TimeUnit.class)); in baseTestFails() [all …]
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/export/ |
D | SampledSpanStore.java | 30 import java.util.concurrent.TimeUnit; 241 ZERO_MICROSx10(0, TimeUnit.MICROSECONDS.toNanos(10)), 248 MICROSx10_MICROSx100(TimeUnit.MICROSECONDS.toNanos(10), TimeUnit.MICROSECONDS.toNanos(100)), 255 MICROSx100_MILLIx1(TimeUnit.MICROSECONDS.toNanos(100), TimeUnit.MILLISECONDS.toNanos(1)), 262 MILLIx1_MILLIx10(TimeUnit.MILLISECONDS.toNanos(1), TimeUnit.MILLISECONDS.toNanos(10)), 269 MILLIx10_MILLIx100(TimeUnit.MILLISECONDS.toNanos(10), TimeUnit.MILLISECONDS.toNanos(100)), 276 MILLIx100_SECONDx1(TimeUnit.MILLISECONDS.toNanos(100), TimeUnit.SECONDS.toNanos(1)), 283 SECONDx1_SECONDx10(TimeUnit.SECONDS.toNanos(1), TimeUnit.SECONDS.toNanos(10)), 290 SECONDx10_SECONDx100(TimeUnit.SECONDS.toNanos(10), TimeUnit.SECONDS.toNanos(100)), 297 SECONDx100_MAX(TimeUnit.SECONDS.toNanos(100), Long.MAX_VALUE);
|
/external/guava/guava/src/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; 33 import java.util.concurrent.TimeUnit; 207 public long elapsed(TimeUnit desiredUnit) { in elapsed() 218 TimeUnit unit = chooseUnit(nanos); in toString() [all …]
|
/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/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 63 import java.util.concurrent.TimeUnit; 185 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in assertCached() 186 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in assertCached() 232 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in testResponseCaching() 233 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in testResponseCaching() 261 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in secureResponseCaching() 262 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in secureResponseCaching() 291 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() 292 .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) in responseCachingAndRedirects() 296 .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) in responseCachingAndRedirects() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | tmunit.h | 32 class U_I18N_API TimeUnit: public MeasureUnit { 65 static TimeUnit* U_EXPORT2 createInstance(UTimeUnitFields timeUnitField, 79 TimeUnit(const TimeUnit& other); 85 TimeUnit& operator=(const TimeUnit& other); 117 virtual ~TimeUnit(); 126 TimeUnit(UTimeUnitFields timeUnitField);
|