/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterProperties.java | 578 int prevState = connIntent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in sendConnectionStateChange() local 582 + prevState + " -> " + state); in sendConnectionStateChange() 586 if (!isNormalStateTransition(prevState, state)) { in sendConnectionStateChange() 589 + ", device=" + device + ", " + prevState + " -> " + state); in sendConnectionStateChange() 591 sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange() 594 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 595 if (!validateProfileConnectionState(state) || !validateProfileConnectionState(prevState)) { in sendConnectionStateChange() 600 errorLog("sendConnectionStateChange: invalid state transition " + prevState + " -> " in sendConnectionStateChange() 606 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange() 608 if (updateCountersAndCheckForConnectionStateChange(state, prevState)) { in sendConnectionStateChange() [all …]
|
D | ActiveDeviceManager.java | 193 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()
|
D | SilenceDeviceManager.java | 135 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()
|
D | PhonePolicy.java | 171 int prevState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in handleMessage() local 173 processProfileStateChanged(device, msg.arg1, nextState, prevState); in handleMessage() 272 int prevState) { in processProfileStateChanged() argument 274 + prevState + " -> " + nextState); in processProfileStateChanged() 289 if (prevState == BluetoothProfile.STATE_CONNECTING) { in processProfileStateChanged()
|
D | AdapterService.java | 619 void updateAdapterState(int prevState, int newState) { in updateAdapterState() argument 627 mCallbacks.getBroadcastItem(i).onBluetoothStateChange(prevState, newState); in updateAdapterState() 645 && prevState != BluetoothAdapter.STATE_OFF) { in updateAdapterState() 1491 int prevState) { in sendConnectionStateChange() argument 1496 service.sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange() 2383 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 2390 mAdapterProperties.sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 503 int prevState; in handlePanDeviceStateChange() local 508 prevState = BluetoothProfile.STATE_DISCONNECTED; in handlePanDeviceStateChange() 512 prevState = panDevice.mState; in handlePanDeviceStateChange() 524 if (prevState == BluetoothProfile.STATE_DISCONNECTED in handlePanDeviceStateChange() 526 Log.d(TAG, "Ignoring state change from " + prevState + " to " + state); in handlePanDeviceStateChange() 531 Log.d(TAG, "handlePanDeviceStateChange preState: " + prevState + " state: " + state); in handlePanDeviceStateChange() 532 if (prevState == state) { in handlePanDeviceStateChange() 566 + ", prevState = " + prevState); in handlePanDeviceStateChange() 581 Log.d(TAG, "Pan Device state : device: " + device + " State:" + prevState + "->" + state); in handlePanDeviceStateChange() 584 intent.putExtra(BluetoothPan.EXTRA_PREVIOUS_STATE, prevState); in handlePanDeviceStateChange()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | UiFactory.java | 115 LauncherState prevState = launcher.getStateManager().getLastState(); in onCreate() 118 && finalState == ALL_APPS && prevState == NORMAL) || BOUNCE_MAX_COUNT <= in onCreate() 135 LauncherState prevState = launcher.getStateManager().getLastState(); in onCreate() 137 if ((finalState == ALL_APPS && prevState == OVERVIEW) || BOUNCE_MAX_COUNT <= in onCreate()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 674 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument 675 log("Connection state " + mDevice + ": " + profileStateToString(prevState) in broadcastConnectionState() 679 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState() 687 private void broadcastAudioState(int newState, int prevState) { in broadcastAudioState() argument 688 log("A2DP Playing state : device: " + mDevice + " State:" + audioStateToString(prevState) in broadcastAudioState() 693 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastAudioState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientStateMachine.java | 332 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/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 171 int prevState = 176 halState) + ", prevState:" + prevState); 179 && prevState == BluetoothHidHost.STATE_DISCONNECTED 725 int prevState = (prevStateInteger == null) ? BluetoothHidHost.STATE_DISCONNECTED in broadcastConnectionState() local 727 if (prevState == newState) { in broadcastConnectionState() 739 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + newState); in broadcastConnectionState() 741 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
|
D | HidDeviceService.java | 820 int prevState = mHidDeviceState; in setAndBroadcastConnectionState() local 823 if (prevState == newState) { in setAndBroadcastConnectionState() 833 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in setAndBroadcastConnectionState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MceStateMachine.java | 211 private void onConnectionStateChanged(int prevState, int state) { in onConnectionStateChanged() argument 217 Log.d(TAG, "Connection state " + mDevice + ": " + prevState + "->" + state); in onConnectionStateChanged() 219 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged() 223 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in onConnectionStateChanged()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskThumbnailCache.java | 85 boolean prevState = mHighResLoadingEnabled; in updateState() 87 if (prevState != mHighResLoadingEnabled) { in updateState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidStateMachine.java | 524 private void broadcastConnectionState(int newState, int prevState) { in broadcastConnectionState() argument 525 log("Connection state " + mDevice + ": " + profileStateToString(prevState) in broadcastConnectionState() 529 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ConversationViewFragment.java | 738 final ConversationViewState prevState = mViewState; in renderMessageBodies() local 739 mViewState = new ConversationViewState(prevState); in renderMessageBodies() 763 msg.alwaysShowImages || prevState.getShouldShowImages(msg); in renderMessageBodies() 766 final Integer savedExpanded = prevState.getExpansionState(msg); in renderMessageBodies() 787 mViewState.setShouldShowImages(msg, prevState.getShouldShowImages(msg)); in renderMessageBodies() 794 mViewState.setReadState(msg, msg.read && !prevState.isUnread(msg)); in renderMessageBodies()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachine.java | 1748 private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) { in broadcastAudioState() argument 1755 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastAudioState() 1763 Log.d(TAG, "Audio state " + device + ": " + prevState + "->" + newState); in broadcastAudioState() 1768 private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) { in broadcastConnectionState() argument 1770 Log.d(TAG, "Connection state " + device + ": " + prevState + "->" + newState); in broadcastConnectionState() 1779 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in broadcastConnectionState()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarProjectionService.java | 739 final int prevState = intent.getIntExtra(EXTRA_PREVIOUS_WIFI_AP_STATE, in init() 746 handleWifiApStateChange(currState, prevState, errorCode, ifaceName, mode); in init() 752 private void handleWifiApStateChange(int currState, int prevState, int errorCode, in handleWifiApStateChange() argument 756 "handleWifiApStateChange, curState: " + currState + ", prevState: " + prevState in handleWifiApStateChange()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 182 int newState, int prevState) { in verifyConnectionStateIntent() argument 189 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, in verifyConnectionStateIntent() 199 int newState, int prevState) { in verifyAudioStateIntent() argument 205 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, in verifyAudioStateIntent()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 1194 int newState, int prevState) { in waitAndVerifyConnectionStateIntent() argument 1197 HeadsetTestUtils.verifyConnectionStateBroadcast(device, newState, prevState, intent, false); in waitAndVerifyConnectionStateIntent() 1207 int prevState) { in waitAndVerifyAudioStateIntent() argument 1210 HeadsetTestUtils.verifyAudioStateBroadcast(device, newState, prevState, intent); in waitAndVerifyAudioStateIntent()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/ |
D | HidDeviceTest.java | 183 int prevState) { in verifyConnectionStateIntent() argument 189 Assert.assertEquals(prevState, in verifyConnectionStateIntent()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapService.java | 517 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/ |
D | AdapterServiceTest.java | 174 private void verifyStateChange(int prevState, int currState, int callNumber, int timeoutMs) { in verifyStateChange() argument 177 .times(callNumber)).onBluetoothStateChange(prevState, currState); in verifyStateChange()
|
D | PhonePolicyTest.java | 761 int nextState, int prevState) { in updateProfileConnectionStateHelper() argument 777 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in updateProfileConnectionStateHelper()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 502 int prevState = mState; in setState() local 505 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState); in setState()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 169 int newState, int prevState) { in verifyConnectionStateIntent() argument 176 Assert.assertEquals(prevState, intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, in verifyConnectionStateIntent()
|