/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 489 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect() 502 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect() 551 if (connectionState != BluetoothProfile.STATE_CONNECTED && in startVoiceRecognition() 565 if (connectionState != BluetoothProfile.STATE_CONNECTED && in stopVoiceRecognition() 619 if (connectionState != BluetoothProfile.STATE_CONNECTED && in holdCall() 631 if (connectionState != BluetoothProfile.STATE_CONNECTED && in acceptCall() 644 if (connectionState != BluetoothProfile.STATE_CONNECTED && in rejectCall() 657 if (connectionState != BluetoothProfile.STATE_CONNECTED && in terminateCall() 671 if (connectionState != BluetoothProfile.STATE_CONNECTED && in enterPrivateMode() 685 if (connectionState != BluetoothProfile.STATE_CONNECTED && in redial() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterProperties.java | 360 state == BluetoothProfile.STATE_CONNECTED || in validateProfileConnectionState() 371 case BluetoothProfile.STATE_CONNECTED: in convertToAdapterState() 372 return BluetoothAdapter.STATE_CONNECTED; in convertToAdapterState() 386 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange() 400 case BluetoothProfile.STATE_CONNECTED: in updateCountersAndCheckForConnectionStateChange() 443 } else if (newState == BluetoothProfile.STATE_CONNECTED || in updateProfileConnectionState() 445 currHashState != BluetoothProfile.STATE_CONNECTED)) { in updateProfileConnectionState() 452 if (currHashState == BluetoothProfile.STATE_CONNECTED || in updateProfileConnectionState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStateMachine.java | 276 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 391 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 413 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 425 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 434 broadcastConnectionState(mIncomingDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 444 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 544 BluetoothProfile.STATE_CONNECTED); in processMessage() 546 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processMessage() 601 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent() 668 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
|
D | A2dpSinkService.java | 124 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect() 137 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 251 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 389 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 400 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 408 broadcastConnectionState(mIncomingDevice, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 426 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 532 BluetoothProfile.STATE_CONNECTED); in processMessage() 534 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processMessage() 567 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent() 641 return BluetoothProfile.STATE_CONNECTED; in getConnectionState()
|
D | A2dpService.java | 143 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect() 156 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | LegacyVpnPreference.java | 26 import static com.android.internal.net.LegacyVpnInfo.STATE_CONNECTED; 68 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
|
D | AppPreference.java | 34 public static final int STATE_CONNECTED = LegacyVpnInfo.STATE_CONNECTED; field in AppPreference
|
D | VpnSettings.java | 244 p.setState(AppPreference.STATE_CONNECTED); in handleMessage() 283 mConnectedLegacyVpn.state == LegacyVpnInfo.STATE_CONNECTED) { in onPreferenceClick() 295 boolean connected = (pref.getState() == AppPreference.STATE_CONNECTED); in onPreferenceClick()
|
/packages/services/Car/car-support-lib/src/android/support/car/ |
D | Car.java | 142 private static final int STATE_CONNECTED = 2; field in Car 150 mConnectionState = STATE_CONNECTED; 277 mConnectionState = STATE_CONNECTED; in Car() 320 return mConnectionState == STATE_CONNECTED; in isConnected()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 331 != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect() 341 BluetoothProfile.STATE_CONNECTED) { in nextStepConnect() 347 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) { in nextStepConnect() 429 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent() 439 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent() 449 if (state == BluetoothProfile.STATE_CONNECTED) { in handleIntent()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 434 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 616 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 637 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 650 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 657 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processConnectionEvent() 739 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED, in processMultiHFConnected() 804 BluetoothProfile.STATE_CONNECTED); in processMessage() 843 BluetoothProfile.STATE_CONNECTED); in processMessage() 845 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED, in processMessage() 1036 BluetoothProfile.STATE_CONNECTED); in processConnectionEvent() [all …]
|
D | HeadsetService.java | 357 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect() 370 if (connectionState != BluetoothProfile.STATE_CONNECTED && in disconnect() 416 if (connectionState != BluetoothProfile.STATE_CONNECTED && in startVoiceRecognition() 430 if (connectionState != BluetoothProfile.STATE_CONNECTED && in stopVoiceRecognition() 508 if (connectionState != BluetoothProfile.STATE_CONNECTED && in stopScoUsingVirtualVoiceCall() 537 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in sendVendorSpecificResultCode()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidService.java | 338 new int[] {BluetoothProfile.STATE_CONNECTED}); in getConnectedDevices() 468 if (state != BluetoothInputDevice.STATE_CONNECTED) { in getProtocolMode() 482 if (state != BluetoothInputDevice.STATE_CONNECTED) { in virtualUnplug() 494 if (state != BluetoothInputDevice.STATE_CONNECTED) { in setProtocolMode() 508 if (state != BluetoothInputDevice.STATE_CONNECTED) { in getReport() 526 if (state != BluetoothInputDevice.STATE_CONNECTED) { in setReport() 544 if (state != BluetoothInputDevice.STATE_CONNECTED) { in sendData() 670 return BluetoothProfile.STATE_CONNECTED; in convertHalState()
|
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/ |
D | TunerRecordingSessionWorker.java | 82 @IntDef({STATE_IDLE, STATE_CONNECTED, STATE_RECORDING}) 86 private static final int STATE_CONNECTED = 2; field in TunerRecordingSessionWorker 309 mSessionState = STATE_CONNECTED; in resetRecorder() 321 if (mSessionState == STATE_CONNECTED) { in onConnect() 330 mSessionState = STATE_CONNECTED; in onConnect() 335 if (mSessionState != STATE_CONNECTED) { in onStartRecording()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 317 new int[] {BluetoothProfile.STATE_CONNECTED}); in getConnectedDevices() 371 return BluetoothProfile.STATE_CONNECTED; in convertHalState() 414 if (state == BluetoothProfile.STATE_CONNECTED) { in handlePanDeviceStateChange() 435 if (state == BluetoothProfile.STATE_CONNECTED) { in handlePanDeviceStateChange() 438 (prevState == BluetoothProfile.STATE_CONNECTED || in handlePanDeviceStateChange() 550 if (getPanDeviceConnectionState(device) == BluetoothProfile.STATE_CONNECTED) { in getConnectedPanDevices()
|
/packages/services/Car/car-lib/src/android/car/ |
D | Car.java | 215 private static final int STATE_CONNECTED = 2; field in Car 241 mConnectionState = STATE_CONNECTED; 341 mConnectionState = STATE_CONNECTED; in Car()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpControllerService.java | 188 if (states[i] == BluetoothProfile.STATE_CONNECTED) { in getDevicesMatchingConnectionStates() 197 return (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED in getConnectionState() 597 if ((newState == BluetoothProfile.STATE_CONNECTED) && in handleMessage() 618 (oldState == BluetoothProfile.STATE_CONNECTED)) /* connection down */ in handleMessage() 817 int oldState = (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED in onConnectionStateChanged() 819 int newState = (connected ? BluetoothProfile.STATE_CONNECTED in onConnectionStateChanged() 833 } else if (!connected && oldState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapService.java | 498 case BluetoothSap.STATE_CONNECTED: in disconnect() 514 if (mState == BluetoothSap.STATE_CONNECTED && mRemoteDevice != null) { in getConnectedDevices() 544 if (getState() == BluetoothSap.STATE_CONNECTED && getRemoteDevice().equals(device)) { in getConnectionState() 545 return BluetoothProfile.STATE_CONNECTED; in getConnectionState() 822 return (service.getState() == BluetoothSap.STATE_CONNECTED in isConnected()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 272 setState(BluetoothMap.STATE_CONNECTED); in startObexServerSessions() 520 case BluetoothMap.STATE_CONNECTED: in disconnectMap() 535 if (mState == BluetoothMap.STATE_CONNECTED && mRemoteDevice != null) { in getConnectedDevices() 565 if (getState() == BluetoothMap.STATE_CONNECTED && getRemoteDevice().equals(device)) { in getConnectionState() 566 return BluetoothProfile.STATE_CONNECTED; in getConnectionState() 1213 return service.getState() == BluetoothMap.STATE_CONNECTED in isConnected()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientService.java | 263 if (connectionState == BluetoothProfile.STATE_CONNECTED || in connect() 282 int[] desiredStates = {BluetoothProfile.STATE_CONNECTED}; in getConnectedDevices()
|
D | PbapPCEClient.java | 103 bluetoothConnectionState = BluetoothProfile.STATE_CONNECTED; in getConnectionState() 163 BluetoothProfile.STATE_CONNECTED); in onPbapClientConnected()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
D | HealthService.java | 477 new int[] {BluetoothHealth.STATE_CONNECTED}); in getConnectedHealthDevices() 661 if (newDeviceState == BluetoothHealth.STATE_CONNECTED) { in broadcastHealthDeviceStateChange() 673 case BluetoothHealth.STATE_CONNECTED: in broadcastHealthDeviceStateChange() 720 return BluetoothHealth.STATE_CONNECTED; in convertState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 510 setState(BluetoothPbap.STATE_CONNECTED); in startObexServerSession() 862 return mState == BluetoothPbap.STATE_CONNECTED && mRemoteDevice.equals(device); 888 case BluetoothPbap.STATE_CONNECTED:
|
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/ |
D | VpnTests.java | 286 (legacyVpnInfo.state != LegacyVpnInfo.STATE_CONNECTED)) { in validateVpnConnection() 293 Assert.assertTrue(legacyVpnInfo.state == LegacyVpnInfo.STATE_CONNECTED); in validateVpnConnection()
|