Home
last modified time | relevance | path

Searched refs:mStateMachines (Results 1 – 4 of 4) 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
115 Set<BluetoothDevice> keys = mStateMachines.keySet(); in setUp()
140 mStateMachines.put(mCurrentDevice, stateMachine); in setUp()
165 mStateMachines.clear(); in tearDown()
252 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT, in testConnectDevice_connectDeviceBelowLimit()
254 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectDevice_connectDeviceBelowLimit()
255 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
259 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
270 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine.CONNECT), in testConnectDevice_connectDeviceBelowLimit()
289 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT, in testMessageFromNative_deviceConnected()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java102 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>(); field in HeadsetService
156 if (mStateMachines.size() > 0) { in start()
158 "start(): mStateMachines is not empty, " + mStateMachines.size() in start()
188 synchronized (mStateMachines) { in stop()
210 for (HeadsetStateMachine stateMachine : mStateMachines.values()) { in stop()
213 mStateMachines.clear(); in stop()
223 synchronized (mStateMachines) { in stop()
263 synchronized (mStateMachines) { in doForStateMachine()
264 HeadsetStateMachine stateMachine = mStateMachines.get(device); in doForStateMachine()
274 synchronized (mStateMachines) { in doForEachConnectedStateMachine()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java72 private final ConcurrentMap<BluetoothDevice, A2dpStateMachine> mStateMachines = field in A2dpService
117 mStateMachines.clear(); in start()
181 synchronized (mStateMachines) { in stop()
182 for (A2dpStateMachine sm : mStateMachines.values()) { in stop()
186 mStateMachines.clear(); in stop()
242 synchronized (mStateMachines) { in connect()
278 synchronized (mStateMachines) { in disconnect()
279 A2dpStateMachine sm = mStateMachines.get(device); in disconnect()
291 synchronized (mStateMachines) { in getConnectedDevices()
293 for (A2dpStateMachine sm : mStateMachines.values()) { in getConnectedDevices()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java71 private final Map<BluetoothDevice, HearingAidStateMachine> mStateMachines = field in HearingAidService
115 mStateMachines.clear(); in start()
167 synchronized (mStateMachines) { in stop()
168 for (HearingAidStateMachine sm : mStateMachines.values()) { in stop()
172 mStateMachines.clear(); in stop()
253 synchronized (mStateMachines) { in connect()
267 synchronized (mStateMachines) { in connect()
298 synchronized (mStateMachines) { in disconnect()
299 HearingAidStateMachine sm = mStateMachines.get(storedDevice); in disconnect()
318 synchronized (mStateMachines) { in getConnectedDevices()
[all …]