Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java119 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
129 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
140 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileConnectDisconnect()
153 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
154 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
155 updateProfileStatus(mPanProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
164 updateProfileStatus(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testMultipleProfileConnectDisconnect()
183 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp()
202 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp()
215 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, BluetoothProfile.HEARING_AID); 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.java167 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
170 BluetoothProfile.STATE_CONNECTED, BluetoothProfile.A2DP); in dispatchProfileConnectionStateChanged_registerCallback_shouldDispatchCallback()
194 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
220 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
233 BluetoothAdapter.STATE_CONNECTED); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
250 mCachedDevice1.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
251 mCachedDevice2.onProfileStateChanged(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
252 mCachedDevice1.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
253 mCachedDevice2.onProfileStateChanged(mHfpProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
320 mCachedDevice1.onProfileStateChanged(mLeAudioProfile, BluetoothProfile.STATE_CONNECTED); in dispatchActiveDeviceChanged_connectedMemberDevices_activeDeviceChanged()
[all …]
DMapClientProfileTest.java69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
DPbapClientProfileTest.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()
DA2dpSinkProfileTest.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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DA2dpProfile.java83 device.onProfileStateChanged(A2dpProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
132 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
149 BluetoothProfile.STATE_CONNECTED, in getConnectableDevices()
248 } else if (getConnectionStatus(bluetoothDevice) != BluetoothProfile.STATE_CONNECTED in isHighQualityAudioEnabled()
275 if (getConnectionStatus(bluetoothDevice) != BluetoothProfile.STATE_CONNECTED) { in setHighQualityAudioEnabled()
296 || getConnectionStatus(device) != BluetoothProfile.STATE_CONNECTED) { in getHighQualityAudioOptionLabel()
366 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DBluetoothCallback.java19 import static android.bluetooth.BluetoothAdapter.STATE_CONNECTED;
170 STATE_CONNECTED,
DSapProfile.java75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
159 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
182 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()
DHfpClientProfile.java77 HfpClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
122 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
190 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()
DMapProfile.java76 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
161 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
184 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DHearingAidProfile.java110 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
162 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
179 BluetoothProfile.STATE_CONNECTED, in getConnectableDevices()
346 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DHeadsetProfile.java78 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
188 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
211 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
DLeAudioProfile.java88 BluetoothProfile.STATE_CONNECTED); in onServiceConnected()
139 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices()
269 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java99 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNoConnectionWithDevices()
135 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testAsyncConnectionState()
145 assertEquals(BluetoothProfile.STATE_CONNECTED, in testAsyncConnectionState()
153 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testNullAsync_DoesNotCrash()
208 when(device.getMaxConnectionState()).thenReturn(BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
211 BluetoothProfile.STATE_CONNECTED); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
236 BluetoothProfile.STATE_CONNECTED); in testOnActiveDeviceChanged_updatesAudioActive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java192 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_wifiEnabledAndCasting()
229 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_hotspotEnabledAndConnectedAndCasting()
250 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_castDevicePresent()
267 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_projectionOnly()
283 device.state = CastDevice.STATE_CONNECTED; in testUpdateState_projectionOnly()
298 casting.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection()
303 projection.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection()
327 connected.state = CastDevice.STATE_CONNECTED; in testUpdateState_connectedAndConnecting()
361 device.state = CastController.CastDevice.STATE_CONNECTED; in testExpandView_casting_projection()
389 device.state = CastDevice.STATE_CONNECTED; in testExpandView_casting_mediaRoute()
/frameworks/base/core/java/android/net/
DVpnProfileState.java39 public static final int STATE_CONNECTED = 2; field in VpnProfileState
45 STATE_CONNECTED,
158 case STATE_CONNECTED: in convertStateToString()
/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/core/java/android/view/textservice/
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()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerController.java42 public static final int STATE_CONNECTED = 1; field in PlayerController
78 mController == null ? STATE_DISCONNECTED : STATE_CONNECTED); in setListener()
196 mListener.onConnectionStateChange(STATE_CONNECTED);

123