Home
last modified time | relevance | path

Searched refs:mStateMachines (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java78 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>(); field in HeadsetServiceTest
116 Set<BluetoothDevice> keys = mStateMachines.keySet(); in setUp()
140 mStateMachines.put(mCurrentDevice, stateMachine); in setUp()
163 mStateMachines.clear(); in tearDown()
242 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT, in testConnectDevice_connectDeviceBelowLimit()
244 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectDevice_connectDeviceBelowLimit()
245 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
249 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
260 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine.CONNECT), in testConnectDevice_connectDeviceBelowLimit()
279 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT, in testMessageFromNative_deviceConnected()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java109 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>(); field in HeadsetService
164 if (mStateMachines.size() > 0) { in start()
166 "start(): mStateMachines is not empty, " + mStateMachines.size() in start()
196 synchronized (mStateMachines) { in stop()
219 for (HeadsetStateMachine stateMachine : mStateMachines.values()) { in stop()
222 mStateMachines.clear(); in stop()
233 synchronized (mStateMachines) { in stop()
273 synchronized (mStateMachines) { in doForStateMachine()
274 HeadsetStateMachine stateMachine = mStateMachines.get(device); in doForStateMachine()
284 synchronized (mStateMachines) { in doForEachConnectedStateMachine()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioService.java74 private final Map<BluetoothDevice, LeAudioStateMachine> mStateMachines = new HashMap<>(); field in LeAudioService
111 mStateMachines.clear(); in start()
158 synchronized (mStateMachines) { in stop()
159 for (LeAudioStateMachine sm : mStateMachines.values()) { in stop()
163 mStateMachines.clear(); in stop()
226 synchronized (mStateMachines) { in connect()
244 synchronized (mStateMachines) { in connect()
270 synchronized (mStateMachines) { in disconnect()
271 LeAudioStateMachine sm = mStateMachines.get(device); in disconnect()
290 synchronized (mStateMachines) { in disconnect()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java85 private final ConcurrentMap<BluetoothDevice, A2dpStateMachine> mStateMachines = field in A2dpService
135 mStateMachines.clear(); in start()
200 synchronized (mStateMachines) { in stop()
201 for (A2dpStateMachine sm : mStateMachines.values()) { in stop()
205 mStateMachines.clear(); in stop()
260 synchronized (mStateMachines) { in connect()
301 synchronized (mStateMachines) { in disconnect()
302 A2dpStateMachine sm = mStateMachines.get(device); in disconnect()
313 synchronized (mStateMachines) { in getConnectedDevices()
315 for (A2dpStateMachine sm : mStateMachines.values()) { in getConnectedDevices()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java78 private final Map<BluetoothDevice, HearingAidStateMachine> mStateMachines = field in HearingAidService
122 mStateMachines.clear(); in start()
174 synchronized (mStateMachines) { in stop()
175 for (HearingAidStateMachine sm : mStateMachines.values()) { in stop()
179 mStateMachines.clear(); in stop()
268 synchronized (mStateMachines) { in connect()
282 synchronized (mStateMachines) { in connect()
321 synchronized (mStateMachines) { in disconnect()
322 HearingAidStateMachine sm = mStateMachines.get(storedDevice); in disconnect()
340 synchronized (mStateMachines) { in getConnectedDevices()
[all …]