blob: adeccc23d05d381cc62f2f8485182f5d4c16d400 [file] [log] [blame]
Alessandro Astone9d7a5db2021-01-30 01:33:12 +01001/*
2 * Copyright (C) 2021 The LineageOS 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 */
16
17#pragma once
18
19#include <vendor/lineage/touch/1.0/IGloveMode.h>
20#include <hidl/MQDescriptor.h>
21#include <hidl/Status.h>
22
23namespace vendor::lineage::touch::pixel {
24
25using ::android::hardware::hidl_array;
26using ::android::hardware::hidl_memory;
27using ::android::hardware::hidl_string;
28using ::android::hardware::hidl_vec;
29using ::android::hardware::Return;
30using ::android::hardware::Void;
31using ::android::sp;
32
33struct GloveMode : public V1_0::IGloveMode {
34 // Methods from ::vendor::lineage::touch::V1_0::IGloveMode follow.
35 Return<bool> isEnabled() override;
36 Return<bool> setEnabled(bool enabled) override;
37};
38
39} // namespace vendor::lineage::touch::pixel