Home
last modified time | relevance | path

Searched refs:STATE_CONNECTED (Results 1 – 25 of 201) sorted by relevance

123456789

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothDeviceManagerTest.java153 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, in testSingleDeviceConnectAndDisconnect()
169 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, in testAddDeviceFailsWhenServicesAreNull()
172 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testAddDeviceFailsWhenServicesAreNull()
175 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device5, in testAddDeviceFailsWhenServicesAreNull()
185 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, in testMultiDeviceConnectAndDisconnect()
188 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testMultiDeviceConnectAndDisconnect()
191 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device5, in testMultiDeviceConnectAndDisconnect()
201 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device6, in testMultiDeviceConnectAndDisconnect()
207 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device3, in testMultiDeviceConnectAndDisconnect()
230 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device5, in testLeAudioMissedGroupCallbackBeforeConnected()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java187 if (newState == BluetoothProfile.STATE_CONNECTED) { in verifyConnectionStateIntent()
190 } else if (prevState == BluetoothProfile.STATE_CONNECTED) { in verifyConnectionStateIntent()
452 mLeftDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectAnotherPair_disconnectCurrentPair()
454 mRightDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectAnotherPair_disconnectCurrentPair()
463 BluetoothProfile.STATE_CONNECTED); in testConnectAnotherPair_disconnectCurrentPair()
467 BluetoothProfile.STATE_CONNECTED); in testConnectAnotherPair_disconnectCurrentPair()
526 mLeftDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testAudioManagerConnectDisconnect()
528 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
539 mRightDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testAudioManagerConnectDisconnect()
541 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DDataConnectionStatusTracker.java42 static final int STATE_CONNECTED = 2; field in DataConnectionStatusTracker
49 STATE_CONNECTED,
121 return mState == STATE_CONNECTED || mState == STATE_HANDOVER; in isActiveState()
179 if (mState == STATE_CONNECTED || mState == STATE_HANDOVER) { in onDataConnectionStateChanged()
207 mState = STATE_CONNECTED; in onDataConnectionStateChanged()
214 mState = STATE_CONNECTED; in onDataConnectionStateChanged()
221 mState = STATE_CONNECTED; in onDataConnectionStateChanged()
231 mState = STATE_CONNECTED; in onDataConnectionStateChanged()
241 if (mState == STATE_CONNECTED && mTransportType == transportType) { in onDataConnectionStateChanged()
292 case STATE_CONNECTED: in stateToString()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsMetricsTest.java182 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverTimeMillisInfo()
197 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverTimeMillisInfo()
212 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverTimeMillisInfo()
227 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverTimeMillisInfo()
239 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverTimeMillisInfo()
251 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverTimeMillisInfo()
382 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverPingPongInfo()
394 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverPingPongInfo()
406 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverPingPongInfo()
418 DataConnectionStatusTracker.STATE_CONNECTED, in testAtomsQnsHandoverPingPongInfo()
[all …]
DDataConnectionStatusTrackerTest.java32 import static com.android.telephony.qns.DataConnectionStatusTracker.STATE_CONNECTED;
182 STATE_CONNECTED, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_CONNECTED); in testOnCellular()
253 STATE_CONNECTED, TRANSPORT_TYPE_WLAN, EVENT_DATA_CONNECTION_CONNECTED); in testOnIwlan()
325 STATE_CONNECTED, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_CONNECTED); in testOnCellularHandover()
349 STATE_CONNECTED, TRANSPORT_TYPE_WLAN, EVENT_DATA_CONNECTION_HANDOVER_SUCCESS); in testOnCellularHandover()
379 STATE_CONNECTED, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_CONNECTED); in testHandoverOnNonSrcTransportType()
418 STATE_CONNECTED, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_CONNECTED); in testOnCellularHandoverSuspended()
442 STATE_CONNECTED, TRANSPORT_TYPE_WLAN, EVENT_DATA_CONNECTION_HANDOVER_SUCCESS); in testOnCellularHandoverSuspended()
472 STATE_CONNECTED, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_CONNECTED); in testOnCellularHandoverFail()
496 STATE_CONNECTED, TRANSPORT_TYPE_WWAN, EVENT_DATA_CONNECTION_HANDOVER_FAILED); in testOnCellularHandoverFail()
[all …]
DRestrictManagerTest.java416 DataConnectionStatusTracker.STATE_CONNECTED, in testGuardingWithHandoverComplete()
528 DataConnectionStatusTracker.STATE_CONNECTED, in testWwanToWlanGuardingOnHandoverStart()
554 DataConnectionStatusTracker.STATE_CONNECTED, in testWlanToWwanGuardingOnHandoverStart()
581 DataConnectionStatusTracker.STATE_CONNECTED, in testWlanOnLowRtpQualityEvent()
635 DataConnectionStatusTracker.STATE_CONNECTED, in testWwanOnLowRtpQualityEvent()
681 DataConnectionStatusTracker.STATE_CONNECTED, in testHandoverToTransportTypeRestrictedByLowRtpQualityEvent()
699 DataConnectionStatusTracker.STATE_CONNECTED, in testHandoverToTransportTypeRestrictedByLowRtpQualityEvent()
707 DataConnectionStatusTracker.STATE_CONNECTED, in testHandoverToTransportTypeRestrictedByLowRtpQualityEvent()
742 DataConnectionStatusTracker.STATE_CONNECTED, in testLowRtpQualityEventOnBothTransport()
768 DataConnectionStatusTracker.STATE_CONNECTED, in testLowRtpQualityEventOnBothTransport()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java114 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 …]
DAvailableMediaBluetoothDeviceUpdaterTest.java195 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference()
208 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference()
221 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference()
234 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference()
248 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_ashaHearingAidConnected_notInCall_addPreference()
263 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_addPreference()
284 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_leaConnected_notInCallSharingFlagOff_addsPreference()
302 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_leaConnected_notInCallNotInSharing_addsPreference()
322 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_leaConnected_inCallSharingFlagOff_addsPreference()
339 BluetoothProfile.STATE_CONNECTED, in onProfileConnectionStateChanged_leaConnected_inCallNotInSharing_addsPreference()
[all …]
DConnectedBluetoothDeviceUpdaterTest.java178 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference()
192 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_deviceIsNotInList_inCall_invokesRemovePreference()
205 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference()
218 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference()
231 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference()
245 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_ashaHearingAidConnected_inCall_removePreference()
259 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_ashaHearingAidConnected_notInCall_removePreference()
272 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.LE_AUDIO); in onProfileConnectionStateChanged_leAudioDeviceConnected_inCall_removesPreference()
286 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.LE_AUDIO); in onProfileConnectionStateChanged_leAudioDeviceConnected_notInCall_removesPreference()
300 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.LE_AUDIO); in onProfileConnectionStateChanged_deviceIsNotInList_inCall_invokesRemovesPreference()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java142 sendConnectionEvent(BluetoothProfile.STATE_CONNECTED); in testIncomingConnectedInDisconnected()
143 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testIncomingConnectedInDisconnected()
210 sendConnectionEvent(BluetoothProfile.STATE_CONNECTED); in testConnectedInConnecting()
211 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testConnectedInConnecting()
280 sendConnectionEvent(BluetoothProfile.STATE_CONNECTED); in testDisconnectInConnecting_disconnectDeferredAndProcessed()
281 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testDisconnectInConnecting_disconnectDeferredAndProcessed()
301 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testConnectInConnected()
322 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testAudioStateChangeInConnected()
333 sendConnectionEvent(BluetoothProfile.STATE_CONNECTED); in testConnectedInConnected()
334 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testConnectedInConnected()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java298 .thenReturn(BluetoothProfile.STATE_CONNECTED); in testConnectDevice_connectDeviceBelowLimit()
300 BluetoothProfile.STATE_CONNECTED, in testConnectDevice_connectDeviceBelowLimit()
339 .thenReturn(BluetoothProfile.STATE_CONNECTED); in testMessageFromNative_deviceConnected()
341 BluetoothProfile.STATE_CONNECTED, in testMessageFromNative_deviceConnected()
451 .thenReturn(BluetoothProfile.STATE_CONNECTED); in testConnectDevice_connectDeviceAboveLimit()
453 BluetoothProfile.STATE_CONNECTED, in testConnectDevice_connectDeviceAboveLimit()
503 .thenReturn(BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withOneDevice()
507 BluetoothProfile.STATE_CONNECTED, in testConnectAudio_withOneDevice()
514 BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withOneDevice()
591 .thenReturn(BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withMultipleDevices()
[all …]
/packages/modules/Bluetooth/android/pandora/server/src/
DA2dp.kt85 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in openSource()
95 it == BluetoothProfile.STATE_CONNECTED || in openSource()
123 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in waitSource()
132 it == BluetoothProfile.STATE_CONNECTED || in waitSource()
160 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in start()
187 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in suspend()
215 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in isSuspended()
230 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in close()
307 if (bluetoothA2dp.getConnectionState(device) != BluetoothA2dp.STATE_CONNECTED) { in getAudioEncoding()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java471 mDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents()
472 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mService.getConnectionState(mDevice)); in testCreateStateMachineStackEvents()
477 mDevice, BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED); in testCreateStateMachineStackEvents()
817 mDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testLateConnectingDevice()
818 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mService.getConnectionState(mDevice)); in testLateConnectingDevice()
827 mDeviceTwo, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testLateConnectingDevice()
829 BluetoothProfile.STATE_CONNECTED, mService.getConnectionState(mDeviceTwo)); in testLateConnectingDevice()
856 mDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testLateDiscoveredGroupMember()
857 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mService.getConnectionState(mDevice)); in testLateDiscoveredGroupMember()
865 mDeviceTwo, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testLateDiscoveredGroupMember()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java272 BluetoothProfile.STATE_CONNECTED); in processInitProfilePriorities_LeAudioOnlyHelper()
575 BluetoothProfile.STATE_CONNECTED); in testLateConnectOfLeAudioEnabled_DualModeBud()
608 BluetoothProfile.STATE_CONNECTED); in testLateConnectOfLeAudioEnabled_DualModeBud()
695 BluetoothProfile.STATE_CONNECTED); in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud()
725 BluetoothProfile.STATE_CONNECTED); in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud()
812 .thenReturn(BluetoothProfile.STATE_CONNECTED); in testDisconnectNoAutoConnect()
830 BluetoothProfile.STATE_CONNECTED, in testDisconnectNoAutoConnect()
914 BluetoothProfile.STATE_CONNECTED, in testReconnectOnPartialConnect()
962 BluetoothProfile.STATE_CONNECTED, in testConnectOtherProfileWhileDeviceIsDisconnected()
983 .thenReturn(BluetoothProfile.STATE_CONNECTED); in testReconnectOnPartialConnect_PreviousPartialFail()
[all …]
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DSenderFragment.java49 private static final int STATE_CONNECTED = 2; field in SenderFragment
72 mConnectionState = STATE_CONNECTED;
124 if (mConnectionState == STATE_CONNECTED) { in onCreateView()
159 if (mConnectionState != STATE_CONNECTED) { in onCreateView()
189 if (mConnectionState != STATE_CONNECTED) { in onCreateView()
216 if (mConnectionState != STATE_CONNECTED) { in onCreateView()
251 } else if (mConnectionState == STATE_CONNECTED) { in onDestroy()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java374 sTestDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_CONNECTING); in testOutgoingConnectDisconnectSuccess()
376 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testOutgoingConnectDisconnectSuccess()
389 BluetoothProfile.STATE_CONNECTED); in testOutgoingConnectDisconnectSuccess()
448 BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices()
451 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testMaxConnectDevices()
500 sTestDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents()
502 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testCreateStateMachineStackEvents()
517 sTestDevice, BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED); in testCreateStateMachineStackEvents()
589 sTestDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testProcessAudioStateChangedCodecConfigChangedEvents()
591 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testProcessAudioStateChangedCodecConfigChangedEvents()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java648 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect()
665 if (sm != null && sm.getConnectionState(bd) == BluetoothProfile.STATE_CONNECTED) { in getConnectedDevices()
756 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in startVoiceRecognition()
770 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in stopVoiceRecognition()
911 if (connectionState != BluetoothProfile.STATE_CONNECTED in holdCall()
935 if (connectionState == BluetoothProfile.STATE_CONNECTED) { in acceptCall()
949 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in acceptCall()
966 if (connectionState != BluetoothProfile.STATE_CONNECTED in rejectCall()
984 if (connectionState != BluetoothProfile.STATE_CONNECTED in terminateCall()
1003 if (connectionState != BluetoothProfile.STATE_CONNECTED in enterPrivateMode()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDialogHandlerTest.java190 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive()
203 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
242 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleUserTriggeredLeaDeviceConnected_noSharingNoTwoLeaDevices_setActive()
255 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
298 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleUserTriggeredLeaDeviceConnected_sharing_showJoinDialog()
343 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleUserTriggeredLeaDeviceConnected_sharingWithTwoLeaDevices_showDisconnectDialog()
389 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleNonLeaDeviceConnected_noSharing_doNothing()
402 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleNonLeaDeviceConnected_sharing_showStopDialog()
441 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleLeaDeviceConnected_noSharingNoTwoLeaDevices_doNothing()
454 new int[] {BluetoothProfile.STATE_CONNECTED})) in handleLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java308 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectingToConnected()
331 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectedWithMasDisconnected()
359 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
364 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
382 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSetMessageStatus()
409 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testDisconnect()
435 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testDisconnectTimeout()
460 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSendSMSMessageToPhone()
478 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSendSMSMessageToEmail()
496 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSMSMessageSent()
[all …]
DMapClientServiceTest.java169 int connectionState = BluetoothProfile.STATE_CONNECTED; in disconnect_whenConnected_returnsTrue()
187 int connectionState = BluetoothProfile.STATE_CONNECTED; in getConnectionState_whenConnected()
197 int connectionState = BluetoothProfile.STATE_CONNECTED; in getConnectedDevices()
272 while (mTestLooper.isIdle() && connectedSm.getState() != BluetoothProfile.STATE_CONNECTED) { in disconnect_doesNotCleanUpNewStateMachineOfSameDevice()
288 int connectionState = BluetoothProfile.STATE_CONNECTED; in aclDisconnectedNoTransport_whenConnected_doesNotCallDisconnect()
302 int connectionState = BluetoothProfile.STATE_CONNECTED; in aclDisconnectedLeTransport_whenConnected_doesNotCallDisconnect()
315 int connectionState = BluetoothProfile.STATE_CONNECTED; in aclDisconnectedBrEdrTransport_whenConnected_callsDisconnect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityHearingAidPreferenceControllerTest.java137 intent.putExtra(BluetoothHearingAid.EXTRA_STATE, BluetoothHearingAid.STATE_CONNECTED); in getSummary_connectedAshaHearingAidRightSide_connectedRightSideSummary()
155 intent.putExtra(BluetoothHearingAid.EXTRA_STATE, BluetoothHearingAid.STATE_CONNECTED); in getSummary_connectedAshaHearingAidBothSide_connectedBothSideSummary()
172 intent.putExtra(BluetoothHearingAid.EXTRA_STATE, BluetoothHapClient.STATE_CONNECTED); in getSummary_connectedLeAudioHearingAidLeftSide_connectedLeftSideSummary()
189 intent.putExtra(BluetoothHearingAid.EXTRA_STATE, BluetoothHapClient.STATE_CONNECTED); in getSummary_connectedLeAudioHearingAidRightSide_connectedRightSideSummary()
206 intent.putExtra(BluetoothHearingAid.EXTRA_STATE, BluetoothHapClient.STATE_CONNECTED); in getSummary_connectedLeAudioHearingAidLeftAndRightSide_connectedSummary()
222 intent.putExtra(BluetoothHearingAid.EXTRA_STATE, BluetoothHapClient.STATE_CONNECTED); in getSummary_connectedLeAudioHearingAidBothSide_connectedBothSideSummary()
239 intent.putExtra(BluetoothHearingAid.EXTRA_STATE, BluetoothHearingAid.STATE_CONNECTED); in getSummary_connectedMultipleHearingAids_connectedMultipleDevicesSummary()
/packages/apps/Settings/src/com/android/settings/vpn2/
DLegacyVpnPreference.java19 import static com.android.internal.net.LegacyVpnInfo.STATE_CONNECTED;
71 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryStateMachineTest.java181 GATT_SUCCESS, BluetoothProfile.STATE_CONNECTED); in testSuccessfullyConnected()
187 eq(BluetoothProfile.STATE_CONNECTED)); in testSuccessfullyConnected()
257 BatteryStateMachine.CONNECTION_STATE_CHANGED, BluetoothGatt.STATE_CONNECTED); in testConnectedStateChanges()
322 GATT_SUCCESS, BluetoothProfile.STATE_CONNECTED); in testDisconnectResetBatteryLevel()
328 eq(BluetoothProfile.STATE_CONNECTED)); in testDisconnectResetBatteryLevel()
351 GATT_SUCCESS, BluetoothProfile.STATE_CONNECTED); in reconnect()
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DGattServerConnectWithoutScanTest.java86 .onConnectionStateChange(any(), anyInt(), eq(BluetoothProfile.STATE_CONNECTED)); in serverConnectToRandomAddress_withTransportAuto()
113 .onConnectionStateChange(any(), anyInt(), eq(BluetoothProfile.STATE_CONNECTED)); in serverConnectToRandomAddress_withTransportLE()
135 .onConnectionStateChange(any(), anyInt(), eq(BluetoothProfile.STATE_CONNECTED)); in serverConnectToPublicAddress_withTransportAuto()
157 .onConnectionStateChange(any(), anyInt(), eq(BluetoothProfile.STATE_CONNECTED)); in serverConnectToPublicAddress_withTransportLE()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryStateMachine.java149 case BluetoothProfile.STATE_CONNECTED: in profileStateToString()
188 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
398 case BluetoothGatt.STATE_CONNECTED: in processConnectionEvent()
460 case BluetoothGatt.STATE_CONNECTED: in processConnectionEvent()
485 dispatchConnectionStateChanged(mLastConnectionState, BluetoothProfile.STATE_CONNECTED); in enter()
497 mLastConnectionState = BluetoothProfile.STATE_CONNECTED; in exit()
533 case BluetoothGatt.STATE_CONNECTED: in processConnectionEvent()

123456789