Searched refs:mStateMachines (Results 1 – 4 of 4) sorted by relevance
78 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>(); field in HeadsetServiceTest115 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 …]
102 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>(); field in HeadsetService156 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 …]
72 private final ConcurrentMap<BluetoothDevice, A2dpStateMachine> mStateMachines = field in A2dpService117 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 …]
71 private final Map<BluetoothDevice, HearingAidStateMachine> mStateMachines = field in HearingAidService115 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 …]