Home
last modified time | relevance | path

Searched refs:mSubscriberClient (Results 1 – 6 of 6) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVmsSubscriberServiceTest.java68 private IVmsSubscriberClient mSubscriberClient; field in VmsSubscriberServiceTest
89 mSubscriberService.addVmsSubscriberToNotifications(mSubscriberClient); in testAddVmsSubscriberToNotifications()
90 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriberToNotifications()
95 mSubscriberService.removeVmsSubscriberToNotifications(mSubscriberClient); in testRemoveVmsSubscriberToNotifications()
96 verify(mClientManager).removeSubscriber(mSubscriberClient); in testRemoveVmsSubscriberToNotifications()
101 mSubscriberService.addVmsSubscriber(mSubscriberClient, LAYER); in testAddVmsSubscriber()
102 verify(mClientManager).addSubscriber(mSubscriberClient); 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()
[all …]
DVmsPublisherServiceTest.java104 private IVmsSubscriberClient mSubscriberClient; field in VmsPublisherServiceTest
118 when(mClientManager.getSubscriberUid(mSubscriberClient)).thenReturn(SUBSCRIBER_UID); in setUp()
129 .thenReturn(new HashSet<>(Arrays.asList(mSubscriberClient, mSubscriberClient2))); in setUp()
208 verify(mSubscriberClient).onVmsMessageReceived(LAYER, PAYLOAD); in testPublish()
241 doThrow(new RemoteException()).when(mSubscriberClient).onVmsMessageReceived(LAYER, PAYLOAD); in testPublish_ClientError()
245 verify(mSubscriberClient).onVmsMessageReceived(LAYER, PAYLOAD); in testPublish_ClientError()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsPublisherSubscriberTest.java61 private MockSubscriberClient mSubscriberClient; field in VmsPublisherSubscriberTest
67 mSubscriberClient = getMockSubscriberClient(); in setUpClients()
208 assertNull(mSubscriberClient.receiveMessage()); in testStartMonitoring_AfterPublish()
244 assertNull(mSubscriberClient.receiveMessage()); in testStopMonitoring()
265 assertNull(mSubscriberClient.receiveMessage()); in testSubscribe_AfterPublish()
318 assertNull(mSubscriberClient.receiveMessage()); in testSubscribe_ClearCallback()
335 assertNull(mSubscriberClient.receiveMessage()); in testUnsubscribe()
347 assertNull(mSubscriberClient.receiveMessage()); in testUnsubscribe_MultipleLayers()
362 assertNull(mSubscriberClient.receiveMessage()); in testUnsubscribe_MultiplePublishers()
366 assertNull(mSubscriberClient.receiveMessage()); in testUnsubscribe_MultiplePublishers()
[all …]
DMockedVmsTestBase.java59 private MockSubscriberClient mSubscriberClient; field in MockedVmsTestBase
88 mSubscriberClient = new MockSubscriberClient(); in setUpVms()
90 mSubscriberClient); in setUpVms() local
140 return mSubscriberClient; in getMockSubscriberClient()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java102 private IVmsSubscriberClient mSubscriberClient; field in VmsHalServiceTest
155 mSubscriberClient = subscriberCaptor.getValue(); in initHalService()
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()
618 inOrder.verify(mClientManager).onHalConnected(mPublisherClient, mSubscriberClient); in testHandleStartSessionEvent()
646 mSubscriberClient.onLayersAvailabilityChanged( in testOnLayersAvailabilityChanged_ZeroLayers()
661 mSubscriberClient.onLayersAvailabilityChanged( in testOnLayersAvailabilityChanged_OneLayer()
681 mSubscriberClient.onLayersAvailabilityChanged( in testOnLayersAvailabilityChanged_MultipleLayers()
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java124 private final IVmsSubscriberClient.Stub mSubscriberClient = new IVmsSubscriberClient.Stub() { field in VmsHalService
291 mSubscriberService.removeVmsSubscriberToNotifications(mSubscriberClient); in release()
432 mClientManager.onHalConnected(mPublisherClient, mSubscriberClient); in handleStartSessionEvent()
440 mSubscriberClient.onLayersAvailabilityChanged( in handleStartSessionEvent()
484 mSubscriberService.addVmsSubscriber(mSubscriberClient, vmsLayer); in handleSubscribeEvent()
506 mSubscriberService.addVmsSubscriberToPublisher(mSubscriberClient, vmsLayer, publisherId); in handleSubscribeToPublisherEvent()
521 mSubscriberService.removeVmsSubscriber(mSubscriberClient, vmsLayer); in handleUnsubscribeEvent()
542 mSubscriberService.removeVmsSubscriberToPublisher(mSubscriberClient, vmsLayer, publisherId); in handleUnsubscribeFromPublisherEvent()