/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 116 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() 180 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp() 199 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_testSingleProfileActiveDeviceA2dp() 212 updateProfileStatus(mA2dpProfile, BluetoothProfile.STATE_CONNECTED); in getConnectionSummary_shortSummary_returnShortSummary() [all …]
|
D | LocalBluetoothProfileManagerTest.java | 161 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()
|
D | BluetoothEventManagerTest.java | 161 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 …]
|
D | PbapClientProfileTest.java | 69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState() 71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
|
D | SapProfileTest.java | 68 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState() 70 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
|
D | HfpClientProfileTest.java | 69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState() 71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
|
D | MapClientProfileTest.java | 69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState() 71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
|
D | A2dpSinkProfileTest.java | 69 thenReturn(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState() 71 isEqualTo(BluetoothProfile.STATE_CONNECTED); in getConnectionStatus_shouldReturnConnectionState()
|
D | HidDeviceProfileTest.java | 69 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/ |
D | BluetoothControllerImplTest.java | 93 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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | A2dpProfile.java | 78 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()
|
D | HearingAidProfile.java | 73 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 125 BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 142 BluetoothProfile.STATE_CONNECTED, in getConnectableDevices() 240 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
|
D | MapClientProfile.java | 75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 160 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 183 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
|
D | SapProfile.java | 75 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 159 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 182 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
|
D | HfpClientProfile.java | 77 HfpClientProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 122 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 190 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
|
D | MapProfile.java | 76 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 161 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 184 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
|
D | A2dpSinkProfile.java | 72 … device.onProfileStateChanged(A2dpSinkProfile.this, BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 113 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 190 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
|
D | HeadsetProfile.java | 78 BluetoothProfile.STATE_CONNECTED); in onServiceConnected() 193 new int[] {BluetoothProfile.STATE_CONNECTED, in getConnectedDevices() 216 case BluetoothProfile.STATE_CONNECTED: in getSummaryResourceForDevice()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | CastTileTest.java | 181 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_wifiEnabledAndCasting() 218 device.state = CastController.CastDevice.STATE_CONNECTED; in testStateActive_hotspotEnabledAndConnectedAndCasting() 239 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_castDevicePresent() 255 device.state = CastDevice.STATE_CONNECTED; in testHandleClick_projectionOnly() 271 device.state = CastDevice.STATE_CONNECTED; in testUpdateState_projectionOnly() 286 casting.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection() 291 projection.state = CastDevice.STATE_CONNECTED; in testUpdateState_castingAndProjection() 315 connected.state = CastDevice.STATE_CONNECTED; in testUpdateState_connectedAndConnecting()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothProfile.java | 63 int STATE_CONNECTED = 2; field 71 STATE_CONNECTED, 365 case STATE_CONNECTED: in getConnectionStateName()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | AudioDeviceBrokerTest.java | 103 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()
|
/frameworks/base/core/java/com/android/internal/net/ |
D | LegacyVpnInfo.java | 38 public static final int STATE_CONNECTED = 3; field in LegacyVpnInfo 91 return STATE_CONNECTED; in stateFromNetworkInfo()
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerSession.java | 253 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/packages/SettingsLib/src/com/android/settingslib/media/ |
D | LocalMediaManager.java | 61 @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()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | PlayerController.java | 42 public static final int STATE_CONNECTED = 1; field in PlayerController 78 mController == null ? STATE_DISCONNECTED : STATE_CONNECTED); in setListener() 196 mListener.onConnectionStateChange(STATE_CONNECTED);
|