Searched refs:HeadsetStateMachine (Results 1 - 6 of 6) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetStateMachineTest.java57 * Tests for {@link HeadsetStateMachine}
69 private HeadsetStateMachine mHeadsetStateMachine;
123 HeadsetStateMachine.sConnectTimeoutMs = CONNECT_TIMEOUT_TEST_MILLIS;
147 IsInstanceOf.instanceOf(HeadsetStateMachine.Disconnected.class));
159 IsInstanceOf.instanceOf(HeadsetStateMachine.Connected.class));
167 mHeadsetStateMachine.sendMessage(HeadsetStateMachine.CONNECT, mTestDevice);
174 IsInstanceOf.instanceOf(HeadsetStateMachine.Connecting.class));
182 mHeadsetStateMachine.sendMessage(HeadsetStateMachine.STACK_EVENT,
191 IsInstanceOf.instanceOf(HeadsetStateMachine.Connecting.class));
199 mHeadsetStateMachine.sendMessage(HeadsetStateMachine
[all...]
H A DHeadsetServiceTest.java76 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>();
134 final HeadsetStateMachine stateMachine = mock(HeadsetStateMachine.class);
247 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT,
265 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine.CONNECT),
284 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT,
298 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT,
321 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT,
360 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT,
362 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine
[all...]
H A DHeadsetServiceAndStateMachineTest.java77 * {@link HeadsetStateMachine}
96 private ArgumentCaptor<HeadsetStateMachine> mStateMachineArgument =
97 ArgumentCaptor.forClass(HeadsetStateMachine.class);
648 * 2. HeadsetStateMachine sends out {@link Intent#ACTION_VOICE_COMMAND}
705 * 2. HeadsetStateMachine sends out {@link Intent#ACTION_VOICE_COMMAND}
738 * 2. HeadsetStateMachine sends out {@link Intent#ACTION_VOICE_COMMAND}
890 * 2. HeadsetStateMachine sends out {@link Intent#ACTION_VOICE_COMMAND}
942 * 2. HeadsetStateMachine sends out {@link Intent#ACTION_VOICE_COMMAND}
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetObjectsFactory.java63 * Make a {@link HeadsetStateMachine}
73 public HeadsetStateMachine makeStateMachine(BluetoothDevice device, Looper looper,
76 return HeadsetStateMachine.make(device, looper, headsetService, adapterService,
85 public void destroyStateMachine(HeadsetStateMachine stateMachine) {
86 HeadsetStateMachine.destroy(stateMachine);
H A DHeadsetService.java101 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>();
209 for (HeadsetStateMachine stateMachine : mStateMachines.values()) {
256 void execute(HeadsetStateMachine stateMachine);
261 HeadsetStateMachine stateMachine = mStateMachines.get(device);
280 stateMachine -> stateMachine.sendMessage(HeadsetStateMachine.DEVICE_STATE_CHANGED,
294 HeadsetStateMachine stateMachine = mStateMachines.get(stackEvent.device);
315 stateMachine.sendMessage(HeadsetStateMachine.STACK_EVENT, stackEvent);
344 HeadsetStateMachine.INTENT_SCO_VOLUME_CHANGED, intent));
357 final HeadsetStateMachine stateMachine = mStateMachines.get(device);
363 HeadsetStateMachine
[all...]
H A DHeadsetStateMachine.java69 public class HeadsetStateMachine extends StateMachine { class in inherits:StateMachine
70 private static final String TAG = "HeadsetStateMachine";
160 private HeadsetStateMachine(BluetoothDevice device, Looper looper, method in class:HeadsetStateMachine
186 static HeadsetStateMachine make(BluetoothDevice device, Looper looper,
189 HeadsetStateMachine stateMachine =
190 new HeadsetStateMachine(device, looper, headsetService, adapterService,
197 static void destroy(HeadsetStateMachine stateMachine) {

Completed in 186 milliseconds