/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
H A D | HearingAidServiceTest.java | 346 BluetoothProfile.STATE_DISCONNECTED); in testOutgoingConnectTimeout() 383 BluetoothProfile.STATE_DISCONNECTED); in testConnectAPair_connectBothDevices() 387 BluetoothProfile.STATE_DISCONNECTED); in testConnectAPair_connectBothDevices() 417 BluetoothProfile.STATE_DISCONNECTED); in testConnectAnotherPair_disconnectCurrentPair() 419 BluetoothProfile.STATE_DISCONNECTED); in testConnectAnotherPair_disconnectCurrentPair() 453 BluetoothProfile.STATE_DISCONNECTED); in testConnectAnotherPair_disconnectCurrentPair() 484 BluetoothProfile.STATE_DISCONNECTED); in testAudioManagerConnectDisconnect() 488 BluetoothProfile.STATE_DISCONNECTED); in testAudioManagerConnectDisconnect() 599 BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents() 615 BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents() [all …]
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDeviceTest.java | 120 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect() 130 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect() 141 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect() 156 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect() 162 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect() 167 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect() 172 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect() 193 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp() 290 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_DISCONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceHfp() 828 thenReturn(BluetoothProfile.STATE_DISCONNECTED); in isConnectedHearingAidDevice_disconnected_returnFalse() [all …]
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/ |
H A D | LeAudioServiceTest.java | 348 BluetoothProfile.STATE_DISCONNECTED); in testOutgoingConnectTimeout() 384 BluetoothProfile.STATE_DISCONNECTED); in testAudioManagerConnectDisconnect() 388 BluetoothProfile.STATE_DISCONNECTED); in testAudioManagerConnectDisconnect() 489 BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents() 505 BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents() 522 BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents() 529 BluetoothProfile.STATE_DISCONNECTED, in testCreateStateMachineStackEvents() 530 BluetoothProfile.STATE_DISCONNECTED); in testCreateStateMachineStackEvents() 556 BluetoothProfile.STATE_DISCONNECTED); in testDeleteStateMachineUnbondEvents() 619 BluetoothProfile.STATE_DISCONNECTED); in testDeleteStateMachineDisconnectEvents() [all …]
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
H A D | PhonePolicyTest.java | 238 BluetoothProfile.STATE_DISCONNECTED); in testDisconnectNoAutoConnect() 255 BluetoothProfile.STATE_DISCONNECTED); in testDisconnectNoAutoConnect() 297 BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect() 338 BluetoothProfile.STATE_DISCONNECTED); in testReconnectOnPartialConnect_PreviousPartialFail() 428 BluetoothProfile.STATE_DISCONNECTED); in testAutoConnectMultipleDevices() 430 BluetoothProfile.STATE_DISCONNECTED); in testAutoConnectMultipleDevices() 518 BluetoothProfile.STATE_DISCONNECTED); in testSetConnectionPolicyMultipleDevices() 521 BluetoothProfile.STATE_DISCONNECTED); in testSetConnectionPolicyMultipleDevices() 526 BluetoothProfile.STATE_DISCONNECTED); in testSetConnectionPolicyMultipleDevices() 528 BluetoothProfile.STATE_DISCONNECTED); in testSetConnectionPolicyMultipleDevices() [all …]
|
H A D | SilenceDeviceManagerTest.java | 177 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_DISCONNECTED); in a2dpConnected() 190 intent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_DISCONNECTED); in a2dpDisconnected() 201 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, BluetoothProfile.STATE_DISCONNECTED); in headsetConnected() 214 intent.putExtra(BluetoothProfile.EXTRA_STATE, BluetoothProfile.STATE_DISCONNECTED); in headsetDisconnected()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
H A D | A2dpServiceTest.java | 384 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testOutgoingConnectTimeout() 443 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testOutgoingConnectDisconnectSuccess() 523 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testCreateStateMachineStackEvents() 539 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testCreateStateMachineStackEvents() 549 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testCreateStateMachineStackEvents() 557 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testCreateStateMachineStackEvents() 596 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents() 602 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents() 636 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testProcessAudioStateChangedCodecConfigChangedEvents() 692 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testDeleteStateMachineUnbondEvents() [all …]
|
/aosp12/hardware/google/pixel/health/ |
H A D | BatteryDefender.cpp | 228 case STATE_DISCONNECTED: in stateMachine_runAction() 270 nextState = STATE_DISCONNECTED; in stateMachine_getNextState() 275 nextState = STATE_DISCONNECTED; in stateMachine_getNextState() 278 case STATE_DISCONNECTED: in stateMachine_getNextState() 298 nextState = STATE_DISCONNECTED; in stateMachine_getNextState() 303 nextState = STATE_DISCONNECTED; in stateMachine_getNextState() 323 case STATE_DISCONNECTED: in stateMachine_firstAction()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
H A D | PanService.java | 175 BluetoothProfile.STATE_DISCONNECTED, in cleanup() 300 return BluetoothPan.STATE_DISCONNECTED; in getConnectionState() 353 if (getConnectionState(device) != BluetoothProfile.STATE_DISCONNECTED) { in connect() 374 return BluetoothPan.STATE_DISCONNECTED; in getConnectionState() 539 return BluetoothProfile.STATE_DISCONNECTED; in convertHalState() 544 return BluetoothProfile.STATE_DISCONNECTED; in convertHalState() 560 prevState = BluetoothProfile.STATE_DISCONNECTED; in handlePanDeviceStateChange() 576 if (prevState == BluetoothProfile.STATE_DISCONNECTED in handlePanDeviceStateChange() 606 } else if (state == BluetoothProfile.STATE_DISCONNECTED) { in handlePanDeviceStateChange() 624 } else if (state == BluetoothProfile.STATE_DISCONNECTED) { in handlePanDeviceStateChange() [all …]
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
H A D | PbapClientStateMachine.java | 106 private int mMostRecentState = BluetoothProfile.STATE_DISCONNECTED; 133 BluetoothProfile.STATE_DISCONNECTED); in enter() 134 mMostRecentState = BluetoothProfile.STATE_DISCONNECTED; in enter() 375 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 384 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 407 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 414 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
|
/aosp12/frameworks/base/core/java/com/android/internal/net/ |
H A D | LegacyVpnInfo.java | 35 public static final int STATE_DISCONNECTED = 0; field in LegacyVpnInfo 93 return STATE_DISCONNECTED; in stateFromNetworkInfo() 98 return STATE_DISCONNECTED; in stateFromNetworkInfo()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImplTest.java | 95 when(mMockAdapter.getConnectionState()).thenReturn(BluetoothAdapter.STATE_DISCONNECTED); in testNoConnectionWithDevices() 98 BluetoothAdapter.STATE_DISCONNECTED); in testNoConnectionWithDevices() 106 assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testDefaultConnectionState() 134 assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testAsyncConnectionState() 152 assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testNullAsync_DoesNotCrash() 183 BluetoothAdapter.STATE_DISCONNECTED); in testOnBluetoothStateChange_updatesConnectionState()
|
/aosp12/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothProfile.java | 59 int STATE_DISCONNECTED = 0; field 69 STATE_DISCONNECTED, 361 case STATE_DISCONNECTED: in getConnectionStateName()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | CastController.java | 36 public static final int STATE_DISCONNECTED = 0; field in CastController.CastDevice 43 public int state = STATE_DISCONNECTED;
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | HidDeviceProfile.java | 109 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 116 return getConnectionStatus(device) != BluetoothProfile.STATE_DISCONNECTED; in isEnabled() 154 case BluetoothProfile.STATE_DISCONNECTED: in getSummaryResourceForDevice()
|
H A D | HearingAidProfile.java | 143 BluetoothProfile.STATE_DISCONNECTED, in getConnectableDevices() 158 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionStatus() 242 case BluetoothProfile.STATE_DISCONNECTED: in getSummaryResourceForDevice()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
H A D | AdapterProperties.java | 98 private volatile int mConnectionState = BluetoothAdapter.STATE_DISCONNECTED; 637 return BluetoothProfile.STATE_DISCONNECTED; in getProfileConnectionState() 705 return (state == BluetoothProfile.STATE_DISCONNECTED in validateProfileConnectionState() 713 case BluetoothProfile.STATE_DISCONNECTED: in convertToAdapterState() 714 return BluetoothAdapter.STATE_DISCONNECTED; in convertToAdapterState() 728 case BluetoothProfile.STATE_DISCONNECTED: in isNormalStateTransition() 734 return (nextState == BluetoothProfile.STATE_DISCONNECTED) || (nextState in isNormalStateTransition() 787 case BluetoothProfile.STATE_DISCONNECTED: in updateCountersAndCheckForConnectionStateChange() 1011 setConnectionState(BluetoothAdapter.STATE_DISCONNECTED); in onBluetoothReady() 1090 case BluetoothAdapter.STATE_DISCONNECTED: in dumpConnectionState()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
H A D | HidHostService.java | 126 if (inputDeviceState != BluetoothProfile.STATE_DISCONNECTED) { in cleanup() 127 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); in cleanup() 168 broadcastConnectionState(device, BluetoothProfile.STATE_DISCONNECTED); 192 (prevStateInteger == null) ? BluetoothHidHost.STATE_DISCONNECTED 199 && prevState == BluetoothHidHost.STATE_DISCONNECTED 383 return BluetoothHidHost.STATE_DISCONNECTED; in getConnectionState() 526 if (getConnectionState(device) != BluetoothHidHost.STATE_DISCONNECTED) { in connect() 565 return BluetoothHidHost.STATE_DISCONNECTED; in getConnectionState() 813 int prevState = (prevStateInteger == null) ? BluetoothHidHost.STATE_DISCONNECTED in broadcastConnectionState() 928 return BluetoothProfile.STATE_DISCONNECTED; in convertHalState() [all …]
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
H A D | HeadsetServiceTest.java | 180 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testGetHeadsetService() 296 BluetoothProfile.STATE_DISCONNECTED); in testMessageFromNative_deviceConnected() 297 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testMessageFromNative_deviceConnected() 385 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testConnectDevice_connectDeviceAboveLimit() 418 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED); in testConnectAudio_withOneDevice() 470 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectAudio_withMultipleDevices() 546 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING); in testConnectAudio_connectTwoAudioChannelsShouldFail() 681 BluetoothProfile.STATE_DISCONNECTED); in testConnectAudio_deviceDisconnected() 682 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testConnectAudio_deviceDisconnected() 686 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.STATE_DISCONNECTED); in testConnectAudio_deviceDisconnected() [all …]
|
H A D | HeadsetStateMachineTest.java | 150 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testDefaultDisconnectedState() 178 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED, in testStateTransition_DisconnectedToConnecting_Connect() 196 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED, in testStateTransition_DisconnectedToConnecting_StackConnected() 214 BluetoothProfile.STATE_CONNECTING, BluetoothProfile.STATE_DISCONNECTED, in testStateTransition_DisconnectedToConnecting_StackConnecting() 249 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING, in testStateTransition_ConnectingToDisconnected_StackDisconnected() 268 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTING, in testStateTransition_ConnectingToDisconnected_Timeout() 444 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED, in testStateTransition_ConnectedToDisconnected_StackDisconnected() 577 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED, in testStateTransition_AudioConnectingToDisconnected_StackDisconnected() 712 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED, in testStateTransition_AudioOnToDisconnected_StackDisconnected() 856 BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED, in testStateTransition_AudioDisconnectingToDisconnected_StackDisconnected() [all …]
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
H A D | SapService.java | 108 mState = BluetoothSap.STATE_DISCONNECTED; in SapService() 309 setState(BluetoothSap.STATE_DISCONNECTED); in stopSapServerSession() 552 setState(BluetoothSap.STATE_DISCONNECTED, BluetoothSap.RESULT_CANCELED); in disconnect() 599 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 695 setState(BluetoothSap.STATE_DISCONNECTED, BluetoothSap.RESULT_CANCELED); in stop() 702 setState(BluetoothSap.STATE_DISCONNECTED, BluetoothSap.RESULT_CANCELED); in cleanup() 905 setState(BluetoothSap.STATE_DISCONNECTED); in onReceive() 949 return BluetoothSap.STATE_DISCONNECTED; in getState() 1026 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState()
|
/aosp12/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConference.java | 161 mState = Connection.STATE_DISCONNECTED; in RemoteConference() 191 newState != Connection.STATE_DISCONNECTED) { in setState() 304 if (mState != Connection.STATE_DISCONNECTED) { in setDisconnected() 306 setState(Connection.STATE_DISCONNECTED); in setDisconnected()
|
/aosp12/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
H A D | PlayerController.java | 41 public static final int STATE_DISCONNECTED = 0; field in PlayerController 78 mController == null ? STATE_DISCONNECTED : STATE_CONNECTED); in setListener() 171 mListener.onConnectionStateChange(STATE_DISCONNECTED);
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/ |
H A D | LeAudioStateMachine.java | 139 broadcastConnectionState(BluetoothProfile.STATE_DISCONNECTED, in enter() 148 mLastConnectionState = BluetoothProfile.STATE_DISCONNECTED; in exit() 498 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 507 return BluetoothProfile.STATE_DISCONNECTED; in getConnectionState() 551 case BluetoothProfile.STATE_DISCONNECTED: in profileStateToString()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
H A D | BluetoothSummaryUpdaterTest.java | 71 private final int[] mAdapterConnectionState = {BluetoothAdapter.STATE_DISCONNECTED}; 169 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_DISCONNECTED); in onBluetoothStateChanged_btEnabled_notConnected_shouldSendDisconnectedMessage() 183 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_DISCONNECTED); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary() 232 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_DISCONNECTED); in onConnectionStateChanged_inconsistentState_shouldSendDisconnectedMessage()
|
/aosp12/packages/apps/Nfc/src/com/android/nfc/handover/ |
H A D | BluetoothPeripheralHandover.java | 271 != BluetoothProfile.STATE_DISCONNECTED) { in nextStepDisconnect() 281 != BluetoothProfile.STATE_DISCONNECTED) { in nextStepDisconnect() 288 != BluetoothProfile.STATE_DISCONNECTED) { in nextStepDisconnect() 500 } else if (state == BluetoothProfile.STATE_DISCONNECTED) { in handleIntent() 514 } else if (state == BluetoothProfile.STATE_DISCONNECTED) { in handleIntent() 528 } else if (state == BluetoothProfile.STATE_DISCONNECTED) { in handleIntent()
|