Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 978cc33b authored by Antonio Cortes's avatar Antonio Cortes
Browse files

Adding VMS subscription HAL definitions.

Test: build
Bug: 36137379
Change-Id: Id10fe1660d2165a677b4ce9dc7cc8a19c4e958c0
parent 4cb19c55
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
@@ -283,6 +283,25 @@ $(GEN): $(LOCAL_PATH)/types.hal
	$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)

#
# Build types.hal (VmsSubscriptionResponseFormat)
#
GEN := $(intermediates)/android/hardware/automotive/vehicle/V2_1/VmsSubscriptionResponseFormat.java
$(GEN): $(HIDL)
$(GEN): PRIVATE_HIDL := $(HIDL)
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
$(GEN): PRIVATE_CUSTOM_TOOL = \
        $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
        -Ljava \
        -randroid.hardware:hardware/interfaces \
        -randroid.hidl:system/libhidl/transport \
        android.hardware.automotive.vehicle@2.1::types.VmsSubscriptionResponseFormat

$(GEN): $(LOCAL_PATH)/types.hal
	$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)

#
# Build IVehicle.hal
#
@@ -585,6 +604,25 @@ $(GEN): $(LOCAL_PATH)/types.hal
	$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)

#
# Build types.hal (VmsSubscriptionResponseFormat)
#
GEN := $(intermediates)/android/hardware/automotive/vehicle/V2_1/VmsSubscriptionResponseFormat.java
$(GEN): $(HIDL)
$(GEN): PRIVATE_HIDL := $(HIDL)
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
$(GEN): PRIVATE_CUSTOM_TOOL = \
        $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
        -Ljava \
        -randroid.hardware:hardware/interfaces \
        -randroid.hidl:system/libhidl/transport \
        android.hardware.automotive.vehicle@2.1::types.VmsSubscriptionResponseFormat

$(GEN): $(LOCAL_PATH)/types.hal
	$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(GEN)

#
# Build IVehicle.hal
#
+24 −0
Original line number Diff line number Diff line
@@ -590,6 +590,12 @@ enum VmsMessageType : int32_t {

  /* Update for the available layers. */
  AVAILABILITY = 5,

  /** Requesting layers that have subscribers. */
  SUBSCRIPTION_REQUEST = 6,

  /** Returning layers that have subscribers. */
  SUBSCRIPTION_RESPONSE = 7,
};

/**
@@ -624,3 +630,21 @@ enum VmsOfferingMessageIntegerValuesIndex : VmsBaseMessageIntegerValuesIndex {
  /* The first index that contain dependencies */
  FIRST_DEPENDENCIES_INDEX = 2,
};

/**
 * A VMS subscription request only contains its message type. The format of a VMS subscription
 * response is described below.
 */
enum VmsSubscriptionResponseFormat : VmsBaseMessageIntegerValuesIndex {
  /**
    * Recipients should ignore any packet with a sequence number that is less than the highest
    * sequence number they have seen thus far.
    */
  SEQUENCE_NUMBER = 1,

  /** The number of VMS layers. Each layer has two integers: type and version. */
  NUMBER_OF_LAYERS = 2,

  /** The first index that contains a layer. */
  FIRST_LAYER = 3,
};