public void noteBluetoothOff() {
   enforceCallingPermission();
   synchronized (mStats) {
     mBluetoothPendingStats = false;
     mStats.noteBluetoothOffLocked();
   }
   mAdapter.closeProfileProxy(BluetoothProfile.HEADSET, mBluetoothHeadset);
 }
 public void noteBluetoothOff() {
   enforceCallingPermission();
   synchronized (mStats) {
     mStats.noteBluetoothOffLocked();
   }
 }