Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsClientManagerTest.java162 private VmsClientManager mClientManager; field in VmsClientManagerTest
204 mClientManager = new VmsClientManager(mContext, mStatsService, mUserService, in setUp()
206 verify(mHal).setClientManager(mClientManager); in setUp()
207 mClientManager.setPublisherService(mPublisherService); in setUp()
229 mClientManager.init(); in testInit()
232 verify(mUserService).runOnUser0Unlock(mClientManager.mSystemUserUnlockedListener); in testInit()
234 verify(mUserService).addUserCallback(eq(mClientManager.mUserCallback)); in testInit()
239 mClientManager.release(); in testRelease()
242 verify(mUserService).removeUserCallback(mClientManager.mUserCallback); in testRelease()
802 mClientManager.addSubscriber(mSubscriberClient1); in testAddSubscriber()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVmsSubscriberServiceTest.java63 private VmsClientManager mClientManager; field in VmsSubscriberServiceTest
76 mSubscriberService = new VmsSubscriberService(mContext, mBrokerService, mClientManager, in setUp()
84 verifyNoMoreInteractions(mBrokerService, mClientManager); in tearDown()
90 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriberToNotifications()
96 verify(mClientManager).removeSubscriber(mSubscriberClient); in testRemoveVmsSubscriberToNotifications()
102 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriber()
116 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriberToPublisher()
131 verify(mClientManager).addSubscriber(mSubscriberClient); in testAddVmsSubscriberPassive()
157 when(mClientManager.getAllSubscribers()) in testOnLayersAvailabilityChange()
160 verify(mClientManager).getAllSubscribers(); in testOnLayersAvailabilityChange()
DVmsPublisherServiceTest.java92 private VmsClientManager mClientManager; field in VmsPublisherServiceTest
115 mClientManager, () -> PUBLISHER_UID); in setUp()
116 verify(mClientManager).setPublisherService(mPublisherService); in setUp()
118 when(mClientManager.getSubscriberUid(mSubscriberClient)).thenReturn(SUBSCRIBER_UID); in setUp()
119 when(mClientManager.getSubscriberUid(mSubscriberClient2)).thenReturn(SUBSCRIBER_UID2); in setUp()
162 reset(mClientManager, mBrokerService); in testOnClientDisconnected()
/packages/services/Car/service/src/com/android/car/
DVmsSubscriberService.java42 private final VmsClientManager mClientManager; field in VmsSubscriberService
56 mClientManager = clientManager; in VmsSubscriberService()
74 mClientManager.addSubscriber(subscriber); in addVmsSubscriberToNotifications()
80 mClientManager.removeSubscriber(subscriber); in removeVmsSubscriberToNotifications()
86 mClientManager.addSubscriber(subscriber); in addVmsSubscriber()
101 mClientManager.addSubscriber(subscriber); in addVmsSubscriberToPublisher()
116 mClientManager.addSubscriber(subscriber); in addVmsSubscriberPassive()
140 for (IVmsSubscriberClient subscriber : mClientManager.getAllSubscribers()) { in onLayersAvailabilityChange()
145 + mClientManager.getPackageName(subscriber), e); in onLayersAvailabilityChange()
DVmsPublisherService.java56 private final VmsClientManager mClientManager; field in VmsPublisherService
79 mClientManager = clientManager; in VmsPublisherService()
82 mClientManager.setPublisherService(this); in VmsPublisherService()
200 int subscriberUid = mClientManager.getSubscriberUid(listener); in publish()
208 String subscriberName = mClientManager.getPackageName(listener); in publish()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java93 private VmsClientManager mClientManager; field in VmsHalServiceTest
113 mHalService.setClientManager(mClientManager); in initHalService()
127 Mockito.inOrder(mClientManager, mSubscriberService, mVehicleHal); in initHalService()
151 initOrder.verify(mClientManager, never()).onHalDisconnected(); in initHalService()
152 initOrder.verify(mClientManager) in initHalService()
169 reset(mClientManager, mSubscriberService, mVehicleHal); in initHalService()
615 InOrder inOrder = Mockito.inOrder(mClientManager, mVehicleHal); in testHandleStartSessionEvent()
616 inOrder.verify(mClientManager).onHalDisconnected(); in testHandleStartSessionEvent()
618 inOrder.verify(mClientManager).onHalConnected(mPublisherClient, mSubscriberClient); in testHandleStartSessionEvent()
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java91 private VmsClientManager mClientManager; field in VmsHalService
239 mClientManager = clientManager; in setClientManager()
415 if (mClientManager != null) { in handleStartSessionEvent()
416 mClientManager.onHalDisconnected(); in handleStartSessionEvent()
431 if (mClientManager != null) { in handleStartSessionEvent()
432 mClientManager.onHalConnected(mPublisherClient, mSubscriberClient); in handleStartSessionEvent()