From c8f7d73720f783532ad0ef243b6593e97e6d5edc Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Mon, 27 Feb 2017 15:11:05 -0800 Subject: [PATCH] Move android.hardware.benchmarks into android.hardware.tests Test: Ran FMQ benchmarks. Bug: 35015612 Change-Id: Ic25e51051779b296ada5f02bc0c3258bff507ca3 --- benchmarks/Android.bp | 4 -- benchmarks/msgq/1.0/Android.bp | 59 ------------------- tests/msgq/1.0/Android.bp | 7 +++ .../msgq/1.0/IBenchmarkMsgQ.hal | 2 +- 4 files changed, 8 insertions(+), 64 deletions(-) delete mode 100644 benchmarks/Android.bp delete mode 100644 benchmarks/msgq/1.0/Android.bp rename {benchmarks => tests}/msgq/1.0/IBenchmarkMsgQ.hal (98%) diff --git a/benchmarks/Android.bp b/benchmarks/Android.bp deleted file mode 100644 index ab0f308bf4..0000000000 --- a/benchmarks/Android.bp +++ /dev/null @@ -1,4 +0,0 @@ -// This is an autogenerated file, do not edit. -subdirs = [ - "msgq/1.0", -] diff --git a/benchmarks/msgq/1.0/Android.bp b/benchmarks/msgq/1.0/Android.bp deleted file mode 100644 index 7f8ea9939c..0000000000 --- a/benchmarks/msgq/1.0/Android.bp +++ /dev/null @@ -1,59 +0,0 @@ -// This file is autogenerated by hidl-gen. Do not edit manually. - -filegroup { - name: "android.hardware.benchmarks.msgq@1.0_hal", - srcs: [ - "IBenchmarkMsgQ.hal", - ], -} - -genrule { - name: "android.hardware.benchmarks.msgq@1.0_genc++", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.benchmarks.msgq@1.0", - srcs: [ - ":android.hardware.benchmarks.msgq@1.0_hal", - ], - out: [ - "android/hardware/benchmarks/msgq/1.0/BenchmarkMsgQAll.cpp", - ], -} - -genrule { - name: "android.hardware.benchmarks.msgq@1.0_genc++_headers", - tools: ["hidl-gen"], - cmd: "$(location hidl-gen) -o $(genDir) -Lc++ -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.benchmarks.msgq@1.0", - srcs: [ - ":android.hardware.benchmarks.msgq@1.0_hal", - ], - out: [ - "android/hardware/benchmarks/msgq/1.0/IBenchmarkMsgQ.h", - "android/hardware/benchmarks/msgq/1.0/IHwBenchmarkMsgQ.h", - "android/hardware/benchmarks/msgq/1.0/BnHwBenchmarkMsgQ.h", - "android/hardware/benchmarks/msgq/1.0/BpHwBenchmarkMsgQ.h", - "android/hardware/benchmarks/msgq/1.0/BsBenchmarkMsgQ.h", - ], -} - -cc_library_shared { - name: "android.hardware.benchmarks.msgq@1.0", - generated_sources: ["android.hardware.benchmarks.msgq@1.0_genc++"], - generated_headers: ["android.hardware.benchmarks.msgq@1.0_genc++_headers"], - export_generated_headers: ["android.hardware.benchmarks.msgq@1.0_genc++_headers"], - shared_libs: [ - "libhidlbase", - "libhidltransport", - "libhwbinder", - "liblog", - "libutils", - "libcutils", - "android.hidl.base@1.0", - ], - export_shared_lib_headers: [ - "libhidlbase", - "libhidltransport", - "libhwbinder", - "libutils", - "android.hidl.base@1.0", - ], -} diff --git a/tests/msgq/1.0/Android.bp b/tests/msgq/1.0/Android.bp index d17efe469e..2d426990d9 100644 --- a/tests/msgq/1.0/Android.bp +++ b/tests/msgq/1.0/Android.bp @@ -3,6 +3,7 @@ filegroup { name: "android.hardware.tests.msgq@1.0_hal", srcs: [ + "IBenchmarkMsgQ.hal", "ITestMsgQ.hal", ], } @@ -15,6 +16,7 @@ genrule { ":android.hardware.tests.msgq@1.0_hal", ], out: [ + "android/hardware/tests/msgq/1.0/BenchmarkMsgQAll.cpp", "android/hardware/tests/msgq/1.0/TestMsgQAll.cpp", ], } @@ -27,6 +29,11 @@ genrule { ":android.hardware.tests.msgq@1.0_hal", ], out: [ + "android/hardware/tests/msgq/1.0/IBenchmarkMsgQ.h", + "android/hardware/tests/msgq/1.0/IHwBenchmarkMsgQ.h", + "android/hardware/tests/msgq/1.0/BnHwBenchmarkMsgQ.h", + "android/hardware/tests/msgq/1.0/BpHwBenchmarkMsgQ.h", + "android/hardware/tests/msgq/1.0/BsBenchmarkMsgQ.h", "android/hardware/tests/msgq/1.0/ITestMsgQ.h", "android/hardware/tests/msgq/1.0/IHwTestMsgQ.h", "android/hardware/tests/msgq/1.0/BnHwTestMsgQ.h", diff --git a/benchmarks/msgq/1.0/IBenchmarkMsgQ.hal b/tests/msgq/1.0/IBenchmarkMsgQ.hal similarity index 98% rename from benchmarks/msgq/1.0/IBenchmarkMsgQ.hal rename to tests/msgq/1.0/IBenchmarkMsgQ.hal index c4b9d95ebc..81754a40f1 100644 --- a/benchmarks/msgq/1.0/IBenchmarkMsgQ.hal +++ b/tests/msgq/1.0/IBenchmarkMsgQ.hal @@ -14,7 +14,7 @@ * limitations under the License. */ -package android.hardware.benchmarks.msgq@1.0; +package android.hardware.tests.msgq@1.0; interface IBenchmarkMsgQ { /*