Home
last modified time | relevance | path

Searched refs:realtime (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSensorTest.java38 clocks.realtime = 100; in testSensorStartStop()
44 clocks.realtime = 200; in testSensorStartStop()
51 clocks.realtime = 400; in testSensorStartStop()
63 clocks.realtime * 1000, BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
67 clocks.realtime * 1000, BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
77 curr = 1000 * (clocks.realtime = clocks.uptime = 100); in testCountingWhileOffBattery()
82 curr = 1000 * (clocks.realtime = clocks.uptime = 200); in testCountingWhileOffBattery()
86 curr = 1000 * (clocks.realtime = clocks.uptime = 215); in testCountingWhileOffBattery()
94 curr = 1000 * (clocks.realtime = clocks.uptime = 550); in testCountingWhileOffBattery()
98 curr = 1000 * (clocks.realtime = clocks.uptime = 678); in testCountingWhileOffBattery()
[all …]
DBatteryStatsBackgroundStatsTest.java46 clocks.realtime = clocks.uptime = 10; in testBgTimeBase()
47 cur = clocks.realtime * 1000; in testBgTimeBase()
53 clocks.realtime = clocks.uptime = 100; in testBgTimeBase()
54 cur = clocks.realtime * 1000; in testBgTimeBase()
60 clocks.realtime = clocks.uptime = 201; in testBgTimeBase()
61 cur = clocks.realtime * 1000; in testBgTimeBase()
67 clocks.realtime = clocks.uptime = 303; in testBgTimeBase()
68 cur = clocks.realtime * 1000; in testBgTimeBase()
75 clocks.realtime = clocks.uptime = 409; in testBgTimeBase()
76 cur = clocks.realtime * 1000; in testBgTimeBase()
[all …]
DBatteryStatsStopwatchTimerTest.java40 timeBase.setRunning(false, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount()
81 timeBase.setRunning(true, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount()
122 timeBase.setRunning(false, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount()
128 timeBase.setRunning(true, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount()
138 timeBase.setRunning(false, 1000 * clocks.realtime, 1000 * clocks.realtime); in testCount()
144 return clocks.realtime = clocks.uptime = time; in updateTime()
DBatteryStatsDualTimerTest.java31 clocks.realtime = clocks.uptime = 100; in testResetDetach()
47 clocks.realtime = clocks.uptime = 200; in testResetDetach()
48 timer.startRunningLocked(clocks.realtime); in testResetDetach()
54 clocks.realtime = clocks.uptime = 300; in testResetDetach()
55 timer.stopRunningLocked(clocks.realtime); in testResetDetach()
DBatteryStatsNoteTest.java100 .noteStartWakeLocked(pid, name, WAKE_TYPE_PARTIAL, clocks.realtime); in testNoteStartWakeLocked()
102 clocks.realtime = clocks.uptime = 100; in testNoteStartWakeLocked()
105 clocks.realtime = clocks.uptime = 220; in testNoteStartWakeLocked()
106 bi.getUidStatsLocked(UID).noteStopWakeLocked(pid, name, WAKE_TYPE_PARTIAL, clocks.realtime); in testNoteStartWakeLocked()
147 clocks.realtime += entry.getValue(); in testNoteUidProcessStateLocked()
148 clocks.uptime = clocks.realtime; in testNoteUidProcessStateLocked()
153 long elapsedTimeUs = clocks.realtime * 1000; in testNoteUidProcessStateLocked()
263 clocks.realtime = clocks.uptime = 100; in testNoteScreenStateTimersLocked()
267 clocks.realtime = clocks.uptime = 200; in testNoteScreenStateTimersLocked()
274 clocks.realtime = clocks.uptime = 310; in testNoteScreenStateTimersLocked()
[all …]
DMockClocks.java20 public long realtime; field in MockClocks
25 return realtime; in elapsedRealtime()
DBatteryStatsTimeBaseTest.java40 public void populate(long uptime, long realtime, boolean running, long pastUptime, in populate() argument
44 mRealtime = realtime; in populate()
54 public void verify(long uptime, long realtime, boolean running, long pastUptime, in verify() argument
58 Assert.assertEquals(realtime, mRealtime); in verify()
DBatteryStatsSamplingTimerTest.java140 clocks.realtime = 0; in testSampleTimerSummaryParceling()
158 clocks.realtime = 20; in testSampleTimerSummaryParceling()
DBatteryStatsDurationTimerTest.java116 clocks.realtime = 100; in testParceling()
DBatteryStatsCpuTimesTest.java1248 mClocks.realtime = mClocks.uptime = 0; in testRemoveUidCpuTimes()
1256 mClocks.realtime = mClocks.uptime = 100_000; in testRemoveUidCpuTimes()
1260 mClocks.realtime = mClocks.uptime = 200_000; in testRemoveUidCpuTimes()
1266 mClocks.realtime = mClocks.uptime = 400_000; in testRemoveUidCpuTimes()
1278 mClocks.realtime = mClocks.uptime = 800_000; in testRemoveUidCpuTimes()
/frameworks/base/core/proto/android/server/
Dalarmmanagerservice.proto182 // Start time in terms of elapsed realtime.
184 // End time in terms of elapsed realtime.
201 // in terms of elapsed realtime.
232 // The last time this filter when in flight, in terms of elapsed realtime.
239 // in terms of elapsed realtime.
253 // Time when this entry was created, in terms of elapsed realtime.
Dwindowmanagertrace.proto45 /* required: elapsed realtime in nanos since boot of when this entry was logged */
/frameworks/base/core/proto/android/service/
Dprocstats.proto50 // Elapsed realtime at start of report.
53 // Elapsed realtime at end of report.
/frameworks/native/services/surfaceflinger/layerproto/
Dlayerstrace.proto44 /* required: elapsed realtime in nanos since boot of when this entry was logged */
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1128 public void init(long uptime, long realtime) { in init() argument
1134 mRealtimeStart = realtime; in init()
1139 public void reset(long uptime, long realtime) { in reset() argument
1145 mRealtimeStart = realtime; in reset()
1150 mUnpluggedRealtime = getRealtime(realtime); in reset()
1206 public boolean setRunning(boolean running, long uptime, long realtime) { in setRunning() argument
1211 mRealtimeStart = realtime; in setRunning()
1213 long batteryRealtime = mUnpluggedRealtime = getRealtime(realtime); in setRunning()
1216 mObservers.get(i).onTimeStarted(realtime, batteryUptime, batteryRealtime); in setRunning()
1220 mPastRealtime += realtime - mRealtimeStart; in setRunning()
[all …]
/frameworks/base/core/proto/android/os/
Dbatterystats.proto76 // Total realtime duration (= SINCE_UNPLUGGED battery_realtime_millis.)
85 // Total realtime duration measured with screen off or dozing.
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java18435 long realtime = SystemClock.elapsedRealtime(); in dumpGraphicsHardwareUsage() local
18437 pw.println("Uptime: " + uptime + " Realtime: " + realtime); in dumpGraphicsHardwareUsage()
18655 long realtime, boolean isCheckinRequest, boolean isCompact) { in dumpApplicationMemoryUsageHeader() argument
18661 pw.print("time,"); pw.print(uptime); pw.print(","); pw.println(realtime); in dumpApplicationMemoryUsageHeader()
18664 pw.println("Uptime: " + uptime + " Realtime: " + realtime); in dumpApplicationMemoryUsageHeader()
18821 long realtime = SystemClock.elapsedRealtime(); in dumpApplicationMemoryUsage() local
18849 dumpApplicationMemoryUsageHeader(pw, uptime, realtime, in dumpApplicationMemoryUsage()
18886 … dumpApplicationMemoryUsageHeader(pw, uptime, realtime, opts.isCheckinRequest, opts.isCompact); in dumpApplicationMemoryUsage()