Searched refs:uptime (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DMockClocks.java21 public long uptime; field in class:MockClocks
30 return uptime;
H A DBatteryStatsSensorTest.java39 clocks.uptime = 100;
45 clocks.uptime = 200;
52 clocks.uptime = 400;
77 curr = 1000 * (clocks.realtime = clocks.uptime = 100);
82 curr = 1000 * (clocks.realtime = clocks.uptime = 200);
86 curr = 1000 * (clocks.realtime = clocks.uptime = 215);
94 curr = 1000 * (clocks.realtime = clocks.uptime = 550);
98 curr = 1000 * (clocks.realtime = clocks.uptime = 678);
113 curr = 1000 * (clocks.realtime = clocks.uptime = 100);
117 curr = 1000 * (clocks.realtime = clocks.uptime
[all...]
H A DBatteryStatsBackgroundStatsTest.java39 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms
46 clocks.realtime = clocks.uptime = 10;
53 clocks.realtime = clocks.uptime = 100;
60 clocks.realtime = clocks.uptime = 201;
67 clocks.realtime = clocks.uptime = 303;
75 clocks.realtime = clocks.uptime = 409;
82 clocks.realtime = clocks.uptime = 417;
89 clocks.realtime = clocks.uptime = 530;
97 clocks.realtime = clocks.uptime = 690;
107 final MockClocks clocks = new MockClocks(); // holds realtime and uptime i
[all...]
H A DBatteryStatsDualTimerTest.java31 clocks.realtime = clocks.uptime = 100;
47 clocks.realtime = clocks.uptime = 200;
54 clocks.realtime = clocks.uptime = 300;
H A DBatteryStatsNoteTest.java91 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms
102 clocks.realtime = clocks.uptime = 100;
105 clocks.realtime = clocks.uptime = 220;
148 clocks.uptime = clocks.realtime;
207 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms
231 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms
260 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms
263 clocks.realtime = clocks.uptime = 100;
267 clocks.realtime = clocks.uptime = 200;
274 clocks.realtime = clocks.uptime
[all...]
H A DBatteryStatsTimeBaseTest.java40 public void populate(long uptime, long realtime, boolean running, long pastUptime, argument
43 mUptime = uptime;
54 public void verify(long uptime, long realtime, boolean running, long pastUptime, argument
57 Assert.assertEquals(uptime, mUptime);
76 // Toggle running once, to accumulate past uptime and past realtime
H A DBatteryStatsSamplingTimerTest.java141 clocks.uptime = 0;
159 clocks.uptime = 20;
H A DBatteryStatsDurationTimerTest.java117 clocks.uptime = 10;
H A DBatteryStatsStopwatchTimerTest.java32 final MockClocks clocks = new MockClocks(); // holds realtime and uptime in ms
144 return clocks.realtime = clocks.uptime = time;
H A DBatteryStatsCpuTimesTest.java1248 mClocks.realtime = mClocks.uptime = 0;
1256 mClocks.realtime = mClocks.uptime = 100_000;
1260 mClocks.realtime = mClocks.uptime = 200_000;
1266 mClocks.realtime = mClocks.uptime = 400_000;
1278 mClocks.realtime = mClocks.uptime = 800_000;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DClientWakelockTracker.java40 long uptime = SystemClock.uptimeMillis();
41 client.startAttributingWakelock(requestId, token, numRequestsInQueue, uptime);
42 updateConcurrentRequests(numRequestsInQueue, uptime);
53 long uptime = SystemClock.uptimeMillis();
54 client.stopAttributingWakelock(requestId, token, uptime);
60 updateConcurrentRequests(numRequestsInQueue, uptime);
65 long uptime = SystemClock.uptimeMillis();
68 client.stopAllPendingRequests(uptime);
76 long uptime = SystemClock.uptimeMillis();
81 client.updatePendingRequestWakelockTime(uptime);
[all...]
H A DClientWakelockAccountant.java91 public synchronized long updatePendingRequestWakelockTime(long uptime) { argument
95 wlInfo.updateTime(uptime);
/frameworks/rs/script_api/
H A Drs_time.spec90 summary: System uptime in milliseconds
92 Returns the current system clock (uptime) in milliseconds.
98 summary: System uptime in nanoseconds
100 Returns the current system clock (uptime) in nanoseconds.
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java1128 public void init(long uptime, long realtime) { argument
1133 mUptimeStart = uptime;
1139 public void reset(long uptime, long realtime) { argument
1144 mUptimeStart = uptime;
1148 mUnpluggedUptime = getUptime(uptime);
1206 public boolean setRunning(boolean running, long uptime, long realtime) { argument
1210 mUptimeStart = uptime;
1212 long batteryUptime = mUnpluggedUptime = getUptime(uptime);
1219 mPastUptime += uptime - mUptimeStart;
1222 long batteryUptime = getUptime(uptime);
1239 writeSummaryToParcel(Parcel out, long uptime, long realtime) argument
1256 writeToParcel(Parcel out, long uptime, long realtime) argument
3981 updateTimeBasesLocked(boolean unplugged, int screenState, long uptime, long realtime) argument
4353 noteStartWakeLocked(int uid, int pid, WorkChain wc, String name, String historyName, int type, boolean unimportantForLogging, long elapsedRealtime, long uptime) argument
4417 noteStopWakeLocked(int uid, int pid, WorkChain wc, String name, String historyName, int type, long elapsedRealtime, long uptime) argument
7867 reset(long uptime, long realtime) argument
10761 initTimes(long uptime, long realtime) argument
[all...]
H A DProcessCpuTracker.java439 final long uptime = SystemClock.uptimeMillis();
481 st.rel_uptime = uptime - st.base_uptime;
482 st.base_uptime = uptime;
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java1502 * Last time (in uptime) at which we checked for power usage.
1611 * The uptime of the last time we performed idle maintenance.
17941 pw.println(" uptime):");
17952 pw.println(" uptime):");
18434 long uptime = SystemClock.uptimeMillis();
18437 pw.println("Uptime: " + uptime + " Realtime: " + realtime);
18654 private final void dumpApplicationMemoryUsageHeader(PrintWriter pw, long uptime, argument
18661 pw.print("time,"); pw.print(uptime); pw.print(","); pw.println(realtime);
18664 pw.println("Uptime: " + uptime + " Realtime: " + realtime);
18820 long uptime
[all...]

Completed in 744 milliseconds