/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
H A D | A2dpStateMachine.java | 662 // This method does not check for error conditon (newState == prevState) 663 private void broadcastConnectionState(int newState, int prevState) { argument 664 log("Connection state " + mDevice + ": " + profileStateToString(prevState) 668 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); 676 private void broadcastAudioState(int newState, int prevState) { argument 677 log("A2DP Playing state : device: " + mDevice + " State:" + audioStateToString(prevState) 682 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | PhonePolicy.java | 171 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); 173 processProfileStateChanged(device, msg.arg1, nextState, prevState); 272 int prevState) { 274 + prevState + " -> " + nextState); 287 if (prevState == BluetoothProfile.STATE_CONNECTING 271 processProfileStateChanged(BluetoothDevice device, int profileId, int nextState, int prevState) argument
|
H A D | AdapterProperties.java | 529 int prevState = connIntent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); 533 + prevState + " -> " + state); 539 if (!isNormalStateTransition(prevState, state)) { 542 + ", device=" + device + ", " + prevState + " -> " + state); 544 sendConnectionStateChange(device, profile, state, prevState); 547 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument 548 if (!validateProfileConnectionState(state) || !validateProfileConnectionState(prevState)) { 553 errorLog("sendConnectionStateChange: invalid state transition " + prevState + " -> " 559 updateProfileConnectionState(profile, state, prevState); 561 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) { 604 isNormalStateTransition(int prevState, int nextState) argument 619 updateCountersAndCheckForConnectionStateChange(int state, int prevState) argument [all...] |
H A D | AdapterService.java | 593 void updateAdapterState(int prevState, int newState) { argument 601 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState, newState); 613 && prevState != BluetoothAdapter.STATE_OFF) { 1367 int prevState) { 1372 service.sendConnectionStateChange(device, profile, state, prevState); 2087 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument 2094 mAdapterProperties.sendConnectionStateChange(device, profile, state, prevState); 1366 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
H A D | HearingAidStateMachine.java | 509 // This method does not check for error condition (newState == prevState) 510 private void broadcastConnectionState(int newState, int prevState) { argument 511 log("Connection state " + mDevice + ": " + profileStateToString(prevState) 515 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
H A D | PbapClientStateMachine.java | 334 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument 339 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { 342 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + state); 344 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
H A D | AdapterServiceTest.java | 140 private void verifyStateChange(int prevState, int currState, int callNumber, int timeoutMs) { argument 143 .times(callNumber)).onBluetoothStateChange(prevState, currState);
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
H A D | HearingAidServiceTest.java | 167 int newState, int prevState) { 174 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, 166 verifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, int newState, int prevState) argument
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
H A D | A2dpServiceTest.java | 174 int newState, int prevState) { 181 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, 191 int newState, int prevState) { 197 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, 173 verifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, int newState, int prevState) argument 190 verifyAudioStateIntent(int timeoutMs, BluetoothDevice device, int newState, int prevState) argument
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
H A D | HeadsetServiceAndStateMachineTest.java | 1152 int newState, int prevState) { 1155 HeadsetTestUtils.verifyConnectionStateBroadcast(device, newState, prevState, intent, false); 1165 int prevState) { 1168 HeadsetTestUtils.verifyAudioStateBroadcast(device, newState, prevState, intent); 1151 waitAndVerifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, int newState, int prevState) argument 1164 waitAndVerifyAudioStateIntent(int timeoutMs, BluetoothDevice device, int newState, int prevState) argument
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/ |
H A D | HidDeviceTest.java | 182 int prevState) { 188 Assert.assertEquals(prevState, 181 verifyConnectionStateIntent(int timeoutMs, BluetoothDevice device, int newState, int prevState) argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
H A D | A2dpSinkStateMachine.java | 735 // This method does not check for error conditon (newState == prevState) 736 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument 740 mIntentBroadcastHandler.obtainMessage(MSG_CONNECTION_STATE_CHANGED, prevState, 744 private void broadcastAudioState(BluetoothDevice device, int state, int prevState) { argument 747 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); 752 log("A2DP Playing state : device: " + device + " State:" + prevState + "->" + state); 811 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument 812 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { 816 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); 821 log("Connection state " + device + ": " + prevState [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
H A D | MceStateMachine.java | 166 private void onConnectionStateChanged(int prevState, int state) { argument 172 Log.d(TAG, "Connection state " + mDevice + ": " + prevState + "->" + state); 174 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { 178 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
H A D | HealthService.java | 668 BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) { 672 "Health Device Callback: " + device + " State Change: " + prevState + "->" + state); 691 callback.onHealthChannelStateChange(config, device, prevState, state, dupedFd, id); 667 callHealthChannelCallback(BluetoothHealthAppConfiguration config, BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
H A D | HeadsetClientStateMachine.java | 1740 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { argument 1742 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); 1750 Log.d(TAG, "Audio state " + device + ": " + prevState + "->" + newState); 1754 // This method does not check for error condition (newState == prevState) 1755 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument 1757 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + newState); 1766 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
|