Searched refs:prevState (Results 1 - 14 of 14) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
H A DPanService.java391 int prevState;
395 prevState = BluetoothProfile.STATE_DISCONNECTED;
397 prevState = panDevice.mState;
406 if (prevState == BluetoothProfile.STATE_DISCONNECTED && state == BluetoothProfile.STATE_DISCONNECTING) {
407 Log.d(TAG, "Ignoring state change from " + prevState + " to " + state);
411 Log.d(TAG, "handlePanDeviceStateChange preState: " + prevState + " state: " + state);
412 if (prevState == state) return;
434 state + ", prevState = " + prevState);
438 (prevState
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DAdapterProperties.java352 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument
354 !validateProfileConnectionState(prevState)) {
360 + "prevState " + prevState + " state " + state);
365 updateProfileConnectionState(profile, state, prevState);
367 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) {
375 convertToAdapterState(prevState));
380 + prevState + " -> " + state);
408 private boolean updateCountersAndCheckForConnectionStateChange(int state, int prevState) { argument
409 switch (prevState) {
[all...]
H A DProfileService.java227 int profileId, int newState, int prevState) {
229 mAdapterService.onProfileConnectionStateChanged(device, profileId, newState, prevState);
226 notifyProfileConnectionStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) argument
H A DAdapterService.java201 public void onProfileConnectionStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) { argument
207 b.putInt("prevState", prevState);
255 private void processProfileStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) { argument
265 binder.sendConnectionStateChange(device, profileId, newState,prevState);
299 Integer prevState = mProfileServicesState.get(serviceName);
300 if (prevState != null && prevState != state) {
488 void updateAdapterState(int prevState, int newState){ argument
494 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState,newStat
1162 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument
1793 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpSinkStateMachine.java680 // This method does not check for error conditon (newState == prevState)
681 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
689 prevState,
695 private void broadcastAudioState(BluetoothDevice device, int state, int prevState) { argument
698 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
703 log("A2DP Playing state : device: " + device + " State:" + prevState + "->" + state);
761 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument
763 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
768 log("Connection state " + device + ": " + prevState + "->" + state);
770 state, prevState);
[all...]
H A DA2dpStateMachine.java712 // This method does not check for error conditon (newState == prevState)
713 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
721 prevState,
727 private void broadcastAudioState(BluetoothDevice device, int state, int prevState) { argument
730 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
735 log("A2DP Playing state : device: " + device + " State:" + prevState + "->" + state);
771 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument
773 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
778 log("Connection state " + device + ": " + prevState + "->" + state);
779 mService.notifyProfileConnectionStateChanged(device, BluetoothProfile.A2DP, state, prevState);
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
H A DHidService.java176 int prevState = (prevStateInteger == null) ?
179 convertHalState(halState)+", prevState:"+prevState);
181 prevState == BluetoothInputDevice.STATE_DISCONNECTED &&
596 // This method does not check for error conditon (newState == prevState)
599 int prevState = (prevStateInteger == null) ? BluetoothInputDevice.STATE_DISCONNECTED :
601 if (prevState == newState) {
610 log("Connection state " + device + ": " + prevState + "->" + newState);
612 newState, prevState);
614 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapService.java754 int prevState = mState;
757 intent.putExtra(BluetoothPbap.PBAP_PREVIOUS_STATE, prevState);
764 mState, prevState);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationViewFragment.java738 final ConversationViewState prevState = mViewState;
739 mViewState = new ConversationViewState(prevState);
763 msg.alwaysShowImages || prevState.getShouldShowImages(msg);
766 final Integer savedExpanded = prevState.getExpansionState(msg);
787 mViewState.setShouldShowImages(msg, prevState.getShouldShowImages(msg));
794 mViewState.setReadState(msg, msg.read && !prevState.isUnread(msg));
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
H A DHealthService.java592 BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) {
595 log("Health Device Callback: " + device + " State Change: " + prevState + "->" +
615 callback.onHealthChannelStateChange(config, device, prevState, state, dupedFd, id);
591 callHealthChannelCallback(BluetoothHealthAppConfiguration config, BluetoothDevice device, int state, int prevState, ParcelFileDescriptor fd, int id) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapService.java438 int prevState = mState;
441 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
448 mState, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
H A DSapService.java462 int prevState = mState;
465 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
472 mState, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientStateMachine.java2277 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { argument
2279 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
2288 Log.d(TAG, "Audio state " + device + ": " + prevState + "->" + newState);
2291 // This method does not check for error condition (newState == prevState)
2292 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
2293 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + newState);
2301 newState, prevState);
2303 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetStateMachine.java1098 // TODO(BT) should I save the state for next broadcast as the prevState?
2358 // This method does not check for error conditon (newState == prevState)
2359 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
2360 log("Connection state " + device + ": " + prevState + "->" + newState);
2361 if(prevState == BluetoothProfile.STATE_CONNECTED) {
2370 newState, prevState);
2372 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
2379 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { argument
2380 if(prevState == BluetoothHeadset.STATE_AUDIO_CONNECTED) {
2386 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
[all...]

Completed in 220 milliseconds