public void notePhoneState(int state) {
   enforceCallingPermission();
   int simState = TelephonyManager.getDefault().getSimState();
   synchronized (mStats) {
     mStats.notePhoneStateLocked(state, simState);
   }
 }
 public void noteBluetoothOn() {
   enforceCallingPermission();
   BluetoothHeadset headset = new BluetoothHeadset(mContext, null);
   synchronized (mStats) {
     mStats.noteBluetoothOnLocked();
     mStats.setBtHeadset(headset);
   }
 }
 public void noteBluetoothOff() {
   enforceCallingPermission();
   synchronized (mStats) {
     mBluetoothPendingStats = false;
     mStats.noteBluetoothOffLocked();
   }
   mAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mBluetoothHeadset);
 }
 public void noteBluetoothOn() {
   enforceCallingPermission();
   mAdapter = BluetoothAdapter.getDefaultAdapter();
   if (mAdapter != null) {
     mAdapter.getProfileProxy(
         mContext, mBluetoothProfileServiceListener, BluetoothProfile.HEADSET);
   }
   synchronized (mStats) {
     if (mBluetoothHeadset != null) {
       mStats.noteBluetoothOnLocked();
       mStats.setBtHeadset(mBluetoothHeadset);
     } else {
       mBluetoothPendingStats = true;
     }
   }
 }
 public void noteWifiStopped(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiStoppedLocked(ws);
   }
 }
 public void noteStopWakelock(int uid, int pid, String name, int type) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteStopWakeLocked(uid, pid, name, type);
   }
 }
 public void noteWifiRunningChanged(WorkSource oldWs, WorkSource newWs) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiRunningChangedLocked(oldWs, newWs);
   }
 }
 public void noteStopSensor(int uid, int sensor) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteStopSensorLocked(uid, sensor);
   }
 }
 public void noteNetworkInterfaceType(String iface, int type) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteNetworkInterfaceTypeLocked(iface, type);
   }
 }
 public void notePhoneDataConnectionState(int dataType, boolean hasData) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.notePhoneDataConnectionStateLocked(dataType, hasData);
   }
 }
 public void noteWifiMulticastDisabled(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiMulticastDisabledLocked(uid);
   }
 }
 public void notePhoneOn() {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.notePhoneOnLocked();
   }
 }
 public void notePhoneSignalStrength(SignalStrength signalStrength) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.notePhoneSignalStrengthLocked(signalStrength);
   }
 }
 public void noteUserActivity(int uid, int event) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteUserActivityLocked(uid, event);
   }
 }
 public void noteInputEvent() {
   enforceCallingPermission();
   mStats.noteInputEventAtomic();
 }
 public void noteScreenBrightness(int brightness) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteScreenBrightnessLocked(brightness);
   }
 }
 public void noteFullWifiLockAcquired(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteFullWifiLockAcquiredLocked(uid);
   }
 }
 public void noteScanWifiLockReleasedFromSource(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteScanWifiLockReleasedFromSourceLocked(ws);
   }
 }
 public void noteScanWifiLockReleased(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteScanWifiLockReleasedLocked(uid);
   }
 }
 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, int type) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteStopWakeFromSourceLocked(ws, pid, name, type);
   }
 }
 public void noteFullWifiLockAcquiredFromSource(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteFullWifiLockAcquiredFromSourceLocked(ws);
   }
 }
 public void noteWifiOff() {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiOffLocked();
   }
 }
 public void noteWifiMulticastDisabledFromSource(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiMulticastDisabledFromSourceLocked(ws);
   }
 }
 public void noteStartAudio(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteAudioOnLocked(uid);
   }
 }
 public void setBatteryState(int status, int health, int plugType, int level, int temp, int volt) {
   enforceCallingPermission();
   mStats.setBatteryState(status, health, plugType, level, temp, volt);
 }
 public void noteStopVideo(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteVideoOffLocked(uid);
   }
 }