Home
last modified time | relevance | path

Searched refs:baseTime (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsAggregator.java77 long baseTime = startTimeMs > 0 ? startTimeMs : UNINITIALIZED; in aggregatePowerStats() local
87 if (baseTime == UNINITIALIZED) { in aggregatePowerStats()
88 baseTime = item.time; in aggregatePowerStats()
139 if (lastTime > baseTime) { in aggregatePowerStats()
140 mStats.setDuration(lastTime - baseTime); in aggregatePowerStats()
146 baseTime = lastTime = item.time; in aggregatePowerStats()
152 if (lastTime > baseTime) { in aggregatePowerStats()
153 mStats.setDuration(lastTime - baseTime); in aggregatePowerStats()
DAggregatedPowerStats.java229 long baseTime = 0; in dump() local
234 baseTime = clockUpdate.monotonicTime; in dump()
238 .append(baseTime) in dump()
246 clockUpdate.monotonicTime - baseTime, sb, in dump()
/frameworks/base/core/tests/coretests/src/android/text/format/
DRelativeDateTimeFormatterTest.java62 final long baseTime = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringCTS() local
65 getRelativeTimeSpanString(en_US, tz, baseTime - SECOND_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
68 getRelativeTimeSpanString(en_US, tz, baseTime + SECOND_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
77 getRelativeTimeSpanString(en_US, tz, baseTime - 42 * MINUTE_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
80 getRelativeTimeSpanString(en_US, tz, baseTime + 42 * MINUTE_IN_MILLIS, baseTime, in test_getRelativeTimeSpanStringCTS()
85 getRelativeTimeSpanString(en_US, tz, baseTime - TWO_HOURS_IN_MS, baseTime, in test_getRelativeTimeSpanStringCTS()
88 getRelativeTimeSpanString(en_US, tz, baseTime + TWO_HOURS_IN_MS, baseTime, in test_getRelativeTimeSpanStringCTS()
92 getRelativeTimeSpanString(en_US, tz, baseTime + (42 * MINUTE_IN_MILLIS), baseTime, in test_getRelativeTimeSpanStringCTS()
106 getRelativeTimeSpanString(en_US, tz, baseTime - DAY_DURATION, baseTime, in test_getRelativeTimeSpanStringCTS()
454 final long baseTime = System.currentTimeMillis(); in test_getRelativeDateTimeStringCTS() local
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DUceRequestDispatcher.java170 Instant baseTime; in notifyStartOfRequest() local
172 baseTime = lastRequestTime.plusMillis(mIntervalTime); in notifyStartOfRequest()
174 baseTime = Instant.now(); in notifyStartOfRequest()
179 Instant startExecutingTime = baseTime.plusMillis((mIntervalTime * i)); in notifyStartOfRequest()
/frameworks/native/services/surfaceflinger/FrameTimeline/
DFrameTimeline.cpp40 const std::string& indent, PredictionState predictionState, nsecs_t baseTime) { in dumpTable() argument
50 std::chrono::nanoseconds startTime(predictions.startTime - baseTime); in dumpTable()
51 std::chrono::nanoseconds endTime(predictions.endTime - baseTime); in dumpTable()
52 std::chrono::nanoseconds presentTime(predictions.presentTime - baseTime); in dumpTable()
64 std::chrono::nanoseconds startTime(std::max<nsecs_t>(0, actuals.startTime - baseTime)); in dumpTable()
72 std::chrono::nanoseconds endTime(actuals.endTime - baseTime); in dumpTable()
79 std::chrono::nanoseconds presentTime(std::max<nsecs_t>(0, actuals.presentTime - baseTime)); in dumpTable()
479 void SurfaceFrame::dump(std::string& result, const std::string& indent, nsecs_t baseTime) const { in dump()
503 std::chrono::nanoseconds dropTime(mDropTime - baseTime); in dump()
516 std::max(static_cast<int64_t>(0), mLastLatchTime - baseTime)); in dump()
[all …]
DFrameTimeline.h210 void dump(std::string& result, const std::string& indent, nsecs_t baseTime) const;
386 void dumpJank(std::string& result, nsecs_t baseTime, int displayFrameCount) const;
388 void dumpAll(std::string& result, nsecs_t baseTime) const;
426 void dump(std::string& result, nsecs_t baseTime) const;
/frameworks/base/core/java/android/os/
DBatteryStats.java6932 public void printNextItem(PrintWriter pw, HistoryItem rec, long baseTime, boolean checkin, in printNextItem() argument
6934 pw.print(printNextItem(rec, baseTime, checkin, verbose)); in printNextItem()
6938 public void printNextItem(ProtoOutputStream proto, HistoryItem rec, long baseTime, in printNextItem() argument
6940 String item = printNextItem(rec, baseTime, true, verbose); in printNextItem()
6946 private String printNextItem(HistoryItem rec, long baseTime, boolean checkin, in printNextItem() argument
6952 rec.time - baseTime, item, TimeUtils.HUNDRED_DAY_FIELD_LEN); in printNextItem()
6960 item.append(rec.time - baseTime); in printNextItem()
7515 long baseTime = -1; in dumpHistory() local
7524 if (baseTime < 0) { in dumpHistory()
7525 baseTime = lastTime; in dumpHistory()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp1611 const nsecs_t baseTime = systemTime(SYSTEM_TIME_MONOTONIC); in TEST_F() local
1620 .downTime(baseTime + 10) in TEST_F()
1621 .eventTime(baseTime + 20) in TEST_F()
1632 .downTime(baseTime + 10) in TEST_F()
1633 .eventTime(baseTime + 30) in TEST_F()
1644 .downTime(baseTime + 40) in TEST_F()
1645 .eventTime(baseTime + 40) in TEST_F()
1657 .downTime(baseTime + 40) in TEST_F()
1658 .eventTime(baseTime + 50) in TEST_F()
1669 .downTime(baseTime + 60) in TEST_F()
[all …]