Home
last modified time | relevance | path

Searched refs:uptime (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSensorTest.java41 clocks.uptime = 100; in testSensorStartStop()
47 clocks.uptime = 200; in testSensorStartStop()
54 clocks.uptime = 400; in testSensorStartStop()
79 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOffBattery()
84 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOffBattery()
88 curr = 1000 * (clocks.realtime = clocks.uptime = 215); in testCountingWhileOffBattery()
96 curr = 1000 * (clocks.realtime = clocks.uptime = 550); in testCountingWhileOffBattery()
100 curr = 1000 * (clocks.realtime = clocks.uptime = 678); in testCountingWhileOffBattery()
115 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOnBattery()
119 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOnBattery()
[all …]
DBatteryStatsBackgroundStatsTest.java48 clocks.realtime = clocks.uptime = 10; in testBgTimeBase()
55 clocks.realtime = clocks.uptime = 100; in testBgTimeBase()
62 clocks.realtime = clocks.uptime = 201; in testBgTimeBase()
69 clocks.realtime = clocks.uptime = 303; in testBgTimeBase()
77 clocks.realtime = clocks.uptime = 409; in testBgTimeBase()
84 clocks.realtime = clocks.uptime = 417; in testBgTimeBase()
91 clocks.realtime = clocks.uptime = 530; in testBgTimeBase()
99 clocks.realtime = clocks.uptime = 690; in testBgTimeBase()
116 cur = (clocks.realtime = clocks.uptime = 100) * 1000; in testScreenOffBgTimeBase()
122 cur = (clocks.realtime = clocks.uptime = 200) * 1000; in testScreenOffBgTimeBase()
[all …]
DBatteryStatsDualTimerTest.java33 clocks.realtime = clocks.uptime = 100; in testResetDetach()
49 clocks.realtime = clocks.uptime = 200; in testResetDetach()
56 clocks.realtime = clocks.uptime = 300; in testResetDetach()
DMockClocks.java21 public long uptime; field in MockClocks
30 return uptime; in uptimeMillis()
DBatteryStatsNoteTest.java101 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked()
104 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked()
147 clocks.uptime = clocks.realtime; in testNoteUidProcessStateLocked()
262 clocks.realtime = clocks.uptime = 100; in testNoteScreenStateTimersLocked()
266 clocks.realtime = clocks.uptime = 200; in testNoteScreenStateTimersLocked()
273 clocks.realtime = clocks.uptime = 310; in testNoteScreenStateTimersLocked()
280 clocks.realtime = clocks.uptime = 400; in testNoteScreenStateTimersLocked()
287 clocks.realtime = clocks.uptime = 1000; in testNoteScreenStateTimersLocked()
305 clocks.realtime = clocks.uptime = 100; in testAlarmStartAndFinishLocked()
307 clocks.realtime = clocks.uptime = 5000; in testAlarmStartAndFinishLocked()
[all …]
DBatteryStatsTimeBaseTest.java41 public void populate(long uptime, long realtime, boolean running, long pastUptime, in populate() argument
44 mUptime = uptime; in populate()
55 public void verify(long uptime, long realtime, boolean running, long pastUptime, in verify() argument
58 Assert.assertEquals(uptime, mUptime); in verify()
DBatteryStatsDurationTimerTest.java132 clocks.uptime = clocks.realtime = 24_200; in testReset()
161 clocks.uptime = clocks.realtime = 7_000; in testResetAndDetach()
181 clocks.uptime = 10; in testParceling()
DBatteryStatsSamplingTimerTest.java143 clocks.uptime = 0; in testSampleTimerSummaryParceling()
161 clocks.uptime = 20; in testSampleTimerSummaryParceling()
DBatteryStatsStopwatchTimerTest.java146 return clocks.realtime = clocks.uptime = time; in updateTime()
DBatteryStatsCpuTimesTest.java1262 mClocks.realtime = mClocks.uptime = 0; in testRemoveUidCpuTimes()
1270 mClocks.realtime = mClocks.uptime = 100_000; in testRemoveUidCpuTimes()
1274 mClocks.realtime = mClocks.uptime = 200_000; in testRemoveUidCpuTimes()
1280 mClocks.realtime = mClocks.uptime = 400_000; in testRemoveUidCpuTimes()
1292 mClocks.realtime = mClocks.uptime = 800_000; in testRemoveUidCpuTimes()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DClientWakelockTracker.java40 long uptime = SystemClock.uptimeMillis(); in startTracking() local
41 client.startAttributingWakelock(requestId, token, numRequestsInQueue, uptime); in startTracking()
42 updateConcurrentRequests(numRequestsInQueue, uptime); in startTracking()
53 long uptime = SystemClock.uptimeMillis(); in stopTracking() local
54 client.stopAttributingWakelock(requestId, token, uptime); in stopTracking()
60 updateConcurrentRequests(numRequestsInQueue, uptime); in stopTracking()
65 long uptime = SystemClock.uptimeMillis(); in stopTrackingAll() local
68 client.stopAllPendingRequests(uptime); in stopTrackingAll()
76 long uptime = SystemClock.uptimeMillis(); in getClientRequestStats() local
81 client.updatePendingRequestWakelockTime(uptime); in getClientRequestStats()
DClientWakelockAccountant.java91 public synchronized long updatePendingRequestWakelockTime(long uptime) { in updatePendingRequestWakelockTime() argument
95 wlInfo.updateTime(uptime); in updatePendingRequestWakelockTime()
/frameworks/rs/script_api/
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/
DBatteryStatsImpl.java371 final long uptime = mClocks.uptimeMillis();
373 addHistoryRecordLocked(elapsedRealtime, uptime);
1198 public void init(long uptime, long realtime) { in init() argument
1203 mUptimeStart = uptime; in init()
1209 public void reset(long uptime, long realtime) { in reset() argument
1214 mUptimeStart = uptime; in reset()
1218 mUnpluggedUptime = getUptime(uptime); in reset()
1260 public boolean setRunning(boolean running, long uptime, long realtime) { in setRunning() argument
1264 mUptimeStart = uptime; in setRunning()
1266 long batteryUptime = mUnpluggedUptime = getUptime(uptime); in setRunning()
[all …]
DProcessCpuTracker.java449 final long uptime = SystemClock.uptimeMillis(); in collectStats()
491 st.rel_uptime = uptime - st.base_uptime; in collectStats()
492 st.base_uptime = uptime; in collectStats()
/frameworks/rs/script_api/include/
Drs_time.rsh105 * rsUptimeMillis: System uptime in milliseconds
107 * Returns the current system clock (uptime) in milliseconds.
115 * rsUptimeNanos: System uptime in nanoseconds
117 * Returns the current system clock (uptime) in nanoseconds.
/frameworks/base/core/proto/android/service/
Dprocstats.proto57 // CPU uptime at start of report.
60 // CPU uptime at end of report.
119 // Millisecond uptime duration spent in this state
224 // Millisecond uptime total duration this association was around.
236 // Millisecond uptime duration spent in this state
/frameworks/base/services/core/java/com/android/server/wm/
DWindowChangeAnimationSpec.java173 long uptime = SystemClock.uptimeMillis(); in calculateStatusBarTransitionStartTime() local
174 return Math.max(uptime, uptime + ((long) (((float) mAnimation.getDuration()) * 0.99f)) in calculateStatusBarTransitionStartTime()
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java344 final long uptime = SystemClock.elapsedRealtime(); in maybeCrashWithTerribleFailure() local
368 final boolean justBooted = uptime < minUptimeBeforeCrash; in maybeCrashWithTerribleFailure()
/frameworks/native/cmds/dumpstate/
DAndroid.bp134 "uptime",
/frameworks/hardware/interfaces/stats/1.0/
Dtypes.hal188 * Represents the speech DSP stat of total uptime, downtime, crash count and recover count.
/frameworks/base/services/core/java/com/android/server/
DEventLogTags.logtags148 3011 system_server_start (start_count|1),(uptime|2|3),(elapse_time|2|3)
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java11977 long uptime = SystemClock.uptimeMillis(); in dumpGraphicsHardwareUsage() local
11980 pw.println("Uptime: " + uptime + " Realtime: " + realtime); in dumpGraphicsHardwareUsage()
12198 private final void dumpApplicationMemoryUsageHeader(PrintWriter pw, long uptime, in dumpApplicationMemoryUsageHeader() argument
12205 pw.print("time,"); pw.print(uptime); pw.print(","); pw.println(realtime); in dumpApplicationMemoryUsageHeader()
12208 pw.println("Uptime: " + uptime + " Realtime: " + realtime); in dumpApplicationMemoryUsageHeader()
12364 long uptime = SystemClock.uptimeMillis(); in dumpApplicationMemoryUsage() local
12393 dumpApplicationMemoryUsageHeader(pw, uptime, realtime, in dumpApplicationMemoryUsage()
12430 … dumpApplicationMemoryUsageHeader(pw, uptime, realtime, opts.isCheckinRequest, opts.isCompact); in dumpApplicationMemoryUsage()
16079 long uptime = SystemClock.uptimeMillis(); in stopAssociationLocked() local
16080 ass.mTime += uptime - ass.mStartTime; in stopAssociationLocked()
[all …]
/frameworks/base/cmds/statsd/src/
Datoms.proto2921 // Device uptime when activity started.
4483 // Millisecond uptime duration spent in this state
4572 // Millisecond uptime total duration this association was around.
4582 // Millisecond uptime duration spent in this state
4625 // CPU uptime at start of report.
4628 // CPU uptime at end of report.
5776 // The total Speech DSP uptime in milliseconds.
/frameworks/base/core/proto/android/os/
Dbatterystats.proto91 // Total uptime duration measured with screen off or dozing.

12