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

Commit 89104475 authored by Yuexi Ma's avatar Yuexi Ma Committed by Android (Google) Code Review
Browse files

Merge "VTS driver and profiler module for tv input hal."

parents 8beb2e3f e5f2e674
Loading
Loading
Loading
Loading
+122 −0
Original line number Diff line number Diff line
#
# 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)
+97 −0
Original line number Diff line number Diff line
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"
        }
    }

}
+18 −0
Original line number Diff line number Diff line
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 −0

File added.

Preview size limit exceeded, changes collapsed.