Home
last modified time | relevance | path

Searched refs:VmsAssociatedLayer (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/tests/carservice_test/src/com/android/car/vms/
DVmsClientTest.java32 import android.car.vms.VmsAssociatedLayer;
120 new VmsAssociatedLayer(LAYER1, emptySet()), in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
121 new VmsAssociatedLayer(LAYER2, asSet(12345)) in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
127 new VmsAssociatedLayer(LAYER1, in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
132 asSet(new VmsAssociatedLayer(LAYER2, asSet(12345))) in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
215 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions()
231 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
234 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
250 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_OverwriteSubscription()
253 new VmsAssociatedLayer(LAYER2, emptySet()) in testSetSubscriptions_OverwriteSubscription()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsBrokerServiceTest.java38 import android.car.vms.VmsAssociatedLayer;
242 new VmsAssociatedLayer(LAYER1, emptySet()), in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
243 new VmsAssociatedLayer(LAYER2, asSet(12345)) in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
250 new VmsAssociatedLayer(LAYER1, in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
255 asSet(new VmsAssociatedLayer(LAYER2, asSet(12345))) in testRegister_ReceivesCurrentLayerAvailabilityAndSubscriptions()
348 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions()
363 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
366 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_MultipleClients()
381 new VmsAssociatedLayer(LAYER1, emptySet()) in testSetSubscriptions_OverwriteSubscription()
384 new VmsAssociatedLayer(LAYER2, emptySet()) in testSetSubscriptions_OverwriteSubscription()
[all …]
DVmsLayerAvailabilityTest.java21 import android.car.vms.VmsAssociatedLayer;
90 Set<VmsAssociatedLayer> expectedAvailableAssociatedLayers = new HashSet<>(); in testSingleLayerNoDeps()
91 expectedAvailableAssociatedLayers.add(new VmsAssociatedLayer(LAYER_X, PUBLISHERS_2)); in testSingleLayerNoDeps()
105 Set<VmsAssociatedLayer> expectedAvailableAssociatedLayers = new HashSet<>(); in testChainOfDependenciesSatisfied()
106 expectedAvailableAssociatedLayers.add(new VmsAssociatedLayer(LAYER_X, PUBLISHERS_1)); in testChainOfDependenciesSatisfied()
107 expectedAvailableAssociatedLayers.add(new VmsAssociatedLayer(LAYER_Y, PUBLISHERS_1)); in testChainOfDependenciesSatisfied()
108 expectedAvailableAssociatedLayers.add(new VmsAssociatedLayer(LAYER_Z, PUBLISHERS_1)); in testChainOfDependenciesSatisfied()
124 Set<VmsAssociatedLayer> expectedAvailableAssociatedLayers = new HashSet<>(); in testChainOfDependenciesSatisfiedTwoOfferings()
125 expectedAvailableAssociatedLayers.add(new VmsAssociatedLayer(LAYER_X, PUBLISHERS_1)); in testChainOfDependenciesSatisfiedTwoOfferings()
126 expectedAvailableAssociatedLayers.add(new VmsAssociatedLayer(LAYER_Y, PUBLISHERS_1)); in testChainOfDependenciesSatisfiedTwoOfferings()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/vms/
DVmsSubscriptionHelperTest.java49 private Set<VmsAssociatedLayer> mSubscriptionUpdate;
58 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testSubscribe_SingleLayer()
67 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testSubscribe_SingleLayer_IgnoreDuplicates()
81 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testSubscribe_SingleLayer_RetryAfterException()
99 assertSubscriptions(new VmsAssociatedLayer(LAYER1, emptySet())); in testUnsubscribe_SingleLayer_IgnoreUnknown()
125 new VmsAssociatedLayer(LAYER1, emptySet()), in testSubscribe_MultipleLayers()
126 new VmsAssociatedLayer(LAYER2, emptySet()), in testSubscribe_MultipleLayers()
127 new VmsAssociatedLayer(LAYER3, emptySet())); in testSubscribe_MultipleLayers()
139 new VmsAssociatedLayer(LAYER1, emptySet()), in testUnsubscribe_MultipleLayers()
140 new VmsAssociatedLayer(LAYER3, emptySet())); in testUnsubscribe_MultipleLayers()
[all …]
/packages/services/Car/car-lib/src/android/car/vms/
DVmsAssociatedLayer.java41 public final class VmsAssociatedLayer implements Parcelable { class
84 public VmsAssociatedLayer( in VmsAssociatedLayer() method in VmsAssociatedLayer
131 VmsAssociatedLayer that = (VmsAssociatedLayer) o; in equals()
164 /* package-private */ VmsAssociatedLayer(@NonNull Parcel in) { in VmsAssociatedLayer() method in VmsAssociatedLayer
181 public static final @NonNull Parcelable.Creator<VmsAssociatedLayer> CREATOR
182 = new Parcelable.Creator<VmsAssociatedLayer>() {
184 public VmsAssociatedLayer[] newArray(int size) {
185 return new VmsAssociatedLayer[size];
189 public VmsAssociatedLayer createFromParcel(@NonNull Parcel in) {
190 return new VmsAssociatedLayer(in);
DVmsSubscriptionHelper.java37 private final Consumer<Set<VmsAssociatedLayer>> mUpdateHandler;
55 public VmsSubscriptionHelper(@NonNull Consumer<Set<VmsAssociatedLayer>> updateHandler) { in VmsSubscriptionHelper()
123 public Set<VmsAssociatedLayer> getSubscriptions() { in getSubscriptions()
130 private Set<VmsAssociatedLayer> getSubscriptionsLocked() { in getSubscriptionsLocked()
131 Set<VmsAssociatedLayer> vmsAssociatedLayerSet = new ArraySet<>(); in getSubscriptionsLocked()
134 vmsAssociatedLayerSet.add(new VmsAssociatedLayer(layer, Collections.emptySet())); in getSubscriptionsLocked()
156 private static VmsAssociatedLayer toAssociatedLayer(VmsLayer layer, in toAssociatedLayer()
162 return new VmsAssociatedLayer(layer, providerIds); in toAssociatedLayer()
DVmsAvailableLayers.java57 private @NonNull Set<VmsAssociatedLayer> mAssociatedLayers;
68 private Set<VmsAssociatedLayer> unparcelAssociatedLayers(Parcel in) { in unparcelAssociatedLayers()
69 return (Set<VmsAssociatedLayer>) ParcelHelper.readArraySet(in, in unparcelAssociatedLayers()
70 VmsAssociatedLayer.class.getClassLoader()); in unparcelAssociatedLayers()
83 public VmsAvailableLayers(@NonNull Set<VmsAssociatedLayer> associatedLayers, in VmsAvailableLayers()
108 @NonNull Set<VmsAssociatedLayer> associatedLayers) { in VmsAvailableLayers()
127 public @NonNull Set<VmsAssociatedLayer> getAssociatedLayers() { in getAssociatedLayers()
189 Set<VmsAssociatedLayer> associatedLayers = unparcelAssociatedLayers(in); in VmsAvailableLayers()
DVmsSubscriptionState.java62 private @NonNull Set<VmsAssociatedLayer> mAssociatedLayers;
83 private Set<VmsAssociatedLayer> unparcelAssociatedLayers(Parcel in) { in unparcelAssociatedLayers()
84 return (Set<VmsAssociatedLayer>) ParcelHelper.readArraySet(in, in unparcelAssociatedLayers()
85 VmsAssociatedLayer.class.getClassLoader()); in unparcelAssociatedLayers()
101 @NonNull Set<VmsAssociatedLayer> associatedLayers) { in VmsSubscriptionState()
130 public @NonNull Set<VmsAssociatedLayer> getAssociatedLayers() { in getAssociatedLayers()
197 Set<VmsAssociatedLayer> associatedLayers = unparcelAssociatedLayers(in); in VmsSubscriptionState()
DIVmsBrokerService.aidl20 import android.car.vms.VmsAssociatedLayer;
51 in List<VmsAssociatedLayer> layers) = 3; in setSubscriptions()
DVmsAssociatedLayer.aidl19 parcelable VmsAssociatedLayer;
DVmsSubscriberManager.java238 private void setSubscriptions(Set<VmsAssociatedLayer> subscriptions) { in setSubscriptions()
DVmsClient.java126 public void setSubscriptions(@NonNull Set<VmsAssociatedLayer> layers) { in setSubscriptions()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsPublisherSubscriberTest.java25 import android.car.vms.VmsAssociatedLayer;
116 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, Collections.singleton(publisherId))); in testLayerAvailability()
129 new VmsAssociatedLayer(SUBSCRIPTION_LAYER_OTHER, in testLayerAvailability_Overwrite()
143 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, in testLayerAvailability_MultiplePublishers_SameLayer()
158 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, Collections.singleton(publisherId)), in testLayerAvailability_MultiplePublishers_MultipleLayers()
159 new VmsAssociatedLayer(SUBSCRIPTION_LAYER_OTHER, in testLayerAvailability_MultiplePublishers_MultipleLayers()
175 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, Collections.singleton(publisherId))); in testLayerAvailability_MultiplePublishers_Remove()
192 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, Collections.singleton(publisherId)), in testLayerAvailability_MultiplePublishers_Overwrite()
193 new VmsAssociatedLayer(SUBSCRIPTION_LAYER_OTHER, in testLayerAvailability_MultiplePublishers_Overwrite()
391 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, Collections.singleton(publisherId))); in testSubscribeToPublisher()
[all …]
DVmsSubscriberManagerTest.java23 import android.car.vms.VmsAssociatedLayer;
54 private static final VmsAssociatedLayer SUBSCRIPTION_ASSOCIATED_LAYER =
55 new VmsAssociatedLayer(SUBSCRIPTION_LAYER, PUBLISHERS_LIST);
64 private static final VmsAssociatedLayer SUBSCRIPTION_DEPENDANT_ASSOCIATED_LAYER_1 =
65 new VmsAssociatedLayer(SUBSCRIPTION_DEPENDANT_LAYER_1, PUBLISHERS_LIST);
74 private static final VmsAssociatedLayer SUBSCRIPTION_DEPENDANT_ASSOCIATED_LAYER_2 =
75 new VmsAssociatedLayer(SUBSCRIPTION_DEPENDANT_LAYER_2, PUBLISHERS_LIST);
357 Set<VmsAssociatedLayer> associatedLayers = in testComplexAvailableLayers()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVmsHalServiceTest.java33 import android.car.vms.VmsAssociatedLayer;
305 verify(mVmsClient).setSubscriptions(asSet(new VmsAssociatedLayer(LAYER, asSet()))); in testHandleSubscribeEvent()
328 new VmsAssociatedLayer(LAYER, asSet(PUBLISHER_ID)))); in testHandleSubscribeToPublisherEvent()
590 new VmsAssociatedLayer(LAYER, Collections.singleton(PUBLISHER_ID))), 123)); in testHandleAvailabilityRequestEvent_OneLayer()
614 new VmsAssociatedLayer(LAYER, in testHandleAvailabilityRequestEvent_MultipleLayers()
616 new VmsAssociatedLayer(new VmsLayer(3, 2, 1), in testHandleAvailabilityRequestEvent_MultipleLayers()
618 new VmsAssociatedLayer(new VmsLayer(6, 5, 4), in testHandleAvailabilityRequestEvent_MultipleLayers()
720 new VmsAssociatedLayer(LAYER, Collections.singleton(PUBLISHER_ID))), 123)); in testOnLayersAvailabilityChanged_OneLayer()
740 new VmsAssociatedLayer(LAYER, in testOnLayersAvailabilityChanged_MultipleLayers()
742 new VmsAssociatedLayer(new VmsLayer(3, 2, 1), in testOnLayersAvailabilityChanged_MultipleLayers()
[all …]
/packages/services/Car/service/src/com/android/car/vms/
DVmsLayerAvailability.java20 import android.car.vms.VmsAssociatedLayer;
54 private Set<VmsAssociatedLayer> mAvailableAssociatedLayers = Collections.emptySet();
113 ArraySet<VmsAssociatedLayer> associatedLayerSet = new ArraySet<>(); in calculateLayers()
116 VmsAssociatedLayer associatedLayer = new VmsAssociatedLayer(availableLayer, in calculateLayers()
DVmsClientInfo.java22 import android.car.vms.VmsAssociatedLayer;
152 void setSubscriptions(List<VmsAssociatedLayer> layers) { in setSubscriptions()
156 VmsAssociatedLayer associatedLayer = layers.get(index); in setSubscriptions()
DVmsBrokerService.java27 import android.car.vms.VmsAssociatedLayer;
185 public void setSubscriptions(IBinder clientToken, List<VmsAssociatedLayer> layers) { in setSubscriptions()
363 ArraySet<VmsAssociatedLayer> associatedLayers = in updateSubscriptionState()
366 associatedLayers.add(new VmsAssociatedLayer( in updateSubscriptionState()
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java26 import android.car.vms.VmsAssociatedLayer;
513 private void setSubscriptions(Set<VmsAssociatedLayer> subscriptions) { in setSubscriptions()
744 Set<VmsAssociatedLayer> associatedLayers = subscriptionState.getAssociatedLayers(); in createSubscriptionStateMessage()
757 for (VmsAssociatedLayer layer : associatedLayers) { in createSubscriptionStateMessage()
788 for (VmsAssociatedLayer layer : availableLayers.getAssociatedLayers()) { in createAvailableLayersMessage()
866 private static void appendAssociatedLayer(List<Integer> message, VmsAssociatedLayer layer) { in appendAssociatedLayer()
/packages/services/Car/car-lib/api/
Dsystem-lint-baseline.txt650 MissingNullability: android.car.vms.VmsAssociatedLayer#CREATOR:
651 Missing nullability on field `CREATOR` in class `class android.car.vms.VmsAssociatedLayer`
652 MissingNullability: android.car.vms.VmsAssociatedLayer#writeToParcel(android.os.Parcel, int) parame…
4670 UnflaggedApi: android.car.vms.VmsAssociatedLayer:
4671 New API must be flagged with @FlaggedApi: class android.car.vms.VmsAssociatedLayer
4672 UnflaggedApi: android.car.vms.VmsAssociatedLayer#CREATOR:
4673 New API must be flagged with @FlaggedApi: field android.car.vms.VmsAssociatedLayer.CREATOR
4674 UnflaggedApi: android.car.vms.VmsAssociatedLayer#VmsAssociatedLayer(android.car.vms.VmsLayer, java.…
4675 …New API must be flagged with @FlaggedApi: constructor android.car.vms.VmsAssociatedLayer(android.c…
4676 UnflaggedApi: android.car.vms.VmsAssociatedLayer#describeContents():
[all …]
Dsystem-current.txt2699 public final class VmsAssociatedLayer implements android.os.Parcelable {
2700 …ctor public VmsAssociatedLayer(@NonNull android.car.vms.VmsLayer, @NonNull java.util.Set<java.lang…
2706 …Null public static final android.os.Parcelable.Creator<android.car.vms.VmsAssociatedLayer> CREATOR;
2710 …recated public VmsAvailableLayers(@NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>, int);
2711 ctor public VmsAvailableLayers(int, @NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2713 method @NonNull public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers();
2729 …BSCRIBER) public void setSubscriptions(@NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2825 …va.util.Set<android.car.vms.VmsLayer>, @NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2827 method @NonNull public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers();
Dtest-current.txt2805 public final class VmsAssociatedLayer implements android.os.Parcelable {
2806 …ctor public VmsAssociatedLayer(@NonNull android.car.vms.VmsLayer, @NonNull java.util.Set<java.lang…
2812 …Null public static final android.os.Parcelable.Creator<android.car.vms.VmsAssociatedLayer> CREATOR;
2816 …recated public VmsAvailableLayers(@NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>, int);
2817 ctor public VmsAvailableLayers(int, @NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2819 method @NonNull public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers();
2835 …BSCRIBER) public void setSubscriptions(@NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2931 …va.util.Set<android.car.vms.VmsLayer>, @NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2933 method @NonNull public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers();
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt2699 public final class VmsAssociatedLayer implements android.os.Parcelable {
2700 …ctor public VmsAssociatedLayer(@NonNull android.car.vms.VmsLayer, @NonNull java.util.Set<java.lang…
2706 …Null public static final android.os.Parcelable.Creator<android.car.vms.VmsAssociatedLayer> CREATOR;
2710 …recated public VmsAvailableLayers(@NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>, int);
2711 ctor public VmsAvailableLayers(int, @NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2713 method @NonNull public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers();
2729 …BSCRIBER) public void setSubscriptions(@NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2825 …va.util.Set<android.car.vms.VmsLayer>, @NonNull java.util.Set<android.car.vms.VmsAssociatedLayer>);
2827 method @NonNull public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers();
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt2064 method TIRAMISU_0 Set<VmsAssociatedLayer> getAssociatedLayers();
2075 method TIRAMISU_0 Set<VmsAssociatedLayer> getSubscriptions();
2078 method TIRAMISU_0 void setSubscriptions(Set<VmsAssociatedLayer> layers);
2110 method TIRAMISU_0 Set<VmsAssociatedLayer> getAssociatedLayers();
2125 class @hide @SystemApi VmsAssociatedLayer package android.car.vms
2126 field TIRAMISU_0 Parcelable.Creator<VmsAssociatedLayer> CREATOR;
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.3.txt842 …ionHelper VmsSubscriptionHelper VmsSubscriptionHelper(Consumer<Set<VmsAssociatedLayer>> updateHand…
847 android.car.vms VmsSubscriptionHelper Set<VmsAssociatedLayer> getSubscriptions()

12