blob: dc2c5dd5379c09d06da8038a77352e845d74ed4c [file] [log] [blame]
Steven Moreland9f8b5c72016-11-29 15:03:38 -08001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Steven Moreland21a1c582017-02-15 10:54:01 -080016#ifndef ANDROID_HARDWARE_TESTS_EXTENSION_LIGHT_V2_0_LIGHT_H
17#define ANDROID_HARDWARE_TESTS_EXTENSION_LIGHT_V2_0_LIGHT_H
Steven Moreland08484f82016-10-14 12:27:48 -070018
Steven Moreland21a1c582017-02-15 10:54:01 -080019#include <android/hardware/tests/extension/light/2.0/IExtLight.h>
Steven Moreland08484f82016-10-14 12:27:48 -070020#include <hidl/Status.h>
21
22#include <hidl/MQDescriptor.h>
23namespace android {
24namespace hardware {
Steven Moreland21a1c582017-02-15 10:54:01 -080025namespace tests {
Steven Moreland08484f82016-10-14 12:27:48 -070026namespace extension {
27namespace light {
28namespace V2_0 {
29namespace implementation {
30
Steven Moreland21a1c582017-02-15 10:54:01 -080031using ::android::hardware::tests::extension::light::V2_0::ExtLightState;
32using ::android::hardware::tests::extension::light::V2_0::IExtLight;
Steven Moreland08484f82016-10-14 12:27:48 -070033using ::android::hardware::light::V2_0::ILight;
34using ::android::hardware::light::V2_0::LightState;
35using ::android::hardware::light::V2_0::Status;
36using ::android::hardware::light::V2_0::Type;
37using ::android::hardware::Return;
38using ::android::hardware::Void;
39using ::android::hardware::hidl_vec;
40using ::android::hardware::hidl_string;
41using ::android::sp;
42
43struct Light : public IExtLight {
44 // Methods from ::android::hardware::light::V2_0::ILight follow.
45 Return<Status> setLight(Type type, const LightState& state) override;
46 Return<void> getSupportedTypes(getSupportedTypes_cb _hidl_cb) override;
47
48 // Methods from ::android::hardware::example::extension::light::V2_0::ILight follow.
49 Return<Status> setExtLight(Type type, const ExtLightState& state) override;
50
51};
52
53} // namespace implementation
54} // namespace V2_0
55} // namespace light
56} // namespace extension
Steven Moreland21a1c582017-02-15 10:54:01 -080057} // namespace tests
Steven Moreland08484f82016-10-14 12:27:48 -070058} // namespace hardware
59} // namespace android
60
Steven Moreland21a1c582017-02-15 10:54:01 -080061#endif // ANDROID_HARDWARE_TESTS_EXTENSION_LIGHT_V2_0_LIGHT_H