Home
last modified time | relevance | path

Searched refs:stackEvent (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlStateMachineTest.java312 VolumeControlStackEvent stackEvent = in testStatesChangesWithMessages() local
315 stackEvent.device = mTestDevice; in testStatesChangesWithMessages()
316 stackEvent.valueInt1 = VolumeControlStackEvent.CONNECTION_STATE_CONNECTING; in testStatesChangesWithMessages()
319 mVolumeControlStateMachine.STACK_EVENT, stackEvent), in testStatesChangesWithMessages()
332 stackEvent = in testStatesChangesWithMessages()
335 stackEvent.device = mTestDevice; in testStatesChangesWithMessages()
336 stackEvent.valueInt1 = VolumeControlStackEvent.CONNECTION_STATE_DISCONNECTING; in testStatesChangesWithMessages()
339 mVolumeControlStateMachine.STACK_EVENT, stackEvent), in testStatesChangesWithMessages()
342 stackEvent = in testStatesChangesWithMessages()
345 stackEvent.device = mTestDevice; in testStatesChangesWithMessages()
[all …]
DVolumeControlServiceTest.java554 VolumeControlStackEvent stackEvent = in testVolumeControlStackEvents() local
557 stackEvent.device = mDevice; in testVolumeControlStackEvents()
558 stackEvent.valueInt1 = group_id; in testVolumeControlStackEvents()
559 stackEvent.valueInt2 = volume; in testVolumeControlStackEvents()
560 stackEvent.valueBool1 = mute; in testVolumeControlStackEvents()
561 mService.messageFromNative(stackEvent); in testVolumeControlStackEvents()
571 final VolumeControlStackEvent stackEvent = in testVolumeCalculations() local
574 stackEvent.device = null; in testVolumeCalculations()
575 stackEvent.valueInt1 = 1; // groupId in testVolumeCalculations()
576 stackEvent.valueBool1 = false; // isMuted in testVolumeCalculations()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DStackEventTest.java36 StackEvent stackEvent = in connectionStateChanged() local
39 assertThat(stackEvent.mType).isEqualTo(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in connectionStateChanged()
40 assertThat(stackEvent.mRemoteControlConnected).isTrue(); in connectionStateChanged()
41 assertThat(stackEvent.mBrowsingConnected).isTrue(); in connectionStateChanged()
42 assertThat(stackEvent.toString()) in connectionStateChanged()
50 StackEvent stackEvent = StackEvent.rcFeatures(features); in rcFeatures() local
52 assertThat(stackEvent.mType).isEqualTo(StackEvent.EVENT_TYPE_RC_FEATURES); in rcFeatures()
53 assertThat(stackEvent.mFeatures).isEqualTo(features); in rcFeatures()
54 assertThat(stackEvent.toString()).isEqualTo("EVENT_TYPE_RC_FEATURES"); in rcFeatures()
59 StackEvent stackEvent = StackEvent.rcFeatures(1); in toString_whenEventTypeNone() local
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/
DCsipSetCoordinatorService.java827 void messageFromNative(CsipSetCoordinatorStackEvent stackEvent) { in messageFromNative() argument
828 BluetoothDevice device = stackEvent.device; in messageFromNative()
829 Log.d(TAG, "Message from native: " + stackEvent); in messageFromNative()
832 int groupId = stackEvent.valueInt1; in messageFromNative()
833 if (stackEvent.type == CsipSetCoordinatorStackEvent.EVENT_TYPE_DEVICE_AVAILABLE) { in messageFromNative()
834 Objects.requireNonNull(device, "Device should never be null, event: " + stackEvent); in messageFromNative()
837 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, stackEvent.device); in messageFromNative()
840 BluetoothCsipSetCoordinator.EXTRA_CSIS_GROUP_SIZE, stackEvent.valueInt2); in messageFromNative()
842 BluetoothCsipSetCoordinator.EXTRA_CSIS_GROUP_TYPE_UUID, stackEvent.valueUuid1); in messageFromNative()
847 stackEvent.valueInt3, in messageFromNative()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientService.java1070 public void messageFromNative(HapClientStackEvent stackEvent) { in messageFromNative() argument
1072 if (stackEvent.type == HapClientStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative()
1073 resendToStateMachine(stackEvent); in messageFromNative()
1078 BluetoothDevice device = stackEvent.device; in messageFromNative()
1080 switch (stackEvent.type) { in messageFromNative()
1083 int features = stackEvent.valueInt1; in messageFromNative()
1097 int features = stackEvent.valueInt1; in messageFromNative()
1108 int currentPresetIndex = stackEvent.valueInt1; in messageFromNative()
1109 int groupId = stackEvent.valueInt2; in messageFromNative()
1131 int groupId = stackEvent.valueInt2; in messageFromNative()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java1094 A2dpStackEvent stackEvent = in generateConnectionMessageFromNative() local
1096 stackEvent.device = device; in generateConnectionMessageFromNative()
1097 stackEvent.valueInt = newConnectionState; in generateConnectionMessageFromNative()
1098 mA2dpService.messageFromNative(stackEvent); in generateConnectionMessageFromNative()
1107 A2dpStackEvent stackEvent = in generateUnexpectedConnectionMessageFromNative() local
1109 stackEvent.device = device; in generateUnexpectedConnectionMessageFromNative()
1110 stackEvent.valueInt = newConnectionState; in generateUnexpectedConnectionMessageFromNative()
1111 mA2dpService.messageFromNative(stackEvent); in generateUnexpectedConnectionMessageFromNative()
1120 A2dpStackEvent stackEvent = in generateAudioMessageFromNative() local
1122 stackEvent.device = device; in generateAudioMessageFromNative()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlService.java1125 void messageFromNative(VolumeControlStackEvent stackEvent) { in messageFromNative() argument
1126 Log.d(TAG, "messageFromNative: " + stackEvent); in messageFromNative()
1128 if (stackEvent.type == VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED) { in messageFromNative()
1130 stackEvent.device, in messageFromNative()
1131 stackEvent.valueInt1, in messageFromNative()
1132 stackEvent.valueInt2, in messageFromNative()
1133 stackEvent.valueBool1, in messageFromNative()
1134 stackEvent.valueBool2); in messageFromNative()
1139 stackEvent.device, "Device should never be null, event: " + stackEvent); in messageFromNative()
1151 BluetoothDevice device = stackEvent.device; in messageFromNative()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java2392 LeAudioStackEvent stackEvent = in clearLostDevicesWhileStreaming() local
2395 stackEvent.device = descriptor.mLostLeadDeviceWhileStreaming; in clearLostDevicesWhileStreaming()
2396 stackEvent.valueInt1 = LeAudioStackEvent.CONNECTION_STATE_DISCONNECTED; in clearLostDevicesWhileStreaming()
2397 sm.sendMessage(LeAudioStateMachine.STACK_EVENT, stackEvent); in clearLostDevicesWhileStreaming()
2950 void messageFromNative(LeAudioStackEvent stackEvent) { in messageFromNative() argument
2951 Log.d(TAG, "Message from native: " + stackEvent); in messageFromNative()
2952 BluetoothDevice device = stackEvent.device; in messageFromNative()
2954 if (stackEvent.type == LeAudioStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative()
2976 switch (stackEvent.valueInt1) { in messageFromNative()
3011 switch (stackEvent.valueInt1) { in messageFromNative()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java648 void messageFromNative(HearingAidStackEvent stackEvent) { in messageFromNative() argument
650 stackEvent.device, "Device should never be null, event: " + stackEvent); in messageFromNative()
652 if (stackEvent.type == HearingAidStackEvent.EVENT_TYPE_DEVICE_AVAILABLE) { in messageFromNative()
653 BluetoothDevice device = stackEvent.device; in messageFromNative()
654 int capabilities = stackEvent.valueInt1; in messageFromNative()
655 long hiSyncId = stackEvent.valueLong2; in messageFromNative()
670 BluetoothDevice device = stackEvent.device; in messageFromNative()
673 if (stackEvent.type == HearingAidStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative()
674 switch (stackEvent.valueInt1) { in messageFromNative()
685 Log.e(TAG, "Cannot process stack event: no state machine: " + stackEvent); in messageFromNative()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java1165 public void messageFromNative(StackEvent stackEvent) { in messageFromNative() argument
1167 stackEvent.device, "Device should never be null, event: " + stackEvent); in messageFromNative()
1170 getStateMachine(stackEvent.device, isConnectionEvent(stackEvent)); in messageFromNative()
1173 "State machine not found for stack event: " + stackEvent); in messageFromNative()
1175 sm.sendMessage(StackEvent.STACK_EVENT, stackEvent); in messageFromNative()
1178 private boolean isConnectionEvent(StackEvent stackEvent) { in isConnectionEvent() argument
1179 if (stackEvent.type == StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in isConnectionEvent()
1180 if ((stackEvent.valueInt == HeadsetClientHalConstants.CONNECTION_STATE_CONNECTING) in isConnectionEvent()
1181 || (stackEvent.valueInt in isConnectionEvent()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java930 void messageFromNative(A2dpStackEvent stackEvent) { in messageFromNative() argument
931 requireNonNull(stackEvent.device, "Device should never be null, event: " + stackEvent); in messageFromNative()
933 BluetoothDevice device = stackEvent.device; in messageFromNative()
936 if (stackEvent.type == A2dpStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative()
937 switch (stackEvent.valueInt) { in messageFromNative()
957 Log.e(TAG, "Cannot process stack event: no state machine: " + stackEvent); in messageFromNative()
960 sm.sendMessage(A2dpStateMachine.STACK_EVENT, stackEvent); in messageFromNative()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java1241 HearingAidStackEvent stackEvent = in generateConnectionMessageFromNative() local
1243 stackEvent.device = device; in generateConnectionMessageFromNative()
1244 stackEvent.valueInt1 = newConnectionState; in generateConnectionMessageFromNative()
1245 mService.messageFromNative(stackEvent); in generateConnectionMessageFromNative()
1252 HearingAidStackEvent stackEvent = in generateUnexpectedConnectionMessageFromNative() local
1254 stackEvent.device = device; in generateUnexpectedConnectionMessageFromNative()
1255 stackEvent.valueInt1 = newConnectionState; in generateUnexpectedConnectionMessageFromNative()
1256 mService.messageFromNative(stackEvent); in generateUnexpectedConnectionMessageFromNative()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java360 void messageFromNative(HeadsetStackEvent stackEvent) { in messageFromNative() argument
362 stackEvent.device, "Device should never be null, event: " + stackEvent); in messageFromNative()
364 HeadsetStateMachine stateMachine = mStateMachines.get(stackEvent.device); in messageFromNative()
365 if (stackEvent.type == HeadsetStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative()
366 switch (stackEvent.valueInt) { in messageFromNative()
375 stackEvent.device, in messageFromNative()
381 mStateMachines.put(stackEvent.device, stateMachine); in messageFromNative()
389 "State machine not found for stack event: " + stackEvent); in messageFromNative()
391 stateMachine.sendMessage(HeadsetStateMachine.STACK_EVENT, stackEvent); in messageFromNative()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java225 LeAudioStackEvent stackEvent = in setUp() local
227 mService.messageFromNative(stackEvent); in setUp()
1145 LeAudioStackEvent stackEvent = in generateConnectionMessageFromNative() local
1147 stackEvent.device = device; in generateConnectionMessageFromNative()
1148 stackEvent.valueInt1 = newConnectionState; in generateConnectionMessageFromNative()
1149 mService.messageFromNative(stackEvent); in generateConnectionMessageFromNative()
1156 LeAudioStackEvent stackEvent = in generateUnexpectedConnectionMessageFromNative() local
1158 stackEvent.device = device; in generateUnexpectedConnectionMessageFromNative()
1159 stackEvent.valueInt1 = newConnectionState; in generateUnexpectedConnectionMessageFromNative()
1160 mService.messageFromNative(stackEvent); in generateUnexpectedConnectionMessageFromNative()
[all …]
DLeAudioBroadcastServiceTest.java725 LeAudioStackEvent stackEvent = in prepareConnectedUnicastDevice() local
727 mService.messageFromNative(stackEvent); in prepareConnectedUnicastDevice()