Home
last modified time | relevance | path

Searched refs:StackEvent (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DNativeInterface.java310 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged()
329 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged()
345 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_VR_STATE_CHANGED); in onVrStateChanged()
362 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_NETWORK_STATE); in onNetworkState()
380 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_ROAMING_STATE); in onNetworkRoaming()
396 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_NETWORK_SIGNAL); in onNetworkSignal()
411 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_BATTERY_LEVEL); in onBatteryLevel()
426 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_OPERATOR_NAME); in onCurrentOperator()
442 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CALL); in onCall()
466 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CALLSETUP); in onCallSetup()
[all …]
DHeadsetClientStateMachine.java850 case StackEvent.STACK_EVENT: in processMessage()
851 StackEvent event = (StackEvent) message.obj; in processMessage()
854 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processMessage()
937 case StackEvent.STACK_EVENT: in processMessage()
938 StackEvent event = (StackEvent) message.obj; in processMessage()
941 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processMessage()
947 case StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED: in processMessage()
948 case StackEvent.EVENT_TYPE_NETWORK_STATE: in processMessage()
949 case StackEvent.EVENT_TYPE_ROAMING_STATE: in processMessage()
950 case StackEvent.EVENT_TYPE_NETWORK_SIGNAL: in processMessage()
[all …]
DStackEvent.java24 public class StackEvent { class
60 StackEvent(int type) { in StackEvent() method in StackEvent
DHeadsetClientService.java930 public void messageFromNative(StackEvent stackEvent) { in messageFromNative()
936 sm.sendMessage(StackEvent.STACK_EVENT, stackEvent); in messageFromNative()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java134 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPriorityReject()
137 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); in testIncomingPriorityReject()
164 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPriorityAccept()
167 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); in testIncomingPriorityAccept()
182 StackEvent slcEvent = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPriorityAccept()
186 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, slcEvent); in testIncomingPriorityAccept()
210 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingTimeout()
213 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); in testIncomingTimeout()
254 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testInBandRingtone()
257 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); in testInBandRingtone()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DStackEvent.java20 final class StackEvent { class
44 private StackEvent(int type) { in StackEvent() method in StackEvent
62 static StackEvent connectionStateChanged(BluetoothDevice device, int state) { in connectionStateChanged()
63 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in connectionStateChanged()
69 static StackEvent audioStateChanged(BluetoothDevice device, int state) { in audioStateChanged()
70 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in audioStateChanged()
76 static StackEvent audioConfigChanged(BluetoothDevice device, int sampleRate, in audioConfigChanged()
78 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_CONFIG_CHANGED); in audioConfigChanged()
DA2dpSinkStateMachine.java154 processStackEvent((StackEvent) message.obj); in processMessage()
167 void processStackEvent(StackEvent event) { in processStackEvent()
169 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processStackEvent()
171 case StackEvent.CONNECTION_STATE_CONNECTING: in processStackEvent()
182 case StackEvent.CONNECTION_STATE_CONNECTED: in processStackEvent()
185 case StackEvent.CONNECTION_STATE_DISCONNECTED: in processStackEvent()
213 processStackEvent((StackEvent) message.obj); in processMessage()
222 void processStackEvent(StackEvent event) { in processStackEvent()
224 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processStackEvent()
226 case StackEvent.CONNECTION_STATE_CONNECTED: in processStackEvent()
[all …]
DA2dpSinkService.java476 StackEvent event = StackEvent.connectionStateChanged(getDevice(address), state); in onConnectionStateChanged()
486 } else if (state == StackEvent.AUDIO_STATE_STARTED) { in onAudioStateChanged()
489 } else if (state == StackEvent.AUDIO_STATE_STOPPED in onAudioStateChanged()
490 || state == StackEvent.AUDIO_STATE_REMOTE_SUSPEND) { in onAudioStateChanged()
498 StackEvent event = StackEvent.audioConfigChanged(getDevice(address), sampleRate, in onAudioConfigChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DStackEvent.java18 final class StackEvent { class
29 private StackEvent(int type) { in StackEvent() method in StackEvent
45 static StackEvent connectionStateChanged(boolean remoteControlConnected, in connectionStateChanged()
47 StackEvent event = new StackEvent(EVENT_TYPE_CONNECTION_STATE_CHANGED); in connectionStateChanged()
53 static StackEvent rcFeatures(int features) { in rcFeatures()
54 StackEvent event = new StackEvent(EVENT_TYPE_RC_FEATURES); in rcFeatures()
DAvrcpControllerService.java353 StackEvent event = in onConnectionStateChanged()
354 StackEvent.connectionStateChanged(remoteControlConnected, browsingConnected); in onConnectionStateChanged()
DAvrcpControllerStateMachine.java194 public boolean connect(StackEvent event) { in connect()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java154 StackEvent event = in testDisconnect()
155 StackEvent.connectionStateChanged(false, false); in testDisconnect()
189 StackEvent event = in testControlOnly()
190 StackEvent.connectionStateChanged(false, false); in testControlOnly()
221 StackEvent event = in testBrowsingOnly()
222 StackEvent.connectionStateChanged(false, false); in testBrowsingOnly()
825 secondAvrcpStateMachine.connect(StackEvent.connectionStateChanged(true, true)); in testPlaybackWhileNotActiveDevice()
871 secondAvrcpStateMachine.connect(StackEvent.connectionStateChanged(true, true)); in testActiveDeviceManagement()
906 mAvrcpStateMachine.connect(StackEvent.connectionStateChanged(control, browsing)); in setUpConnectedState()