Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java74 private HeadsetStateMachine mHeadsetStateMachine;
128 HeadsetStateMachine.sConnectTimeoutMs = CONNECT_TIMEOUT_TEST_MILLIS; in setUp()
152 IsInstanceOf.instanceOf(HeadsetStateMachine.Disconnected.class)); in testDefaultDisconnectedState()
164 IsInstanceOf.instanceOf(HeadsetStateMachine.Connected.class)); in testSetupConnectedState()
172 mHeadsetStateMachine.sendMessage(HeadsetStateMachine.CONNECT, mTestDevice); in testStateTransition_DisconnectedToConnecting_Connect()
179 IsInstanceOf.instanceOf(HeadsetStateMachine.Connecting.class)); in testStateTransition_DisconnectedToConnecting_Connect()
187 mHeadsetStateMachine.sendMessage(HeadsetStateMachine.STACK_EVENT, in testStateTransition_DisconnectedToConnecting_StackConnected()
196 IsInstanceOf.instanceOf(HeadsetStateMachine.Connecting.class)); in testStateTransition_DisconnectedToConnecting_StackConnected()
204 mHeadsetStateMachine.sendMessage(HeadsetStateMachine.STACK_EVENT, in testStateTransition_DisconnectedToConnecting_StackConnecting()
213 IsInstanceOf.instanceOf(HeadsetStateMachine.Connecting.class)); in testStateTransition_DisconnectedToConnecting_StackConnecting()
[all …]
DHeadsetServiceTest.java78 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>();
137 final HeadsetStateMachine stateMachine = mock(HeadsetStateMachine.class); in setUp()
242 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT, in testConnectDevice_connectDeviceBelowLimit()
260 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine.CONNECT), in testConnectDevice_connectDeviceBelowLimit()
279 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT, in testMessageFromNative_deviceConnected()
293 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT, in testMessageFromNative_deviceConnected()
316 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT, in testMessageFromNative_deviceConnectingUnknown()
358 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT, in testConnectDevice_connectDeviceAboveLimit()
360 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine.CONNECT), in testConnectDevice_connectDeviceAboveLimit()
406 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT, in testConnectAudio_withOneDevice()
[all …]
DHeadsetServiceAndStateMachineTest.java99 private ArgumentCaptor<HeadsetStateMachine> mStateMachineArgument =
100 ArgumentCaptor.forClass(HeadsetStateMachine.class);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java107 private final HashMap<BluetoothDevice, HeadsetStateMachine> mStateMachines = new HashMap<>();
218 for (HeadsetStateMachine stateMachine : mStateMachines.values()) { in stop()
268 void execute(HeadsetStateMachine stateMachine); in execute()
273 HeadsetStateMachine stateMachine = mStateMachines.get(device); in doForStateMachine()
292 stateMachine -> stateMachine.sendMessage(HeadsetStateMachine.DEVICE_STATE_CHANGED, in onDeviceStateChanged()
306 HeadsetStateMachine stateMachine = mStateMachines.get(stackEvent.device); in messageFromNative()
327 stateMachine.sendMessage(HeadsetStateMachine.STACK_EVENT, stackEvent); in messageFromNative()
356 HeadsetStateMachine.INTENT_SCO_VOLUME_CHANGED, intent));
369 final HeadsetStateMachine stateMachine = mStateMachines.get(device);
375 HeadsetStateMachine.INTENT_CONNECTION_ACCESS_REPLY, intent);
[all …]
DHeadsetObjectsFactory.java73 public HeadsetStateMachine makeStateMachine(BluetoothDevice device, Looper looper, in makeStateMachine()
76 return HeadsetStateMachine.make(device, looper, headsetService, adapterService, in makeStateMachine()
85 public void destroyStateMachine(HeadsetStateMachine stateMachine) { in destroyStateMachine()
86 HeadsetStateMachine.destroy(stateMachine); in destroyStateMachine()
DHeadsetStateMachine.java76 public class HeadsetStateMachine extends StateMachine { class
169 private HeadsetStateMachine(BluetoothDevice device, Looper looper, in HeadsetStateMachine() method in HeadsetStateMachine
196 static HeadsetStateMachine make(BluetoothDevice device, Looper looper, in make()
199 HeadsetStateMachine stateMachine = in make()
200 new HeadsetStateMachine(device, looper, headsetService, adapterService, in make()
207 static void destroy(HeadsetStateMachine stateMachine) { in destroy()