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

Commit 27b6c2d4 authored by Shrikar Amirisetty's avatar Shrikar Amirisetty Committed by Android (Google) Code Review
Browse files

Merge "Added new properties MIRROR_AUTO_FOLD_ENABLED, MIRROR_AUTO_TILT_ENABLED to hardware layer."

parents ed035ca3 a1367213
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -126,6 +126,8 @@ enum VehicleProperty {
  MIRROR_Y_MOVE = 339741507,
  MIRROR_LOCK = 287312708,
  MIRROR_FOLD = 287312709,
  MIRROR_AUTO_FOLD_ENABLED = 337644358,
  MIRROR_AUTO_TILT_ENABLED = 337644359,
  SEAT_MEMORY_SELECT = 356518784,
  SEAT_MEMORY_SET = 356518785,
  SEAT_BELT_BUCKLED = 354421634,
+29 −0
Original line number Diff line number Diff line
@@ -1391,6 +1391,35 @@ enum VehicleProperty {
     */
    MIRROR_FOLD = 0x0B45 + 0x10000000 + 0x01000000
            + 0x00200000, // VehiclePropertyGroup:SYSTEM,VehicleArea:GLOBAL,VehiclePropertyType:BOOLEAN

    /**
     * Represents property for Mirror Auto Fold feature.
     *
     * This property is true when the feature for automatically folding the vehicle's side mirrors
     * (for example, when the mirrors fold inward automatically when one exits and locks the
     * vehicle) is enabled.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     */

    MIRROR_AUTO_FOLD_ENABLED =
            0x0B46 + VehiclePropertyGroup.SYSTEM + VehicleArea.MIRROR + VehiclePropertyType.BOOLEAN,

    /**
     * Represents property for Mirror Auto Tilt feature.
     *
     * This property is true when the feature for automatically tilting the vehicle's side mirrors
     * (for example, when the mirrors tilt downward automatically when one reverses the vehicle) is
     * enabled.
     *
     * @change_mode VehiclePropertyChangeMode.ON_CHANGE
     * @access VehiclePropertyAccess.READ_WRITE
     */

    MIRROR_AUTO_TILT_ENABLED =
            0x0B47 + VehiclePropertyGroup.SYSTEM + VehicleArea.MIRROR + VehiclePropertyType.BOOLEAN,

    /**
     * Seat memory select
     *
+2 −0
Original line number Diff line number Diff line
@@ -126,6 +126,8 @@ std::unordered_map<VehicleProperty, VehiclePropertyAccess> AccessForVehiclePrope
        {VehicleProperty::MIRROR_Y_MOVE, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::MIRROR_LOCK, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::MIRROR_FOLD, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::MIRROR_AUTO_FOLD_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::MIRROR_AUTO_TILT_ENABLED, VehiclePropertyAccess::READ_WRITE},
        {VehicleProperty::SEAT_MEMORY_SELECT, VehiclePropertyAccess::WRITE},
        {VehicleProperty::SEAT_MEMORY_SET, VehiclePropertyAccess::WRITE},
        {VehicleProperty::SEAT_BELT_BUCKLED, VehiclePropertyAccess::READ_WRITE},
+2 −0
Original line number Diff line number Diff line
@@ -126,6 +126,8 @@ std::unordered_map<VehicleProperty, VehiclePropertyChangeMode> ChangeModeForVehi
        {VehicleProperty::MIRROR_Y_MOVE, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::MIRROR_LOCK, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::MIRROR_FOLD, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::MIRROR_AUTO_FOLD_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::MIRROR_AUTO_TILT_ENABLED, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::SEAT_MEMORY_SELECT, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::SEAT_MEMORY_SET, VehiclePropertyChangeMode::ON_CHANGE},
        {VehicleProperty::SEAT_BELT_BUCKLED, VehiclePropertyChangeMode::ON_CHANGE},
+2 −0
Original line number Diff line number Diff line
@@ -118,6 +118,8 @@ public final class AccessForVehicleProperty {
        Map.entry(VehicleProperty.MIRROR_Y_MOVE, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.MIRROR_LOCK, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.MIRROR_FOLD, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.MIRROR_AUTO_FOLD_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.MIRROR_AUTO_TILT_ENABLED, VehiclePropertyAccess.READ_WRITE),
        Map.entry(VehicleProperty.SEAT_MEMORY_SELECT, VehiclePropertyAccess.WRITE),
        Map.entry(VehicleProperty.SEAT_MEMORY_SET, VehiclePropertyAccess.WRITE),
        Map.entry(VehicleProperty.SEAT_BELT_BUCKLED, VehiclePropertyAccess.READ_WRITE),
Loading