/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothDeviceManagerTest.java | 103 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testSingleDeviceConnectAndDisconnect() 117 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testAddDeviceFailsWhenServicesAreNull() 119 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testAddDeviceFailsWhenServicesAreNull() 128 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testMultiDeviceConnectAndDisconnect() 130 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testMultiDeviceConnectAndDisconnect() 134 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device3, false)); in testMultiDeviceConnectAndDisconnect() 145 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testHearingAidDedup() 147 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testHearingAidDedup() 149 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device4, true)); in testHearingAidDedup() 158 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testHeadsetServiceDisconnect() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 444 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTED, in testConnectAnotherPair_disconnectCurrentPair() 446 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTED, in testConnectAnotherPair_disconnectCurrentPair() 454 BluetoothProfile.STATE_CONNECTED); in testConnectAnotherPair_disconnectCurrentPair() 456 BluetoothProfile.STATE_CONNECTED); in testConnectAnotherPair_disconnectCurrentPair() 508 verifyConnectionStateIntent(TIMEOUT_MS, mLeftDevice, BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect() 510 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect() 521 verifyConnectionStateIntent(TIMEOUT_MS, mRightDevice, BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect() 523 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect() 532 any(BluetoothDevice.class), eq(BluetoothProfile.STATE_CONNECTED), in testAudioManagerConnectDisconnect() 541 BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 212 BluetoothProfile.STATE_CONNECTED); in testDisconnectNoAutoConnect() 293 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect() 334 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect_PreviousPartialFail() 352 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect_PreviousPartialFail() 361 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED); in testReconnectOnPartialConnect_PreviousPartialFail() 368 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect_PreviousPartialFail() 426 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testAutoConnectMultipleDevices() 431 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testAutoConnectMultipleDevices() 499 BluetoothProfile.STATE_CONNECTED); in testSetPriorityMultipleDevices() 501 BluetoothProfile.STATE_CONNECTED); in testSetPriorityMultipleDevices() [all …]
|
D | SilenceDeviceManagerTest.java | 176 intent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in a2dpConnected() 187 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_CONNECTED); in a2dpDisconnected() 200 intent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in headsetConnected() 211 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_CONNECTED); in headsetDisconnected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothSummaryUpdaterTest.java | 114 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in register_true_shouldSendSummaryChange() 128 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary() 141 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary() 155 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected() 191 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary() 194 BluetoothAdapter.STATE_CONNECTED); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary() 217 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in onConnectionStateChanged_connected_shouldSendConnectedMessage() 223 BluetoothAdapter.STATE_CONNECTED); in onConnectionStateChanged_connected_shouldSendConnectedMessage() 238 BluetoothAdapter.STATE_CONNECTED); in onConnectionStateChanged_inconsistentState_shouldSendDisconnectedMessage() 246 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in onConnectionStateChanged_noBondedDevice_shouldSendDisconnectedMessage() [all …]
|
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 159 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference() 172 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference() 185 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference() 198 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference() 212 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_addPreference() 225 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_addPreference()
|
D | ConnectedBluetoothDeviceUpdaterTest.java | 159 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference() 172 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference() 185 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference() 198 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference() 212 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_removePreference() 226 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_removePreference()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 260 BluetoothProfile.STATE_CONNECTED); in testConnectDevice_connectDeviceBelowLimit() 261 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testConnectDevice_connectDeviceBelowLimit() 293 BluetoothProfile.STATE_CONNECTED); in testMessageFromNative_deviceConnected() 294 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testMessageFromNative_deviceConnected() 381 BluetoothProfile.STATE_CONNECTED); in testConnectDevice_connectDeviceAboveLimit() 382 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testConnectDevice_connectDeviceAboveLimit() 420 BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withOneDevice() 423 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testConnectAudio_withOneDevice() 428 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withOneDevice() 487 BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withMultipleDevices() [all …]
|
D | HeadsetServiceAndStateMachineTest.java | 310 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectFromApi() 311 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testConnectFromApi() 315 new int[]{BluetoothProfile.STATE_CONNECTED})); in testConnectFromApi() 393 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testUnbondDevice_disconnectAfterUnbond() 394 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testUnbondDevice_disconnectAfterUnbond() 413 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED); in testUnbondDevice_disconnectAfterUnbond() 436 new int[]{BluetoothProfile.STATE_CONNECTED}), in testVirtualCall_normalStartStop() 472 new int[]{BluetoothProfile.STATE_CONNECTED}), in testVirtualCall_preemptedByTelecomCall() 512 new int[]{BluetoothProfile.STATE_CONNECTED}), in testVirtualCall_rejectedWhenThereIsTelecomCall() 540 new int[]{BluetoothProfile.STATE_CONNECTED}), in testDialingOutCall_NormalDialingOut() [all …]
|
D | HeadsetStateMachineTest.java | 157 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testSetupConnectedState() 301 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING, in testStateTransition_ConnectingToConnected_StackSlcConnected() 364 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTING, in testStateTransition_DisconnectingToConnected_StackSlcCconnected() 383 BluetoothProfile.STATE_DISCONNECTING, BluetoothProfile.STATE_CONNECTED, in testStateTransition_ConnectedToDisconnecting_Disconnect() 405 BluetoothProfile.STATE_DISCONNECTING, BluetoothProfile.STATE_CONNECTED, in testStateTransition_ConnectedToDisconnecting_StackDisconnecting() 427 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED, in testStateTransition_ConnectedToDisconnected_StackDisconnected() 554 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED, in testStateTransition_AudioConnectingToDisconnected_StackDisconnected() 579 BluetoothProfile.STATE_DISCONNECTING, BluetoothProfile.STATE_CONNECTED, in testStateTransition_AudioConnectingToDisconnecting_StackDisconnecting() 683 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED, in testStateTransition_AudioOnToDisconnected_StackDisconnected() 708 BluetoothProfile.STATE_DISCONNECTING, BluetoothProfile.STATE_CONNECTED, in testStateTransition_AudioOnToDisconnecting_StackDisconnecting() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 494 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect() 509 if (sm != null && sm.getConnectionState(bd) == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices() 563 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in startVoiceRecognition() 578 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in stopVoiceRecognition() 637 if (connectionState != BluetoothProfile.STATE_CONNECTED in holdCall() 661 if (connectionState == BluetoothProfile.STATE_CONNECTED) { in acceptCall() 675 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in acceptCall() 693 if (connectionState != BluetoothProfile.STATE_CONNECTED in rejectCall() 712 if (connectionState != BluetoothProfile.STATE_CONNECTED in terminateCall() 732 if (connectionState != BluetoothProfile.STATE_CONNECTED in enterPrivateMode() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 445 verifyConnectionStateIntent(TIMEOUT_MS, mTestDevice, BluetoothProfile.STATE_CONNECTED, in testOutgoingConnectDisconnectSuccess() 447 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testOutgoingConnectDisconnectSuccess() 458 BluetoothProfile.STATE_CONNECTED); in testOutgoingConnectDisconnectSuccess() 512 verifyConnectionStateIntent(TIMEOUT_MS, testDevice, BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices() 514 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices() 561 generateConnectionMessageFromNative(mTestDevice, BluetoothProfile.STATE_CONNECTED, in testCreateStateMachineStackEvents() 563 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testCreateStateMachineStackEvents() 569 BluetoothProfile.STATE_CONNECTED); in testCreateStateMachineStackEvents() 639 generateConnectionMessageFromNative(mTestDevice, BluetoothProfile.STATE_CONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents() 641 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterProperties.java | 632 || state == BluetoothProfile.STATE_CONNECTED in validateProfileConnectionState() 642 case BluetoothProfile.STATE_CONNECTED: in convertToAdapterState() 643 return BluetoothAdapter.STATE_CONNECTED; in convertToAdapterState() 655 case BluetoothProfile.STATE_CONNECTED: in isNormalStateTransition() 660 == BluetoothProfile.STATE_CONNECTED); in isNormalStateTransition() 678 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange() 704 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange() 747 } else if (newState == BluetoothProfile.STATE_CONNECTED || ( in updateProfileConnectionState() 749 && currHashState != BluetoothProfile.STATE_CONNECTED)) { in updateProfileConnectionState() 756 if (currHashState == BluetoothProfile.STATE_CONNECTED in updateProfileConnectionState() [all …]
|
D | SilenceDeviceManager.java | 138 if (nextState == BluetoothProfile.STATE_CONNECTED) { in handleMessage() 144 } else if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage() 162 if (nextState == BluetoothProfile.STATE_CONNECTED) { in handleMessage() 168 } else if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage()
|
D | ActiveDeviceManager.java | 199 if (nextState == BluetoothProfile.STATE_CONNECTED) { in handleMessage() 217 if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage() 258 if (nextState == BluetoothProfile.STATE_CONNECTED) { in handleMessage() 276 if (prevState == BluetoothProfile.STATE_CONNECTED) { in handleMessage()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 363 return getDevicesMatchingConnectionStates(new int[]{BluetoothProfile.STATE_CONNECTED}); in getConnectedDevices() 550 if (state != BluetoothHidHost.STATE_CONNECTED) { in getProtocolMode() 566 if (state != BluetoothHidHost.STATE_CONNECTED) { in virtualUnplug() 580 if (state != BluetoothHidHost.STATE_CONNECTED) { in setProtocolMode() 596 if (state != BluetoothHidHost.STATE_CONNECTED) { in getReport() 616 if (state != BluetoothHidHost.STATE_CONNECTED) { in setReport() 636 if (state != BluetoothHidHost.STATE_CONNECTED) { in sendData() 647 if (state != BluetoothHidHost.STATE_CONNECTED) { in getIdleTime() 659 if (state != BluetoothHidHost.STATE_CONNECTED) { in setIdleTime() 731 if (newState == BluetoothProfile.STATE_CONNECTED) { in broadcastConnectionState() [all …]
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/livedata/ |
D | BluetoothHfpStateLiveDataTest.java | 99 BluetoothProfile.STATE_CONNECTED); in testOnBluetoothHfpStateChange() 105 BluetoothProfile.HEADSET_CLIENT)).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testOnBluetoothHfpStateChange() 107 BluetoothProfile.STATE_CONNECTED); in testOnBluetoothHfpStateChange() 108 assertThat(valueCaptor.getValue()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testOnBluetoothHfpStateChange()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 142 … int[] desiredStates = {BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_CONNECTED, in cleanup() 421 getDevicesMatchingConnectionStates(new int[]{BluetoothProfile.STATE_CONNECTED}); in getConnectedDevices() 483 return BluetoothProfile.STATE_CONNECTED; in convertHalState() 536 if (state == BluetoothProfile.STATE_CONNECTED) { in handlePanDeviceStateChange() 567 if (state == BluetoothProfile.STATE_CONNECTED) { in handlePanDeviceStateChange() 575 if (state == BluetoothProfile.STATE_CONNECTED) { in handlePanDeviceStateChange() 674 if (getPanDeviceConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in getConnectedPanDevices()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 131 if (state == BluetoothProfile.STATE_CONNECTED in connect() 173 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect() 188 return getDevicesMatchingConnectionStates(new int[]{BluetoothAdapter.STATE_CONNECTED}); in getConnectedDevices() 280 if (stateMachine.getState() == BluetoothAdapter.STATE_CONNECTED) { in stop() 423 return service.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isConnected() 573 if (stateMachine.getState() == BluetoothProfile.STATE_CONNECTED) { in onReceive()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | LegacyVpnPreference.java | 19 import static com.android.internal.net.LegacyVpnInfo.STATE_CONNECTED; 71 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | LegacyVpnPreference.java | 19 import static com.android.internal.net.LegacyVpnInfo.STATE_CONNECTED; 71 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 375 != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect() 384 BluetoothProfile.STATE_CONNECTED) { in nextStepConnect() 394 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect() 494 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent() 508 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent() 522 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 94 {BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_CONNECTED}; 703 if (connectionState == BluetoothProfile.STATE_CONNECTED in connect() 742 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect() 758 if (stateMachine.getConnectionState() == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices() 886 if (connectionState != BluetoothProfile.STATE_CONNECTED in startVoiceRecognition() 918 if (connectionState != BluetoothProfile.STATE_CONNECTED in stopVoiceRecognition() 1078 if (getConnectionState(device) != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice() 1150 if (stateMachine.getConnectionState() != BluetoothProfile.STATE_CONNECTED) { in connectAudio() 1564 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in sendVendorSpecificResultCode() 1598 if (fromState != BluetoothProfile.STATE_CONNECTED in onConnectionStateChangedFromStateMachine() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 247 new int[] {BluetoothProfile.STATE_CONNECTED, in connect() 316 case BluetoothProfile.STATE_CONNECTED: in connectionAllowedCheckMaxDevices() 458 == BluetoothProfile.STATE_CONNECTED); in removeActiveDevice() 539 if (sm.getConnectionState() != BluetoothProfile.STATE_CONNECTED) { in setActiveDevice() 589 mActiveDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, in setActiveDevice() 1082 if (toState == BluetoothProfile.STATE_CONNECTED) { in connectionStateChanged() 1086 if (toState == BluetoothProfile.STATE_CONNECTED && (mMaxConnectedAudioDevices == 1)) { in connectionStateChanged() 1090 if (isActiveDevice(device) && (fromState == BluetoothProfile.STATE_CONNECTED)) { in connectionStateChanged()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientStateMachine.java | 298 BluetoothProfile.STATE_CONNECTED); in enter() 299 mMostRecentState = BluetoothProfile.STATE_CONNECTED; in enter() 337 if (prevState != state && state == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged() 377 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
|