libhwbinder benchmark interface.
Change-Id: I2863272033bfe986f70f75c51412b8c1a55a84f3
This commit is contained in:
parent
81add9c495
commit
aea5ad1a21
2 changed files with 38 additions and 0 deletions
33
tests/libhwbinder/1.0/Android.mk
Normal file
33
tests/libhwbinder/1.0/Android.mk
Normal file
|
@ -0,0 +1,33 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := android.hardware.tests.libhwbinder@1.0
|
||||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
|
||||
|
||||
intermediates := $(local-generated-sources-dir)
|
||||
|
||||
HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX)
|
||||
|
||||
#
|
||||
# Build IBenchmark.hal
|
||||
#
|
||||
GEN := $(intermediates)/android/hardware/tests/libhwbinder/1.0/BenchmarkAll.cpp
|
||||
$(GEN): $(HIDL)
|
||||
$(GEN): PRIVATE_HIDL := $(HIDL)
|
||||
$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/IBenchmark.hal
|
||||
$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates)
|
||||
$(GEN): PRIVATE_CUSTOM_TOOL = \
|
||||
$(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \
|
||||
-Lc++ -randroid.hardware:hardware/interfaces\
|
||||
android.hardware.tests.libhwbinder@1.0::$(patsubst %.hal,%,$(notdir $(PRIVATE_DEPS)))
|
||||
|
||||
$(GEN): $(LOCAL_PATH)/IBenchmark.hal
|
||||
$(transform-generated-source)
|
||||
LOCAL_GENERATED_SOURCES += $(GEN)
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libhwbinder \
|
||||
libutils \
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
5
tests/libhwbinder/1.0/IBenchmark.hal
Normal file
5
tests/libhwbinder/1.0/IBenchmark.hal
Normal file
|
@ -0,0 +1,5 @@
|
|||
package android.hardware.tests.libhwbinder@1.0;
|
||||
|
||||
interface IBenchmark {
|
||||
sendVec(vec<uint8_t> data) generates (vec<uint8_t> return_data);
|
||||
};
|
Loading…
Reference in a new issue