Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java178 HearingAidStackEvent event = (HearingAidStackEvent) message.obj; in processMessage()
186 case HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processMessage()
203 case HearingAidStackEvent.CONNECTION_STATE_DISCONNECTED: in processConnectionEvent()
206 case HearingAidStackEvent.CONNECTION_STATE_CONNECTING: in processConnectionEvent()
216 case HearingAidStackEvent.CONNECTION_STATE_CONNECTED: in processConnectionEvent()
227 case HearingAidStackEvent.CONNECTION_STATE_DISCONNECTING: in processConnectionEvent()
272 HearingAidStackEvent disconnectEvent = in processMessage()
273 new HearingAidStackEvent( in processMessage()
274 HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in processMessage()
276 disconnectEvent.valueInt1 = HearingAidStackEvent.CONNECTION_STATE_DISCONNECTED; in processMessage()
[all …]
DHearingAidNativeInterface.java138 private void sendMessageToService(HearingAidStackEvent event) { in sendMessageToService()
152 HearingAidStackEvent event = in onConnectionStateChanged()
153 new HearingAidStackEvent(HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged()
164 HearingAidStackEvent event = new HearingAidStackEvent( in onDeviceAvailable()
165 HearingAidStackEvent.EVENT_TYPE_DEVICE_AVAILABLE); in onDeviceAvailable()
DHearingAidStackEvent.java25 public class HearingAidStackEvent { class
43 HearingAidStackEvent(int type) { in HearingAidStackEvent() method in HearingAidStackEvent
DHearingAidService.java602 void messageFromNative(HearingAidStackEvent stackEvent) { in messageFromNative()
606 if (stackEvent.type == HearingAidStackEvent.EVENT_TYPE_DEVICE_AVAILABLE) { in messageFromNative()
623 if (stackEvent.type == HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative()
625 case HearingAidStackEvent.CONNECTION_STATE_CONNECTED: in messageFromNative()
626 case HearingAidStackEvent.CONNECTION_STATE_CONNECTING: in messageFromNative()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java427 HearingAidStackEvent connCompletedEvent; in testConnectAnotherPair_disconnectCurrentPair()
429 connCompletedEvent = new HearingAidStackEvent( in testConnectAnotherPair_disconnectCurrentPair()
430 HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testConnectAnotherPair_disconnectCurrentPair()
432 connCompletedEvent.valueInt1 = HearingAidStackEvent.CONNECTION_STATE_CONNECTED; in testConnectAnotherPair_disconnectCurrentPair()
434 connCompletedEvent = new HearingAidStackEvent( in testConnectAnotherPair_disconnectCurrentPair()
435 HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testConnectAnotherPair_disconnectCurrentPair()
437 connCompletedEvent.valueInt1 = HearingAidStackEvent.CONNECTION_STATE_CONNECTED; in testConnectAnotherPair_disconnectCurrentPair()
499 HearingAidStackEvent connCompletedEvent; in testAudioManagerConnectDisconnect()
501 connCompletedEvent = new HearingAidStackEvent( in testAudioManagerConnectDisconnect()
502 HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testAudioManagerConnectDisconnect()
[all …]
DHearingAidStateMachineTest.java123 HearingAidStackEvent connStCh = in testIncomingPriorityReject()
124 new HearingAidStackEvent(HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPriorityReject()
126 connStCh.valueInt1 = HearingAidStackEvent.CONNECTION_STATE_CONNECTED; in testIncomingPriorityReject()
145 HearingAidStackEvent connStCh = in testIncomingPriorityAccept()
146 new HearingAidStackEvent(HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPriorityAccept()
148 connStCh.valueInt1 = HearingAidStackEvent.CONNECTION_STATE_CONNECTING; in testIncomingPriorityAccept()
163 HearingAidStackEvent connCompletedEvent = in testIncomingPriorityAccept()
164 new HearingAidStackEvent(HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPriorityAccept()
166 connCompletedEvent.valueInt1 = HearingAidStackEvent.CONNECTION_STATE_CONNECTED; in testIncomingPriorityAccept()
232 HearingAidStackEvent connStCh = in testIncomingTimeout()
[all …]