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

/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
H A DPanService.java389 int prevState;
394 prevState = BluetoothProfile.STATE_DISCONNECTED;
398 prevState = panDevice.mState;
409 if (prevState == BluetoothProfile.STATE_DISCONNECTED && state == BluetoothProfile.STATE_DISCONNECTING) {
410 Log.d(TAG, "Ignoring state change from " + prevState + " to " + state);
414 Log.d(TAG, "handlePanDeviceStateChange preState: " + prevState + " state: " + state);
415 if (prevState == state) return;
447 state + ", prevState = " + prevState);
451 (prevState
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DAdapterProperties.java324 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { argument
326 !validateProfileConnectionState(prevState)) {
332 + "prevState " + prevState + " state " + state);
337 updateProfileConnectionState(profile, state, prevState);
339 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) {
347 convertToAdapterState(prevState));
352 + prevState + " -> " + state);
380 private boolean updateCountersAndCheckForConnectionStateChange(int state, int prevState) { argument
381 switch (prevState) {
[all...]
H A DProfileService.java232 int profileId, int newState, int prevState) {
235 adapterService.onProfileConnectionStateChanged(device, profileId, newState, prevState);
231 notifyProfileConnectionStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) argument
H A DAdapterService.java228 public void onProfileConnectionStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) { argument
234 b.putInt("prevState", prevState);
304 private void processProfileStateChanged(BluetoothDevice device, int profileId, int newState, int prevState) { argument
325 binder.sendConnectionStateChange(device, profileId, newState,prevState);
361 Integer prevState = mProfileServicesState.get(serviceName);
362 if (prevState != null && prevState != state) {
628 void updateAdapterState(int prevState, int newState){ argument
634 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState,newStat
1313 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument
2081 sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
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/Launcher3/src/com/android/launcher3/
H A DFastBitmapDrawable.java176 State prevState = mState;
188 mPropertyAnimator.setDuration(getDurationForStateChange(prevState, newState));
189 mPropertyAnimator.setStartDelay(getStartDelayForStateChange(prevState, newState));
H A DBubbleTextView.java566 FastBitmapDrawable.State prevState = FastBitmapDrawable.State.NORMAL;
568 prevState = ((FastBitmapDrawable) mIcon).getCurrentState();
592 ((FastBitmapDrawable) mIcon).setState(prevState);
637 FastBitmapDrawable.State prevState = d.getCurrentState();
642 .setStartDelay(getStartDelayForStateChange(prevState, focusState))
643 .setDuration(d.getDurationForStateChange(prevState, focusState))
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
H A DA2dpSinkStateMachine.java734 // This method does not check for error conditon (newState == prevState)
735 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
740 prevState,
746 private void broadcastAudioState(BluetoothDevice device, int state, int prevState) { argument
749 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
754 log("A2DP Playing state : device: " + device + " State:" + prevState + "->" + state);
812 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument
814 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
819 log("Connection state " + device + ": " + prevState + "->" + state);
821 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/pbapclient/
H A DPbapPCEClient.java269 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { argument
271 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
276 Log.d(TAG,"Connection state " + device + ": " + prevState + "->" + state);
/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/sap/
H A DSapService.java466 int prevState = mState;
469 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
476 mState, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientStateMachine.java2280 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { argument
2282 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
2291 Log.d(TAG, "Audio state " + device + ": " + prevState + "->" + newState);
2294 // This method does not check for error condition (newState == prevState)
2295 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
2296 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + newState);
2304 newState, prevState);
2306 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapService.java490 int prevState = mState;
493 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
500 mState, prevState);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetStateMachine.java1128 // TODO(BT) should I save the state for next broadcast as the prevState?
2411 // This method does not check for error conditon (newState == prevState)
2412 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { argument
2413 log("Connection state " + device + ": " + prevState + "->" + newState);
2414 if(prevState == BluetoothProfile.STATE_CONNECTED) {
2423 newState, prevState);
2425 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
2432 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { argument
2433 if(prevState == BluetoothHeadset.STATE_AUDIO_CONNECTED) {
2439 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
[all...]

Completed in 468 milliseconds