Searched defs:mStateMachines (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceTest.java76 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>(); field in class:HeadsetServiceTest
112 Set<BluetoothDevice> keys = mStateMachines.keySet();
137 mStateMachines.put(mCurrentDevice, stateMachine);
160 mStateMachines.clear();
247 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT,
249 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice);
250 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn(
254 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn(
265 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine.CONNECT),
284 verify(mStateMachines
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
H A DHearingAidService.java69 private final Map<BluetoothDevice, HearingAidStateMachine> mStateMachines = field in class:HearingAidService
110 mStateMachines.clear();
161 synchronized (mStateMachines) {
162 for (HearingAidStateMachine sm : mStateMachines.values()) {
166 mStateMachines.clear();
246 synchronized (mStateMachines) {
260 synchronized (mStateMachines) {
291 synchronized (mStateMachines) {
292 HearingAidStateMachine sm = mStateMachines.get(storedDevice);
311 synchronized (mStateMachines) {
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpService.java73 @GuardedBy("mStateMachines")
75 private final ConcurrentMap<BluetoothDevice, A2dpStateMachine> mStateMachines = field in class:A2dpService
125 mStateMachines.clear();
194 synchronized (mStateMachines) {
195 for (A2dpStateMachine sm : mStateMachines.values()) {
199 mStateMachines.clear();
261 synchronized (mStateMachines) {
282 synchronized (mStateMachines) {
283 A2dpStateMachine sm = mStateMachines.get(device);
295 synchronized (mStateMachines) {
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetService.java101 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>(); field in class:HeadsetService
155 if (mStateMachines.size() > 0) {
157 "start(): mStateMachines is not empty, " + mStateMachines.size()
187 synchronized (mStateMachines) {
209 for (HeadsetStateMachine stateMachine : mStateMachines.values()) {
212 mStateMachines.clear();
260 synchronized (mStateMachines) {
261 HeadsetStateMachine stateMachine = mStateMachines.get(device);
271 synchronized (mStateMachines) {
[all...]

Completed in 33 milliseconds