Update runtime-hint for hal tests.
am: faed9d022f
Change-Id: I1607a19898c91f77df26a6a91fbfdf7723704ec8
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..4929ba5
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,5 @@
+yim@google.com
+trong@google.com
+zhuoyao@google.com
+yuexima@google.com
+ryanjcampbell@google.com
diff --git a/audio/V2_0/build/Android.bp b/audio/V2_0/build/Android.bp
index 0a50416..4266f1a 100644
--- a/audio/V2_0/build/Android.bp
+++ b/audio/V2_0/build/Android.bp
@@ -93,9 +93,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -165,9 +162,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/audio/common/V2_0/build/Android.bp b/audio/common/V2_0/build/Android.bp
index 485b349..0d49052 100644
--- a/audio/common/V2_0/build/Android.bp
+++ b/audio/common/V2_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/audio/effect/V2_0/build/Android.bp b/audio/effect/V2_0/build/Android.bp
index 1a439b5..f2937ba 100644
--- a/audio/effect/V2_0/build/Android.bp
+++ b/audio/effect/V2_0/build/Android.bp
@@ -114,9 +114,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -200,9 +197,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/audio/effect/V2_0/target/AndroidTest.xml b/audio/effect/V2_0/target/AndroidTest.xml
index 949c16a..fe0122e 100644
--- a/audio/effect/V2_0/target/AndroidTest.xml
+++ b/audio/effect/V2_0/target/AndroidTest.xml
@@ -17,6 +17,7 @@
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
<option name="abort-on-push-failure" value="false"/>
<option name="push-group" value="HalHidlTargetTest.push"/>
+ <option name="push" value="DATA/hardware/interfaces/audio/effect/2.0/xml/audio_effects_conf_V2_0.xsd->/data/local/tmp/audio_effects_conf_V2_0.xsd"/>
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
<test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
diff --git a/audio/effect/V2_0/target_profiling/AndroidTest.xml b/audio/effect/V2_0/target_profiling/AndroidTest.xml
index 1dbdf0e..ca6e8d9 100644
--- a/audio/effect/V2_0/target_profiling/AndroidTest.xml
+++ b/audio/effect/V2_0/target_profiling/AndroidTest.xml
@@ -22,6 +22,7 @@
<option name="push" value="DATA/lib64/android.hardware.audio.common@2.0-vts.profiler.so->/data/local/tmp/64/android.hardware.audio.common@2.0-vts.profiler.so"/>
<option name="push" value="DATA/lib/android.hardware.audio.effect@2.0-vts.profiler.so->/data/local/tmp/32/android.hardware.audio.effect@2.0-vts.profiler.so"/>
<option name="push" value="DATA/lib64/android.hardware.audio.effect@2.0-vts.profiler.so->/data/local/tmp/64/android.hardware.audio.effect@2.0-vts.profiler.so"/>
+ <option name="push" value="DATA/hardware/interfaces/audio/effect/2.0/xml/audio_effects_conf_V2_0.xsd->/data/local/tmp/audio_effects_conf_V2_0.xsd"/>
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
<test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
diff --git a/automotive/Android.bp b/automotive/Android.bp
index 1047dba..13c324a 100644
--- a/automotive/Android.bp
+++ b/automotive/Android.bp
@@ -4,5 +4,4 @@
subdirs = [
"evs/V1_0",
"vehicle/V2_0",
- "vehicle/V2_1",
]
diff --git a/automotive/evs/V1_0/build/Android.bp b/automotive/evs/V1_0/build/Android.bp
index 694cc80..87aef34 100644
--- a/automotive/evs/V1_0/build/Android.bp
+++ b/automotive/evs/V1_0/build/Android.bp
@@ -82,9 +82,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -147,9 +144,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/automotive/evs/V1_0/target/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to automotive/evs/V1_0/target/Android.mk
index ab678f7..b511a08 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/automotive/evs/V1_0/target/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalEvsV1_0Target
+VTS_CONFIG_SRC_DIR := testcases/hal/automotive/evs/V1_0/target
include test/vts/tools/build/Android.host_config.mk
diff --git a/automotive/evs/V1_0/target/AndroidTest.xml b/automotive/evs/V1_0/target/AndroidTest.xml
new file mode 100644
index 0000000..025c8b3
--- /dev/null
+++ b/automotive/evs/V1_0/target/AndroidTest.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalEvsV1_0Target test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetTest.push"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalEvsV1_0Target"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalEvsV1_0TargetTest/VtsHalEvsV1_0TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalEvsV1_0TargetTest/VtsHalEvsV1_0TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="binary-test-disable-framework" value="true"/>
+ <option name="binary-test-stop-native-servers" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.automotive.evs@1.0"/>
+ <option name="test-timeout" value="15m"/>
+ </test>
+</configuration>
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/automotive/evs/V1_0/target_profiling/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to automotive/evs/V1_0/target_profiling/Android.mk
index ab678f7..9070902 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/automotive/evs/V1_0/target_profiling/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalEvsV1_0TargetProfiling
+VTS_CONFIG_SRC_DIR := testcases/hal/automotive/evs/V1_0/target_profiling
include test/vts/tools/build/Android.host_config.mk
diff --git a/automotive/evs/V1_0/target_profiling/AndroidTest.xml b/automotive/evs/V1_0/target_profiling/AndroidTest.xml
new file mode 100644
index 0000000..2ce2141
--- /dev/null
+++ b/automotive/evs/V1_0/target_profiling/AndroidTest.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalEvsV1_0Target test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetTest.push"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalEvsV1_0TargetProfiling"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalEvsV1_0TargetTest/VtsHalEvsV1_0TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalEvsV1_0TargetTest/VtsHalEvsV1_0TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="binary-test-disable-framework" value="true"/>
+ <option name="binary-test-stop-native-servers" value="true"/>
+ <option name="enable-profiling" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.automotive.evs@1.0"/>
+ <option name="test-timeout" value="15m"/>
+ </test>
+</configuration>
diff --git a/automotive/vehicle/V2_0/build/Android.bp b/automotive/vehicle/V2_0/build/Android.bp
index 4054b7c..514ae0f 100644
--- a/automotive/vehicle/V2_0/build/Android.bp
+++ b/automotive/vehicle/V2_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/build/Android.bp b/automotive/vehicle/V2_1/build/Android.bp
deleted file mode 100644
index ed24785..0000000
--- a/automotive/vehicle/V2_1/build/Android.bp
+++ /dev/null
@@ -1,145 +0,0 @@
-// This file was auto-generated. Do not edit manually.
-// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
-
-// Generate .vts spec files.
-hal2vts {
- name: "android.hardware.automotive.vehicle@2.1-vts.spec",
- srcs: [
- ":android.hardware.automotive.vehicle@2.1_hal",
- ],
- out: [
- "android/hardware/automotive/vehicle/2.1/Vehicle.vts",
- "android/hardware/automotive/vehicle/2.1/types.vts",
- ],
-}
-
-// Build VTS driver.
-genrule {
- name: "android.hardware.automotive.vehicle@2.1-vts.driver_genc++",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.1 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/automotive/vehicle/2.1/ $(genDir)/android/hardware/automotive/vehicle/2.1/",
- srcs: [
- ":android.hardware.automotive.vehicle@2.1_hal",
- ],
- out: [
- "android/hardware/automotive/vehicle/2.1/Vehicle.vts.cpp",
- "android/hardware/automotive/vehicle/2.1/types.vts.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.automotive.vehicle@2.1-vts.driver_genc++_headers",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.1 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/automotive/vehicle/2.1/ $(genDir)/android/hardware/automotive/vehicle/2.1/",
- srcs: [
- ":android.hardware.automotive.vehicle@2.1_hal",
- ],
- out: [
- "android/hardware/automotive/vehicle/2.1/Vehicle.vts.h",
- "android/hardware/automotive/vehicle/2.1/types.vts.h",
- ],
-}
-
-cc_library_shared {
- name: "android.hardware.automotive.vehicle@2.1-vts.driver",
- generated_sources: ["android.hardware.automotive.vehicle@2.1-vts.driver_genc++"],
- generated_headers: ["android.hardware.automotive.vehicle@2.1-vts.driver_genc++_headers"],
- export_generated_headers: ["android.hardware.automotive.vehicle@2.1-vts.driver_genc++_headers"],
- shared_libs: [
- "libcamera_metadata",
- "libcutils",
- "libfmq",
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "liblog",
- "libprotobuf-cpp-full",
- "libutils",
- "libvts_common",
- "libvts_datatype",
- "libvts_drivercomm",
- "libvts_measurement",
- "libvts_multidevice_proto",
- "android.hidl.allocator@1.0",
- "android.hardware.automotive.vehicle@2.1",
- "android.hardware.automotive.vehicle@2.0",
- "android.hardware.automotive.vehicle@2.0-vts.driver",
- ],
- export_shared_lib_headers: [
- "android.hardware.automotive.vehicle@2.0",
- "android.hardware.automotive.vehicle@2.0-vts.driver",
- ],
- cflags: [
- "-Wall",
- "-Werror",
-
- // These warnings are in code generated with vtsc
- // b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
- "-Wno-duplicate-decl-specifier",
- "-Wno-implicitly-unsigned-literal",
- ],
-}
-
-// Build VTS profiler.
-genrule {
- name: "android.hardware.automotive.vehicle@2.1-vts.profiler_genc++",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.1 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/automotive/vehicle/2.1/ $(genDir)/android/hardware/automotive/vehicle/2.1/",
- srcs: [
- ":android.hardware.automotive.vehicle@2.1_hal",
- ],
- out: [
- "android/hardware/automotive/vehicle/2.1/Vehicle.vts.cpp",
- "android/hardware/automotive/vehicle/2.1/types.vts.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.automotive.vehicle@2.1-vts.profiler_genc++_headers",
- tools: ["hidl-gen", "vtsc"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.1 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/automotive/vehicle/2.1/ $(genDir)/android/hardware/automotive/vehicle/2.1/",
- srcs: [
- ":android.hardware.automotive.vehicle@2.1_hal",
- ],
- out: [
- "android/hardware/automotive/vehicle/2.1/Vehicle.vts.h",
- "android/hardware/automotive/vehicle/2.1/types.vts.h",
- ],
-}
-
-cc_library_shared {
- name: "android.hardware.automotive.vehicle@2.1-vts.profiler",
- generated_sources: ["android.hardware.automotive.vehicle@2.1-vts.profiler_genc++"],
- generated_headers: ["android.hardware.automotive.vehicle@2.1-vts.profiler_genc++_headers"],
- export_generated_headers: ["android.hardware.automotive.vehicle@2.1-vts.profiler_genc++_headers"],
- shared_libs: [
- "libbase",
- "libcutils",
- "libfmq",
- "libhidlbase",
- "libhidltransport",
- "libvts_common",
- "libvts_profiling",
- "libvts_multidevice_proto",
- "libprotobuf-cpp-full",
- "android.hardware.automotive.vehicle@2.1",
- "android.hardware.automotive.vehicle@2.0",
- "android.hardware.automotive.vehicle@2.0-vts.profiler",
- ],
- cflags: [
- "-Wall",
- "-Werror",
-
- // These warnings are in code generated with vtsc
- // b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
- "-Wno-duplicate-decl-specifier",
- "-Wno-implicitly-unsigned-literal",
- ],
-}
-
diff --git a/automotive/vehicle/V2_1/host/AndroidTest.xml b/automotive/vehicle/V2_1/host/AndroidTest.xml
deleted file mode 100644
index d6fe587..0000000
--- a/automotive/vehicle/V2_1/host/AndroidTest.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2017 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.
--->
-<configuration description="Config for VTS VtsHalAutomotiveVehicleV2_1Host test cases">
- <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
- <option name="abort-on-push-failure" value="false"/>
- <option name="push-group" value="HalHidlHostTest.push"/>
- <option name="cleanup" value="true"/>
- <option name="push" value="spec/hardware/interfaces/automotive/vehicle/2.1/vts/Vehicle.vts->/data/local/tmp/spec/android/hardware/automotive/vehicle/2.1/Vehicle.vts"/>
- <option name="push" value="spec/hardware/interfaces/automotive/vehicle/2.1/vts/types.vts->/data/local/tmp/spec/android/hardware/automotive/vehicle/2.1/types.vts"/>
- <option name="push" value="spec/hardware/interfaces/automotive/vehicle/2.0/vts/Vehicle.vts->/data/local/tmp/spec/android/hardware/automotive/vehicle/2.0/Vehicle.vts"/>
- <option name="push" value="spec/hardware/interfaces/automotive/vehicle/2.0/vts/types.vts->/data/local/tmp/spec/android/hardware/automotive/vehicle/2.0/types.vts"/>
- <option name="push" value="DATA/lib/android.hardware.automotive.vehicle@2.1-vts.driver.so->/data/local/tmp/32/android.hardware.automotive.vehicle@2.1-vts.driver.so"/>
- <option name="push" value="DATA/lib64/android.hardware.automotive.vehicle@2.1-vts.driver.so->/data/local/tmp/64/android.hardware.automotive.vehicle@2.1-vts.driver.so"/>
- <option name="push" value="DATA/lib/android.hardware.automotive.vehicle@2.0-vts.driver.so->/data/local/tmp/32/android.hardware.automotive.vehicle@2.0-vts.driver.so"/>
- <option name="push" value="DATA/lib64/android.hardware.automotive.vehicle@2.0-vts.driver.so->/data/local/tmp/64/android.hardware.automotive.vehicle@2.0-vts.driver.so"/>
- </target_preparer>
- <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
- <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
- <option name="test-module-name" value="VtsHalAutomotiveVehicleV2_1Host"/>
- <option name="test-case-path" value="vts/testcases/hal/automotive/vehicle/V2_1/host/VtsHalAutomotiveVehicleV2_1HostTest"/>
- <option name="precondition-lshal" value="android.hardware.automotive.vehicle@2.1"/>
- <option name="test-timeout" value="1m"/>
- </test>
-</configuration>
diff --git a/automotive/vehicle/V2_1/host/VtsHalAutomotiveVehicleV2_1HostTest.py b/automotive/vehicle/V2_1/host/VtsHalAutomotiveVehicleV2_1HostTest.py
deleted file mode 100644
index cecb45a..0000000
--- a/automotive/vehicle/V2_1/host/VtsHalAutomotiveVehicleV2_1HostTest.py
+++ /dev/null
@@ -1,382 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (C) 2016 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.
-#
-
-import logging
-import time
-
-from vts.runners.host import asserts
-from vts.runners.host import base_test
-from vts.runners.host import const
-from vts.runners.host import keys
-from vts.runners.host import test_runner
-from vts.utils.python.controllers import android_device
-
-
-class VtsHalAutomotiveVehicleV2_1HostTest(base_test.BaseTestClass):
- """A simple testcase for the VEHICLE HIDL HAL."""
-
- def setUpClass(self):
- """Creates a mirror and init vehicle hal."""
- self.dut = self.registerController(android_device)[0]
-
- self.dut.shell.InvokeTerminal("one")
- self.dut.shell.one.Execute("setenforce 0") # SELinux permissive mode
-
- results = self.dut.shell.one.Execute("id -u system")
- system_uid = results[const.STDOUT][0].strip()
- logging.info("system_uid: %s", system_uid)
-
- if self.coverage.enabled:
- self.coverage.LoadArtifacts()
- self.coverage.InitializeDeviceCoverage(self.dut)
-
- if self.profiling.enabled:
- self.profiling.EnableVTSProfiling(self.dut.shell.one)
-
- self.dut.hal.InitHidlHal(
- target_type="vehicle",
- target_basepaths=self.dut.libPaths,
- target_version=2.1,
- target_package="android.hardware.automotive.vehicle",
- target_component_name="IVehicle",
- bits=64 if self.dut.is64Bit else 32)
-
- self.vehicle = self.dut.hal.vehicle # shortcut
- self.vehicle.SetCallerUid(system_uid)
- self.vtypes = self.dut.hal.vehicle.GetHidlTypeInterface("types")
- logging.info("vehicle types: %s", self.vtypes)
- self.halProperties = {}
- for config in self.vehicle.getAllPropConfigs():
- logging.info('property %d -> %s', config['prop'], config)
- self.halProperties[config['prop']] = config
-
- def tearDownClass(self):
- """Disables the profiling.
-
- If profiling is enabled for the test, collect the profiling data
- and disable profiling after the test is done.
- """
- if self.profiling.enabled:
- self.profiling.ProcessTraceDataForTestCase(self.dut)
- self.profiling.ProcessAndUploadTraceData()
-
- if self.coverage.enabled:
- self.coverage.SetCoverageData(dut=self.dut, isGlobal=True)
-
- def isPropertySupported(self, propertyId):
- """Check whether a Vehicle HAL property is supported."""
- return propertyId in self.halProperties
-
- def getDiagnosticSupportInfo(self):
- """Check which of the OBD2 diagnostic properties are supported."""
- properties = [self.vtypes.VehicleProperty.OBD2_LIVE_FRAME,
- self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME,
- self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_INFO,
- self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_CLEAR]
- return {x:self.isPropertySupported(x) for x in properties}
-
- class CheckRead(object):
- """An object whose job it is to read a Vehicle HAL property and run
- routine validation checks on the result."""
-
- def __init__(self, test, propertyId, areaId=0):
- """Creates a CheckRead instance.
-
- Args:
- test: the containing testcase object.
- propertyId: the numeric identifier of the vehicle property.
- """
- self.test = test
- self.propertyId = propertyId
- self.areaId = 0
-
- def validateGet(self, status, value):
- """Validate the result of IVehicle.get.
-
- Args:
- status: the StatusCode returned from Vehicle HAL.
- value: the VehiclePropValue returned from Vehicle HAL.
-
- Returns: a VehiclePropValue instance, or None on failure."""
- asserts.assertEqual(self.test.vtypes.StatusCode.OK, status)
- asserts.assertNotEqual(value, None)
- asserts.assertEqual(self.propertyId, value['prop'])
- return value
-
- def prepareRequest(self, propValue):
- """Setup this request with any property-specific data.
-
- Args:
- propValue: a dictionary in the format of a VehiclePropValue.
-
- Returns: a dictionary in the format of a VehclePropValue."""
- return propValue
-
- def __call__(self):
- asserts.assertTrue(self.test.isPropertySupported(self.propertyId), "error")
- request = {
- 'prop' : self.propertyId,
- 'timestamp' : 0,
- 'areaId' : self.areaId,
- 'value' : {
- 'int32Values' : [],
- 'floatValues' : [],
- 'int64Values' : [],
- 'bytes' : [],
- 'stringValue' : ""
- }
- }
- request = self.prepareRequest(request)
- requestPropValue = self.test.vtypes.Py2Pb("VehiclePropValue",
- request)
- status, responsePropValue = self.test.vehicle.get(requestPropValue)
- return self.validateGet(status, responsePropValue)
-
- class CheckWrite(object):
- """An object whose job it is to write a Vehicle HAL property and run
- routine validation checks on the result."""
-
- def __init__(self, test, propertyId, areaId=0):
- """Creates a CheckWrite instance.
-
- Args:
- test: the containing testcase object.
- propertyId: the numeric identifier of the vehicle property.
- areaId: the numeric identifier of the vehicle area.
- """
- self.test = test
- self.propertyId = propertyId
- self.areaId = 0
-
- def validateSet(self, status):
- """Validate the result of IVehicle.set.
- Reading back the written-to property to ensure a consistent
- value is fair game for this method.
-
- Args:
- status: the StatusCode returned from Vehicle HAL.
-
- Returns: None."""
- asserts.assertEqual(self.test.vtypes.StatusCode.OK, status)
-
- def prepareRequest(self, propValue):
- """Setup this request with any property-specific data.
-
- Args:
- propValue: a dictionary in the format of a VehiclePropValue.
-
- Returns: a dictionary in the format of a VehclePropValue."""
- return propValue
-
- def __call__(self):
- asserts.assertTrue(self.test.isPropertySupported(self.propertyId), "error")
- request = {
- 'prop' : self.propertyId,
- 'timestamp' : 0,
- 'areaId' : self.areaId,
- 'value' : {
- 'int32Values' : [],
- 'floatValues' : [],
- 'int64Values' : [],
- 'bytes' : [],
- 'stringValue' : ""
- }
- }
- request = self.prepareRequest(request)
- requestPropValue = self.test.vtypes.Py2Pb("VehiclePropValue",
- request)
- status = self.test.vehicle.set(requestPropValue)
- return self.validateSet(status)
-
- def testReadObd2LiveFrame(self):
- """Test that one can correctly read the OBD2 live frame."""
- supportInfo = self.getDiagnosticSupportInfo()
- if supportInfo[self.vtypes.VehicleProperty.OBD2_LIVE_FRAME]:
- checkRead = self.CheckRead(self,
- self.vtypes.VehicleProperty.OBD2_LIVE_FRAME)
- checkRead()
- else:
- # live frame not supported by this HAL implementation. done
- logging.info("OBD2_LIVE_FRAME not supported.")
-
- def testReadObd2FreezeFrameInfo(self):
- """Test that one can read the list of OBD2 freeze timestamps."""
- supportInfo = self.getDiagnosticSupportInfo()
- if supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_INFO]:
- checkRead = self.CheckRead(self,
- self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_INFO)
- checkRead()
- else:
- # freeze frame info not supported by this HAL implementation. done
- logging.info("OBD2_FREEZE_FRAME_INFO not supported.")
-
- def testReadValidObd2FreezeFrame(self):
- """Test that one can read the OBD2 freeze frame data."""
- class FreezeFrameCheckRead(self.CheckRead):
- def __init__(self, test, timestamp):
- self.test = test
- self.propertyId = \
- self.test.vtypes.VehicleProperty.OBD2_FREEZE_FRAME
- self.timestamp = timestamp
- self.areaId = 0
-
- def prepareRequest(self, propValue):
- propValue['value']['int64Values'] = [self.timestamp]
- return propValue
-
- def validateGet(self, status, value):
- # None is acceptable, as a newer fault could have overwritten
- # the one we're trying to read
- if value is not None:
- asserts.assertEqual(self.vtypes.StatusCode.OK, status)
- asserts.assertEqual(self.propertyId, value['prop'])
- asserts.assertEqual(self.timestamp, value['timestamp'])
-
- supportInfo = self.getDiagnosticSupportInfo()
- if supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_INFO] \
- and supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME]:
- infoCheckRead = self.CheckRead(self,
- self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_INFO)
- frameInfos = infoCheckRead()
- timestamps = frameInfos["value"]["int64Values"]
- for timestamp in timestamps:
- freezeCheckRead = FreezeFrameCheckRead(self, timestamp)
- freezeCheckRead()
- for timestamp in invalidTimestamps:
- request = self.emptyValueProperty(
- self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME)
- status, value = self.vehicle.get(request)
- else:
- # freeze frame not supported by this HAL implementation. done
- logging.info("OBD2_FREEZE_FRAME and _INFO not supported.")
-
- def testReadInvalidObd2FreezeFrame(self):
- """Test that trying to read freeze frame at invalid timestamps
- behaves correctly (i.e. returns an error code)."""
- class FreezeFrameCheckRead(self.CheckRead):
- def __init__(self, test, timestamp):
- self.test = test
- self.propertyId = self.test.vtypes.VehicleProperty.OBD2_FREEZE_FRAME
- self.timestamp = timestamp
- self.areaId = 0
-
- def prepareRequest(self, propValue):
- propValue['value']['int64Values'] = [self.timestamp]
- return propValue
-
- def validateGet(self, status, value):
- # If we get freeze frame data here, something is wrong
- asserts.assertEqual(None, value)
- asserts.assertEqual(
- self.test.vtypes.StatusCode.INVALID_ARG, status)
-
- supportInfo = self.getDiagnosticSupportInfo()
- invalidTimestamps = [0,482005800]
- if supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME]:
- for timestamp in invalidTimestamps:
- freezeCheckRead = FreezeFrameCheckRead(self, timestamp)
- freezeCheckRead()
- else:
- # freeze frame not supported by this HAL implementation. done
- logging.info("OBD2_FREEZE_FRAME not supported.")
-
- def testClearValidObd2FreezeFrame(self):
- """Test that deleting a diagnostic freeze frame works.
- Given the timing behavor of OBD2_FREEZE_FRAME, the only sensible
- definition of works here is that, after deleting a frame, trying to read
- at its timestamp, will not be successful."""
- class FreezeFrameClearCheckWrite(self.CheckWrite):
- def __init__(self, test, timestamp):
- self.test = test
- self.propertyId = self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME
- self.timestamp = timestamp
- self.areaId = 0
-
- def prepareRequest(self, propValue):
- propValue['value']['int64Values'] = [self.timestamp]
- return propValue
-
- def validateSet(self, status):
- asserts.assertTrue(status in [
- self.test.vtypes.StatusCode.OK,
- self.test.vtypes.StatusCode.INVALID_ARG], "error")
-
- class FreezeFrameCheckRead(self.CheckRead):
- def __init__(self, test, timestamp):
- self.test = test
- self.propertyId = \
- self.test.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_CLEAR
- self.timestamp = timestamp
- self.areaId = 0
-
- def prepareRequest(self, propValue):
- propValue['value']['int64Values'] = [self.timestamp]
- return propValue
-
- def validateGet(self, status, value):
- # If we get freeze frame data here, something is wrong
- asserts.assertEqual(None, value)
- asserts.assertEqual(
- self.test.vtypes.StatusCode.INVALID_ARG, status)
-
- supportInfo = self.getDiagnosticSupportInfo()
- if supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_INFO] \
- and supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME] \
- and supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_CLEAR]:
- infoCheckRead = self.CheckRead(self,
- self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_INFO)
- frameInfos = infoCheckRead()
- timestamps = frameInfos["value"]["int64Values"]
- for timestamp in timestamps:
- checkWrite = FreezeFrameClearCheckWrite(self, timestamp)
- checkWrite()
- checkRead = FreezeFrameCheckRead(self, timestamp)
- checkRead()
- else:
- # freeze frame not supported by this HAL implementation. done
- logging.info("OBD2_FREEZE_FRAME, _CLEAR and _INFO not supported.")
-
- def testClearInvalidObd2FreezeFrame(self):
- """Test that deleting an invalid freeze frame behaves correctly."""
- class FreezeFrameClearCheckWrite(self.CheckWrite):
- def __init__(self, test, timestamp):
- self.test = test
- self.propertyId = \
- self.test.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_CLEAR
- self.timestamp = timestamp
- self.areaId = 0
-
- def prepareRequest(self, propValue):
- propValue['value']['int64Values'] = [self.timestamp]
- return propValue
-
- def validateSet(self, status):
- asserts.assertEqual(self.test.vtypes.StatusCode.INVALID_ARG,
- status)
-
- supportInfo = self.getDiagnosticSupportInfo()
- if supportInfo[self.vtypes.VehicleProperty.OBD2_FREEZE_FRAME_CLEAR]:
- invalidTimestamps = [0,482005800]
- for timestamp in invalidTimestamps:
- checkWrite = FreezeFrameClearCheckWrite(self, timestamp)
- checkWrite()
- else:
- # freeze frame not supported by this HAL implementation. done
- logging.info("OBD2_FREEZE_FRAME_CLEAR not supported.")
-
-if __name__ == "__main__":
- test_runner.main()
diff --git a/automotive/vehicle/V2_1/host/__init__.py b/automotive/vehicle/V2_1/host/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/automotive/vehicle/V2_1/host/__init__.py
+++ /dev/null
diff --git a/automotive/vehicle/V2_1/host_profiling/Android.mk b/automotive/vehicle/V2_1/host_profiling/Android.mk
deleted file mode 100644
index 639e3ef..0000000
--- a/automotive/vehicle/V2_1/host_profiling/Android.mk
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Copyright (C) 2017 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.
-#
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1HostProfiling
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host_profiling
-include test/vts/tools/build/Android.host_config.mk
diff --git a/automotive/vehicle/V2_1/host_profiling/AndroidTest.xml b/automotive/vehicle/V2_1/host_profiling/AndroidTest.xml
deleted file mode 100644
index a68c06c..0000000
--- a/automotive/vehicle/V2_1/host_profiling/AndroidTest.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2017 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.
--->
-<configuration description="Config for VTS VtsHalAutomotiveVehicleV2_1HostProfiling test cases">
- <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
- <option name="push-group" value="HalHidlHostProfilingTest.push"/>
- <option name="cleanup" value="true"/>
- <option name="push" value="spec/hardware/interfaces/automotive/vehicle/2.1/vts/Vehicle.vts->/data/local/tmp/spec/Vehicle.vts"/>
- <option name="push" value="spec/hardware/interfaces/automotive/vehicle/2.1/vts/types.vts->/data/local/tmp/spec/types.vts"/>
- <option name="push" value="DATA/lib/android.hardware.automotive.vehicle.vts.driver@2.1.so->/data/local/tmp/32/android.hardware.automotive.vehicle.vts.driver@2.1.so"/>
- <option name="push" value="DATA/lib64/android.hardware.automotive.vehicle.vts.driver@2.1.so->/data/local/tmp/64/android.hardware.automotive.vehicle.vts.driver@2.1.so"/>
- <option name="push" value="DATA/lib/android.hardware.automotive.vehicle@2.1-vts.profiler.so->/data/local/tmp/32/android.hardware.automotive.vehicle@2.1-vts.profiler.so"/>
- <option name="push" value="DATA/lib64/android.hardware.automotive.vehicle@2.1-vts.profiler.so->/data/local/tmp/64/android.hardware.automotive.vehicle@2.1-vts.profiler.so"/>
- </target_preparer>
- <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
- <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
- <option name="test-module-name" value="VtsHalAutomotiveVehicleV2_1HostProfiling"/>
- <option name="test-case-path" value="vts/testcases/hal/automotive/vehicle/V2_1/host/VtsHalAutomotiveVehicleV2_1HostTest"/>
- <option name="enable-profiling" value="true"/>
- <option name="precondition-lshal" value="android.hardware.automotive.vehicle@2.1"/>
- <option name="test-timeout" value="1m"/>
- </test>
-</configuration>
diff --git a/biometrics/fingerprint/V2_1/build/Android.bp b/biometrics/fingerprint/V2_1/build/Android.bp
index 8ab1ab4..c4fb80e 100644
--- a/biometrics/fingerprint/V2_1/build/Android.bp
+++ b/biometrics/fingerprint/V2_1/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/bluetooth/V1_0/build/Android.bp b/bluetooth/V1_0/build/Android.bp
index 9d263bd..d289977 100644
--- a/bluetooth/V1_0/build/Android.bp
+++ b/bluetooth/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/boot/V1_0/build/Android.bp b/boot/V1_0/build/Android.bp
index f3cf3da..f020db0 100644
--- a/boot/V1_0/build/Android.bp
+++ b/boot/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/broadcastradio/V1_0/build/Android.bp b/broadcastradio/V1_0/build/Android.bp
index 286b693..04244cd 100644
--- a/broadcastradio/V1_0/build/Android.bp
+++ b/broadcastradio/V1_0/build/Android.bp
@@ -82,9 +82,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -147,9 +144,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/broadcastradio/V1_1/build/Android.bp b/broadcastradio/V1_1/build/Android.bp
index dd33221..f64c410 100644
--- a/broadcastradio/V1_1/build/Android.bp
+++ b/broadcastradio/V1_1/build/Android.bp
@@ -84,9 +84,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -150,9 +147,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/broadcastradio/V1_1/target/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to broadcastradio/V1_1/target/Android.mk
index ab678f7..7ec9a3c 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/broadcastradio/V1_1/target/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalBroadcastradioV1_1Target
+VTS_CONFIG_SRC_DIR := testcases/hal/broadcastradio/V1_1/target
include test/vts/tools/build/Android.host_config.mk
diff --git a/broadcastradio/V1_1/target/AndroidTest.xml b/broadcastradio/V1_1/target/AndroidTest.xml
new file mode 100644
index 0000000..00c6a69
--- /dev/null
+++ b/broadcastradio/V1_1/target/AndroidTest.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalBroadcastradioV1_0Target test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetTest.push"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalBroadcastradioV1_1Target"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalBroadcastradioV1_1TargetTest/VtsHalBroadcastradioV1_1TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalBroadcastradioV1_1TargetTest/VtsHalBroadcastradioV1_1TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="binary-test-disable-framework" value="true"/>
+ <option name="binary-test-stop-native-servers" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.broadcastradio@1.1"/>
+ <option name="test-timeout" value="15m"/>
+ </test>
+</configuration>
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/broadcastradio/V1_1/target_profiling/Android.mk
similarity index 84%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to broadcastradio/V1_1/target_profiling/Android.mk
index ab678f7..a4ee112 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/broadcastradio/V1_1/target_profiling/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalBroadcastradioV1_1TargetProfiling
+VTS_CONFIG_SRC_DIR := testcases/hal/broadcastradio/V1_1/target_profiling
include test/vts/tools/build/Android.host_config.mk
diff --git a/broadcastradio/V1_1/target_profiling/AndroidTest.xml b/broadcastradio/V1_1/target_profiling/AndroidTest.xml
new file mode 100644
index 0000000..07ae310
--- /dev/null
+++ b/broadcastradio/V1_1/target_profiling/AndroidTest.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalBroadcastradioV1_1TargetProfiling test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetProfilingTest.push"/>
+ <option name="cleanup" value="true"/>
+ <option name="push" value="DATA/lib/android.hardware.broadcastradio@1.1-vts.profiler.so->/data/local/tmp/32/android.hardware.broadcastradio@1.1-vts.profiler.so"/>
+ <option name="push" value="DATA/lib64/android.hardware.broadcastradio@1.1-vts.profiler.so->/data/local/tmp/64/android.hardware.broadcastradio@1.1-vts.profiler.so"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalBroadcastradioV1_1TargetProfiling"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalBroadcastradioV1_1TargetTest/VtsHalBroadcastradioV1_1TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalBroadcastradioV1_1TargetTest/VtsHalBroadcastradioV1_1TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="binary-test-disable-framework" value="true"/>
+ <option name="binary-test-stop-native-servers" value="true"/>
+ <option name="enable-profiling" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.broadcastradio@1.1"/>
+ <option name="test-timeout" value="15m"/>
+ </test>
+</configuration>
diff --git a/build/soong/hal2vts.go b/build/soong/hal2vts.go
index 9e79acc..01ac1fd 100644
--- a/build/soong/hal2vts.go
+++ b/build/soong/hal2vts.go
@@ -130,9 +130,11 @@
return h.generatedHeaders
}
-func hal2vtsFactory() (blueprint.Module, []interface{}) {
+func hal2vtsFactory() android.Module {
h := &hal2vts{}
- return android.InitAndroidModule(h, &h.properties)
+ h.AddProperties(&h.properties)
+ android.InitAndroidModule(h)
+ return h
}
func vtsList(config android.Config) *android.Paths {
diff --git a/camera/common/V1_0/build/Android.bp b/camera/common/V1_0/build/Android.bp
index 3af91a2..47e91b2 100644
--- a/camera/common/V1_0/build/Android.bp
+++ b/camera/common/V1_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/camera/device/V1_0/build/Android.bp b/camera/device/V1_0/build/Android.bp
index c0cac42..8232106 100644
--- a/camera/device/V1_0/build/Android.bp
+++ b/camera/device/V1_0/build/Android.bp
@@ -85,9 +85,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -151,9 +148,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/camera/device/V3_2/build/Android.bp b/camera/device/V3_2/build/Android.bp
index 62ac728..9094150 100644
--- a/camera/device/V3_2/build/Android.bp
+++ b/camera/device/V3_2/build/Android.bp
@@ -85,9 +85,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -151,9 +148,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/camera/metadata/V3_2/build/Android.bp b/camera/metadata/V3_2/build/Android.bp
index 96bffd4..ca9b055 100644
--- a/camera/metadata/V3_2/build/Android.bp
+++ b/camera/metadata/V3_2/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/camera/provider/V2_4/build/Android.bp b/camera/provider/V2_4/build/Android.bp
index b4b28da..e80e66c 100644
--- a/camera/provider/V2_4/build/Android.bp
+++ b/camera/provider/V2_4/build/Android.bp
@@ -87,9 +87,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -153,9 +150,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/cas/Android.bp b/cas/Android.bp
new file mode 100644
index 0000000..8c4fa06
--- /dev/null
+++ b/cas/Android.bp
@@ -0,0 +1,7 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+subdirs = [
+ "V1_0",
+ "native/V1_0",
+]
diff --git a/automotive/vehicle/V2_1/Android.bp b/cas/V1_0/Android.bp
similarity index 100%
copy from automotive/vehicle/V2_1/Android.bp
copy to cas/V1_0/Android.bp
diff --git a/cas/V1_0/build/Android.bp b/cas/V1_0/build/Android.bp
new file mode 100644
index 0000000..0f85302
--- /dev/null
+++ b/cas/V1_0/build/Android.bp
@@ -0,0 +1,151 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+// Generate .vts spec files.
+hal2vts {
+ name: "android.hardware.cas@1.0-vts.spec",
+ srcs: [
+ ":android.hardware.cas@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/1.0/Cas.vts",
+ "android/hardware/cas/1.0/CasListener.vts",
+ "android/hardware/cas/1.0/DescramblerBase.vts",
+ "android/hardware/cas/1.0/MediaCasService.vts",
+ "android/hardware/cas/1.0/types.vts",
+ ],
+}
+
+// Build VTS driver.
+genrule {
+ name: "android.hardware.cas@1.0-vts.driver_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/cas/1.0/ $(genDir)/android/hardware/cas/1.0/",
+ srcs: [
+ ":android.hardware.cas@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/1.0/Cas.vts.cpp",
+ "android/hardware/cas/1.0/CasListener.vts.cpp",
+ "android/hardware/cas/1.0/DescramblerBase.vts.cpp",
+ "android/hardware/cas/1.0/MediaCasService.vts.cpp",
+ "android/hardware/cas/1.0/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.cas@1.0-vts.driver_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/cas/1.0/ $(genDir)/android/hardware/cas/1.0/",
+ srcs: [
+ ":android.hardware.cas@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/1.0/Cas.vts.h",
+ "android/hardware/cas/1.0/CasListener.vts.h",
+ "android/hardware/cas/1.0/DescramblerBase.vts.h",
+ "android/hardware/cas/1.0/MediaCasService.vts.h",
+ "android/hardware/cas/1.0/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.cas@1.0-vts.driver",
+ generated_sources: ["android.hardware.cas@1.0-vts.driver_genc++"],
+ generated_headers: ["android.hardware.cas@1.0-vts.driver_genc++_headers"],
+ export_generated_headers: ["android.hardware.cas@1.0-vts.driver_genc++_headers"],
+ shared_libs: [
+ "libcamera_metadata",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libprotobuf-cpp-full",
+ "libutils",
+ "libvts_common",
+ "libvts_datatype",
+ "libvts_drivercomm",
+ "libvts_measurement",
+ "libvts_multidevice_proto",
+ "android.hidl.allocator@1.0",
+ "android.hardware.cas@1.0",
+
+ ],
+ export_shared_lib_headers: [
+
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
+// Build VTS profiler.
+genrule {
+ name: "android.hardware.cas@1.0-vts.profiler_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/cas/1.0/ $(genDir)/android/hardware/cas/1.0/",
+ srcs: [
+ ":android.hardware.cas@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/1.0/Cas.vts.cpp",
+ "android/hardware/cas/1.0/CasListener.vts.cpp",
+ "android/hardware/cas/1.0/DescramblerBase.vts.cpp",
+ "android/hardware/cas/1.0/MediaCasService.vts.cpp",
+ "android/hardware/cas/1.0/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.cas@1.0-vts.profiler_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/cas/1.0/ $(genDir)/android/hardware/cas/1.0/",
+ srcs: [
+ ":android.hardware.cas@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/1.0/Cas.vts.h",
+ "android/hardware/cas/1.0/CasListener.vts.h",
+ "android/hardware/cas/1.0/DescramblerBase.vts.h",
+ "android/hardware/cas/1.0/MediaCasService.vts.h",
+ "android/hardware/cas/1.0/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.cas@1.0-vts.profiler",
+ generated_sources: ["android.hardware.cas@1.0-vts.profiler_genc++"],
+ generated_headers: ["android.hardware.cas@1.0-vts.profiler_genc++_headers"],
+ export_generated_headers: ["android.hardware.cas@1.0-vts.profiler_genc++_headers"],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libvts_common",
+ "libvts_profiling",
+ "libvts_multidevice_proto",
+ "libprotobuf-cpp-full",
+ "android.hardware.cas@1.0",
+
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
diff --git a/automotive/vehicle/V2_1/Android.bp b/cas/native/V1_0/Android.bp
similarity index 100%
copy from automotive/vehicle/V2_1/Android.bp
copy to cas/native/V1_0/Android.bp
diff --git a/cas/native/V1_0/build/Android.bp b/cas/native/V1_0/build/Android.bp
new file mode 100644
index 0000000..e667395
--- /dev/null
+++ b/cas/native/V1_0/build/Android.bp
@@ -0,0 +1,139 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+// Generate .vts spec files.
+hal2vts {
+ name: "android.hardware.cas.native@1.0-vts.spec",
+ srcs: [
+ ":android.hardware.cas.native@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/native/1.0/Descrambler.vts",
+ "android/hardware/cas/native/1.0/types.vts",
+ ],
+}
+
+// Build VTS driver.
+genrule {
+ name: "android.hardware.cas.native@1.0-vts.driver_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas.native@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/cas/native/1.0/ $(genDir)/android/hardware/cas/native/1.0/",
+ srcs: [
+ ":android.hardware.cas.native@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/native/1.0/Descrambler.vts.cpp",
+ "android/hardware/cas/native/1.0/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.cas.native@1.0-vts.driver_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas.native@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/cas/native/1.0/ $(genDir)/android/hardware/cas/native/1.0/",
+ srcs: [
+ ":android.hardware.cas.native@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/native/1.0/Descrambler.vts.h",
+ "android/hardware/cas/native/1.0/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.cas.native@1.0-vts.driver",
+ generated_sources: ["android.hardware.cas.native@1.0-vts.driver_genc++"],
+ generated_headers: ["android.hardware.cas.native@1.0-vts.driver_genc++_headers"],
+ export_generated_headers: ["android.hardware.cas.native@1.0-vts.driver_genc++_headers"],
+ shared_libs: [
+ "libcamera_metadata",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libprotobuf-cpp-full",
+ "libutils",
+ "libvts_common",
+ "libvts_datatype",
+ "libvts_drivercomm",
+ "libvts_measurement",
+ "libvts_multidevice_proto",
+ "android.hidl.allocator@1.0",
+ "android.hardware.cas.native@1.0",
+ "android.hardware.cas@1.0",
+ "android.hardware.cas@1.0-vts.driver",
+ ],
+ export_shared_lib_headers: [
+ "android.hardware.cas@1.0",
+ "android.hardware.cas@1.0-vts.driver",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
+// Build VTS profiler.
+genrule {
+ name: "android.hardware.cas.native@1.0-vts.profiler_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas.native@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/cas/native/1.0/ $(genDir)/android/hardware/cas/native/1.0/",
+ srcs: [
+ ":android.hardware.cas.native@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/native/1.0/Descrambler.vts.cpp",
+ "android/hardware/cas/native/1.0/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.cas.native@1.0-vts.profiler_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.cas.native@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/cas/native/1.0/ $(genDir)/android/hardware/cas/native/1.0/",
+ srcs: [
+ ":android.hardware.cas.native@1.0_hal",
+ ],
+ out: [
+ "android/hardware/cas/native/1.0/Descrambler.vts.h",
+ "android/hardware/cas/native/1.0/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.cas.native@1.0-vts.profiler",
+ generated_sources: ["android.hardware.cas.native@1.0-vts.profiler_genc++"],
+ generated_headers: ["android.hardware.cas.native@1.0-vts.profiler_genc++_headers"],
+ export_generated_headers: ["android.hardware.cas.native@1.0-vts.profiler_genc++_headers"],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libvts_common",
+ "libvts_profiling",
+ "libvts_multidevice_proto",
+ "libprotobuf-cpp-full",
+ "android.hardware.cas.native@1.0",
+ "android.hardware.cas@1.0",
+ "android.hardware.cas@1.0-vts.profiler",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
diff --git a/configstore/V1_0/build/Android.bp b/configstore/V1_0/build/Android.bp
index 26fec59..373af03 100644
--- a/configstore/V1_0/build/Android.bp
+++ b/configstore/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/configstore/V1_0/target_replay/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to configstore/V1_0/target_replay/Android.mk
index ab678f7..2132348 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/configstore/V1_0/target_replay/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalConfigstoreV1_0TargetReplay
+VTS_CONFIG_SRC_DIR := testcases/hal/configstore/V1_0/target_replay
include test/vts/tools/build/Android.host_config.mk
diff --git a/configstore/V1_0/target_replay/AndroidTest.xml b/configstore/V1_0/target_replay/AndroidTest.xml
new file mode 100644
index 0000000..b6d5d8c
--- /dev/null
+++ b/configstore/V1_0/target_replay/AndroidTest.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalConfigstoreV1_0TargetReplay test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlHostTest.push"/>
+ <option name="cleanup" value="true"/>
+ <option name="push" value="spec/hardware/interfaces/configstore/1.0/vts/SurfaceFlingerConfigs.vts->/data/local/tmp/spec/android/hardware/configstore/1.0/SurfaceFlingerConfigs.vts"/>
+ <option name="push" value="spec/hardware/interfaces/configstore/1.0/vts/types.vts->/data/local/tmp/spec/android/hardware/configstore/1.0/types.vts"/>
+ <option name="push" value="DATA/lib/android.hardware.configstore@1.0-vts.driver.so->/data/local/tmp/32/android.hardware.configstore@1.0-vts.driver.so"/>
+ <option name="push" value="DATA/lib64/android.hardware.configstore@1.0-vts.driver.so->/data/local/tmp/64/android.hardware.configstore@1.0-vts.driver.so"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalConfigstoreV1_0TargetReplay"/>
+ <option name="binary-test-type" value="hal_hidl_replay_test"/>
+ <option name="hal-hidl-replay-test-trace-path" value="test/vts-testcase/hal-trace/configstore/V1_0/android.hardware.configstore_1.0_16680329225052.vts.trace"/>
+ <option name="hal-hidl-package-name" value="android.hardware.configstore@1.0"/>
+ <option name="precondition-lshal" value="android.hardware.configstore@1.0"/>
+ <option name="test-timeout" value="5m"/>
+ </test>
+</configuration>
diff --git a/contexthub/V1_0/build/Android.bp b/contexthub/V1_0/build/Android.bp
index 9a16c0a..f1af8e5 100644
--- a/contexthub/V1_0/build/Android.bp
+++ b/contexthub/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/drm/V1_0/build/Android.bp b/drm/V1_0/build/Android.bp
index 729cc45..81bb65c 100644
--- a/drm/V1_0/build/Android.bp
+++ b/drm/V1_0/build/Android.bp
@@ -85,9 +85,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -152,9 +149,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/drm/V1_0/target/AndroidTest.xml b/drm/V1_0/target/AndroidTest.xml
index 9570ee7..f8dcff1 100644
--- a/drm/V1_0/target/AndroidTest.xml
+++ b/drm/V1_0/target/AndroidTest.xml
@@ -17,8 +17,8 @@
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
<option name="abort-on-push-failure" value="false"/>
<option name="push-group" value="HalHidlTargetTest.push"/>
- <option name="push" value="DATA/lib/drm-vts-test-libs->/data/local/tmp/32/lib"/>
- <option name="push" value="DATA/lib64/drm-vts-test-libs->/data/local/tmp/64/lib"/>
+ <option name="push" value="DATA/vendor/lib/drm-vts-test-libs->/data/local/tmp/32/lib"/>
+ <option name="push" value="DATA/vendor/lib64/drm-vts-test-libs->/data/local/tmp/64/lib"/>
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
<test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
diff --git a/drm/V1_0/target_profiling/AndroidTest.xml b/drm/V1_0/target_profiling/AndroidTest.xml
index f936094..4a431c4 100644
--- a/drm/V1_0/target_profiling/AndroidTest.xml
+++ b/drm/V1_0/target_profiling/AndroidTest.xml
@@ -18,8 +18,8 @@
<option name="abort-on-push-failure" value="false"/>
<option name="push-group" value="HalHidlTargetProfilingTest.push"/>
<option name="cleanup" value="true"/>
- <option name="push" value="DATA/lib/drm-vts-test-libs->/data/local/tmp/32/lib"/>
- <option name="push" value="DATA/lib64/drm-vts-test-libs->/data/local/tmp/64/lib"/>
+ <option name="push" value="DATA/vendor/lib/drm-vts-test-libs->/data/local/tmp/32/lib"/>
+ <option name="push" value="DATA/vendor/lib64/drm-vts-test-libs->/data/local/tmp/64/lib"/>
<option name="push" value="DATA/lib/android.hardware.drm@1.0-vts.profiler.so->/data/local/tmp/32/android.hardware.drm@1.0-vts.profiler.so"/>
<option name="push" value="DATA/lib64/android.hardware.drm@1.0-vts.profiler.so->/data/local/tmp/64/android.hardware.drm@1.0-vts.profiler.so"/>
</target_preparer>
diff --git a/dumpstate/V1_0/build/Android.bp b/dumpstate/V1_0/build/Android.bp
index 6da14ea..27c5f48 100644
--- a/dumpstate/V1_0/build/Android.bp
+++ b/dumpstate/V1_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/dumpstate/V1_0/target/Android.mk
similarity index 86%
rename from automotive/vehicle/V2_1/host/Android.mk
rename to dumpstate/V1_0/target/Android.mk
index ab678f7..04ea176 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/dumpstate/V1_0/target/Android.mk
@@ -18,6 +18,7 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalDumpstateV1_0Target
+VTS_CONFIG_SRC_DIR := testcases/hal/dumpstate/V1_0/target
include test/vts/tools/build/Android.host_config.mk
+
diff --git a/dumpstate/V1_0/target/AndroidTest.xml b/dumpstate/V1_0/target/AndroidTest.xml
new file mode 100644
index 0000000..14431d7
--- /dev/null
+++ b/dumpstate/V1_0/target/AndroidTest.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VtsHalDumpstateV1_0Target test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetTest.push"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalDumpstateV1_0Target"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalDumpstateV1_0TargetTest/VtsHalDumpstateV1_0TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalDumpstateV1_0TargetTest/VtsHalDumpstateV1_0TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="binary-test-disable-framework" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.dumpstate@1.0"/>
+ <option name="test-timeout" value="5m"/>
+ </test>
+</configuration>
diff --git a/gatekeeper/V1_0/build/Android.bp b/gatekeeper/V1_0/build/Android.bp
index c566980..b9d3330 100644
--- a/gatekeeper/V1_0/build/Android.bp
+++ b/gatekeeper/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/gatekeeper/V1_0/target_replay/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to gatekeeper/V1_0/target_replay/Android.mk
index ab678f7..d53e149 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/gatekeeper/V1_0/target_replay/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalGatekeeperV1_0TargetReplay
+VTS_CONFIG_SRC_DIR := testcases/hal/gatekeeper/V1_0/target_replay
include test/vts/tools/build/Android.host_config.mk
diff --git a/gatekeeper/V1_0/target_replay/AndroidTest.xml b/gatekeeper/V1_0/target_replay/AndroidTest.xml
new file mode 100644
index 0000000..9d1cf7e
--- /dev/null
+++ b/gatekeeper/V1_0/target_replay/AndroidTest.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalGatekeeperV1_0TargetReplay test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlHostTest.push"/>
+ <option name="cleanup" value="true"/>
+ <option name="push" value="spec/hardware/interfaces/gatekeeper/1.0/vts/Gatekeeper.vts->/data/local/tmp/spec/android/hardware/gatekeeper/1.0/Gatekeeper.vts"/>
+ <option name="push" value="spec/hardware/interfaces/gatekeeper/1.0/vts/types.vts->/data/local/tmp/spec/android/hardware/gatekeeper/1.0/types.vts"/>
+ <option name="push" value="DATA/lib/android.hardware.gatekeeper@1.0-vts.driver.so->/data/local/tmp/32/android.hardware.gatekeeper@1.0-vts.driver.so"/>
+ <option name="push" value="DATA/lib64/android.hardware.gatekeeper@1.0-vts.driver.so->/data/local/tmp/64/android.hardware.gatekeeper@1.0-vts.driver.so"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalGatekeeperV1_0TargetReplay"/>
+ <option name="binary-test-type" value="hal_hidl_replay_test"/>
+ <option name="hal-hidl-replay-test-trace-path" value="test/vts-testcase/hal-trace/gatekeeper/V1_0/android.hardware.gatekeeper_1.0_450525506023.vts.trace"/>
+ <option name="hal-hidl-replay-test-trace-path" value="test/vts-testcase/hal-trace/gatekeeper/V1_0/android.hardware.gatekeeper_1.0_39493054816.vts.trace"/>
+ <option name="hal-hidl-package-name" value="android.hardware.gatekeeper@1.0"/>
+ <option name="precondition-lshal" value="android.hardware.gatekeeper@1.0"/>
+ <option name="test-timeout" value="5m"/>
+ </test>
+</configuration>
diff --git a/gnss/V1_0/build/Android.bp b/gnss/V1_0/build/Android.bp
index 214de8b..338033f 100644
--- a/gnss/V1_0/build/Android.bp
+++ b/gnss/V1_0/build/Android.bp
@@ -130,9 +130,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -227,9 +224,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/graphics/allocator/V2_0/build/Android.bp b/graphics/allocator/V2_0/build/Android.bp
index b442eef..ed5ddd2 100644
--- a/graphics/allocator/V2_0/build/Android.bp
+++ b/graphics/allocator/V2_0/build/Android.bp
@@ -72,9 +72,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -130,9 +127,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/graphics/bufferqueue/V1_0/build/Android.bp b/graphics/bufferqueue/V1_0/build/Android.bp
index 512dfa9..d9a996c 100644
--- a/graphics/bufferqueue/V1_0/build/Android.bp
+++ b/graphics/bufferqueue/V1_0/build/Android.bp
@@ -79,9 +79,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -141,9 +138,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/graphics/common/V1_0/build/Android.bp b/graphics/common/V1_0/build/Android.bp
index 07d50dc..e5c1d82 100644
--- a/graphics/common/V1_0/build/Android.bp
+++ b/graphics/common/V1_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/graphics/composer/V2_1/build/Android.bp b/graphics/composer/V2_1/build/Android.bp
index 8014599..9ed171a 100644
--- a/graphics/composer/V2_1/build/Android.bp
+++ b/graphics/composer/V2_1/build/Android.bp
@@ -81,9 +81,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -145,9 +142,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/graphics/composer/V2_1/target/AndroidTest.xml b/graphics/composer/V2_1/target/AndroidTest.xml
index 1cadf5b..56ea097 100644
--- a/graphics/composer/V2_1/target/AndroidTest.xml
+++ b/graphics/composer/V2_1/target/AndroidTest.xml
@@ -26,8 +26,20 @@
<option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalGraphicsComposerV2_1TargetTest/VtsHalGraphicsComposerV2_1TargetTest"/>
<option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalGraphicsComposerV2_1TargetTest/VtsHalGraphicsComposerV2_1TargetTest"/>
<option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="exclude-filter" value="r(.*/default.*)" />
+ <option name="precondition-lshal" value="android.hardware.graphics.composer@2.1"/>
+ <option name="test-timeout" value="5m"/>
+ </test>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalGraphicsComposerV2_1Target"/>
+ <option name="binary-test-working-directory" value="_32bit::/data/nativetest/" />
+ <option name="binary-test-working-directory" value="_64bit::/data/nativetest64/" />
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalGraphicsComposerV2_1TargetTest/VtsHalGraphicsComposerV2_1TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalGraphicsComposerV2_1TargetTest/VtsHalGraphicsComposerV2_1TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
<option name="binary-test-disable-framework" value="true"/>
<option name="binary-test-stop-native-servers" value="true"/>
+ <option name="exclude-filter" value="r(.*/vr.*)" />
<option name="precondition-lshal" value="android.hardware.graphics.composer@2.1"/>
<option name="test-timeout" value="5m"/>
</test>
diff --git a/graphics/composer/V2_1/target_profiling/AndroidTest.xml b/graphics/composer/V2_1/target_profiling/AndroidTest.xml
index 240e6c2..eb10402 100644
--- a/graphics/composer/V2_1/target_profiling/AndroidTest.xml
+++ b/graphics/composer/V2_1/target_profiling/AndroidTest.xml
@@ -32,6 +32,7 @@
<option name="binary-test-disable-framework" value="true"/>
<option name="binary-test-stop-native-servers" value="true"/>
<option name="enable-profiling" value="true"/>
+ <option name="exclude-filter" value="r(.*/vr.*)" />
<option name="precondition-lshal" value="android.hardware.graphics.composer@2.1"/>
<option name="test-timeout" value="5m"/>
</test>
diff --git a/graphics/mapper/V2_0/build/Android.bp b/graphics/mapper/V2_0/build/Android.bp
index 1707a07..0af0d66 100644
--- a/graphics/mapper/V2_0/build/Android.bp
+++ b/graphics/mapper/V2_0/build/Android.bp
@@ -75,9 +75,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -135,9 +132,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/health/V1_0/build/Android.bp b/health/V1_0/build/Android.bp
index 2e621ce..ea7c913 100644
--- a/health/V1_0/build/Android.bp
+++ b/health/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/ir/V1_0/build/Android.bp b/ir/V1_0/build/Android.bp
index b2e9e7c..2b91e17 100644
--- a/ir/V1_0/build/Android.bp
+++ b/ir/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/keymaster/V3_0/build/Android.bp b/keymaster/V3_0/build/Android.bp
index 055a2e6..c8f9127 100644
--- a/keymaster/V3_0/build/Android.bp
+++ b/keymaster/V3_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/light/V2_0/build/Android.bp b/light/V2_0/build/Android.bp
index b4cfd7e..ea2a888 100644
--- a/light/V2_0/build/Android.bp
+++ b/light/V2_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/media/V1_0/build/Android.bp b/media/V1_0/build/Android.bp
index 2354adf..1ea4f95 100644
--- a/media/V1_0/build/Android.bp
+++ b/media/V1_0/build/Android.bp
@@ -72,9 +72,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -130,9 +127,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/media/omx/V1_0/build/Android.bp b/media/omx/V1_0/build/Android.bp
index 7308f9d..0465545 100644
--- a/media/omx/V1_0/build/Android.bp
+++ b/media/omx/V1_0/build/Android.bp
@@ -98,9 +98,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -172,9 +169,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/memtrack/V1_0/build/Android.bp b/memtrack/V1_0/build/Android.bp
index 1801bf8..0da1ffe 100644
--- a/memtrack/V1_0/build/Android.bp
+++ b/memtrack/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/neuralnetworks/Android.bp b/neuralnetworks/Android.bp
new file mode 100644
index 0000000..cdc8905
--- /dev/null
+++ b/neuralnetworks/Android.bp
@@ -0,0 +1,6 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+subdirs = [
+ "V1_0",
+]
diff --git a/automotive/vehicle/V2_1/Android.bp b/neuralnetworks/V1_0/Android.bp
similarity index 100%
copy from automotive/vehicle/V2_1/Android.bp
copy to neuralnetworks/V1_0/Android.bp
diff --git a/neuralnetworks/V1_0/build/Android.bp b/neuralnetworks/V1_0/build/Android.bp
new file mode 100644
index 0000000..e0229a9
--- /dev/null
+++ b/neuralnetworks/V1_0/build/Android.bp
@@ -0,0 +1,146 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+// Generate .vts spec files.
+hal2vts {
+ name: "android.hardware.neuralnetworks@1.0-vts.spec",
+ srcs: [
+ ":android.hardware.neuralnetworks@1.0_hal",
+ ],
+ out: [
+ "android/hardware/neuralnetworks/1.0/Device.vts",
+ "android/hardware/neuralnetworks/1.0/Event.vts",
+ "android/hardware/neuralnetworks/1.0/PreparedModel.vts",
+ "android/hardware/neuralnetworks/1.0/types.vts",
+ ],
+}
+
+// Build VTS driver.
+genrule {
+ name: "android.hardware.neuralnetworks@1.0-vts.driver_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.neuralnetworks@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/neuralnetworks/1.0/ $(genDir)/android/hardware/neuralnetworks/1.0/",
+ srcs: [
+ ":android.hardware.neuralnetworks@1.0_hal",
+ ],
+ out: [
+ "android/hardware/neuralnetworks/1.0/Device.vts.cpp",
+ "android/hardware/neuralnetworks/1.0/Event.vts.cpp",
+ "android/hardware/neuralnetworks/1.0/PreparedModel.vts.cpp",
+ "android/hardware/neuralnetworks/1.0/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.neuralnetworks@1.0-vts.driver_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.neuralnetworks@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/neuralnetworks/1.0/ $(genDir)/android/hardware/neuralnetworks/1.0/",
+ srcs: [
+ ":android.hardware.neuralnetworks@1.0_hal",
+ ],
+ out: [
+ "android/hardware/neuralnetworks/1.0/Device.vts.h",
+ "android/hardware/neuralnetworks/1.0/Event.vts.h",
+ "android/hardware/neuralnetworks/1.0/PreparedModel.vts.h",
+ "android/hardware/neuralnetworks/1.0/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.neuralnetworks@1.0-vts.driver",
+ generated_sources: ["android.hardware.neuralnetworks@1.0-vts.driver_genc++"],
+ generated_headers: ["android.hardware.neuralnetworks@1.0-vts.driver_genc++_headers"],
+ export_generated_headers: ["android.hardware.neuralnetworks@1.0-vts.driver_genc++_headers"],
+ shared_libs: [
+ "libcamera_metadata",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libprotobuf-cpp-full",
+ "libutils",
+ "libvts_common",
+ "libvts_datatype",
+ "libvts_drivercomm",
+ "libvts_measurement",
+ "libvts_multidevice_proto",
+ "android.hidl.allocator@1.0",
+ "android.hardware.neuralnetworks@1.0",
+
+ ],
+ export_shared_lib_headers: [
+
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
+// Build VTS profiler.
+genrule {
+ name: "android.hardware.neuralnetworks@1.0-vts.profiler_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.neuralnetworks@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/neuralnetworks/1.0/ $(genDir)/android/hardware/neuralnetworks/1.0/",
+ srcs: [
+ ":android.hardware.neuralnetworks@1.0_hal",
+ ],
+ out: [
+ "android/hardware/neuralnetworks/1.0/Device.vts.cpp",
+ "android/hardware/neuralnetworks/1.0/Event.vts.cpp",
+ "android/hardware/neuralnetworks/1.0/PreparedModel.vts.cpp",
+ "android/hardware/neuralnetworks/1.0/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.neuralnetworks@1.0-vts.profiler_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.neuralnetworks@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/neuralnetworks/1.0/ $(genDir)/android/hardware/neuralnetworks/1.0/",
+ srcs: [
+ ":android.hardware.neuralnetworks@1.0_hal",
+ ],
+ out: [
+ "android/hardware/neuralnetworks/1.0/Device.vts.h",
+ "android/hardware/neuralnetworks/1.0/Event.vts.h",
+ "android/hardware/neuralnetworks/1.0/PreparedModel.vts.h",
+ "android/hardware/neuralnetworks/1.0/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.neuralnetworks@1.0-vts.profiler",
+ generated_sources: ["android.hardware.neuralnetworks@1.0-vts.profiler_genc++"],
+ generated_headers: ["android.hardware.neuralnetworks@1.0-vts.profiler_genc++_headers"],
+ export_generated_headers: ["android.hardware.neuralnetworks@1.0-vts.profiler_genc++_headers"],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libvts_common",
+ "libvts_profiling",
+ "libvts_multidevice_proto",
+ "libprotobuf-cpp-full",
+ "android.hardware.neuralnetworks@1.0",
+
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/neuralnetworks/V1_0/target/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to neuralnetworks/V1_0/target/Android.mk
index ab678f7..521fc01 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/neuralnetworks/V1_0/target/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalNeuralnetworksV1_0Target
+VTS_CONFIG_SRC_DIR := testcases/hal/neuralnetworks/V1_0/target
include test/vts/tools/build/Android.host_config.mk
diff --git a/neuralnetworks/V1_0/target/AndroidTest.xml b/neuralnetworks/V1_0/target/AndroidTest.xml
new file mode 100644
index 0000000..84dbdbc
--- /dev/null
+++ b/neuralnetworks/V1_0/target/AndroidTest.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalNeuralnetworksV1_0Target test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetTest.push"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalNeuralnetworksV1_0Target"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalNeuralnetworksV1_0TargetTest/VtsHalNeuralnetworksV1_0TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalNeuralnetworksV1_0TargetTest/VtsHalNeuralnetworksV1_0TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="precondition-lshal" value="android.hardware.neuralnetworks@1.0"/>
+ <option name="test-timeout" value="5m"/>
+ </test>
+</configuration>
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/neuralnetworks/V1_0/target_profiling/Android.mk
similarity index 84%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to neuralnetworks/V1_0/target_profiling/Android.mk
index ab678f7..37d2011 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/neuralnetworks/V1_0/target_profiling/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalNeuralnetworksV1_0TargetProfiling
+VTS_CONFIG_SRC_DIR := testcases/hal/neuralnetworks/V1_0/target_profiling
include test/vts/tools/build/Android.host_config.mk
diff --git a/neuralnetworks/V1_0/target_profiling/AndroidTest.xml b/neuralnetworks/V1_0/target_profiling/AndroidTest.xml
new file mode 100644
index 0000000..24131d4
--- /dev/null
+++ b/neuralnetworks/V1_0/target_profiling/AndroidTest.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalNeuralnetworksV1_0TargetProfiling test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetProfilingTest.push"/>
+ <option name="cleanup" value="true"/>
+ <option name="push" value="DATA/lib/android.hardware.neuralnetworks@1.0-vts.profiler.so->/data/local/tmp/32/android.hardware.neuralnetworks@1.0-vts.profiler.so"/>
+ <option name="push" value="DATA/lib64/android.hardware.neuralnetworks@1.0-vts.profiler.so->/data/local/tmp/64/android.hardware.neuralnetworks@1.0-vts.profiler.so"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalNeuralnetworksV1_0TargetProfiling"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalNeuralnetworksV1_0TargetTest/VtsHalNeuralnetworksV1_0TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalNeuralnetworksV1_0TargetTest/VtsHalNeuralnetworksV1_0TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="enable-profiling" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.neuralnetworks@1.0"/>
+ <option name="test-timeout" value="5m"/>
+ </test>
+</configuration>
diff --git a/nfc/V1_0/build/Android.bp b/nfc/V1_0/build/Android.bp
index da4c32b..53209c9 100644
--- a/nfc/V1_0/build/Android.bp
+++ b/nfc/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/power/V1_0/build/Android.bp b/power/V1_0/build/Android.bp
index 32dc0f7..a2c74b8 100644
--- a/power/V1_0/build/Android.bp
+++ b/power/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/power/V1_1/build/Android.bp b/power/V1_1/build/Android.bp
index 3d9e3ad..6e9ab9e 100644
--- a/power/V1_1/build/Android.bp
+++ b/power/V1_1/build/Android.bp
@@ -75,9 +75,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -135,9 +132,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/radio/V1_0/build/Android.bp b/radio/V1_0/build/Android.bp
index 3910e1e..e6f03ef 100644
--- a/radio/V1_0/build/Android.bp
+++ b/radio/V1_0/build/Android.bp
@@ -85,9 +85,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -152,9 +149,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/radio/V1_1/build/Android.bp b/radio/V1_1/build/Android.bp
index e45f7cc..2689191 100644
--- a/radio/V1_1/build/Android.bp
+++ b/radio/V1_1/build/Android.bp
@@ -84,9 +84,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -150,9 +147,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/radio/deprecated/V1_0/build/Android.bp b/radio/deprecated/V1_0/build/Android.bp
index 026ef95..da9ffc2 100644
--- a/radio/deprecated/V1_0/build/Android.bp
+++ b/radio/deprecated/V1_0/build/Android.bp
@@ -78,9 +78,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -140,9 +137,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/renderscript/V1_0/build/Android.bp b/renderscript/V1_0/build/Android.bp
index ebc0450..32e4db8 100644
--- a/renderscript/V1_0/build/Android.bp
+++ b/renderscript/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/renderscript/V1_0/target_profiling/AndroidTest.xml b/renderscript/V1_0/target_profiling/AndroidTest.xml
index 1d87e03..1e1223f 100644
--- a/renderscript/V1_0/target_profiling/AndroidTest.xml
+++ b/renderscript/V1_0/target_profiling/AndroidTest.xml
@@ -29,6 +29,6 @@
<option name="binary-test-type" value="hal_hidl_gtest"/>
<option name="enable-profiling" value="true"/>
<option name="precondition-lshal" value="android.hardware.renderscript@1.0"/>
- <option name="test-timeout" value="2m"/>
+ <option name="test-timeout" value="5m"/>
</test>
</configuration>
diff --git a/script/build/template/vts_build_template.bp b/script/build/template/vts_build_template.bp
index 0bd41e2..a9070f9 100644
--- a/script/build/template/vts_build_template.bp
+++ b/script/build/template/vts_build_template.bp
@@ -67,9 +67,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -124,9 +121,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/sensors/V1_0/build/Android.bp b/sensors/V1_0/build/Android.bp
index 5824821..100ac11 100644
--- a/sensors/V1_0/build/Android.bp
+++ b/sensors/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/soundtrigger/V2_0/build/Android.bp b/soundtrigger/V2_0/build/Android.bp
index d339e88..3c9f435 100644
--- a/soundtrigger/V2_0/build/Android.bp
+++ b/soundtrigger/V2_0/build/Android.bp
@@ -78,9 +78,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -140,9 +137,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/soundtrigger/V2_0/target/AndroidTest.xml b/soundtrigger/V2_0/target/AndroidTest.xml
index 6fe5197..d586ec4 100644
--- a/soundtrigger/V2_0/target/AndroidTest.xml
+++ b/soundtrigger/V2_0/target/AndroidTest.xml
@@ -28,7 +28,6 @@
<option name="binary-test-stop-native-servers" value="true"/>
<option name="precondition-lshal" value="android.hardware.soundtrigger@2.0"/>
<option name="precondition-file-path-prefix" value="/*/lib/hw/sound_trigger.primary." />
- <option name="skip-on-64bit-abi" value="true" />
<option name="test-timeout" value="5m"/>
</test>
</configuration>
diff --git a/soundtrigger/V2_0/target_profiling/AndroidTest.xml b/soundtrigger/V2_0/target_profiling/AndroidTest.xml
index b41e29f..594b9cb 100644
--- a/soundtrigger/V2_0/target_profiling/AndroidTest.xml
+++ b/soundtrigger/V2_0/target_profiling/AndroidTest.xml
@@ -34,7 +34,6 @@
<option name="enable-profiling" value="true"/>
<option name="precondition-lshal" value="android.hardware.soundtrigger@2.0"/>
<option name="precondition-file-path-prefix" value="/*/lib/hw/sound_trigger.primary." />
- <option name="skip-on-64bit-abi" value="true" />
<option name="test-timeout" value="5m"/>
</test>
</configuration>
diff --git a/tests/Android.bp b/tests/Android.bp
index aa484db..8347b83 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -12,5 +12,6 @@
"libhwbinder/V1_0",
"memory/V1_0",
"msgq/V1_0",
+ "multithread/V1_0",
"pointer/V1_0",
]
diff --git a/tests/bar/V1_0/build/Android.bp b/tests/bar/V1_0/build/Android.bp
index 63e4cf9..dfc5408 100644
--- a/tests/bar/V1_0/build/Android.bp
+++ b/tests/bar/V1_0/build/Android.bp
@@ -87,9 +87,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -155,9 +152,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/baz/V1_0/build/Android.bp b/tests/baz/V1_0/build/Android.bp
index 7ef1b8d..db0a36e 100644
--- a/tests/baz/V1_0/build/Android.bp
+++ b/tests/baz/V1_0/build/Android.bp
@@ -82,9 +82,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -147,9 +144,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/expression/V1_0/build/Android.bp b/tests/expression/V1_0/build/Android.bp
index 7ecb5b6..9e2de50 100644
--- a/tests/expression/V1_0/build/Android.bp
+++ b/tests/expression/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/extension/light/V2_0/build/Android.bp b/tests/extension/light/V2_0/build/Android.bp
index 3a06f75..542a023 100644
--- a/tests/extension/light/V2_0/build/Android.bp
+++ b/tests/extension/light/V2_0/build/Android.bp
@@ -75,9 +75,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -135,9 +132,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/foo/V1_0/build/Android.bp b/tests/foo/V1_0/build/Android.bp
index 87377e0..7cbdc9b 100644
--- a/tests/foo/V1_0/build/Android.bp
+++ b/tests/foo/V1_0/build/Android.bp
@@ -85,9 +85,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -152,9 +149,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/hash/V1_0/build/Android.bp b/tests/hash/V1_0/build/Android.bp
index 0998e6a..dec5e2d 100644
--- a/tests/hash/V1_0/build/Android.bp
+++ b/tests/hash/V1_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/inheritance/V1_0/build/Android.bp b/tests/inheritance/V1_0/build/Android.bp
index 56acaa6..771aa05 100644
--- a/tests/inheritance/V1_0/build/Android.bp
+++ b/tests/inheritance/V1_0/build/Android.bp
@@ -79,9 +79,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -142,9 +139,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/libhwbinder/V1_0/build/Android.bp b/tests/libhwbinder/V1_0/build/Android.bp
index 2a47be3..c627bca 100644
--- a/tests/libhwbinder/V1_0/build/Android.bp
+++ b/tests/libhwbinder/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/memory/V1_0/build/Android.bp b/tests/memory/V1_0/build/Android.bp
index e4d3bc6..73cea09 100644
--- a/tests/memory/V1_0/build/Android.bp
+++ b/tests/memory/V1_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tests/msgq/V1_0/build/Android.bp b/tests/msgq/V1_0/build/Android.bp
index 9f46d0d..5957117 100644
--- a/tests/msgq/V1_0/build/Android.bp
+++ b/tests/msgq/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/Android.bp b/tests/multithread/V1_0/Android.bp
similarity index 100%
copy from automotive/vehicle/V2_1/Android.bp
copy to tests/multithread/V1_0/Android.bp
diff --git a/tests/multithread/V1_0/build/Android.bp b/tests/multithread/V1_0/build/Android.bp
new file mode 100644
index 0000000..0b95f02
--- /dev/null
+++ b/tests/multithread/V1_0/build/Android.bp
@@ -0,0 +1,131 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+// Generate .vts spec files.
+hal2vts {
+ name: "android.hardware.tests.multithread@1.0-vts.spec",
+ srcs: [
+ ":android.hardware.tests.multithread@1.0_hal",
+ ],
+ out: [
+ "android/hardware/tests/multithread/1.0/Multithread.vts",
+ ],
+}
+
+// Build VTS driver.
+genrule {
+ name: "android.hardware.tests.multithread@1.0-vts.driver_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.multithread@1.0 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/tests/multithread/1.0/ $(genDir)/android/hardware/tests/multithread/1.0/",
+ srcs: [
+ ":android.hardware.tests.multithread@1.0_hal",
+ ],
+ out: [
+ "android/hardware/tests/multithread/1.0/Multithread.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.tests.multithread@1.0-vts.driver_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.multithread@1.0 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/tests/multithread/1.0/ $(genDir)/android/hardware/tests/multithread/1.0/",
+ srcs: [
+ ":android.hardware.tests.multithread@1.0_hal",
+ ],
+ out: [
+ "android/hardware/tests/multithread/1.0/Multithread.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.tests.multithread@1.0-vts.driver",
+ generated_sources: ["android.hardware.tests.multithread@1.0-vts.driver_genc++"],
+ generated_headers: ["android.hardware.tests.multithread@1.0-vts.driver_genc++_headers"],
+ export_generated_headers: ["android.hardware.tests.multithread@1.0-vts.driver_genc++_headers"],
+ shared_libs: [
+ "libcamera_metadata",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libprotobuf-cpp-full",
+ "libutils",
+ "libvts_common",
+ "libvts_datatype",
+ "libvts_drivercomm",
+ "libvts_measurement",
+ "libvts_multidevice_proto",
+ "android.hidl.allocator@1.0",
+ "android.hardware.tests.multithread@1.0",
+
+ ],
+ export_shared_lib_headers: [
+
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
+// Build VTS profiler.
+genrule {
+ name: "android.hardware.tests.multithread@1.0-vts.profiler_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.multithread@1.0 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/tests/multithread/1.0/ $(genDir)/android/hardware/tests/multithread/1.0/",
+ srcs: [
+ ":android.hardware.tests.multithread@1.0_hal",
+ ],
+ out: [
+ "android/hardware/tests/multithread/1.0/Multithread.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.tests.multithread@1.0-vts.profiler_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.multithread@1.0 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/tests/multithread/1.0/ $(genDir)/android/hardware/tests/multithread/1.0/",
+ srcs: [
+ ":android.hardware.tests.multithread@1.0_hal",
+ ],
+ out: [
+ "android/hardware/tests/multithread/1.0/Multithread.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.tests.multithread@1.0-vts.profiler",
+ generated_sources: ["android.hardware.tests.multithread@1.0-vts.profiler_genc++"],
+ generated_headers: ["android.hardware.tests.multithread@1.0-vts.profiler_genc++_headers"],
+ export_generated_headers: ["android.hardware.tests.multithread@1.0-vts.profiler_genc++_headers"],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libvts_common",
+ "libvts_profiling",
+ "libvts_multidevice_proto",
+ "libprotobuf-cpp-full",
+ "android.hardware.tests.multithread@1.0",
+
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
diff --git a/tests/pointer/V1_0/build/Android.bp b/tests/pointer/V1_0/build/Android.bp
index 3c056da..e9a4d86 100644
--- a/tests/pointer/V1_0/build/Android.bp
+++ b/tests/pointer/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tetheroffload/config/V1_0/build/Android.bp b/tetheroffload/config/V1_0/build/Android.bp
index a738f67..ac1d51c 100644
--- a/tetheroffload/config/V1_0/build/Android.bp
+++ b/tetheroffload/config/V1_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -119,6 +116,7 @@
"libvts_multidevice_proto",
"libprotobuf-cpp-full",
"android.hardware.tetheroffload.config@1.0",
+
],
cflags: [
"-Wall",
@@ -126,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tetheroffload/control/V1_0/build/Android.bp b/tetheroffload/control/V1_0/build/Android.bp
index 5840b14..d2d55b3 100644
--- a/tetheroffload/control/V1_0/build/Android.bp
+++ b/tetheroffload/control/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -129,6 +126,7 @@
"libvts_multidevice_proto",
"libprotobuf-cpp-full",
"android.hardware.tetheroffload.control@1.0",
+
],
cflags: [
"-Wall",
@@ -136,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/thermal/Android.bp b/thermal/Android.bp
index cdc8905..2e98897 100644
--- a/thermal/Android.bp
+++ b/thermal/Android.bp
@@ -3,4 +3,5 @@
subdirs = [
"V1_0",
+ "V1_1",
]
diff --git a/thermal/V1_0/build/Android.bp b/thermal/V1_0/build/Android.bp
index b48ac1a..aee3411 100644
--- a/thermal/V1_0/build/Android.bp
+++ b/thermal/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/thermal/V1_0/target_replay/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to thermal/V1_0/target_replay/Android.mk
index ab678f7..afe0919 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/thermal/V1_0/target_replay/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalThermalV1_0TargetReplay
+VTS_CONFIG_SRC_DIR := testcases/hal/thermal/V1_0/target_replay
include test/vts/tools/build/Android.host_config.mk
diff --git a/thermal/V1_0/target_replay/AndroidTest.xml b/thermal/V1_0/target_replay/AndroidTest.xml
new file mode 100644
index 0000000..aa1f542
--- /dev/null
+++ b/thermal/V1_0/target_replay/AndroidTest.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalThermalV1_0TargetReplay test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlHostTest.push"/>
+ <option name="cleanup" value="true"/>
+ <option name="push" value="spec/hardware/interfaces/thermal/1.0/vts/Thermal.vts->/data/local/tmp/spec/android/hardware/thermal/1.0/Thermal.vts"/>
+ <option name="push" value="spec/hardware/interfaces/thermal/1.0/vts/types.vts->/data/local/tmp/spec/android/hardware/thermal/1.0/types.vts"/>
+ <option name="push" value="DATA/lib/android.hardware.thermal@1.0-vts.driver.so->/data/local/tmp/32/android.hardware.thermal@1.0-vts.driver.so"/>
+ <option name="push" value="DATA/lib64/android.hardware.thermal@1.0-vts.driver.so->/data/local/tmp/64/android.hardware.thermal@1.0-vts.driver.so"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalThermalV1_0TargetReplay"/>
+ <option name="binary-test-type" value="hal_hidl_replay_test"/>
+ <option name="hal-hidl-replay-test-trace-path" value="test/vts-testcase/hal-trace/thermal/V1_0/android.hardware.thermal_1.0_414823138144.vts.trace"/>
+ <option name="hal-hidl-package-name" value="android.hardware.thermal@1.0"/>
+ <option name="precondition-lshal" value="android.hardware.thermal@1.0"/>
+ <option name="test-timeout" value="5m"/>
+ </test>
+</configuration>
diff --git a/automotive/vehicle/V2_1/Android.bp b/thermal/V1_1/Android.bp
similarity index 100%
rename from automotive/vehicle/V2_1/Android.bp
rename to thermal/V1_1/Android.bp
diff --git a/thermal/V1_1/build/Android.bp b/thermal/V1_1/build/Android.bp
new file mode 100644
index 0000000..ecd29b4
--- /dev/null
+++ b/thermal/V1_1/build/Android.bp
@@ -0,0 +1,139 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+// Generate .vts spec files.
+hal2vts {
+ name: "android.hardware.thermal@1.1-vts.spec",
+ srcs: [
+ ":android.hardware.thermal@1.1_hal",
+ ],
+ out: [
+ "android/hardware/thermal/1.1/Thermal.vts",
+ "android/hardware/thermal/1.1/ThermalCallback.vts",
+ ],
+}
+
+// Build VTS driver.
+genrule {
+ name: "android.hardware.thermal@1.1-vts.driver_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.thermal@1.1 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/thermal/1.1/ $(genDir)/android/hardware/thermal/1.1/",
+ srcs: [
+ ":android.hardware.thermal@1.1_hal",
+ ],
+ out: [
+ "android/hardware/thermal/1.1/Thermal.vts.cpp",
+ "android/hardware/thermal/1.1/ThermalCallback.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.thermal@1.1-vts.driver_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.thermal@1.1 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/thermal/1.1/ $(genDir)/android/hardware/thermal/1.1/",
+ srcs: [
+ ":android.hardware.thermal@1.1_hal",
+ ],
+ out: [
+ "android/hardware/thermal/1.1/Thermal.vts.h",
+ "android/hardware/thermal/1.1/ThermalCallback.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.thermal@1.1-vts.driver",
+ generated_sources: ["android.hardware.thermal@1.1-vts.driver_genc++"],
+ generated_headers: ["android.hardware.thermal@1.1-vts.driver_genc++_headers"],
+ export_generated_headers: ["android.hardware.thermal@1.1-vts.driver_genc++_headers"],
+ shared_libs: [
+ "libcamera_metadata",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libprotobuf-cpp-full",
+ "libutils",
+ "libvts_common",
+ "libvts_datatype",
+ "libvts_drivercomm",
+ "libvts_measurement",
+ "libvts_multidevice_proto",
+ "android.hidl.allocator@1.0",
+ "android.hardware.thermal@1.1",
+ "android.hardware.thermal@1.0",
+ "android.hardware.thermal@1.0-vts.driver",
+ ],
+ export_shared_lib_headers: [
+ "android.hardware.thermal@1.0",
+ "android.hardware.thermal@1.0-vts.driver",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
+// Build VTS profiler.
+genrule {
+ name: "android.hardware.thermal@1.1-vts.profiler_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.thermal@1.1 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/thermal/1.1/ $(genDir)/android/hardware/thermal/1.1/",
+ srcs: [
+ ":android.hardware.thermal@1.1_hal",
+ ],
+ out: [
+ "android/hardware/thermal/1.1/Thermal.vts.cpp",
+ "android/hardware/thermal/1.1/ThermalCallback.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.thermal@1.1-vts.profiler_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.thermal@1.1 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/thermal/1.1/ $(genDir)/android/hardware/thermal/1.1/",
+ srcs: [
+ ":android.hardware.thermal@1.1_hal",
+ ],
+ out: [
+ "android/hardware/thermal/1.1/Thermal.vts.h",
+ "android/hardware/thermal/1.1/ThermalCallback.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.thermal@1.1-vts.profiler",
+ generated_sources: ["android.hardware.thermal@1.1-vts.profiler_genc++"],
+ generated_headers: ["android.hardware.thermal@1.1-vts.profiler_genc++_headers"],
+ export_generated_headers: ["android.hardware.thermal@1.1-vts.profiler_genc++_headers"],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libvts_common",
+ "libvts_profiling",
+ "libvts_multidevice_proto",
+ "libprotobuf-cpp-full",
+ "android.hardware.thermal@1.1",
+ "android.hardware.thermal@1.0",
+ "android.hardware.thermal@1.0-vts.profiler",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/thermal/V1_1/target/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to thermal/V1_1/target/Android.mk
index ab678f7..1d209ea 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/thermal/V1_1/target/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalThermalV1_1Target
+VTS_CONFIG_SRC_DIR := testcases/hal/thermal/V1_1/target
include test/vts/tools/build/Android.host_config.mk
diff --git a/thermal/V1_1/target/AndroidTest.xml b/thermal/V1_1/target/AndroidTest.xml
new file mode 100644
index 0000000..b421d39
--- /dev/null
+++ b/thermal/V1_1/target/AndroidTest.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalThermalV1_1Target test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetTest.push"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalThermalV1_1Target"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalThermalV1_1TargetTest/VtsHalThermalV1_1TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalThermalV1_1TargetTest/VtsHalThermalV1_1TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="binary-test-disable-framework" value="true"/>
+ <option name="binary-test-stop-native-servers" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.thermal@1.1"/>
+ <option name="test-timeout" value="15m"/>
+ </test>
+</configuration>
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/thermal/V1_1/target_profiling/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to thermal/V1_1/target_profiling/Android.mk
index ab678f7..29257c3 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/thermal/V1_1/target_profiling/Android.mk
@@ -18,6 +18,6 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
+LOCAL_MODULE := VtsHalThermalV1_1TargetProfiling
+VTS_CONFIG_SRC_DIR := testcases/hal/thermal/V1_1/target_profiling
include test/vts/tools/build/Android.host_config.mk
diff --git a/thermal/V1_1/target_profiling/AndroidTest.xml b/thermal/V1_1/target_profiling/AndroidTest.xml
new file mode 100644
index 0000000..240d23a
--- /dev/null
+++ b/thermal/V1_1/target_profiling/AndroidTest.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VTS VtsHalThermalV1_1TargetProfiling test cases">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="abort-on-push-failure" value="false"/>
+ <option name="push-group" value="HalHidlTargetProfilingTest.push"/>
+ <option name="cleanup" value="true"/>
+ <option name="push" value="DATA/lib/android.hardware.thermal@1.1-vts.profiler.so->/data/local/tmp/32/android.hardware.thermal@1.1-vts.profiler.so"/>
+ <option name="push" value="DATA/lib64/android.hardware.thermal@1.1-vts.profiler.so->/data/local/tmp/64/android.hardware.thermal@1.1-vts.profiler.so"/>
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer"/>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsHalThermalV1_1TargetProfiling"/>
+ <option name="binary-test-source" value="_32bit::DATA/nativetest/VtsHalThermalV1_1TargetTest/VtsHalThermalV1_1TargetTest"/>
+ <option name="binary-test-source" value="_64bit::DATA/nativetest64/VtsHalThermalV1_1TargetTest/VtsHalThermalV1_1TargetTest"/>
+ <option name="binary-test-type" value="hal_hidl_gtest"/>
+ <option name="binary-test-disable-framework" value="true"/>
+ <option name="binary-test-stop-native-servers" value="true"/>
+ <option name="enable-profiling" value="true"/>
+ <option name="precondition-lshal" value="android.hardware.thermal@1.1"/>
+ <option name="test-timeout" value="15m"/>
+ </test>
+</configuration>
diff --git a/automotive/vehicle/V2_1/host/Android.mk b/treble/hidl_shim/Android.mk
similarity index 85%
copy from automotive/vehicle/V2_1/host/Android.mk
copy to treble/hidl_shim/Android.mk
index ab678f7..01bacd7 100644
--- a/automotive/vehicle/V2_1/host/Android.mk
+++ b/treble/hidl_shim/Android.mk
@@ -18,6 +18,5 @@
include $(CLEAR_VARS)
-LOCAL_MODULE := VtsHalAutomotiveVehicleV2_1Host
-VTS_CONFIG_SRC_DIR := testcases/hal/automotive/vehicle/V2_1/host
-include test/vts/tools/build/Android.host_config.mk
+LOCAL_MODULE := VtsTrebleHidlShim
+include test/vts/tools/build/Android.host_config.mk
\ No newline at end of file
diff --git a/treble/hidl_shim/AndroidTest.xml b/treble/hidl_shim/AndroidTest.xml
new file mode 100644
index 0000000..a186b03
--- /dev/null
+++ b/treble/hidl_shim/AndroidTest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.
+-->
+<configuration description="Config for VtsTrebleHidlShim">
+ <target_preparer class="com.android.compatibility.common.tradefed.targetprep.VtsFilePusher">
+ <option name="push-group" value="HostDrivenTest.push" />
+ </target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer">
+ </target_preparer>
+ <test class="com.android.tradefed.testtype.VtsMultiDeviceTest">
+ <option name="test-module-name" value="VtsTrebleHidlShim" />
+ <option name="test-case-path" value="vts/testcases/hal/treble/hidl_shim/VtsTrebleHidlShimTest" />
+ </test>
+</configuration>
diff --git a/treble/hidl_shim/VtsTrebleHidlShimTest.py b/treble/hidl_shim/VtsTrebleHidlShimTest.py
new file mode 100644
index 0000000..f05a44e
--- /dev/null
+++ b/treble/hidl_shim/VtsTrebleHidlShimTest.py
@@ -0,0 +1,89 @@
+#!/usr/bin/env python
+#
+# Copyright (C) 2017 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.
+#
+
+import logging
+
+from vts.runners.host import asserts
+from vts.runners.host import base_test
+from vts.runners.host import test_runner
+from vts.utils.python.common import vintf_utils
+from vts.utils.python.controllers import android_device
+from vts.utils.python.file import target_file_utils
+from vts.utils.python.os import path_utils
+
+
+class VtsTrebleHidlShimTest(base_test.BaseTestClass):
+ """Ensures existence of at least one HIDL shim library (32 or 64-bit)."""
+
+ VENDOR_MANIFEST_FILE_PATH = '/vendor/manifest.xml'
+ SHIM_DIRS = [
+ '/system/lib/', '/system/lib64/', '/vendor/lib/', '/vendor/lib64/'
+ ]
+
+ def setUpClass(self):
+ self.dut = self.registerController(android_device)[0]
+ self.dut.shell.InvokeTerminal(
+ 'VtsTrebleHidlShim') # creates a remote shell instance.
+ self.shell = self.dut.shell.VtsTrebleHidlShim
+
+ def missingHidlShims(self, hal_dictionary):
+ """Finds HALs listed in hal_dictionary that are missing shims on device.
+
+ Args:
+ hal_dictionary:
+ {key: hal_name@version, value: vintf_utils.HalDescription object}
+ Returns:
+ a list of the hal_keys (hal_name@version) for which no HIDL shim was
+ found on device
+ """
+ missing_hidl_shims = []
+ for hal_key, hal_info in hal_dictionary.iteritems():
+ for shim_dir in self.SHIM_DIRS:
+ hidl_shim_path = path_utils.JoinTargetPath(
+ shim_dir, hal_key + '.so')
+ found = target_file_utils.Exists(hidl_shim_path, self.shell)
+ if found:
+ break
+ if not found:
+ missing_hidl_shims.append(hal_key)
+ return missing_hidl_shims
+
+ def testHidlShimExists(self):
+ """Checks that at least one HIDL shim (32 or 64-bit) exists on device.
+
+ For all HALs registered in /vendor/manifest.xml, at least one HIDL shim
+ must exist on device under one of the dirs listed in self.SHIM_DIRS.
+ """
+ vendor_manifest_xml = target_file_utils.ReadFileContent(
+ self.VENDOR_MANIFEST_FILE_PATH, self.shell)
+ manifest_hwbinder_hals, manifest_passthrough_hals = vintf_utils.GetHalDescriptions(
+ vendor_manifest_xml)
+
+ missing_hidl_shims_hwbinder = self.missingHidlShims(
+ manifest_hwbinder_hals)
+ missing_hidl_shims_passthrough = self.missingHidlShims(
+ manifest_passthrough_hals)
+
+ asserts.assertTrue(
+ len(missing_hidl_shims_hwbinder) == 0 and
+ len(missing_hidl_shims_passthrough) == 0,
+ ('No HIDL shim library (neither 32 or 64-bit) was found on device for the following HALs: %s, %s'
+ ) % (missing_hidl_shims_hwbinder, missing_hidl_shims_passthrough))
+
+
+if __name__ == "__main__":
+ test_runner.main()
diff --git a/automotive/vehicle/V2_1/__init__.py b/treble/hidl_shim/__init__.py
similarity index 100%
rename from automotive/vehicle/V2_1/__init__.py
rename to treble/hidl_shim/__init__.py
diff --git a/treble/vintf/Android.bp b/treble/vintf/Android.bp
index f151f3e..5b626a5 100644
--- a/treble/vintf/Android.bp
+++ b/treble/vintf/Android.bp
@@ -20,12 +20,20 @@
],
shared_libs: [
"libbase",
- "libutils",
+ "libcutils",
"libhidlbase",
"libhidltransport",
+ "liblog",
+ "libutils",
+ "libz",
+ ],
+ static_libs: [
"libhidl-gen-hash",
"libhidl-gen-utils",
+ "libselinux",
+ "libtinyxml2",
"libvintf",
],
+ group_static_libs: true,
}
diff --git a/treble/vintf/vts_treble_vintf_test.cpp b/treble/vintf/vts_treble_vintf_test.cpp
index 4f83174..5727d00 100644
--- a/treble/vintf/vts_treble_vintf_test.cpp
+++ b/treble/vintf/vts_treble_vintf_test.cpp
@@ -14,12 +14,15 @@
* limitations under the License.
*/
+#include <chrono>
#include <functional>
+#include <future>
#include <iostream>
#include <map>
#include <set>
#include <sstream>
#include <string>
+#include <thread>
#include <vector>
#include <android/hidl/manager/1.0/IServiceManager.h>
@@ -40,6 +43,7 @@
using android::vintf::HalManifest;
using android::vintf::Transport;
using android::vintf::Version;
+using android::vintf::VintfObject;
using std::cout;
using std::endl;
@@ -87,16 +91,6 @@
return !PackageRoot(fq_iface_name).empty();
}
-// Returns true iff HAL interface is exempt from following rules:
-// 1. If an interface is declared in VINTF, it has to be served on the device.
-static bool IsExempt(const FQName &fq_iface_name) {
- static const set<string> exempt_hals_ = {};
- string hal_name = fq_iface_name.package();
- // Radio-releated and non-Google HAL interfaces are given exemptions.
- return exempt_hals_.find(hal_name) != exempt_hals_.end() ||
- !IsGoogleDefinedIface(fq_iface_name);
-}
-
// Returns the set of released hashes for a given HAL interface.
static set<string> ReleasedHashes(const FQName &fq_iface_name) {
set<string> released_hashes{};
@@ -119,9 +113,9 @@
ASSERT_NE(passthrough_manager_, nullptr)
<< "Failed to get passthrough service manager." << endl;
- vendor_manifest_ = ::android::vintf::VintfObject::GetDeviceHalManifest();
- ASSERT_NE(vendor_manifest_, nullptr) << "Failed to get vendor HAL manifest."
- << endl;
+ vendor_manifest_ = VintfObject::GetDeviceHalManifest();
+ ASSERT_NE(vendor_manifest_, nullptr)
+ << "Failed to get vendor HAL manifest." << endl;
}
// Applies given function to each HAL instance in VINTF.
@@ -152,7 +146,15 @@
string minor_ver = std::to_string(version.minorVer);
string full_ver = major_ver + "." + minor_ver;
FQName fq_name{hal_name, full_ver, iface_name};
- fn(fq_name, instance_name);
+
+ auto future_result =
+ std::async([&]() { fn(fq_name, instance_name); });
+ auto timeout = std::chrono::milliseconds(500);
+ std::future_status status = future_result.wait_for(timeout);
+ if (status != std::future_status::ready) {
+ cout << "Timed out on: " << fq_name.string() << " " << instance_name
+ << endl;
+ }
}
}
}
@@ -166,7 +168,8 @@
fq_name.getPackageMinorVersion()};
string iface_name = fq_name.name();
string fq_iface_name = fq_name.string();
- cout << "Getting service of: " << fq_iface_name << endl;
+ cout << "Getting service of: " << fq_iface_name << " " << instance_name
+ << endl;
Transport transport = vendor_manifest_->getTransport(
hal_name, version, iface_name, instance_name);
@@ -231,15 +234,10 @@
// Verifies that HAL is available through service manager.
HalVerifyFn is_available = [this](const FQName &fq_name,
const string &instance_name) {
- if (IsExempt(fq_name)) {
- cout << fq_name.string() << " is exempt." << endl;
- return;
- }
-
sp<android::hidl::base::V1_0::IBase> hal_service =
GetHalService(fq_name, instance_name);
EXPECT_NE(hal_service, nullptr)
- << fq_name.package() << " not available." << endl;
+ << fq_name.string() << " not available." << endl;
};
ForEachHalInstance(is_available);
@@ -255,11 +253,7 @@
GetHalService(fq_name, instance_name);
if (hal_service == nullptr) {
- if (IsExempt(fq_name)) {
- cout << fq_name.string() << " is exempt." << endl;
- } else {
- ADD_FAILURE() << fq_name.package() << " not available." << endl;
- }
+ ADD_FAILURE() << fq_name.string() << " not available." << endl;
return;
}
@@ -299,6 +293,25 @@
ForEachHalInstance(is_released);
}
+// Tests that vendor and framework are compatible.
+TEST(CompatiblityTest, VendorFrameworkCompatibility) {
+ string error;
+
+ EXPECT_TRUE(VintfObject::GetDeviceHalManifest()->checkCompatibility(
+ *VintfObject::GetFrameworkCompatibilityMatrix(), &error))
+ << error;
+
+ EXPECT_TRUE(VintfObject::GetFrameworkHalManifest()->checkCompatibility(
+ *VintfObject::GetDeviceCompatibilityMatrix(), &error))
+ << error;
+
+ EXPECT_TRUE(VintfObject::GetRuntimeInfo()->checkCompatibility(
+ *VintfObject::GetFrameworkCompatibilityMatrix(), &error))
+ << error;
+
+ EXPECT_EQ(0, VintfObject::CheckCompatibility({}, &error)) << error;
+}
+
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
diff --git a/tv/cec/V1_0/build/Android.bp b/tv/cec/V1_0/build/Android.bp
index 2cd74f2..8c4cd99 100644
--- a/tv/cec/V1_0/build/Android.bp
+++ b/tv/cec/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/tv/input/V1_0/build/Android.bp b/tv/input/V1_0/build/Android.bp
index 932bdd6..99edc91 100644
--- a/tv/input/V1_0/build/Android.bp
+++ b/tv/input/V1_0/build/Android.bp
@@ -78,9 +78,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -140,9 +137,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/usb/V1_0/build/Android.bp b/usb/V1_0/build/Android.bp
index d01d318..9f7ce78 100644
--- a/usb/V1_0/build/Android.bp
+++ b/usb/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/usb/V1_1/build/Android.bp b/usb/V1_1/build/Android.bp
index 02ad66c..8288d41 100644
--- a/usb/V1_1/build/Android.bp
+++ b/usb/V1_1/build/Android.bp
@@ -78,9 +78,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -140,9 +137,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/vibrator/Android.bp b/vibrator/Android.bp
index cdc8905..2e98897 100644
--- a/vibrator/Android.bp
+++ b/vibrator/Android.bp
@@ -3,4 +3,5 @@
subdirs = [
"V1_0",
+ "V1_1",
]
diff --git a/vibrator/V1_0/build/Android.bp b/vibrator/V1_0/build/Android.bp
index b029ca3..0ee0a8c 100644
--- a/vibrator/V1_0/build/Android.bp
+++ b/vibrator/V1_0/build/Android.bp
@@ -73,9 +73,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -132,9 +129,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/automotive/vehicle/V2_1/Android.bp b/vibrator/V1_1/Android.bp
similarity index 100%
copy from automotive/vehicle/V2_1/Android.bp
copy to vibrator/V1_1/Android.bp
diff --git a/vibrator/V1_1/build/Android.bp b/vibrator/V1_1/build/Android.bp
new file mode 100644
index 0000000..2c8e8d6
--- /dev/null
+++ b/vibrator/V1_1/build/Android.bp
@@ -0,0 +1,139 @@
+// This file was auto-generated. Do not edit manually.
+// Use test/vts-testcase/hal/update_makefiles.py to generate this file.
+
+// Generate .vts spec files.
+hal2vts {
+ name: "android.hardware.vibrator@1.1-vts.spec",
+ srcs: [
+ ":android.hardware.vibrator@1.1_hal",
+ ],
+ out: [
+ "android/hardware/vibrator/1.1/Vibrator.vts",
+ "android/hardware/vibrator/1.1/types.vts",
+ ],
+}
+
+// Build VTS driver.
+genrule {
+ name: "android.hardware.vibrator@1.1-vts.driver_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.vibrator@1.1 && $(location vtsc) -mDRIVER -tSOURCE -b$(genDir) android/hardware/vibrator/1.1/ $(genDir)/android/hardware/vibrator/1.1/",
+ srcs: [
+ ":android.hardware.vibrator@1.1_hal",
+ ],
+ out: [
+ "android/hardware/vibrator/1.1/Vibrator.vts.cpp",
+ "android/hardware/vibrator/1.1/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.vibrator@1.1-vts.driver_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.vibrator@1.1 && $(location vtsc) -mDRIVER -tHEADER -b$(genDir) android/hardware/vibrator/1.1/ $(genDir)/android/hardware/vibrator/1.1/",
+ srcs: [
+ ":android.hardware.vibrator@1.1_hal",
+ ],
+ out: [
+ "android/hardware/vibrator/1.1/Vibrator.vts.h",
+ "android/hardware/vibrator/1.1/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.vibrator@1.1-vts.driver",
+ generated_sources: ["android.hardware.vibrator@1.1-vts.driver_genc++"],
+ generated_headers: ["android.hardware.vibrator@1.1-vts.driver_genc++_headers"],
+ export_generated_headers: ["android.hardware.vibrator@1.1-vts.driver_genc++_headers"],
+ shared_libs: [
+ "libcamera_metadata",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libhwbinder",
+ "liblog",
+ "libprotobuf-cpp-full",
+ "libutils",
+ "libvts_common",
+ "libvts_datatype",
+ "libvts_drivercomm",
+ "libvts_measurement",
+ "libvts_multidevice_proto",
+ "android.hidl.allocator@1.0",
+ "android.hardware.vibrator@1.1",
+ "android.hardware.vibrator@1.0",
+ "android.hardware.vibrator@1.0-vts.driver",
+ ],
+ export_shared_lib_headers: [
+ "android.hardware.vibrator@1.0",
+ "android.hardware.vibrator@1.0-vts.driver",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
+// Build VTS profiler.
+genrule {
+ name: "android.hardware.vibrator@1.1-vts.profiler_genc++",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.vibrator@1.1 && $(location vtsc) -mPROFILER -tSOURCE -b$(genDir) android/hardware/vibrator/1.1/ $(genDir)/android/hardware/vibrator/1.1/",
+ srcs: [
+ ":android.hardware.vibrator@1.1_hal",
+ ],
+ out: [
+ "android/hardware/vibrator/1.1/Vibrator.vts.cpp",
+ "android/hardware/vibrator/1.1/types.vts.cpp",
+ ],
+}
+
+genrule {
+ name: "android.hardware.vibrator@1.1-vts.profiler_genc++_headers",
+ tools: ["hidl-gen", "vtsc"],
+ cmd: "$(location hidl-gen) -o $(genDir) -Lvts -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.vibrator@1.1 && $(location vtsc) -mPROFILER -tHEADER -b$(genDir) android/hardware/vibrator/1.1/ $(genDir)/android/hardware/vibrator/1.1/",
+ srcs: [
+ ":android.hardware.vibrator@1.1_hal",
+ ],
+ out: [
+ "android/hardware/vibrator/1.1/Vibrator.vts.h",
+ "android/hardware/vibrator/1.1/types.vts.h",
+ ],
+}
+
+cc_library_shared {
+ name: "android.hardware.vibrator@1.1-vts.profiler",
+ generated_sources: ["android.hardware.vibrator@1.1-vts.profiler_genc++"],
+ generated_headers: ["android.hardware.vibrator@1.1-vts.profiler_genc++_headers"],
+ export_generated_headers: ["android.hardware.vibrator@1.1-vts.profiler_genc++_headers"],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "libfmq",
+ "libhidlbase",
+ "libhidltransport",
+ "libvts_common",
+ "libvts_profiling",
+ "libvts_multidevice_proto",
+ "libprotobuf-cpp-full",
+ "android.hardware.vibrator@1.1",
+ "android.hardware.vibrator@1.0",
+ "android.hardware.vibrator@1.0-vts.profiler",
+ ],
+ cflags: [
+ "-Wall",
+ "-Werror",
+
+ // These warnings are in code generated with vtsc
+ // b/31362043
+ "-Wno-duplicate-decl-specifier",
+ "-Wno-implicitly-unsigned-literal",
+ ],
+}
+
diff --git a/vr/V1_0/build/Android.bp b/vr/V1_0/build/Android.bp
index ee741b9..1497c9c 100644
--- a/vr/V1_0/build/Android.bp
+++ b/vr/V1_0/build/Android.bp
@@ -70,9 +70,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -127,9 +124,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/wifi/V1_0/build/Android.bp b/wifi/V1_0/build/Android.bp
index 053d733..1951f58 100644
--- a/wifi/V1_0/build/Android.bp
+++ b/wifi/V1_0/build/Android.bp
@@ -109,9 +109,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -192,9 +189,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/wifi/V1_1/build/Android.bp b/wifi/V1_1/build/Android.bp
index a2bb596..5d30b7a 100644
--- a/wifi/V1_1/build/Android.bp
+++ b/wifi/V1_1/build/Android.bp
@@ -75,9 +75,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -135,9 +132,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/wifi/offload/V1_0/build/Android.bp b/wifi/offload/V1_0/build/Android.bp
index b5c12f4..d64f0b4 100644
--- a/wifi/offload/V1_0/build/Android.bp
+++ b/wifi/offload/V1_0/build/Android.bp
@@ -76,9 +76,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -137,9 +134,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
diff --git a/wifi/supplicant/V1_0/build/Android.bp b/wifi/supplicant/V1_0/build/Android.bp
index 115cf55..ef5841c 100644
--- a/wifi/supplicant/V1_0/build/Android.bp
+++ b/wifi/supplicant/V1_0/build/Android.bp
@@ -106,9 +106,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],
@@ -187,9 +184,6 @@
// These warnings are in code generated with vtsc
// b/31362043
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- "-Wno-unused-private-field",
"-Wno-duplicate-decl-specifier",
"-Wno-implicitly-unsigned-literal",
],