Searched refs:HeadsetClientStateMachine (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 58 private HashMap<BluetoothDevice, HeadsetClientStateMachine> mStateMachineMap = new HashMap<>(); 134 for (Iterator<Map.Entry<BluetoothDevice, HeadsetClientStateMachine>> it = in stop() 136 HeadsetClientStateMachine sm = in stop() 170 int hfVol = HeadsetClientStateMachine.amToHfVol(streamValue); 178 for (HeadsetClientStateMachine sm : mStateMachineMap.values()) { 180 sm.sendMessage(HeadsetClientStateMachine.SET_SPEAKER_VOLUME, 485 HeadsetClientStateMachine sm = getStateMachine(device); in connect() 497 sm.sendMessage(HeadsetClientStateMachine.CONNECT, device); in connect() 509 HeadsetClientStateMachine sm = getStateMachine(device); in disconnect() 521 sm.sendMessage(HeadsetClientStateMachine.DISCONNECT, device); in disconnect() [all …]
|
D | HeadsetClientStateMachineFactory.java | 27 public HeadsetClientStateMachine make(HeadsetClientService context, HandlerThread t, in make() 29 return HeadsetClientStateMachine.make(context, t.getLooper(), nativeInterface); in make()
|
D | HeadsetClientStateMachine.java | 77 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/ |
D | HeadsetClientStateMachineTest.java | 3 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 …]
|