Home
last modified time | relevance | path

Searched refs:subscriberClient (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java225 public void addSubscriber(IVmsSubscriberClient subscriberClient) { in addSubscriber() argument
226 if (subscriberClient == null) { in addSubscriber()
233 IBinder subscriberBinder = subscriberClient.asBinder(); in addSubscriber()
246 subscriberClient, callingUid, getCallingPackage(callingUid), subscriberUserId); in addSubscriber()
262 public void removeSubscriber(IVmsSubscriberClient subscriberClient) { in removeSubscriber() argument
264 SubscriberConnection subscriber = mSubscribers.get(subscriberClient.asBinder()); in removeSubscriber()
285 public int getSubscriberUid(IVmsSubscriberClient subscriberClient) { in getSubscriberUid() argument
287 SubscriberConnection subscriber = mSubscribers.get(subscriberClient.asBinder()); in getSubscriberUid()
295 public String getPackageName(IVmsSubscriberClient subscriberClient) { in getPackageName() argument
297 SubscriberConnection subscriber = mSubscribers.get(subscriberClient.asBinder()); in getPackageName()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsClientManagerTest.java968 IVmsSubscriberClient subscriberClient = createSubscriberClient(); in testOnUserSwitch_RemoveSubscriber_RetainHalClient() local
969 mClientManager.onHalConnected(publisherClient, subscriberClient); in testOnUserSwitch_RemoveSubscriber_RetainHalClient()
975 verify(mBrokerService, never()).removeDeadSubscriber(subscriberClient); in testOnUserSwitch_RemoveSubscriber_RetainHalClient()
976 assertEquals(HAL_CLIENT_NAME, mClientManager.getPackageName(subscriberClient)); in testOnUserSwitch_RemoveSubscriber_RetainHalClient()
982 IVmsSubscriberClient subscriberClient = createSubscriberClient(); in testHalClientConnected() local
983 mClientManager.onHalConnected(publisherClient, subscriberClient); in testHalClientConnected()
986 assertTrue(mClientManager.getAllSubscribers().contains(subscriberClient)); in testHalClientConnected()
987 assertEquals(HAL_CLIENT_NAME, mClientManager.getPackageName(subscriberClient)); in testHalClientConnected()
993 IVmsSubscriberClient subscriberClient = createSubscriberClient(); in testHalClientConnected_AfterAddSubscriber() local
994 mClientManager.addSubscriber(subscriberClient); in testHalClientConnected_AfterAddSubscriber()
[all …]