Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java105 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
115 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
126 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
139 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
140 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
141 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
150 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
169 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp()
188 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp()
201 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_shortSummary_returnShortSummary()
[all …]
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()
DBluetoothEventManagerTest.java154 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
157 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
181 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
207 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
220 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
237 mCachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
238 mCachedDevice2.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
239 mCachedDevice1.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
240 mCachedDevice2.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
303 mCachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
[all …]
DMapClientProfileTest.java69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
DSapProfileTest.java68 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
70 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
DPbapClientProfileTest.java69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
DA2dpSinkProfileTest.java69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
DHfpClientProfileTest.java69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
DHidDeviceProfileTest.java69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java89 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNoConnectionWithDevices()
125 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testAsyncConnectionState()
135 assertEquals(BluetoothProfile.STATE_CONNECTED, in testAsyncConnectionState()
143 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNullAsync_DoesNotCrash()
198 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
201 BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
226 BluetoothProfile.STATE_CONNECTED); in testOnActiveDeviceChanged_updatesAudioActive()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceBrokerTest.java100 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 1); in testPostA2dpDeviceConnectionChange()
104 ArgumentMatchers.eq(BluetoothProfile.STATE_CONNECTED) /*state*/, in testPostA2dpDeviceConnectionChange()
187 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 1); in doTestConnectionDisconnectionReconnection()
199 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP, true, 2); in doTestConnectionDisconnectionReconnection()
206 ArgumentMatchers.eq(BluetoothProfile.STATE_CONNECTED)); in doTestConnectionDisconnectionReconnection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java142 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_wifiEnabledAndCasting()
160 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_castDevicePresent()
176 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_projectionOnly()
192 device.state = CastDevice.STATE_CONNECTED; in testUpdateState_projectionOnly()
207 casting.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection()
212 projection.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection()
236 connected.state = CastDevice.STATE_CONNECTED; in testUpdateState_connectedAndConnecting()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
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()
DHearingAidProfile.java73 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
125 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
142 BluetoothProfile.STATE_CONNECTED, in getConnectableDevices()
240 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DMapClientProfile.java75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
160 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
183 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DSapProfile.java75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
159 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
182 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DA2dpSinkProfile.java72 … device.onProfileStateChanged(A2dpSinkProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
113 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
190 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DHfpClientProfile.java77 HfpClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
122 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
190 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DMapProfile.java76 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
161 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
184 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DHeadsetProfile.java78 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
193 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
216 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DCachedBluetoothDevice.java170 case BluetoothProfile.STATE_CONNECTED: in onProfileStateChanged()
195 if (newProfileState == BluetoothProfile.STATE_CONNECTED) { in onProfileStateChanged()
595 if (status == BluetoothProfile.STATE_CONNECTED) { in isConnected()
606 return status == BluetoothProfile.STATE_CONNECTED; in isConnectedProfile()
920 case BluetoothProfile.STATE_CONNECTED: in getConnectionSummary()
1033 case BluetoothProfile.STATE_CONNECTED: in getCarConnectionSummary()
1133 BluetoothProfile.STATE_CONNECTED; in isConnectedA2dpDevice()
1142 BluetoothProfile.STATE_CONNECTED; in isConnectedHfpDevice()
1151 BluetoothProfile.STATE_CONNECTED; in isConnectedHearingAidDevice()
/frameworks/base/core/java/android/bluetooth/
DBluetoothProfile.java64 int STATE_CONNECTED = 2; field
72 STATE_CONNECTED,
359 case STATE_CONNECTED: in getConnectionStateName()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerSession.java243 private static final int STATE_CONNECTED = 1; field in SpellCheckerSession.SpellCheckerSessionListenerImpl
249 case STATE_CONNECTED: return "STATE_CONNECTED"; in stateToString()
357 case STATE_CONNECTED: in processCloseLocked()
403 mState = STATE_CONNECTED; in onServiceConnected()
438 return mState != STATE_CONNECTED; in isDisconnected()
451 if (mState != STATE_WAIT_CONNECTION && mState != STATE_CONNECTED) { in processOrEnqueueTask()
/frameworks/base/core/java/com/android/internal/net/
DLegacyVpnInfo.java38 public static final int STATE_CONNECTED = 3; field in LegacyVpnInfo
91 return STATE_CONNECTED; in stateFromNetworkInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java58 @IntDef({MediaDeviceState.STATE_CONNECTED,
63 int STATE_CONNECTED = 0; field
486 mOnTransferBluetoothDevice.setState(MediaDeviceState.STATE_CONNECTED); in onDeviceListAdded()
488 MediaDeviceState.STATE_CONNECTED); in onDeviceListAdded()
578 connectDevice.setState(MediaDeviceState.STATE_CONNECTED); in onConnectedDeviceChanged()
581 MediaDeviceState.STATE_CONNECTED); in onConnectedDeviceChanged()

123