HomeSort by relevance Sort by last modified time
    Searched refs:INSTANT (Results 1 - 13 of 13) sorted by null

  /libcore/ojluni/src/test/java/time/tck/java/time/
TCKClock.java 65 import java.time.Instant;
88 public Instant instant() { method in class:TCKClock.MockInstantClock
89 return Instant.ofEpochMilli(millis());
113 private static final Instant INSTANT = Instant.ofEpochSecond(1873687, 357000000);
115 private static final Clock MOCK_INSTANT = new MockInstantClock(INSTANT.toEpochMilli(), ZONE);
120 assertEquals(MOCK_INSTANT.instant(), INSTANT);
    [all...]
TCKClock_Fixed.java 66 import java.time.Instant;
81 private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneOffset.ofHours(2)).toInstant();
85 Clock test = Clock.fixed(INSTANT, PARIS);
86 assertEquals(test.instant(), INSTANT);
88 assertEquals(test.instant().getEpochSecond()*1000, test.millis());
98 Clock.fixed(INSTANT, null);
103 Clock test = Clock.fixed(INSTANT, PARIS);
110 Clock test = Clock.fixed(INSTANT, PARIS)
    [all...]
TCKClock_Offset.java 67 import java.time.Instant;
82 private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneOffset.ofHours(2)).toInstant();
87 Clock test = Clock.offset(Clock.fixed(INSTANT, PARIS), OFFSET);
88 //System.out.println(test.instant());
89 //System.out.println(INSTANT.plus(OFFSET));
90 assertEquals(test.instant(), INSTANT.plus(OFFSET));
  /libcore/ojluni/src/test/java/time/test/java/time/
TestClock_Fixed.java 66 import java.time.Instant;
80 private static final Instant INSTANT = LocalDateTime.of(2008, 6, 30, 11, 30, 10, 500).atZone(ZoneOffset.ofHours(2)).toInstant();
84 Clock test = Clock.fixed(INSTANT, PARIS);
91 Clock test = Clock.fixed(INSTANT, PARIS);
  /external/caliper/caliper/src/main/java/com/google/caliper/model/
Defaults.java 19 import org.joda.time.Instant;
29 static final Instant INSTANT = new Instant(0L);
Run.java 25 import org.joda.time.Instant;
39 private Instant startTime;
44 this.startTime = Defaults.INSTANT;
61 public Instant startTime() {
93 private Instant startTime;
104 public Builder startTime(Instant startTime) {
  /libcore/ojluni/src/test/java/time/tck/java/time/serial/
TCKClockSerialization.java 66 import java.time.Instant;
87 private static final Instant INSTANT = ZDT.toInstant();
105 assertSerializable(Clock.tick(Clock.fixed(INSTANT, PARIS), AMOUNT));
110 assertSerializable(Clock.fixed(INSTANT, ZoneOffset.UTC));
111 assertSerializable(Clock.fixed(INSTANT, PARIS));
  /libcore/ojluni/src/test/java/time/tck/java/time/zone/
TCKFixedZoneRules.java 69 import java.time.Instant;
92 private static final Instant INSTANT = LDT.toInstant(OFFSET_PONE);
113 assertEquals(test.getOffset(INSTANT), expectedOffset);
114 assertEquals(test.getOffset((Instant) null), expectedOffset);
150 assertEquals(test.getStandardOffset(INSTANT), expectedOffset);
156 assertEquals(test.getDaylightSavings(INSTANT), Duration.ZERO);
162 assertEquals(test.isDaylightSavings(INSTANT), false);
169 assertEquals(test.nextTransition(INSTANT), null);
175 assertEquals(test.previousTransition(INSTANT), null)
    [all...]
  /libcore/ojluni/src/test/java/time/test/java/time/format/
TestDateTimeParsing.java 72 import java.time.Instant;
101 private static final DateTimeFormatter INSTANT = new DateTimeFormatterBuilder()
103 private static final DateTimeFormatter INSTANT_WITH_PARIS = INSTANT.withZone(PARIS);
104 private static final DateTimeFormatter INSTANT_WITH_0230 = INSTANT.withZone(OFFSET_0230);
130 {INSTANTSECONDS_WITH_PARIS, "86402", Instant.ofEpochSecond(86402).atZone(PARIS)},
131 {INSTANTSECONDS_NOS_WITH_PARIS, "86402.123456789", Instant.ofEpochSecond(86402, 123456789).atZone(PARIS)},
132 {INSTANTSECONDS_OFFSETSECONDS, "86402 9000", Instant.ofEpochSecond(86402).atZone(OFFSET_0230)},
151 assertEquals(Instant.from(actual), expected.toInstant());
169 {INSTANT, "2014-06-30T01:02:03Z", ZonedDateTime.of(2014, 6, 30, 1, 2, 3, 0, ZoneOffset.UTC).toInstant()},
170 {INSTANTSECONDS, "86402", Instant.ofEpochSecond(86402)}
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
IconUtilities.java 30 public static final int INSTANT = R.drawable.filtershow_fx_0001_instant;
  /external/libmojo/base/android/java/src/org/chromium/base/
PerfTraceEvent.java 51 INSTANT("I");
121 * logged whenever {@link #instant(String)}, {@link #begin(String)}, or {@link #end(String)}
138 * If this feature is enabled, whenever {@link #instant(String)}, {@link #begin(String)},
159 * Record an "instant" perf trace event. E.g. "screen update happened".
161 public static synchronized void instant(String name) { method in class:PerfTraceEvent
162 // Instant doesn't really need/take an event id, but this should be okay.
164 TraceEvent.instant(name);
166 savePerfString(name, eventId, EventType.INSTANT, false);
247 // Done after calculating the instant perf data to ensure calculating the memory usage
  /tools/tradefederation/core/src/com/android/tradefed/targetprep/
TestAppInstallSetup.java 54 INSTANT,
100 @Option(name = "instant-mode", description = "Whether or not to install apk in instant mode.")
106 "Force the preparer to ignore instant-mode option, and install in the requested mode."
223 // Handle instant mode: if we are forced in one installation mode or not.
225 if (InstallMode.INSTANT.equals(mInstallMode)) {
226 mInstallArgs.add("--instant");
230 mInstallArgs.add("--instant");
  /external/conscrypt/benchmark-android/
vogar.jar 

Completed in 366 milliseconds