Home
last modified time | relevance | path

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

1234567

/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceTest.java116 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
126 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
137 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
150 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
151 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
152 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
161 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
783 thenReturn(BluetoothProfile.STATE_CONNECTED); in isA2dpDevice_isA2dpDevice()
801 thenReturn(BluetoothProfile.STATE_CONNECTED); in isHfpDevice_isHfpDevice()
819 thenReturn(BluetoothProfile.STATE_CONNECTED); in isConnectedHearingAidDevice_connected_returnTrue()
[all …]
H A DLocalBluetoothProfileManagerTest.java161 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
166 mCachedBluetoothDevice, BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
182 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
187 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEADSET); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
204 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager()
209 BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager()
225 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receivePanConnectionStateChanged_shouldNotDispatchCallback()
246 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receivePanConnectionStateChangedWithoutProfile_shouldNotRefresh()
266 mIntent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_CONNECTED); in stateChangedHandler_receivePanConnectionStateChangedWithProfile_shouldRefresh()
H A DBluetoothEventManagerTest.java161 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
164 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
188 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
214 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
227 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
244 mCachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
245 mCachedDevice2.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
246 mCachedDevice1.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
247 mCachedDevice2.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
310 mCachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
[all …]
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DBluetoothDeviceManagerTest.java110 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testSingleDeviceConnectAndDisconnect()
124 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testAddDeviceFailsWhenServicesAreNull()
126 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testAddDeviceFailsWhenServicesAreNull()
135 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device1, false)); in testMultiDeviceConnectAndDisconnect()
137 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testMultiDeviceConnectAndDisconnect()
141 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device3, false)); in testMultiDeviceConnectAndDisconnect()
154 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testHearingAidDedup()
156 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device4, true)); in testHearingAidDedup()
169 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testHeadsetServiceDisconnect()
188 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, true)); in testHearingAidServiceDisconnect()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
H A DHearingAidServiceTest.java445 BluetoothProfile.STATE_CONNECTED); in testConnectAnotherPair_disconnectCurrentPair()
447 BluetoothProfile.STATE_CONNECTED); in testConnectAnotherPair_disconnectCurrentPair()
503 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect()
516 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testAudioManagerConnectDisconnect()
534 BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
538 BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
616 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testCreateStateMachineStackEvents()
622 BluetoothProfile.STATE_CONNECTED); in testCreateStateMachineStackEvents()
688 BluetoothProfile.STATE_CONNECTED); in testDeleteStateMachineUnbondEvents()
787 BluetoothProfile.STATE_CONNECTED); in testConnectionStateChangedActiveDevice()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A 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 …]
H A DAvailableMediaBluetoothDeviceUpdaterTest.java166 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_addPreference()
179 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_removePreference()
192 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_removePreference()
205 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_addPreference()
219 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_addPreference()
232 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_addPreference()
H A DConnectedBluetoothDeviceUpdaterTest.java165 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_inCall_addPreference()
178 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_a2dpDeviceConnected_notInCall_removePreference()
191 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_inCall_removePreference()
204 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in onProfileConnectionStateChanged_hfpDeviceConnected_notInCall_addPreference()
218 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_inCall_removePreference()
232 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.HEARING_AID); in onProfileConnectionStateChanged_hearingAidDeviceConnected_notInCall_removePreference()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
H A DPhonePolicyTest.java221 BluetoothProfile.STATE_CONNECTED); in testDisconnectNoAutoConnect()
302 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect()
343 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect_PreviousPartialFail()
511 BluetoothProfile.STATE_CONNECTED); in testSetConnectionPolicyMultipleDevices()
513 BluetoothProfile.STATE_CONNECTED); in testSetConnectionPolicyMultipleDevices()
516 BluetoothProfile.STATE_CONNECTED); in testSetConnectionPolicyMultipleDevices()
523 BluetoothProfile.STATE_CONNECTED); in testSetConnectionPolicyMultipleDevices()
544 BluetoothProfile.STATE_CONNECTED); in testSetConnectionPolicyMultipleDevices()
578 BluetoothProfile.STATE_CONNECTED); in testSetConnectionPolicyMultipleDevices()
681 BluetoothProfile.STATE_CONNECTED); in testNoReconnectOnNoConnect_MultiDevice()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceTest.java250 BluetoothProfile.STATE_CONNECTED); in testConnectDevice_connectDeviceBelowLimit()
251 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testConnectDevice_connectDeviceBelowLimit()
283 BluetoothProfile.STATE_CONNECTED); in testMessageFromNative_deviceConnected()
371 BluetoothProfile.STATE_CONNECTED); in testConnectDevice_connectDeviceAboveLimit()
410 BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withOneDevice()
477 BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withMultipleDevices()
553 BluetoothProfile.STATE_CONNECTED); in testConnectAudio_connectTwoAudioChannelsShouldFail()
631 BluetoothProfile.STATE_CONNECTED); in testConnectAudio_firstConnectedAudioDevice()
751 BluetoothProfile.STATE_CONNECTED); in testPhoneStateChange_oneDeviceSaveState()
834 BluetoothProfile.STATE_CONNECTED); in testPhoneStateChange_multipleDevicesSaveState()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DBluetoothControllerImplTest.java93 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNoConnectionWithDevices()
129 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testAsyncConnectionState()
139 assertEquals(BluetoothProfile.STATE_CONNECTED, in testAsyncConnectionState()
147 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNullAsync_DoesNotCrash()
202 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
205 BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
230 BluetoothProfile.STATE_CONNECTED); in testOnActiveDeviceChanged_updatesAudioActive()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DCastTileTest.java185 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_wifiEnabledAndCasting()
222 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_hotspotEnabledAndConnectedAndCasting()
243 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_castDevicePresent()
260 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_projectionOnly()
276 device.state = CastDevice.STATE_CONNECTED; in testUpdateState_projectionOnly()
291 casting.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection()
296 projection.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection()
320 connected.state = CastDevice.STATE_CONNECTED; in testUpdateState_connectedAndConnecting()
354 device.state = CastController.CastDevice.STATE_CONNECTED; in testExpandView_casting_projection()
382 device.state = CastDevice.STATE_CONNECTED; in testExpandView_casting_mediaRoute()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DA2dpProfile.java78 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
127 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
144 BluetoothProfile.STATE_CONNECTED, in getConnectableDevices()
237 } else if (getConnectionStatus(bluetoothDevice) != BluetoothProfile.STATE_CONNECTED in isHighQualityAudioEnabled()
264 if (getConnectionStatus(bluetoothDevice) != BluetoothProfile.STATE_CONNECTED) { in setHighQualityAudioEnabled()
278 || getConnectionStatus(device) != BluetoothProfile.STATE_CONNECTED) { in getHighQualityAudioOptionLabel()
342 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
H A DHearingAidProfile.java75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
127 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
144 BluetoothProfile.STATE_CONNECTED, in getConnectableDevices()
245 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientService.java586 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect()
692 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in startVoiceRecognition()
706 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in stopVoiceRecognition()
768 if (connectionState != BluetoothProfile.STATE_CONNECTED in holdCall()
805 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in acceptCall()
822 if (connectionState != BluetoothProfile.STATE_CONNECTED in rejectCall()
840 if (connectionState != BluetoothProfile.STATE_CONNECTED in terminateCall()
859 if (connectionState != BluetoothProfile.STATE_CONNECTED in enterPrivateMode()
878 if (connectionState != BluetoothProfile.STATE_CONNECTED in dial()
901 if (connectionState != BluetoothProfile.STATE_CONNECTED in sendDTMF()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
H A DAudioDeviceBrokerTest.java103 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 1)); in testPostA2dpDeviceConnectionChange()
107 ArgumentMatchers.eq(BluetoothProfile.STATE_CONNECTED) /*state*/, in testPostA2dpDeviceConnectionChange()
215 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 1)); in doTestConnectionDisconnectionReconnection()
229 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 2)); in doTestConnectionDisconnectionReconnection()
236 ArgumentMatchers.eq(BluetoothProfile.STATE_CONNECTED)); in doTestConnectionDisconnectionReconnection()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
H A DA2dpServiceTest.java419 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testOutgoingConnectDisconnectSuccess()
430 BluetoothProfile.STATE_CONNECTED); in testOutgoingConnectDisconnectSuccess()
485 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testMaxConnectDevices()
532 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testCreateStateMachineStackEvents()
609 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents()
623 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents()
629 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents()
670 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in testDeleteStateMachineUnbondEvents()
911 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, in connectDeviceWithCodecStatus()
1081 BluetoothProfile.STATE_CONNECTED); in testUpdateOptionalCodecsSupportCase()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
H A DLeAudioServiceTest.java404 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
417 .isEqualTo(BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
429 BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
433 BluetoothProfile.STATE_CONNECTED); in testAudioManagerConnectDisconnect()
504 generateConnectionMessageFromNative(mLeftDevice, BluetoothProfile.STATE_CONNECTED, in testCreateStateMachineStackEvents()
506 assertThat(BluetoothProfile.STATE_CONNECTED) in testCreateStateMachineStackEvents()
512 BluetoothProfile.STATE_CONNECTED); in testCreateStateMachineStackEvents()
568 assertThat(BluetoothProfile.STATE_CONNECTED) in testDeleteStateMachineUnbondEvents()
578 BluetoothProfile.STATE_CONNECTED); in testDeleteStateMachineUnbondEvents()
678 verifyConnectionStateIntent(TIMEOUT_MS, device, BluetoothProfile.STATE_CONNECTED, in connectDevice()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
H A DMapClientStateMachineTest.java202 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectingToConnected()
224 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testStateTransitionFromConnectedWithMasDisconnected()
253 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
258 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testReceiveEmptyEvent()
277 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSetMessageStatus()
303 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testDisconnect()
329 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testDisconnectTimeout()
354 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSendSMSMessage()
374 Assert.assertEquals(BluetoothProfile.STATE_CONNECTED, mMceStateMachine.getState()); in testSMSMessageSent()
/aosp12/packages/apps/Settings/src/com/android/settings/vpn2/
H A DLegacyVpnPreference.java19 import static com.android.internal.net.LegacyVpnInfo.STATE_CONNECTED;
71 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
/aosp12/frameworks/base/core/java/android/bluetooth/
H A DBluetoothProfile.java63 int STATE_CONNECTED = 2; field
71 STATE_CONNECTED,
365 case STATE_CONNECTED: in getConnectionStateName()
/aosp12/hardware/google/pixel/health/
H A DBatteryDefender.cpp232 case STATE_CONNECTED: { in stateMachine_runAction()
267 nextState = STATE_CONNECTED; in stateMachine_getNextState()
280 nextState = STATE_CONNECTED; in stateMachine_getNextState()
284 case STATE_CONNECTED: in stateMachine_getNextState()
327 case STATE_CONNECTED: in stateMachine_firstAction()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DAdapterProperties.java707 || state == BluetoothProfile.STATE_CONNECTED in validateProfileConnectionState()
717 case BluetoothProfile.STATE_CONNECTED: in convertToAdapterState()
718 return BluetoothAdapter.STATE_CONNECTED; in convertToAdapterState()
730 case BluetoothProfile.STATE_CONNECTED: in isNormalStateTransition()
735 == BluetoothProfile.STATE_CONNECTED); in isNormalStateTransition()
753 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange()
779 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange()
822 } else if (newState == BluetoothProfile.STATE_CONNECTED || ( in updateProfileConnectionState()
824 && currHashState != BluetoothProfile.STATE_CONNECTED)) { in updateProfileConnectionState()
831 if (currHashState == BluetoothProfile.STATE_CONNECTED in updateProfileConnectionState()
[all …]
/aosp12/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSession.java253 private static final int STATE_CONNECTED = 1; field in SpellCheckerSession.SpellCheckerSessionListenerImpl
259 case STATE_CONNECTED: return "STATE_CONNECTED"; in stateToString()
368 case STATE_CONNECTED: in processCloseLocked()
414 mState = STATE_CONNECTED; in onServiceConnected()
449 return mState != STATE_CONNECTED; in isDisconnected()
462 if (mState != STATE_WAIT_CONNECTION && mState != STATE_CONNECTED) { in processOrEnqueueTask()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DLocalMediaManager.java61 @IntDef({MediaDeviceState.STATE_CONNECTED,
66 int STATE_CONNECTED = 0; field
503 mOnTransferBluetoothDevice.setState(MediaDeviceState.STATE_CONNECTED); in onDeviceListAdded()
505 MediaDeviceState.STATE_CONNECTED); in onDeviceListAdded()
595 connectDevice.setState(MediaDeviceState.STATE_CONNECTED); in onConnectedDeviceChanged()
598 MediaDeviceState.STATE_CONNECTED); in onConnectedDeviceChanged()

1234567