Home
last modified time | relevance | path

Searched refs:connectionState (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java647 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/
DVmsClientLogger.java85 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/
DMapClientServiceTest.java169 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/
DQnsTelephonyListener.java169 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/
DA2dpSinkService.java356 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/
DPbapClientServiceTest.java226 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/
DMapClientService.java190 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/
DHeadsetService.java886 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/
DMmsRequest.java144 @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/
DAvrcpControllerService.java701 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/
DBluetoothProfile.java403 static String getConnectionStateName(int connectionState) { in getConnectionStateName() argument
404 switch (connectionState) { in getConnectionStateName()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DMultiInternetManager.java582 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/
DBatteryService.java316 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/
DUtils.java71 public static int getConnectionStateSummary(int connectionState) { in getConnectionStateSummary() argument
72 switch (connectionState) { in getConnectionStateSummary()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionsPreferenceController.java297 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/
DQnsTelephonyListenerTest.java743 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/
DVmsBrokerService.java281 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/
DSapService.java572 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/
DGattService.java1311 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/
DHearingAidService.java411 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/
DCsipSetCoordinatorService.java364 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/
DHapClientService.java278 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/
DRemoteDevices.java1224 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/
DA2dpService.java441 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/
DVolumeControlService.java463 int connectionState = BluetoothProfile.STATE_DISCONNECTED; in getDevicesMatchingConnectionStates() local
466 connectionState = sm.getConnectionState(); in getDevicesMatchingConnectionStates()
469 if (connectionState == state) { in getDevicesMatchingConnectionStates()

12