Searched refs:STATE_CONNECTED (Results 1 - 25 of 38) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/vpn2/
H A DLegacyVpnPreference.java26 import static com.android.internal.net.LegacyVpnInfo.STATE_CONNECTED;
68 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) {
H A DAppPreference.java34 public static final int STATE_CONNECTED = LegacyVpnInfo.STATE_CONNECTED; field in class:AppPreference
H A DVpnSettings.java244 p.setState(AppPreference.STATE_CONNECTED);
283 mConnectedLegacyVpn.state == LegacyVpnInfo.STATE_CONNECTED) {
295 boolean connected = (pref.getState() == AppPreference.STATE_CONNECTED);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientService.java494 if (connectionState == BluetoothProfile.STATE_CONNECTED ||
508 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
557 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
568 // But since we allow startVoiceRecognition in STATE_CONNECTED and
571 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
625 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
637 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
650 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
663 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
677 if (connectionState != BluetoothProfile.STATE_CONNECTED
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DAdapterProperties.java360 state == BluetoothProfile.STATE_CONNECTED ||
371 case BluetoothProfile.STATE_CONNECTED:
372 return BluetoothAdapter.STATE_CONNECTED;
386 case BluetoothProfile.STATE_CONNECTED:
400 case BluetoothProfile.STATE_CONNECTED:
443 } else if (newState == BluetoothProfile.STATE_CONNECTED ||
445 currHashState != BluetoothProfile.STATE_CONNECTED)) {
452 if (currHashState == BluetoothProfile.STATE_CONNECTED ||
/packages/services/Car/car-support-lib/src/android/support/car/
H A DCar.java142 private static final int STATE_CONNECTED = 2; field in class:Car
150 mConnectionState = STATE_CONNECTED;
277 mConnectionState = STATE_CONNECTED;
320 return mConnectionState == STATE_CONNECTED;
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpStateMachine.java251 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
389 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED,
400 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED,
408 broadcastConnectionState(mIncomingDevice, BluetoothProfile.STATE_CONNECTED,
426 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
532 BluetoothProfile.STATE_CONNECTED);
534 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
567 BluetoothProfile.STATE_CONNECTED);
641 return BluetoothProfile.STATE_CONNECTED;
H A DA2dpService.java143 if (connectionState == BluetoothProfile.STATE_CONNECTED ||
156 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
/packages/apps/Nfc/src/com/android/nfc/handover/
H A DBluetoothPeripheralHandover.java331 != BluetoothProfile.STATE_CONNECTED) {
341 BluetoothProfile.STATE_CONNECTED) {
347 if (mA2dp.getConnectionState(mDevice) != BluetoothProfile.STATE_CONNECTED) {
429 if (state == BluetoothProfile.STATE_CONNECTED) {
439 if (state == BluetoothProfile.STATE_CONNECTED) {
449 if (state == BluetoothProfile.STATE_CONNECTED) {
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetService.java363 if (connectionState == BluetoothProfile.STATE_CONNECTED ||
376 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
422 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
433 // But since we allow startVoiceRecognition in STATE_CONNECTED and
436 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
514 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
543 if (connectionState != BluetoothProfile.STATE_CONNECTED) {
591 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
H A DHeadsetStateMachine.java435 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
626 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
647 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
660 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
667 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
749 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED,
814 BluetoothProfile.STATE_CONNECTED);
853 BluetoothProfile.STATE_CONNECTED);
855 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
1063 BluetoothProfile.STATE_CONNECTED);
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
H A DA2dpSinkStateMachine.java276 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
391 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED,
413 broadcastConnectionState(mCurrentDevice, BluetoothProfile.STATE_CONNECTED,
425 broadcastConnectionState(mTargetDevice, BluetoothProfile.STATE_CONNECTED,
434 broadcastConnectionState(mIncomingDevice, BluetoothProfile.STATE_CONNECTED,
444 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
544 BluetoothProfile.STATE_CONNECTED);
546 broadcastConnectionState(device, BluetoothProfile.STATE_CONNECTED,
601 BluetoothProfile.STATE_CONNECTED);
668 return BluetoothProfile.STATE_CONNECTED;
[all...]
H A DA2dpSinkService.java124 if (connectionState == BluetoothProfile.STATE_CONNECTED ||
137 if (connectionState != BluetoothProfile.STATE_CONNECTED &&
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
H A DPanService.java315 new int[] {BluetoothProfile.STATE_CONNECTED});
369 return BluetoothProfile.STATE_CONNECTED;
417 if (state == BluetoothProfile.STATE_CONNECTED) {
448 if (state == BluetoothProfile.STATE_CONNECTED) {
451 (prevState == BluetoothProfile.STATE_CONNECTED ||
554 if (getPanDeviceConnectionState(device) == BluetoothProfile.STATE_CONNECTED) {
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
H A DTunerRecordingSessionWorker.java82 @IntDef({STATE_IDLE, STATE_CONNECTED, STATE_RECORDING})
86 private static final int STATE_CONNECTED = 2; field in class:TunerRecordingSessionWorker
309 mSessionState = STATE_CONNECTED;
321 if (mSessionState == STATE_CONNECTED) {
330 mSessionState = STATE_CONNECTED;
335 if (mSessionState != STATE_CONNECTED) {
/packages/services/Car/car-lib/src/android/car/
H A DCar.java215 private static final int STATE_CONNECTED = 2; field in class:Car
241 mConnectionState = STATE_CONNECTED;
341 mConnectionState = STATE_CONNECTED;
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
H A DHidService.java338 new int[] {BluetoothProfile.STATE_CONNECTED});
468 if (state != BluetoothInputDevice.STATE_CONNECTED) {
482 if (state != BluetoothInputDevice.STATE_CONNECTED) {
494 if (state != BluetoothInputDevice.STATE_CONNECTED) {
508 if (state != BluetoothInputDevice.STATE_CONNECTED) {
526 if (state != BluetoothInputDevice.STATE_CONNECTED) {
544 if (state != BluetoothInputDevice.STATE_CONNECTED) {
670 return BluetoothProfile.STATE_CONNECTED;
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DPbapClientService.java263 if (connectionState == BluetoothProfile.STATE_CONNECTED ||
282 int[] desiredStates = {BluetoothProfile.STATE_CONNECTED};
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAvrcpControllerService.java188 if (states[i] == BluetoothProfile.STATE_CONNECTED) {
197 return (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED
597 if ((newState == BluetoothProfile.STATE_CONNECTED) &&
618 (oldState == BluetoothProfile.STATE_CONNECTED)) /* connection down */
817 int oldState = (mConnectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED
819 int newState = (connected ? BluetoothProfile.STATE_CONNECTED
833 } else if (!connected && oldState == BluetoothProfile.STATE_CONNECTED) {
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DDockEventReceiver.java87 BluetoothProfile.STATE_CONNECTED);
H A DUtils.java47 case BluetoothProfile.STATE_CONNECTED:
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
H A DBluetoothA2dpConnector.java63 if (state == BluetoothA2dp.STATE_CONNECTED) {
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
H A DSapService.java498 case BluetoothSap.STATE_CONNECTED:
514 if (mState == BluetoothSap.STATE_CONNECTED && mRemoteDevice != null) {
544 if (getState() == BluetoothSap.STATE_CONNECTED && getRemoteDevice().equals(device)) {
545 return BluetoothProfile.STATE_CONNECTED;
822 return (service.getState() == BluetoothSap.STATE_CONNECTED
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapService.java510 setState(BluetoothPbap.STATE_CONNECTED);
862 return mState == BluetoothPbap.STATE_CONNECTED && mRemoteDevice.equals(device);
888 case BluetoothPbap.STATE_CONNECTED:
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapService.java272 setState(BluetoothMap.STATE_CONNECTED);
520 case BluetoothMap.STATE_CONNECTED:
535 if (mState == BluetoothMap.STATE_CONNECTED && mRemoteDevice != null) {
565 if (getState() == BluetoothMap.STATE_CONNECTED && getRemoteDevice().equals(device)) {
566 return BluetoothProfile.STATE_CONNECTED;
1212 return service.getState() == BluetoothMap.STATE_CONNECTED

Completed in 339 milliseconds

12