/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | VmsHalServiceTest.java | 78 private static final int PUBLISHER_ID = 12345; field in VmsHalServiceTest 220 PUBLISHER_ID // PublisherId in testHandleDataEvent() 225 verify(mPublisherService).publish(mToken, LAYER, PUBLISHER_ID, PAYLOAD); in testHandleDataEvent() 263 PUBLISHER_ID // PublisherId in testHandleSubscribeToPublisherEvent() 268 PUBLISHER_ID); in testHandleSubscribeToPublisherEvent() 306 PUBLISHER_ID // PublisherId in testHandleUnsubscribeFromPublisherEvent() 311 PUBLISHER_ID); in testHandleUnsubscribeFromPublisherEvent() 334 when(mPublisherService.getPublisherId(PAYLOAD)).thenReturn(PUBLISHER_ID); in testHandlePublisherIdRequestEvent() 338 PUBLISHER_ID // Publisher ID in testHandlePublisherIdRequestEvent() 362 PUBLISHER_ID // Publisher ID in testHandlePublisherInformationRequestEvent() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | VmsSubscriberManagerTest.java | 42 private static final int PUBLISHER_ID = 17; field in VmsSubscriberManagerTest 44 private static final Set<Integer> PUBLISHERS_LIST = Collections.singleton(PUBLISHER_ID); 91 PUBLISHER_ID in testSubscribe() 103 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testSubscribeToPublisher() 121 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testSubscribeFromPublisher() 129 PUBLISHER_ID in testSubscribeFromPublisher() 150 PUBLISHER_ID in testUnsubscribe() 160 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testSubscribeFromWrongPublisher() 178 getSubscriberManager().subscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testUnsubscribeFromPublisher() 179 getSubscriberManager().unsubscribe(SUBSCRIPTION_LAYER, PUBLISHER_ID); in testUnsubscribeFromPublisher() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | VmsLayersOfferingTest.java | 38 private static final int PUBLISHER_ID = 1; field in VmsLayersOfferingTest 78 new VmsLayersOffering(new HashSet<>(Arrays.asList()), PUBLISHER_ID); in testNoOfferingParcel() 93 PUBLISHER_ID); in testMultipleOfferingParcel() 106 new HashSet<>(Arrays.asList()), PUBLISHER_ID); in testNoOfferingEquality() 110 new HashSet<>(Arrays.asList()), PUBLISHER_ID); in testNoOfferingEquality() 120 … new HashSet<>(Arrays.asList(VMS_LAYER_DEPENDENCY, ANOTHER_VMS_LAYER_DEPENDENCY)), PUBLISHER_ID); in testMultipleOfferingEquality() 124 … new HashSet<>(Arrays.asList(VMS_LAYER_DEPENDENCY, ANOTHER_VMS_LAYER_DEPENDENCY)), PUBLISHER_ID); in testMultipleOfferingEquality() 134 new HashSet<>(Arrays.asList(VMS_LAYER_DEPENDENCY)), PUBLISHER_ID); in testVerifyNonEqualOnPublisherId() 146 new HashSet<>(Arrays.asList(VMS_LAYER_DEPENDENCY)), PUBLISHER_ID); in testVerifyNonEqualOnDependency() 150 new HashSet<>(Arrays.asList(ANOTHER_VMS_LAYER_DEPENDENCY)), PUBLISHER_ID); in testVerifyNonEqualOnDependency()
|
D | VmsSubscriberServiceTest.java | 51 private static final int PUBLISHER_ID = 54321; field in VmsSubscriberServiceTest 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() 143 when(mBrokerService.getPublisherInfo(PUBLISHER_ID)).thenReturn(PUBLISHER_INFO); in testGetPublisherInfo() 144 assertThat(mSubscriberService.getPublisherInfo(PUBLISHER_ID)).isSameAs(PUBLISHER_INFO); in testGetPublisherInfo() 145 verify(mBrokerService).getPublisherInfo(PUBLISHER_ID); in testGetPublisherInfo()
|
D | VmsPublisherServiceTest.java | 73 private static final int PUBLISHER_ID = 54321; field in VmsPublisherServiceTest 128 when(mBrokerService.getSubscribersForLayerFromPublisher(LAYER, PUBLISHER_ID)) in setUp() 206 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, LAYER, PUBLISHER_ID, in testPublish() 221 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, null, PUBLISHER_ID, in testPublishNullLayerAndNullPayload() 228 when(mBrokerService.getSubscribersForLayerFromPublisher(LAYER, PUBLISHER_ID)) in testPublish_NoSubscribers() 231 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, LAYER, PUBLISHER_ID, in testPublish_NoSubscribers() 243 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, LAYER, PUBLISHER_ID, in testPublish_ClientError() 257 mPublisherClient.mPublisherService.publish(new Binder(), LAYER, PUBLISHER_ID, PAYLOAD); in testPublish_InvalidToken() 265 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, LAYER, PUBLISHER_ID, in testPublish_Disconnected() 275 mPublisherClient.mPublisherService.publish(mPublisherClient.mToken, LAYER, PUBLISHER_ID, in testPublish_PermissionDenied() [all …]
|
D | VmsAvailableLayersTest.java | 41 private static final int PUBLISHER_ID = 999; field in VmsAvailableLayersTest 59 new HashSet<>(Arrays.asList(PUBLISHER_ID))); 63 new HashSet<>(Arrays.asList(PUBLISHER_ID)));
|
/packages/services/Car/tests/VmsPublisherClientSample/src/com/google/android/car/vms/publisher/ |
D | VmsPublisherClientSampleService.java | 34 public static final int PUBLISHER_ID = 1; field in VmsPublisherClientSampleService 77 publish(TEST_LAYER, PUBLISHER_ID, new byte[]{mCounter}); in periodicPublish()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VmsHalService.java | 586 int publisherId = message.get(VmsPublisherInformationIntegerValuesIndex.PUBLISHER_ID); in handlePublisherInfoRequest() 619 int publisherId = message.get(VmsOfferingMessageIntegerValuesIndex.PUBLISHER_ID); in handleOfferingEvent() 904 return message.get(VmsMessageWithLayerAndPublisherIdIntegerValuesIndex.PUBLISHER_ID); in parsePublisherIdFromMessage()
|