/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HfpNativeInterfaceTest.java | 68 ArgumentCaptor<StackEvent> event = ArgumentCaptor.forClass(StackEvent.class); in onConnectionStateChanged() 70 assertThat(event.getValue().type).isEqualTo(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged() 81 ArgumentCaptor<StackEvent> event = ArgumentCaptor.forClass(StackEvent.class); in onAudioStateChanged() 83 assertThat(event.getValue().type).isEqualTo(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged() 92 ArgumentCaptor<StackEvent> event = ArgumentCaptor.forClass(StackEvent.class); in onVrStateChanged() 94 assertThat(event.getValue().type).isEqualTo(StackEvent.EVENT_TYPE_VR_STATE_CHANGED); in onVrStateChanged() 103 ArgumentCaptor<StackEvent> event = ArgumentCaptor.forClass(StackEvent.class); in onNetworkState() 105 assertThat(event.getValue().type).isEqualTo(StackEvent.EVENT_TYPE_NETWORK_STATE); in onNetworkState() 114 ArgumentCaptor<StackEvent> event = ArgumentCaptor.forClass(StackEvent.class); in onNetworkRoaming() 116 assertThat(event.getValue().type).isEqualTo(StackEvent.EVENT_TYPE_ROAMING_STATE); in onNetworkRoaming() [all …]
|
D | HeadsetClientStateMachineTest.java | 273 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); 276 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); 309 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); 312 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); 331 StackEvent slcEvent = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); 335 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, slcEvent); 366 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); 369 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); 488 StackEvent connStCh = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); 491 mHeadsetClientStateMachine.sendMessage(StackEvent.STACK_EVENT, connStCh); [all …]
|
D | StackEventTest.java | 35 int type = StackEvent.EVENT_TYPE_RING_INDICATION; in toString_returnsInfo() 37 StackEvent event = new StackEvent(type); in toString_returnsInfo() 40 + StackEvent.eventTypeToString(type) in toString_returnsInfo() 61 Class<StackEvent> stackEventClass = StackEvent.class; in testToString_allEventFields_toStringMatchesName() 70 assertThat(StackEvent.eventTypeToString(stackEventType)) in testToString_allEventFields_toStringMatchesName() 73 String eventTypeToString = StackEvent.eventTypeToString(stackEventType); in testToString_allEventFields_toStringMatchesName()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | NativeInterface.java | 351 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged() 369 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged() 386 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_VR_STATE_CHANGED); in onVrStateChanged() 403 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_NETWORK_STATE); in onNetworkState() 421 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_ROAMING_STATE); in onNetworkRoaming() 437 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_NETWORK_SIGNAL); in onNetworkSignal() 451 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_BATTERY_LEVEL); in onBatteryLevel() 465 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_OPERATOR_NAME); in onCurrentOperator() 481 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CALL); in onCall() 501 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CALLSETUP); in onCallSetup() [all …]
|
D | HeadsetClientStateMachine.java | 276 case StackEvent.STACK_EVENT: in getMessageName() 1130 case StackEvent.STACK_EVENT: in processMessage() 1131 StackEvent event = (StackEvent) message.obj; in processMessage() 1134 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processMessage() 1227 case StackEvent.STACK_EVENT: in processMessage() 1228 StackEvent event = (StackEvent) message.obj; in processMessage() 1231 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processMessage() 1240 case StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED: in processMessage() 1241 case StackEvent.EVENT_TYPE_NETWORK_STATE: in processMessage() 1242 case StackEvent.EVENT_TYPE_ROAMING_STATE: in processMessage() [all …]
|
D | StackEvent.java | 26 public class StackEvent { class 65 StackEvent(int type) { in StackEvent() method in StackEvent
|
D | HeadsetClientService.java | 1165 public void messageFromNative(StackEvent stackEvent) { in messageFromNative() 1175 sm.sendMessage(StackEvent.STACK_EVENT, stackEvent); in messageFromNative() 1178 private boolean isConnectionEvent(StackEvent stackEvent) { in isConnectionEvent() 1179 if (stackEvent.type == StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in isConnectionEvent()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | StackEvent.java | 20 final class StackEvent { class 44 private StackEvent(int type) { in StackEvent() method in StackEvent 73 static StackEvent connectionStateChanged(BluetoothDevice device, int state) { in connectionStateChanged() 74 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in connectionStateChanged() 80 static StackEvent audioStateChanged(BluetoothDevice device, int state) { in audioStateChanged() 81 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in audioStateChanged() 87 static StackEvent audioConfigChanged(BluetoothDevice device, int sampleRate, int channelCount) { in audioConfigChanged() 88 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_CONFIG_CHANGED); in audioConfigChanged()
|
D | A2dpSinkStateMachine.java | 126 final void onStackEvent(StackEvent event) { in onStackEvent() 166 processStackEvent((StackEvent) message.obj); in processMessage() 180 void processStackEvent(StackEvent event) { in processStackEvent() 182 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processStackEvent() 184 case StackEvent.CONNECTION_STATE_CONNECTING: in processStackEvent() 199 case StackEvent.CONNECTION_STATE_CONNECTED: in processStackEvent() 202 case StackEvent.CONNECTION_STATE_DISCONNECTED: in processStackEvent() 230 processStackEvent((StackEvent) message.obj); in processMessage() 248 void processStackEvent(StackEvent event) { in processStackEvent() 250 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processStackEvent() [all …]
|
D | A2dpSinkNativeInterface.java | 143 private void sendMessageToService(StackEvent event) { in sendMessageToService() 154 StackEvent event = StackEvent.connectionStateChanged(getDevice(address), state); in onConnectionStateChanged() 161 StackEvent event = StackEvent.audioStateChanged(getDevice(address), state); in onAudioStateChanged() 168 StackEvent event = in onAudioConfigChanged() 169 StackEvent.audioConfigChanged(getDevice(address), sampleRate, channelCount); in onAudioConfigChanged()
|
D | A2dpSinkService.java | 515 protected void messageFromNative(StackEvent event) { in messageFromNative() 517 case StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in messageFromNative() 520 case StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED: in messageFromNative() 523 case StackEvent.EVENT_TYPE_AUDIO_CONFIG_CHANGED: in messageFromNative() 532 private void onConnectionStateChanged(StackEvent event) { in onConnectionStateChanged() 541 private void onAudioStateChanged(StackEvent event) { in onAudioStateChanged() 547 } else if (state == StackEvent.AUDIO_STATE_STARTED) { in onAudioStateChanged() 551 } else if (state == StackEvent.AUDIO_STATE_STOPPED in onAudioStateChanged() 552 || state == StackEvent.AUDIO_STATE_REMOTE_SUSPEND) { in onAudioStateChanged() 562 private void onAudioConfigChanged(StackEvent event) { in onAudioConfigChanged()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | StackEventTest.java | 53 testConnectionStateChangedBase(StackEvent.CONNECTION_STATE_DISCONNECTED); in testCreateConnectionStateChangedDisconnectedEvent() 58 testConnectionStateChangedBase(StackEvent.CONNECTION_STATE_CONNECTING); in testCreateConnectionStateChangedConnectingEvent() 63 testConnectionStateChangedBase(StackEvent.CONNECTION_STATE_CONNECTED); in testCreateConnectionStateChangedConnectedEvent() 68 testConnectionStateChangedBase(StackEvent.CONNECTION_STATE_DISCONNECTING); in testCreateConnectionStateChangedDisconnectingEvent() 72 StackEvent event = StackEvent.connectionStateChanged(mDevice, state); in testConnectionStateChangedBase() 74 assertThat(event.mType).isEqualTo(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testConnectionStateChangedBase() 82 testAudioStateChangedBase(StackEvent.AUDIO_STATE_STOPPED); in testCreateAudioStateStoppedEvent() 87 testAudioStateChangedBase(StackEvent.AUDIO_STATE_STARTED); in testCreateAudioStateStartedvent() 92 testAudioStateChangedBase(StackEvent.AUDIO_STATE_REMOTE_SUSPEND); in testCreateAudioStateRemoteSuspendEvent() 96 StackEvent event = StackEvent.audioStateChanged(mDevice, state); in testAudioStateChangedBase() [all …]
|
D | A2dpSinkServiceTest.java | 132 StackEvent nativeEvent = in setupDeviceConnection() 133 StackEvent.connectionStateChanged(device, StackEvent.CONNECTION_STATE_CONNECTED); in setupDeviceConnection() 263 StackEvent audioConfigChanged = in testGetAudioConfiguration() 264 StackEvent.audioConfigChanged(mDevice1, TEST_SAMPLE_RATE, TEST_CHANNEL_COUNT); in testGetAudioConfiguration() 278 StackEvent audioConfigChanged = in testOnAudioConfigChanged_withNullDevice_eventDropped() 279 StackEvent.audioConfigChanged(null, TEST_SAMPLE_RATE, TEST_CHANNEL_COUNT); in testOnAudioConfigChanged_withNullDevice_eventDropped() 289 StackEvent audioConfigChanged = in testOnAudioConfigChanged_withUnknownDevice_eventDropped() 290 StackEvent.audioConfigChanged(mDevice1, TEST_SAMPLE_RATE, TEST_CHANNEL_COUNT); in testOnAudioConfigChanged_withUnknownDevice_eventDropped()
|
D | A2dpSinkStateMachineTest.java | 103 StackEvent.connectionStateChanged(mDevice, state)); in sendConnectionEvent() 110 StackEvent.audioConfigChanged(mDevice, sampleRate, channelCount)); in sendAudioConfigChangedEvent()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | StackEventTest.java | 36 StackEvent stackEvent = in connectionStateChanged() 37 StackEvent.connectionStateChanged(remoteControlConnected, browsingConnected); in connectionStateChanged() 39 assertThat(stackEvent.mType).isEqualTo(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in connectionStateChanged() 50 StackEvent stackEvent = StackEvent.rcFeatures(features); in rcFeatures() 52 assertThat(stackEvent.mType).isEqualTo(StackEvent.EVENT_TYPE_RC_FEATURES); in rcFeatures() 59 StackEvent stackEvent = StackEvent.rcFeatures(1); in toString_whenEventTypeNone() 61 stackEvent.mType = StackEvent.EVENT_TYPE_NONE; in toString_whenEventTypeNone()
|
D | AvrcpControllerServiceTest.java | 346 ArgumentCaptor<StackEvent> captor = ArgumentCaptor.forClass(StackEvent.class); in onConnectionStateChanged_connectCase() 348 StackEvent event = captor.getValue(); in onConnectionStateChanged_connectCase() 349 assertThat(event.mType).isEqualTo(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged_connectCase()
|
D | AvrcpControllerStateMachineTest.java | 210 mAvrcpStateMachine.connect(StackEvent.connectionStateChanged(control, browsing)); in setUpConnectedState() 2075 mAvrcpStateMachine.connect(StackEvent.connectionStateChanged(true, true)); in testBrowseRequestWhileDisconnectedThenRequestWhileConnected_secondRequestSent()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | StackEvent.java | 18 final class StackEvent { class 29 private StackEvent(int type) { in StackEvent() method in StackEvent 45 static StackEvent connectionStateChanged( 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()
|
D | AvrcpControllerService.java | 451 StackEvent event = in onConnectionStateChanged() 452 StackEvent.connectionStateChanged(remoteControlConnected, browsingConnected); in onConnectionStateChanged()
|
D | AvrcpControllerStateMachine.java | 219 public boolean connect(StackEvent event) { in connect()
|