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

Commit 4247384b authored by Yu Shan's avatar Yu Shan
Browse files

Split VHAL property into a separate AIDL interface.

Split VHAL property definitions and enums out from the VHAL interface
so that we can update the property separatly. This allows us to
backport new property definition to older releases more easily.

Test: Manual build
Bug: 264600792
Change-Id: I6040a1d4d7832a970a5ad5e5a28c359b15b402fb
parent 842efa2e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,5 +22,6 @@ cc_defaults {
    name: "VehicleHalInterfaceDefaults",
    static_libs: [
        "android.hardware.automotive.vehicle-V2-ndk",
        "android.hardware.automotive.vehicle.property-V2-ndk",
    ],
}
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ aidl_interface {
    name: "android.hardware.automotive.vehicle",
    vendor_available: true,
    srcs: [
        "android/hardware/automotive/vehicle/**/*.aidl",
        "android/hardware/automotive/vehicle/*.aidl",
    ],
    frozen: false,
    stability: "vintf",
+1 −0
Original line number Diff line number Diff line
8610b651e162c614a97542d6f4ed039c969823e5
0678e142246842695c1ba0524592fe2c3b789fc6
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ android_test {
    ],
    static_libs: [
        "android.hardware.automotive.vehicle-V2-java",
        "android.hardware.automotive.vehicle.property-V2-java",
        "androidx.test.runner",
        "truth-prebuilt",
    ],
+53 −0
Original line number Diff line number Diff line
// Copyright (C) 2023 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "hardware_interfaces_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["hardware_interfaces_license"],
}

aidl_interface {
    name: "android.hardware.automotive.vehicle.property",
    vendor_available: true,
    srcs: [
        // This HAL was originally part of android.hardware.automotive.vehicle
        "android/hardware/automotive/vehicle/*.aidl",
    ],
    frozen: false,
    stability: "vintf",
    backend: {
        cpp: {
            enabled: false,
        },
        java: {
            sdk_version: "module_current",
            min_sdk_version: "31",
            apex_available: [
                "//apex_available:platform",
                "com.android.car.framework",
            ],
        },
    },
    versions_with_info: [
        {
            version: "1",
            imports: [],
        },
    ],

}
Loading