VTS driver and profiler module for tv input hal.

Test: local
Change-Id: I0fd52b948a34f4d78e558d868de7afd945585cb7
This commit is contained in:
Yuexi Ma
2016-11-30 17:32:27 -08:00
parent e0af0706b8
commit e5f2e674de
4 changed files with 2073 additions and 0 deletions

122
tv/input/1.0/vts/Android.mk Normal file
View File

@@ -0,0 +1,122 @@
#
# 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.
#
LOCAL_PATH := $(call my-dir)
# build VTS driver for TvInput v1.0.
include $(CLEAR_VARS)
LOCAL_MODULE := libvts_driver_hidl_tv_input@1.0
LOCAL_SRC_FILES := \
TvInput.vts \
TvInputCallback.vts \
types.vts \
../../../../audio/common/2.0/vts/types.vts \
LOCAL_SHARED_LIBRARIES += \
android.hardware.tv.input@1.0 \
libbase \
libutils \
libcutils \
liblog \
libhidlbase \
libhidltransport \
libhwbinder \
libprotobuf-cpp-full \
libvts_common \
libvts_datatype \
libvts_measurement \
libvts_multidevice_proto \
LOCAL_PROTOC_OPTIMIZE_TYPE := full
LOCAL_MULTILIB := both
include $(BUILD_SHARED_LIBRARY)
# build VTS profiler for TvInput
include $(CLEAR_VARS)
LOCAL_MODULE := libvts_profiler_hidl_tv_input@1.0
LOCAL_SRC_FILES := \
TvInput.vts \
types.vts \
../../../../audio/common/2.0/vts/types.vts \
LOCAL_C_INCLUDES += \
test/vts/drivers/libprofiling \
LOCAL_VTS_MODE := PROFILER
LOCAL_SHARED_LIBRARIES += \
android.hardware.tv.input@1.0 \
libbase \
libcutils \
liblog \
libhidlbase \
libhidltransport \
libhwbinder \
libprotobuf-cpp-full \
libvts_common \
libvts_multidevice_proto \
libvts_profiling \
libutils \
LOCAL_PROTOC_OPTIMIZE_TYPE := full
LOCAL_MULTILIB := both
include $(BUILD_SHARED_LIBRARY)
# build VTS profiler for TvInputCallback
include $(CLEAR_VARS)
LOCAL_MODULE := libvts_profiler_hidl_tv_input_callback_@1.0
LOCAL_SRC_FILES := \
TvInputCallback.vts \
types.vts \
../../../../audio/common/2.0/vts/types.vts \
LOCAL_C_INCLUDES += \
test/vts/drivers/libprofiling \
LOCAL_VTS_MODE := PROFILER
LOCAL_SHARED_LIBRARIES += \
android.hardware.tv.input@1.0 \
libbase \
libcutils \
liblog \
libhidlbase \
libhidltransport \
libhwbinder \
libprotobuf-cpp-full \
libvts_common \
libvts_multidevice_proto \
libvts_profiling \
libutils \
LOCAL_PROTOC_OPTIMIZE_TYPE := full
LOCAL_MULTILIB := both
include $(BUILD_SHARED_LIBRARY)

View File

@@ -0,0 +1,97 @@
component_class: HAL_HIDL
component_type_version: 1.0
component_name: "ITvInput"
package: "android.hardware.tv.input"
import: "android.hardware.tv.input@1.0::ITvInputCallback"
import: "android.hardware.tv.input@1.0::types"
interface: {
api: {
name: "setCallback"
arg: {
type: TYPE_HIDL_CALLBACK
predefined_type: "ITvInputCallback"
is_callback: true
}
callflow: {
entry: true
}
callflow: {
exit: true
}
callflow: {
next: "getStreamConfigurations"
}
}
api: {
name: "getStreamConfigurations"
return_type_hidl: {
type: TYPE_ENUM
predefined_type: "::android::hardware::tv::input::V1_0::Result"
}
return_type_hidl: {
type: TYPE_VECTOR
vector_value: {
type: TYPE_STRUCT
predefined_type: "::android::hardware::tv::input::V1_0::TvStreamConfig"
}
}
arg: {
type: TYPE_SCALAR
scalar_type: "int32_t"
}
callflow: {
next: "openStream"
next: "getStreamConfigurations"
next: "closeStream"
}
}
api: {
name: "openStream"
return_type_hidl: {
type: TYPE_ENUM
predefined_type: "::android::hardware::tv::input::V1_0::Result"
}
return_type_hidl: {
}
arg: {
type: TYPE_SCALAR
scalar_type: "int32_t"
}
arg: {
type: TYPE_SCALAR
scalar_type: "int32_t"
}
callflow: {
next: "closeStream"
next: "getStreamConfigurations"
next: "openStream"
}
}
api: {
name: "closeStream"
return_type_hidl: {
type: TYPE_ENUM
predefined_type: "::android::hardware::tv::input::V1_0::Result"
}
arg: {
type: TYPE_SCALAR
scalar_type: "int32_t"
}
arg: {
type: TYPE_SCALAR
scalar_type: "int32_t"
}
callflow: {
next: "getStreamConfigurations"
next: "openStream"
next: "closeStream"
}
}
}

View File

@@ -0,0 +1,18 @@
component_class: HAL_HIDL
component_type_version: 1.0
component_name: "ITvInputCallback"
package: "android.hardware.tv.input"
import: "android.hardware.tv.input@1.0::types"
interface: {
api: {
name: "notify"
arg: {
type: TYPE_STRUCT
predefined_type: "::android::hardware::tv::input::V1_0::TvInputEvent"
}
}
}

1836
tv/input/1.0/vts/types.vts Normal file

File diff suppressed because it is too large Load Diff