Searched refs:HeadsetClientStateMachine (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 63 private HashMap<BluetoothDevice, HeadsetClientStateMachine> mStateMachineMap = new HashMap<>(); 144 for (Iterator<Map.Entry<BluetoothDevice, HeadsetClientStateMachine>> it = in stop() 146 HeadsetClientStateMachine sm = in stop() 180 int hfVol = HeadsetClientStateMachine.amToHfVol(streamValue); 188 for (HeadsetClientStateMachine sm : mStateMachineMap.values()) { 190 sm.sendMessage(HeadsetClientStateMachine.SET_SPEAKER_VOLUME, 211 for (HeadsetClientStateMachine sm : mStateMachineMap.values()) { 213 sm.sendMessage(HeadsetClientStateMachine.SEND_BIEV, 556 HeadsetClientStateMachine sm = getStateMachine(device); in connect() 568 sm.sendMessage(HeadsetClientStateMachine.CONNECT, device); in connect() [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 | 86 public class HeadsetClientStateMachine extends StateMachine { class 760 HeadsetClientStateMachine(HeadsetClientService context, Looper looper, in HeadsetClientStateMachine() method in HeadsetClientStateMachine 804 static HeadsetClientStateMachine make(HeadsetClientService context, Looper looper, in make() 807 HeadsetClientStateMachine hfcsm = new HeadsetClientStateMachine(context, looper, in make() 1114 obtainMessage(HeadsetClientStateMachine.SET_SPEAKER_VOLUME, amVol, 0)); in processConnectionEvent() 1117 deferMessage(obtainMessage(HeadsetClientStateMachine.SET_MIC_VOLUME, in processConnectionEvent() 1120 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; 53 private HeadsetClientStateMachine mHeadsetClientStateMachine; 98 new HeadsetClientStateMachine(mHeadsetClientService, mHandlerThread.getLooper(), in setUp() 152 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Disconnected.class)); in testIncomingPriorityReject() 181 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Connecting.class)); in testIncomingPriorityAccept() 198 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Connected.class)); in testIncomingPriorityAccept() 227 IsInstanceOf.instanceOf(HeadsetClientStateMachine.Connecting.class)); in testIncomingTimeout() 232 timeout(HeadsetClientStateMachine.CONNECTING_TIMEOUT_MS * 2).times( in testIncomingTimeout() [all …]
|
D | HeadsetClientServiceTest.java | 64 @Mock private HeadsetClientStateMachine mStateMachine; 117 eq(HeadsetClientStateMachine.SEND_BIEV), in testSendBIEVtoStateMachineWhenBatteryChanged() 134 eq(HeadsetClientStateMachine.SEND_BIEV), in testUpdateBatteryLevel()
|