/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 647 int connectionState = sm.getConnectionState(device); in disconnect() local 648 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect() 649 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect() 755 int connectionState = sm.getConnectionState(device); in startVoiceRecognition() local 756 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in startVoiceRecognition() 769 int connectionState = sm.getConnectionState(device); in stopVoiceRecognition() local 770 if (connectionState != BluetoothProfile.STATE_CONNECTED) { in stopVoiceRecognition() 910 int connectionState = sm.getConnectionState(device); in holdCall() local 911 if (connectionState != BluetoothProfile.STATE_CONNECTED in holdCall() 912 && connectionState != BluetoothProfile.STATE_CONNECTING) { in holdCall() [all …]
|
/packages/services/Car/service/src/com/android/car/stats/ |
D | VmsClientLogger.java | 85 public void logConnectionState(int connectionState) { in logConnectionState() argument 87 mUid, connectionState); in logConnectionState() 91 if (!mConnectionStateCounters.contains(connectionState)) { in logConnectionState() 92 mConnectionStateCounters.put(connectionState, new AtomicLong()); in logConnectionState() 94 counter = mConnectionStateCounters.get(connectionState); in logConnectionState() 99 long getConnectionStateCount(int connectionState) { in getConnectionStateCount() argument 102 counter = mConnectionStateCounters.get(connectionState); in getConnectionStateCount()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientServiceTest.java | 169 int connectionState = BluetoothProfile.STATE_CONNECTED; in disconnect_whenConnected_returnsTrue() local 171 when(sm.getState()).thenReturn(connectionState); in disconnect_whenConnected_returnsTrue() 187 int connectionState = BluetoothProfile.STATE_CONNECTED; in getConnectionState_whenConnected() local 189 when(sm.getState()).thenReturn(connectionState); in getConnectionState_whenConnected() 192 assertThat(mService.getConnectionState(mRemoteDevice)).isEqualTo(connectionState); in getConnectionState_whenConnected() 197 int connectionState = BluetoothProfile.STATE_CONNECTED; in getConnectedDevices() local 202 when(sm.getState()).thenReturn(connectionState); in getConnectedDevices() 288 int connectionState = BluetoothProfile.STATE_CONNECTED; in aclDisconnectedNoTransport_whenConnected_doesNotCallDisconnect() local 291 when(sm.getState()).thenReturn(connectionState); in aclDisconnectedNoTransport_whenConnected_doesNotCallDisconnect() 302 int connectionState = BluetoothProfile.STATE_CONNECTED; in aclDisconnectedLeTransport_whenConnected_doesNotCallDisconnect() local [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | QnsTelephonyListener.java | 169 PreciseDataConnectionState connectionState) { in notifyPreciseDataConnectionStateChanged() argument 172 connectionState.getApnSetting().getApnTypeBitmask()); in notifyPreciseDataConnectionStateChanged() 173 QnsAsyncResult ar = new QnsAsyncResult(null, connectionState, null); in notifyPreciseDataConnectionStateChanged() 176 if (lastState == null || !lastState.equals(connectionState)) { in notifyPreciseDataConnectionStateChanged() 177 mLastPreciseDataConnectionState.put(netCapability, connectionState); in notifyPreciseDataConnectionStateChanged() 179 mSubId, connectionState.getTransportType(), netCapability, connectionState); in notifyPreciseDataConnectionStateChanged() 446 (PreciseDataConnectionState connectionState) -> { in createTelephonyListener() argument 447 onPreciseDataConnectionStateChanged(connectionState); in createTelephonyListener() 671 protected void onPreciseDataConnectionStateChanged(PreciseDataConnectionState connectionState) { in onPreciseDataConnectionStateChanged() argument 672 if (!validatePreciseDataConnectionStateChanged(connectionState)) { in onPreciseDataConnectionStateChanged() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 356 int connectionState = stateMachine.getState(); in disconnect() local 357 if (connectionState == BluetoothProfile.STATE_DISCONNECTED in disconnect() 358 || connectionState == BluetoothProfile.STATE_DISCONNECTING) { in disconnect() 410 int connectionState; in getDevicesMatchingConnectionStates() local 412 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() 413 Log.d(TAG, "Device: " + device + "State: " + connectionState); in getDevicesMatchingConnectionStates() 415 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | PbapClientServiceTest.java | 226 int connectionState = BluetoothProfile.STATE_CONNECTED; in getConnectedDevices() local 229 when(sm.getConnectionState()).thenReturn(connectionState); in getConnectedDevices() 324 int connectionState = BluetoothProfile.STATE_CONNECTED; in broadcastReceiver_withActionAclDisconnectedLeTransport_doesNotCallDisconnect() local 327 when(sm.getConnectionState(mRemoteDevice)).thenReturn(connectionState); in broadcastReceiver_withActionAclDisconnectedLeTransport_doesNotCallDisconnect() 337 int connectionState = BluetoothProfile.STATE_CONNECTED; in broadcastReceiver_withActionAclDisconnectedBrEdrTransport_callsDisconnect() local 340 when(sm.getConnectionState(mRemoteDevice)).thenReturn(connectionState); in broadcastReceiver_withActionAclDisconnectedBrEdrTransport_callsDisconnect()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 190 int connectionState = mapStateMachine.getState(); in disconnect() local 191 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect() 192 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect() 212 int connectionState; in getDevicesMatchingConnectionStates() local 214 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() 215 Log.d(TAG, "Device: " + device + "State: " + connectionState); in getDevicesMatchingConnectionStates() 217 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 886 int connectionState = stateMachine.getConnectionState(); in connect() local 887 if (connectionState == BluetoothProfile.STATE_CONNECTED in connect() 888 || connectionState == BluetoothProfile.STATE_CONNECTING) { in connect() 894 + connectionState); in connect() 934 int connectionState = stateMachine.getConnectionState(); in disconnect() local 935 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect() 936 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect() 942 + connectionState); in disconnect() 984 int connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() local 986 if (connectionState == state) { in getDevicesMatchingConnectionStates() [all …]
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsRequest.java | 144 @NonNull PreciseDataConnectionState connectionState) { in onPreciseDataConnectionStateChanged() 145 ApnSetting apnSetting = connectionState.getApnSetting(); in onPreciseDataConnectionStateChanged() 149 LogUtil.d("onPreciseDataConnectionStateChanged: " + connectionState); in onPreciseDataConnectionStateChanged() 150 mLastConnectionFailure = connectionState.getLastCauseCode(); in onPreciseDataConnectionStateChanged() 153 mNetworkIdToApn.put(connectionState.getNetId(), apnSetting); in onPreciseDataConnectionStateChanged()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 701 int connectionState = stateMachine.getState(); in disconnect() local 702 if (connectionState != BluetoothProfile.STATE_CONNECTED in disconnect() 703 && connectionState != BluetoothProfile.STATE_CONNECTING) { in disconnect() 766 int connectionState; in getDevicesMatchingConnectionStates() local 768 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() 770 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothProfile.java | 403 static String getConnectionStateName(int connectionState) { in getConnectionStateName() argument 404 switch (connectionState) { in getConnectionStateName()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | MultiInternetManager.java | 582 NetworkConnectionState connectionState = new NetworkConnectionState(requestorWs, in setMultiInternetConnectionWorksource() local 584 connectionState.bssid = targetBssid; in setMultiInternetConnectionWorksource() 585 mNetworkConnectionStates.put(band, connectionState); in setMultiInternetConnectionWorksource()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/ |
D | BatteryService.java | 316 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local 319 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 322 if (connectionState == state) { in getDevicesMatchingConnectionStates()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | Utils.java | 71 public static int getConnectionStateSummary(int connectionState) { in getConnectionStateSummary() argument 72 switch (connectionState) { in getConnectionStateSummary()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | SubscriptionsPreferenceController.java | 297 String connectionState = mContext.getString(isDds in getMobilePreferenceSummary() local 301 return connectionState; in getMobilePreferenceSummary() 304 R.string.preference_summary_default_combination, connectionState, result); in getMobilePreferenceSummary()
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | QnsTelephonyListenerTest.java | 743 PreciseDataConnectionState connectionState = in testOnPreciseDataConnectionStateChanged() local 761 mQtListener.mTelephonyListener.onPreciseDataConnectionStateChanged(connectionState); in testOnPreciseDataConnectionStateChanged() 767 connectionState = in testOnPreciseDataConnectionStateChanged() 785 mQtListener.mTelephonyListener.onPreciseDataConnectionStateChanged(connectionState); in testOnPreciseDataConnectionStateChanged() 791 assertEquals(connectionState, output); in testOnPreciseDataConnectionStateChanged()
|
/packages/services/Car/service/src/com/android/car/vms/ |
D | VmsBrokerService.java | 281 private void unregisterClient(IBinder clientToken, int connectionState) { in unregisterClient() argument 289 .logConnectionState(connectionState); in unregisterClient()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/ |
D | SapService.java | 572 int connectionState; in getDevicesMatchingConnectionStates() local 579 connectionState = getConnectionState(device); in getDevicesMatchingConnectionStates() 581 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | GattService.java | 1311 int connectionState = BluetoothProtoEnums.CONNECTION_STATE_DISCONNECTED; in onConnected() local 1320 connectionState = BluetoothProtoEnums.CONNECTION_STATE_CONNECTED; in onConnected() 1328 BluetoothProfile.GATT, address, clientIf, connectionState, status); in onConnected() 2867 int connectionState; in onClientConnected() local 2870 connectionState = BluetoothProtoEnums.CONNECTION_STATE_CONNECTED; in onClientConnected() 2873 connectionState = BluetoothProtoEnums.CONNECTION_STATE_DISCONNECTED; in onClientConnected() 2889 BluetoothProfile.GATT_SERVER, address, serverIf, connectionState, -1); in onClientConnected() 3568 int connectionState, in statsLogGattConnectionStateChange() argument 3573 connectionState, in statsLogGattConnectionStateChange() 3587 + connectionState in statsLogGattConnectionStateChange()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 411 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local 414 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 417 if (connectionState == state) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorService.java | 364 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local 367 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 370 if (connectionState == state) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/ |
D | HapClientService.java | 278 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local 281 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 284 if (connectionState == state) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 1224 int connectionState = in aclStateChangeCallback() local 1232 connectionState, in aclStateChangeCallback() 1256 if (connectionState == BluetoothAdapter.STATE_CONNECTED) { in aclStateChangeCallback()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 441 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local 444 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 447 if (connectionState == state) { in getDevicesMatchingConnectionStates()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/ |
D | VolumeControlService.java | 463 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local 466 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates() 469 if (connectionState == state) { in getDevicesMatchingConnectionStates()
|