Home
last modified time | relevance | path

Searched refs:HeadsetClientStateMachine (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java56 private HashMap<BluetoothDevice, HeadsetClientStateMachine> mStateMachineMap = new HashMap<>();
128 for (Iterator<Map.Entry<BluetoothDevice, HeadsetClientStateMachine>> it = in stop()
130 HeadsetClientStateMachine sm = in stop()
164 int hfVol = HeadsetClientStateMachine.amToHfVol(streamValue);
172 for (HeadsetClientStateMachine sm : mStateMachineMap.values()) {
174 sm.sendMessage(HeadsetClientStateMachine.SET_SPEAKER_VOLUME,
479 HeadsetClientStateMachine sm = getStateMachine(device); in connect()
491 sm.sendMessage(HeadsetClientStateMachine.CONNECT, device); in connect()
503 HeadsetClientStateMachine sm = getStateMachine(device); in disconnect()
515 sm.sendMessage(HeadsetClientStateMachine.DISCONNECT, device); in disconnect()
[all …]
DHeadsetClientStateMachineFactory.java27 public HeadsetClientStateMachine make(HeadsetClientService context, HandlerThread t, in make()
29 return HeadsetClientStateMachine.make(context, t.getLooper(), nativeInterface); in make()
DHeadsetClientStateMachine.java77 public class HeadsetClientStateMachine extends StateMachine { class
666 HeadsetClientStateMachine(HeadsetClientService context, Looper looper, in HeadsetClientStateMachine() method in HeadsetClientStateMachine
710 static HeadsetClientStateMachine make(HeadsetClientService context, Looper looper, in make()
713 HeadsetClientStateMachine hfcsm = new HeadsetClientStateMachine(context, looper, in make()
1018 obtainMessage(HeadsetClientStateMachine.SET_SPEAKER_VOLUME, amVol, 0)); in processConnectionEvent()
1021 deferMessage(obtainMessage(HeadsetClientStateMachine.SET_MIC_VOLUME, in processConnectionEvent()
1024 deferMessage(obtainMessage(HeadsetClientStateMachine.SUBSCRIBER_INFO)); in processConnectionEvent()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java3 import static com.android.bluetooth.hfpclient.HeadsetClientStateMachine.AT_OK;
4 import static com.android.bluetooth.hfpclient.HeadsetClientStateMachine.VOICE_RECOGNITION_START;
5 import static com.android.bluetooth.hfpclient.HeadsetClientStateMachine.VOICE_RECOGNITION_STOP;
52 private HeadsetClientStateMachine mHeadsetClientStateMachine;
97 new HeadsetClientStateMachine(mHeadsetClientService, mHandlerThread.getLooper(), in setUp()
150 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Disconnected.class)); in testIncomingPriorityReject()
179 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Connecting.class)); in testIncomingPriorityAccept()
196 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Connected.class)); in testIncomingPriorityAccept()
225 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Connecting.class)); in testIncomingTimeout()
230 timeout(HeadsetClientStateMachine.CONNECTING_TIMEOUT_MS * 2).times( in testIncomingTimeout()
[all …]