Searched defs:prevState (Results 1 - 10 of 10) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DPhonePolicy.java155 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1);
157 processProfileStateChanged(device, msg.arg1, nextState, prevState);
237 BluetoothDevice device, int profileId, int nextState, int prevState) {
236 processProfileStateChanged( BluetoothDevice device, int profileId, int nextState, int prevState) argument
H A DAdapterProperties.java438 int prevState = connIntent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1);
440 sendConnectionStateChange(device, profile, state, prevState);
442 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument
444 !validateProfileConnectionState(prevState)) {
450 + "prevState " + prevState + " state " + state);
455 updateProfileConnectionState(profile, state, prevState);
457 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) {
465 convertToAdapterState(prevState));
470 + prevState
498 updateCountersAndCheckForConnectionStateChange(int state, int prevState) argument
[all...]
H A DAdapterService.java256 Integer prevState = mProfileServicesState.get(serviceName);
257 if (prevState != null && prevState != state) {
546 void updateAdapterState(int prevState, int newState){ argument
552 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState,newState);
1236 device, int profile, int state, int prevState) {
1239 service.sendConnectionStateChange(device, profile, state, prevState);
1807 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument
1812 mAdapterProperties.sendConnectionStateChange(device, profile, state, prevState);
1235 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DPbapClientStateMachine.java320 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument
325 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + state);
327 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpStateMachine.java907 // This method does not check for error conditon (newState == prevState)
908 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
914 MSG_CONNECTION_STATE_CHANGED, prevState, newState, device));
917 private void broadcastAudioState(BluetoothDevice device, int state, int prevState) { argument
920 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
925 log("A2DP Playing state : device: " + device + " State:" + prevState + "->" + state);
961 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument
963 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
969 log("Connection state " + device + ": " + prevState + "->" + state);
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
H A DA2dpSinkStateMachine.java746 // This method does not check for error conditon (newState == prevState)
747 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
752 prevState,
758 private void broadcastAudioState(BluetoothDevice device, int state, int prevState) { argument
761 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
766 log("A2DP Playing state : device: " + device + " State:" + prevState + "->" + state);
825 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument
827 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
832 log("Connection state " + device + ": " + prevState + "->" + state);
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
H A DMceStateMachine.java154 private void onConnectionStateChanged(int prevState, int state) { argument
157 if (DBG) Log.d(TAG, "Connection state " + mDevice + ": " + prevState + "->" + state);
159 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
H A DHealthService.java595 BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) {
598 log("Health Device Callback: " + device + " State Change: " + prevState + "->" +
618 callback.onHealthChannelStateChange(config, device, prevState, state, dupedFd, id);
594 callHealthChannelCallback(BluetoothHealthAppConfiguration config, BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientStateMachine.java1617 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { argument
1619 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
1629 Log.d(TAG, "Audio state " + device + ": " + prevState + "->" + newState);
1633 // This method does not check for error condition (newState == prevState)
1635 (BluetoothDevice device, int newState, int prevState) {
1637 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + newState);
1646 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
1634 broadcastConnectionState(BluetoothDevice device, int newState, int prevState) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetStateMachine.java1080 // TODO(BT) should I save the state for next broadcast as the prevState?
2301 // This method does not check for error conditon (newState == prevState)
2302 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
2303 log("Connection state " + device + ": " + prevState + "->" + newState);
2304 if (prevState == BluetoothProfile.STATE_CONNECTED) {
2310 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
2318 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { argument
2319 if (prevState == BluetoothHeadset.STATE_AUDIO_CONNECTED) {
2325 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
2329 log("Audio state " + device + ": " + prevState
[all...]

Completed in 108 milliseconds