/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | BatteryStatsTimerTest.java | 135 * to the timer. 142 TestTimer timer = new TestTimer(clocks, 0, timeBase); 143 timer.nextComputeCurrentCount = 3000; 145 // Test that starting the timer counts the unplugged time and counters 146 timer.nextComputeRunTime = 4; 147 timer.onTimeStarted(10, 20, 50); 148 Assert.assertEquals(50, timer.lastComputeRunTimeRealtime); 149 Assert.assertEquals(4, timer.getUnpluggedTime()); 150 Assert.assertEquals(3000, timer.getUnpluggedCount()); 152 // Test that stopping the timer update [all...] |
H A D | BatteryStatsSamplingTimerTest.java | 31 final BatteryStatsImpl.SamplingTimer timer = new BatteryStatsImpl.SamplingTimer(clocks, 34 timer.onTimeStarted(100, 100, 100); 37 timer.update(10, 1); 39 timer.update(20, 2); 41 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 42 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); 44 timer.endSample(); 46 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 47 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); 49 timer [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | CameraPowerCalculator.java | 38 final BatteryStats.Timer timer = u.getCameraTurnedOnTimer(); 39 if (timer != null) { 40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000;
|
H A D | FlashlightPowerCalculator.java | 36 final BatteryStats.Timer timer = u.getFlashlightTurnedOnTimer(); 37 if (timer != null) { 38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000;
|
H A D | WakelockPowerCalculator.java | 44 BatteryStats.Timer timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL); 45 if (timer != null) { 46 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType);
|
H A D | SensorPowerCalculator.java | 43 final BatteryStats.Timer timer = sensor.getSensorTime(); 44 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000;
|
H A D | BatteryStatsImpl.java | 239 // A set of pools of currently active timers. When a timer is queried, we will divide the 240 // elapsed time by the number of active timers to arrive at that timer's share of the time. 241 // In order to do this, we must refresh each timer whenever the number of active timers 1060 * The total time this timer has been running until the latest mark has been set. 1101 * Clear state of this timer. Returns true if the timer is inactive 1163 * @param timer a Timer, or null. 1165 public static void writeTimerToParcel(Parcel out, Timer timer, long elapsedRealtimeUs) { argument 1166 if (timer == null) { 1172 timer [all...] |
/frameworks/rs/scriptc/ |
H A D | rs_time.rsh | 73 * Converts the time specified by timer into a rs_tm structure that provides year, month, 81 * timer: Input time as a number of seconds since January 1, 1970. 86 rsLocaltime(rs_tm* local, const rs_time_t* timer); 93 * If timer is non-NULL, the result is also stored in the memory pointed to by 97 * timer: Location to also store the returned calendar time. 102 rsTime(rs_time_t* timer);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | HealthStatsBatteryStatsWriter.java | 51 BatteryStats.Timer timer; 90 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_FULL); 91 addTimers(uidWriter, UidHealthStats.TIMERS_WAKELOCKS_FULL, key, timer); 94 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL); 95 addTimers(uidWriter, UidHealthStats.TIMERS_WAKELOCKS_PARTIAL, key, timer); 98 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_WINDOW); 99 addTimers(uidWriter, UidHealthStats.TIMERS_WAKELOCKS_WINDOW, key, timer); 102 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_DRAW); 103 addTimers(uidWriter, UidHealthStats.TIMERS_WAKELOCKS_DRAW, key, timer); 456 * Adds a BatteryStats.Timer into a HealthStatsWriter. Safe to pass a null timer 458 addTimer(HealthStatsWriter writer, int key, BatteryStats.Timer timer) argument 468 addTimers(HealthStatsWriter writer, int key, String name, BatteryStats.Timer timer) argument [all...] |
/frameworks/rs/api/ |
H A D | rs_time.spec | 65 arg: const rs_time_t* timer, "Input time as a number of seconds since January 1, 1970." 68 Converts the time specified by timer into a @rs_tm structure that provides year, month, 78 arg: rs_time_t* timer, "Location to also store the returned calendar time." 83 If timer is non-NULL, the result is also stored in the memory pointed to by
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 145 StopWatchMap timer = GLFrameTimer.get(); 146 if (timer.LOG_MFF_RUNNING_TIMES) { 147 timer.start("glFinish " + message); 149 timer.stop("glFinish " + message);
|
/frameworks/rs/ |
H A D | rsScriptC_Lib.cpp | 84 time_t rsrTime(Context *rsc, time_t *timer) { argument 85 return time(timer); 88 tm* rsrLocalTime(Context *rsc, tm *local, time_t *timer) { argument 96 tm *tmp = localtime(timer);
|
H A D | rsRuntime.h | 122 time_t rsrTime(Context *, time_t *timer); 123 tm* rsrLocalTime(Context *, tm *local, time_t *timer);
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 57 * A constant indicating a partial wake lock timer. 62 * A constant indicating a full wake lock timer. 67 * A constant indicating a window wake lock timer. 72 * A constant indicating a sensor timer. 77 * A constant indicating a a wifi running timer 82 * A constant indicating a full wifi lock timer 92 * A constant indicating a wifi multicast timer 97 * A constant indicating a video turn on timer 102 * A constant indicating a vibrator on timer 107 * A constant indicating a foreground activity timer 2501 computeWakeLock(Timer timer, long elapsedRealtimeUs, int which) argument 2521 printWakeLock(StringBuilder sb, Timer timer, long elapsedRealtimeUs, String name, int which, String linePrefix) argument 2554 printTimer(PrintWriter pw, StringBuilder sb, Timer timer, long rawRealtime, int which, String prefix, String type) argument 2589 printWakeLockCheckin(StringBuilder sb, Timer timer, long elapsedRealtimeUs, String name, int which, String linePrefix) argument 2645 dumpTimer(PrintWriter pw, int uid, String category, String type, Timer timer, long rawRealtime, int which) argument 3313 TimerEntry(String name, int id, BatteryStats.Timer timer, long time) argument [all...] |
/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 117 self.timer = self.fig.canvas.new_timer(interval=100) 118 self.timer.add_callback(lambda: self.update()) 119 self.timer.start()
|
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 182 self.timer = self.fig.canvas.new_timer(interval=100) 183 self.timer.add_callback(lambda: self.update()) 184 self.timer.start() 189 # Handle a click event to pause or restart the timer. 193 self.timer.stop() 196 self.timer.start()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
H A D | LocationBasedCountryDetectorTest.java | 354 Timer timer = detector.getTimer(); 355 assertTrue(timer == null);
|
/frameworks/rs/driver/ |
H A D | rsdRuntimeStubs.cpp | 755 int rsTime(int *timer) { argument 757 time_t rsTime(time_t * timer) { 760 return rsrTime(rsc, (time_t *)timer); 764 rs_tm* rsLocaltime(rs_tm* local, const int *timer) { argument 766 rs_tm* rsLocaltime(rs_tm* local, const time_t *timer) { 769 return (rs_tm*)rsrLocalTime(rsc, (tm*)local, (time_t *)timer);
|
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 1723 DurationTimer timer; local 1724 timer.start(); 1730 timer.stop(); 1732 timer.durationUsecs() / 1000.0);
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipSessionGroup.java | 132 SipWakeupTimer timer, SipWakeLock wakeLock) throws SipException { 135 mWakeupTimer = timer; 142 void setWakeupTimer(SipWakeupTimer timer) { argument 143 mWakeupTimer = timer; 558 // lightweight timer 587 loge("session timer interrupted!", e); 131 SipSessionGroup(SipProfile profile, String password, SipWakeupTimer timer, SipWakeLock wakeLock) argument
|
H A D | SipService.java | 511 void setWakeupTimer(SipWakeupTimer timer) { argument 512 mSipGroup.setWakeupTimer(timer);
|
/frameworks/data-binding/prebuilds/1.0-rc0/ |
H A D | databinding-studio-bundle.jar | META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ... |