/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterProperties.java | 290 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 292 !validateProfileConnectionState(prevState)) { in sendConnectionStateChange() 298 + "prevState " + prevState + " state " + state); in sendConnectionStateChange() 303 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange() 305 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) { in sendConnectionStateChange() 313 convertToAdapterState(prevState)); in sendConnectionStateChange() 318 + prevState + " -> " + state); in sendConnectionStateChange() 346 private boolean updateCountersAndCheckForConnectionStateChange(int state, int prevState) { in updateCountersAndCheckForConnectionStateChange() argument 347 switch (prevState) { in updateCountersAndCheckForConnectionStateChange()
|
D | AdapterService.java | 151 …ProfileConnectionStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) { in onProfileConnectionStateChanged() argument 157 b.putInt("prevState", prevState); in onProfileConnectionStateChanged() 162 …id processProfileStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) { in processProfileStateChanged() argument 172 binder.sendConnectionStateChange(device, profileId, newState,prevState); in processProfileStateChanged() 192 Integer prevState = mProfileServicesState.get(serviceName); in processProfileServiceStateChanged() local 193 if (prevState != null && prevState != state) { in processProfileServiceStateChanged() 323 void updateAdapterState(int prevState, int newState){ in updateAdapterState() argument 329 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState,newState); in updateAdapterState() 834 device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 837 service.sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange() [all …]
|
D | ProfileService.java | 202 int profileId, int newState, int prevState) { in notifyProfileConnectionStateChanged() argument 205 svc.onProfileConnectionStateChanged(device, profileId, newState, prevState); in notifyProfileConnectionStateChanged()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 364 int prevState; in handlePanDeviceStateChange() local 368 prevState = BluetoothProfile.STATE_DISCONNECTED; in handlePanDeviceStateChange() 370 prevState = panDevice.mState; in handlePanDeviceStateChange() 373 Log.d(TAG, "handlePanDeviceStateChange preState: " + prevState + " state: " + state); in handlePanDeviceStateChange() 374 if (prevState == state) return; in handlePanDeviceStateChange() 408 (prevState == BluetoothProfile.STATE_CONNECTED || in handlePanDeviceStateChange() 409 prevState == BluetoothProfile.STATE_DISCONNECTING)) { in handlePanDeviceStateChange() 437 prevState + "->" + state); in handlePanDeviceStateChange() 438 notifyProfileConnectionStateChanged(device, BluetoothProfile.PAN, state, prevState); in handlePanDeviceStateChange() 441 intent.putExtra(BluetoothPan.EXTRA_PREVIOUS_STATE, prevState); in handlePanDeviceStateChange()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 678 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { in broadcastConnectionState() argument 685 prevState, in broadcastConnectionState() 691 private void broadcastAudioState(BluetoothDevice device, int state, int prevState) { in broadcastAudioState() argument 694 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastAudioState() 699 log("A2DP Playing state : device: " + device + " State:" + prevState + "->" + state); in broadcastAudioState() 739 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { in onConnectionStateChanged() argument 741 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in onConnectionStateChanged() 746 log("Connection state " + device + ": " + prevState + "->" + state); in onConnectionStateChanged() 747 … mService.notifyProfileConnectionStateChanged(device, BluetoothProfile.A2DP, state, prevState); in onConnectionStateChanged()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidService.java | 175 int prevState = (prevStateInteger == null) ? 178 convertHalState(halState)+", prevState:"+prevState); 180 prevState == BluetoothInputDevice.STATE_DISCONNECTED && 565 int prevState = (prevStateInteger == null) ? BluetoothInputDevice.STATE_DISCONNECTED : in broadcastConnectionState() local 567 if (prevState == newState) { in broadcastConnectionState() 576 log("Connection state " + device + ": " + prevState + "->" + newState); in broadcastConnectionState() 578 newState, prevState); in broadcastConnectionState() 580 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 1238 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { in broadcastConnectionState() argument 1239 log("Connection state " + device + ": " + prevState + "->" + newState); in broadcastConnectionState() 1240 if(prevState == BluetoothProfile.STATE_CONNECTED) { in broadcastConnectionState() 1249 newState, prevState); in broadcastConnectionState() 1251 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState() 1257 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { in broadcastAudioState() argument 1258 if(prevState == BluetoothHeadset.STATE_AUDIO_CONNECTED) { in broadcastAudioState() 1264 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastAudioState() 1268 log("Audio state " + device + ": " + prevState + "->" + newState); in broadcastAudioState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 649 int prevState = mState; in setState() local 652 intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, prevState); in setState() 659 mState, prevState); in setState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
D | HealthService.java | 578 BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) { in callHealthChannelCallback() argument 581 log("Health Device Callback: " + device + " State Change: " + prevState + "->" + in callHealthChannelCallback() 601 callback.onHealthChannelStateChange(config, device, prevState, state, dupedFd, id); in callHealthChannelCallback()
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
D | VoiceDialerActivity.java | 465 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive() local 476 } else if (prevState == BluetoothHeadset.STATE_AUDIO_CONNECTED) { in onReceive()
|