Home | History | Annotate | Download | only in os

Lines Matching defs:Sensor

2962     public void noteStartSensorLocked(int uid, int sensor) {
2968 if (DEBUG_HISTORY) Slog.v(TAG, "Start sensor to: "
2973 getUidStatsLocked(uid).noteStartSensor(sensor, elapsedRealtime);
2976 public void noteStopSensorLocked(int uid, int sensor) {
2983 if (DEBUG_HISTORY) Slog.v(TAG, "Stop sensor to: "
2987 getUidStatsLocked(uid).noteStopSensor(sensor, elapsedRealtime);
4242 * The statistics we have collected for this uid's sensor activations.
4244 final SparseArray<Sensor> mSensorStats = new SparseArray<Sensor>();
4291 public SparseArray<? extends BatteryStats.Uid.Sensor> getSensorStats() {
4834 Sensor s = mSensorStats.valueAt(ise);
4958 Uid.Sensor sensor = mSensorStats.valueAt(ise);
4959 sensor.writeToParcelLocked(out, elapsedRealtimeUs);
5095 Uid.Sensor sensor = new Sensor(sensorNumber);
5096 sensor.readFromParcelLocked(mOnBatteryTimeBase, in);
5097 mSensorStats.put(sensorNumber, sensor);
5332 public final class Sensor extends BatteryStats.Uid.Sensor {
5336 public Sensor(int handle) {
6271 public StopwatchTimer getSensorTimerLocked(int sensor, boolean create) {
6272 Sensor se = mSensorStats.get(sensor);
6277 se = new Sensor(sensor);
6278 mSensorStats.put(sensor, se);
6284 ArrayList<StopwatchTimer> timers = mSensorTimers.get(sensor);
6287 sensor, timers);
6289 t = new StopwatchTimer(Uid.this, BatteryStats.SENSOR, timers, mOnBatteryTimeBase);
6365 public void noteStartSensor(int sensor, long elapsedRealtimeMs) {
6366 StopwatchTimer t = getSensorTimerLocked(sensor, true);
6372 public void noteStopSensor(int sensor, long elapsedRealtimeMs) {
6374 StopwatchTimer t = getSensorTimerLocked(sensor, false);
6381 StopwatchTimer t = getSensorTimerLocked(Sensor.GPS, true);
6388 StopwatchTimer t = getSensorTimerLocked(Sensor.GPS, false);
8414 Uid.Sensor se = u.mSensorStats.valueAt(ise);