Home
last modified time | relevance | path

Searched refs:prevState (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java578 int prevState = connIntent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in sendConnectionStateChange() local
582 + prevState + " -> " + state); in sendConnectionStateChange()
587 if (!isNormalStateTransition(prevState, state)) { in sendConnectionStateChange()
590 + ", device=" + device + ", " + prevState + " -> " + state); in sendConnectionStateChange()
592 sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange()
595 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument
596 if (!validateProfileConnectionState(state) || !validateProfileConnectionState(prevState)) { in sendConnectionStateChange()
601 errorLog("sendConnectionStateChange: invalid state transition " + prevState + " -> " in sendConnectionStateChange()
607 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange()
609 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) { in sendConnectionStateChange()
[all …]
DActiveDeviceManager.java193 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in handleMessage() local
195 if (prevState == nextState) { in handleMessage()
217 if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage()
252 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in handleMessage() local
254 if (prevState == nextState) { in handleMessage()
276 if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage()
DSilenceDeviceManager.java135 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in handleMessage() local
144 } else if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage()
159 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in handleMessage() local
168 } else if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage()
DPhonePolicy.java189 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in handleMessage() local
191 processProfileStateChanged(device, msg.arg1, nextState, prevState); in handleMessage()
309 int prevState) { in processProfileStateChanged() argument
311 + prevState + " -> " + nextState); in processProfileStateChanged()
DAdapterService.java657 void updateAdapterState(int prevState, int newState) { in updateAdapterState() argument
665 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState, newState); in updateAdapterState()
683 && prevState != BluetoothAdapter.STATE_OFF) { in updateAdapterState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java562 int prevState; in handlePanDeviceStateChange() local
567 prevState = BluetoothProfile.STATE_DISCONNECTED; in handlePanDeviceStateChange()
571 prevState = panDevice.mState; in handlePanDeviceStateChange()
583 if (prevState == BluetoothProfile.STATE_DISCONNECTED in handlePanDeviceStateChange()
585 Log.d(TAG, "Ignoring state change from " + prevState + " to " + state); in handlePanDeviceStateChange()
590 Log.d(TAG, "handlePanDeviceStateChange preState: " + prevState + " state: " + state); in handlePanDeviceStateChange()
591 if (prevState == state) { in handlePanDeviceStateChange()
626 + ", prevState = " + prevState); in handlePanDeviceStateChange()
646 Log.d(TAG, "Pan Device state : device: " + device + " State:" + prevState + "->" + state); in handlePanDeviceStateChange()
649 intent.putExtra(BluetoothPan.EXTRA_PREVIOUS_STATE, prevState); in handlePanDeviceStateChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java675 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument
676 log("Connection state " + mDevice + ": " + profileStateToString(prevState) in broadcastConnectionState()
680 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
688 private void broadcastAudioState(int newState, int prevState) { in broadcastAudioState() argument
689 log("A2DP Playing state : device: " + mDevice + " State:" + audioStateToString(prevState) in broadcastAudioState()
694 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastAudioState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java332 private void onConnectionStateChanged(BluetoothDevice device, int prevState, int state) { in onConnectionStateChanged() argument
337 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
340 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + state); in onConnectionStateChanged()
342 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in onConnectionStateChanged()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DUiFactory.java119 LauncherState prevState = launcher.getStateManager().getLastState(); in onCreate()
122 && finalState == ALL_APPS && prevState == NORMAL) || BOUNCE_MAX_COUNT <= in onCreate()
139 LauncherState prevState = launcher.getStateManager().getLastState(); in onCreate()
141 if ((finalState == ALL_APPS && prevState == OVERVIEW) || BOUNCE_MAX_COUNT <= in onCreate()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java182 int prevState =
187 halState) + ", prevState:" + prevState);
190 && prevState == BluetoothHidHost.STATE_DISCONNECTED
799 int prevState = (prevStateInteger == null) ? BluetoothHidHost.STATE_DISCONNECTED in broadcastConnectionState() local
801 if (prevState == newState) { in broadcastConnectionState()
813 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + newState); in broadcastConnectionState()
815 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
DHidDeviceService.java916 int prevState = mHidDeviceState; in setAndBroadcastConnectionState() local
919 if (prevState == newState) { in setAndBroadcastConnectionState()
929 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in setAndBroadcastConnectionState()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskThumbnailCache.java87 boolean prevState = mHighResLoadingEnabled; in updateState()
89 if (prevState != mHighResLoadingEnabled) { in updateState()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java516 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument
517 log("Connection state " + mDevice + ": " + profileStateToString(prevState) in broadcastConnectionState()
521 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java215 private void onConnectionStateChanged(int prevState, int state) { in onConnectionStateChanged() argument
221 Log.d(TAG, "Connection state " + mDevice + ": " + prevState + "->" + state); in onConnectionStateChanged()
223 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
227 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java1680 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { in broadcastAudioState() argument
1688 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastAudioState()
1695 logD("Audio state " + device + ": " + prevState + "->" + newState); in broadcastAudioState()
1699 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { in broadcastConnectionState() argument
1700 logD("Connection state " + device + ": " + prevState + "->" + newState); in broadcastConnectionState()
1708 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java165 int prevState = intent.getIntExtra(EXTRA_PREVIOUS_WIFI_AP_STATE,
171 handleWifiApStateChange(currState, prevState, errorCode, ifaceName, mode);
757 private void handleWifiApStateChange(int currState, int prevState, int errorCode, in handleWifiApStateChange() argument
761 "handleWifiApStateChange, curState: " + currState + ", prevState: " + prevState in handleWifiApStateChange()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java177 int newState, int prevState) { in verifyConnectionStateIntent() argument
184 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, in verifyConnectionStateIntent()
194 int newState, int prevState) { in verifyAudioStateIntent() argument
200 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, in verifyAudioStateIntent()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java1190 int newState, int prevState) { in waitAndVerifyConnectionStateIntent() argument
1193 HeadsetTestUtils.verifyConnectionStateBroadcast(device, newState, prevState, intent, false); in waitAndVerifyConnectionStateIntent()
1203 int prevState) { in waitAndVerifyAudioStateIntent() argument
1206 HeadsetTestUtils.verifyAudioStateBroadcast(device, newState, prevState, intent); in waitAndVerifyAudioStateIntent()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java186 int prevState) { in verifyConnectionStateIntent() argument
192 Assert.assertEquals(prevState, in verifyConnectionStateIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java517 int prevState = mState; in setState() local
520 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in setState()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java769 int nextState, int prevState) { in updateProfileConnectionStateHelper() argument
785 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in updateProfileConnectionStateHelper()
DAdapterServiceTest.java183 private void verifyStateChange(int prevState, int currState, int callNumber, int timeoutMs) { in verifyStateChange() argument
186 .times(callNumber)).onBluetoothStateChange(prevState, currState); in verifyStateChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java508 int prevState = mState; in setState() local
511 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in setState()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java170 int newState, int prevState) { in verifyConnectionStateIntent() argument
177 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, in verifyConnectionStateIntent()