Home
last modified time | relevance | path

Searched refs:LAYER (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/stats/
DCarStatsServiceTest.java49 private static final VmsLayer LAYER = new VmsLayer(1, 2, 3); field in CarStatsServiceTest
156 .logPacketSent(LAYER, 5); in testLogPacketSent()
163 .logPacketSent(LAYER, 3); in testLogPacketSent_MultiplePackets()
165 .logPacketSent(LAYER, 2); in testLogPacketSent_MultiplePackets()
167 .logPacketSent(LAYER, 1); in testLogPacketSent_MultiplePackets()
175 .logPacketSent(LAYER, 3); in testLogPacketSent_MultipleLayers()
190 .logPacketSent(LAYER, 3); in testLogPacketSent_MultipleClients()
192 .logPacketSent(LAYER, 2); in testLogPacketSent_MultipleClients()
207 .logPacketReceived(LAYER, 5); in testLogPacketReceived()
214 .logPacketReceived(LAYER, 3); in testLogPacketReceived_MultiplePackets()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVmsPublisherServiceTest.java71 private static final VmsLayer LAYER = new VmsLayer(1, 2, 3); field in VmsPublisherServiceTest
128 when(mBrokerService.getSubscribersForLayerFromPublisher(LAYER, PUBLISHER_ID)) in setUp()
206 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, LAYER, PUBLISHER_ID, in testPublish()
208 verify(mSubscriberClient).onVmsMessageReceived(LAYER, PAYLOAD); in testPublish()
209 verify(mSubscriberClient2).onVmsMessageReceived(LAYER, PAYLOAD); in testPublish()
211 verify(mPublisherLog).logPacketSent(LAYER, PAYLOAD.length); in testPublish()
212 verify(mSubscriberLog).logPacketReceived(LAYER, PAYLOAD.length); in testPublish()
213 verify(mSubscriberLog2).logPacketReceived(LAYER, PAYLOAD.length); in testPublish()
228 when(mBrokerService.getSubscribersForLayerFromPublisher(LAYER, PUBLISHER_ID)) in testPublish_NoSubscribers()
231 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, LAYER, PUBLISHER_ID, in testPublish_NoSubscribers()
[all …]
DVmsSubscriberServiceTest.java50 private static final VmsLayer LAYER = new VmsLayer(1, 2, 3); field in VmsSubscriberServiceTest
101 mSubscriberService.addVmsSubscriber(mSubscriberClient, LAYER); in testAddVmsSubscriber()
103 verify(mBrokerService).addSubscription(mSubscriberClient, LAYER); in testAddVmsSubscriber()
108 mSubscriberService.removeVmsSubscriber(mSubscriberClient, LAYER); in testRemoveVmsSubscriber()
109 verify(mBrokerService).removeSubscription(mSubscriberClient, LAYER); in testRemoveVmsSubscriber()
115 mSubscriberService.addVmsSubscriberToPublisher(mSubscriberClient, LAYER, PUBLISHER_ID); in testAddVmsSubscriberToPublisher()
117 verify(mBrokerService).addSubscription(mSubscriberClient, LAYER, PUBLISHER_ID); in testAddVmsSubscriberToPublisher()
124 mSubscriberService.removeVmsSubscriberToPublisher(mSubscriberClient, LAYER, PUBLISHER_ID); in testRemoveVmsSubscriberToPublisher()
125 verify(mBrokerService).removeSubscription(mSubscriberClient, LAYER, PUBLISHER_ID); in testRemoveVmsSubscriberToPublisher()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java77 private static final VmsLayer LAYER = new VmsLayer(LAYER_TYPE, LAYER_SUBTYPE, LAYER_VERSION); field in VmsHalServiceTest
225 verify(mPublisherService).publish(mToken, LAYER, PUBLISHER_ID, PAYLOAD); in testHandleDataEvent()
245 verify(mSubscriberService).addVmsSubscriber(mSubscriberClient, LAYER); in testHandleSubscribeEvent()
267 verify(mSubscriberService).addVmsSubscriberToPublisher(mSubscriberClient, LAYER, in testHandleSubscribeToPublisherEvent()
288 verify(mSubscriberService).removeVmsSubscriber(mSubscriberClient, LAYER); in testHandleUnsubscribeEvent()
310 verify(mSubscriberService).removeVmsSubscriberToPublisher(mSubscriberClient, LAYER, in testHandleUnsubscribeFromPublisherEvent()
426 new VmsLayerDependency(LAYER)), in testHandleOfferingEvent_LayerOnly()
445 new VmsLayerDependency(LAYER, Collections.singleton( in testHandleOfferingEvent_LayerAndDependency()
474 new VmsLayerDependency(LAYER, new LinkedHashSet<>(Arrays.asList( in testHandleOfferingEvent_MultipleLayersAndDependencies()
533 new VmsAssociatedLayer(LAYER, Collections.singleton(PUBLISHER_ID))), 123)); in testHandleAvailabilityRequestEvent_OneLayer()
[all …]