Lines Matching defs:Timer
149 // A set of pools of currently active timers. When a timer is queried, we will divide the
150 // elapsed time by the number of active timers to arrive at that timer's share of the time.
151 // In order to do this, we must refresh each timer whenever the number of active timers
480 public static abstract class Timer extends BatteryStats.Timer implements Unpluggable {
525 Timer(int type, ArrayList<Unpluggable> unpluggables, Parcel in) {
540 Timer(int type, ArrayList<Unpluggable> unpluggables) {
551 * Clear state of this timer. Returns true if the timer is inactive
605 * Writes a possibly null Timer to a Parcel.
608 * @param timer a Timer, or null.
610 public static void writeTimerToParcel(Parcel out, Timer timer,
612 if (timer == null) {
618 timer.writeToParcel(out, batteryRealtime);
684 public static final class SamplingTimer extends Timer {
840 public static final class StopwatchTimer extends Timer {
847 * The last time at which we updated the timer. If mNesting is > 0,
854 * The total time at which the timer was acquired, to determine if it
918 // Add this timer to the active pool
937 // Ignore attempt to stop a timer that isn't running
946 // Remove this timer from the active pool
970 // Update the total time for all other running Timers with the same type as this Timer
971 // due to a change in timer count
1864 // If we are in service, make sure the correct signal string timer is running.
1883 // If we are no longer scanning, then stop the scanning timer.
3013 * Reads a possibly null Timer from a Parcel. The timer is associated with the
3014 * proper timer pool from the given BatteryStatsImpl object.
3017 * return a new Timer, or null.
3066 Timer.writeTimerToParcel(out, mTimerPartial, batteryRealtime);
3067 Timer.writeTimerToParcel(out, mTimerFull, batteryRealtime);
3068 Timer
3072 public Timer getWakeTime(int type) {
3117 Timer.writeTimerToParcel(out, mTimer, batteryRealtime);
3121 public Timer getSensorTime() {
4023 timer if one doesn't already exist
4253 for (SamplingTimer timer : mKernelWakelockStats.values()) {
4254 mUnpluggables.remove(timer);
5282 Timer kwlt = ent.getValue();
5527 in.readInt(); // Extra 0/1 written by Timer.writeTimerToParcel
5632 Timer.writeTimerToParcel(out, kwlt, batteryRealtime);
5676 pr.println("*** Screen timer:");
5684 pr.println("*** Phone timer:");
5696 pr.println("*** Wifi timer:");
5698 pr.println("*** WifiRunning timer:");
5700 pr.println("*** Bluetooth timer:");