コード例 #1
0
 public void notePhoneState(int state) {
   enforceCallingPermission();
   int simState = TelephonyManager.getDefault().getSimState();
   synchronized (mStats) {
     mStats.notePhoneStateLocked(state, simState);
   }
 }
コード例 #2
0
 public void noteBluetoothOn() {
   enforceCallingPermission();
   BluetoothHeadset headset = new BluetoothHeadset(mContext, null);
   synchronized (mStats) {
     mStats.noteBluetoothOnLocked();
     mStats.setBtHeadset(headset);
   }
 }
コード例 #3
0
 public void noteBluetoothOff() {
   enforceCallingPermission();
   synchronized (mStats) {
     mBluetoothPendingStats = false;
     mStats.noteBluetoothOffLocked();
   }
   mAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mBluetoothHeadset);
 }
コード例 #4
0
 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;
     }
   }
 }
コード例 #5
0
 public void noteWifiStopped(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiStoppedLocked(ws);
   }
 }
コード例 #6
0
 public void noteStopWakelock(int uid, int pid, String name, int type) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteStopWakeLocked(uid, pid, name, type);
   }
 }
コード例 #7
0
 public void noteWifiRunningChanged(WorkSource oldWs, WorkSource newWs) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiRunningChangedLocked(oldWs, newWs);
   }
 }
コード例 #8
0
 public void noteStopSensor(int uid, int sensor) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteStopSensorLocked(uid, sensor);
   }
 }
コード例 #9
0
 public void noteNetworkInterfaceType(String iface, int type) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteNetworkInterfaceTypeLocked(iface, type);
   }
 }
コード例 #10
0
 public void notePhoneDataConnectionState(int dataType, boolean hasData) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.notePhoneDataConnectionStateLocked(dataType, hasData);
   }
 }
コード例 #11
0
 public void noteWifiMulticastDisabled(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiMulticastDisabledLocked(uid);
   }
 }
コード例 #12
0
 public void notePhoneOn() {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.notePhoneOnLocked();
   }
 }
コード例 #13
0
 public void notePhoneSignalStrength(SignalStrength signalStrength) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.notePhoneSignalStrengthLocked(signalStrength);
   }
 }
コード例 #14
0
 public void noteUserActivity(int uid, int event) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteUserActivityLocked(uid, event);
   }
 }
コード例 #15
0
 public void noteInputEvent() {
   enforceCallingPermission();
   mStats.noteInputEventAtomic();
 }
コード例 #16
0
 public void noteScreenBrightness(int brightness) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteScreenBrightnessLocked(brightness);
   }
 }
コード例 #17
0
 public void noteFullWifiLockAcquired(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteFullWifiLockAcquiredLocked(uid);
   }
 }
コード例 #18
0
 public void noteScanWifiLockReleasedFromSource(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteScanWifiLockReleasedFromSourceLocked(ws);
   }
 }
コード例 #19
0
 public void noteScanWifiLockReleased(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteScanWifiLockReleasedLocked(uid);
   }
 }
コード例 #20
0
 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, int type) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteStopWakeFromSourceLocked(ws, pid, name, type);
   }
 }
コード例 #21
0
 public void noteFullWifiLockAcquiredFromSource(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteFullWifiLockAcquiredFromSourceLocked(ws);
   }
 }
コード例 #22
0
 public void noteWifiOff() {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiOffLocked();
   }
 }
コード例 #23
0
 public void noteWifiMulticastDisabledFromSource(WorkSource ws) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteWifiMulticastDisabledFromSourceLocked(ws);
   }
 }
コード例 #24
0
 public void noteStartAudio(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteAudioOnLocked(uid);
   }
 }
コード例 #25
0
 public void setBatteryState(int status, int health, int plugType, int level, int temp, int volt) {
   enforceCallingPermission();
   mStats.setBatteryState(status, health, plugType, level, temp, volt);
 }
コード例 #26
0
 public void noteStopVideo(int uid) {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteVideoOffLocked(uid);
   }
 }