Home
last modified time | relevance | path

Searched refs:VolumeControlStackEvent (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlStateMachineTest.java126 VolumeControlStackEvent connStCh = in testIncomingPolicyReject()
127 new VolumeControlStackEvent( in testIncomingPolicyReject()
128 VolumeControlStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPolicyReject()
130 connStCh.valueInt1 = VolumeControlStackEvent.CONNECTION_STATE_CONNECTED; in testIncomingPolicyReject()
148 VolumeControlStackEvent connStCh = in testIncomingPolicyAccept()
149 new VolumeControlStackEvent( in testIncomingPolicyAccept()
150 VolumeControlStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in testIncomingPolicyAccept()
152 connStCh.valueInt1 = VolumeControlStackEvent.CONNECTION_STATE_CONNECTING; in testIncomingPolicyAccept()
169 VolumeControlStackEvent connCompletedEvent = in testIncomingPolicyAccept()
170 new VolumeControlStackEvent( in testIncomingPolicyAccept()
[all …]
DVolumeControlNativeInterfaceTest.java58 int state = VolumeControlStackEvent.CONNECTION_STATE_CONNECTED; in onConnectionStateChanged()
63 ArgumentCaptor<VolumeControlStackEvent> event = in onConnectionStateChanged()
64 ArgumentCaptor.forClass(VolumeControlStackEvent.class); in onConnectionStateChanged()
67 .isEqualTo(VolumeControlStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged()
79 ArgumentCaptor<VolumeControlStackEvent> event = in onVolumeStateChanged()
80 ArgumentCaptor.forClass(VolumeControlStackEvent.class); in onVolumeStateChanged()
83 .isEqualTo(VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED); in onVolumeStateChanged()
95 ArgumentCaptor<VolumeControlStackEvent> event = in onGroupVolumeStateChanged()
96 ArgumentCaptor.forClass(VolumeControlStackEvent.class); in onGroupVolumeStateChanged()
99 .isEqualTo(VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED); in onGroupVolumeStateChanged()
[all …]
DVolumeControlServiceTest.java554 VolumeControlStackEvent stackEvent = in testVolumeControlStackEvents()
555 new VolumeControlStackEvent( in testVolumeControlStackEvents()
556 VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED); in testVolumeControlStackEvents()
571 final VolumeControlStackEvent stackEvent = in testVolumeCalculations()
572 new VolumeControlStackEvent( in testVolumeCalculations()
573 VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED); in testVolumeCalculations()
622 final VolumeControlStackEvent stackEvent = in testAutonomousMuteUnmute()
623 new VolumeControlStackEvent( in testAutonomousMuteUnmute()
624 VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED); in testAutonomousMuteUnmute()
662 VolumeControlStackEvent stackEvent = in testVolumeCache()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/vc/
DVolumeControlStateMachine.java165 VolumeControlStackEvent event = (VolumeControlStackEvent) message.obj; in processMessage()
171 case VolumeControlStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED: in processMessage()
188 case VolumeControlStackEvent.CONNECTION_STATE_DISCONNECTED: in processConnectionEvent()
191 case VolumeControlStackEvent.CONNECTION_STATE_CONNECTING: in processConnectionEvent()
205 case VolumeControlStackEvent.CONNECTION_STATE_CONNECTED: in processConnectionEvent()
218 case VolumeControlStackEvent.CONNECTION_STATE_DISCONNECTING: in processConnectionEvent()
268 VolumeControlStackEvent disconnectEvent = in processMessage()
269 new VolumeControlStackEvent( in processMessage()
270 VolumeControlStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in processMessage()
273 VolumeControlStackEvent.CONNECTION_STATE_DISCONNECTED; in processMessage()
[all …]
DVolumeControlNativeInterface.java229 private void sendMessageToService(VolumeControlStackEvent event) { in sendMessageToService()
243 VolumeControlStackEvent event = in onConnectionStateChanged()
244 new VolumeControlStackEvent( in onConnectionStateChanged()
245 VolumeControlStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged()
255 VolumeControlStackEvent event = in onVolumeStateChanged()
256 new VolumeControlStackEvent( in onVolumeStateChanged()
257 VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED); in onVolumeStateChanged()
270 VolumeControlStackEvent event = in onGroupVolumeStateChanged()
271 new VolumeControlStackEvent( in onGroupVolumeStateChanged()
272 VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED); in onGroupVolumeStateChanged()
[all …]
DVolumeControlStackEvent.java22 public class VolumeControlStackEvent { class
49 VolumeControlStackEvent(int type) { in VolumeControlStackEvent() method in VolumeControlStackEvent
DVolumeControlService.java1125 void messageFromNative(VolumeControlStackEvent stackEvent) { in messageFromNative()
1128 if (stackEvent.type == VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED) { in messageFromNative()
1152 if (stackEvent.type == VolumeControlStackEvent.EVENT_TYPE_DEVICE_AVAILABLE) { in messageFromNative()
1158 == VolumeControlStackEvent.EVENT_TYPE_EXT_AUDIO_OUT_VOL_OFFSET_CHANGED) { in messageFromNative()
1163 if (stackEvent.type == VolumeControlStackEvent.EVENT_TYPE_EXT_AUDIO_OUT_LOCATION_CHANGED) { in messageFromNative()
1169 == VolumeControlStackEvent.EVENT_TYPE_EXT_AUDIO_OUT_DESCRIPTION_CHANGED) { in messageFromNative()
1179 == VolumeControlStackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED) { in messageFromNative()
1181 case VolumeControlStackEvent.CONNECTION_STATE_CONNECTED: in messageFromNative()
1182 case VolumeControlStackEvent.CONNECTION_STATE_CONNECTING: in messageFromNative()