Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 | #ifndef VENDOR_LINEAGE_TOUCH_V1_0_STYLUSMODE_H |
| 18 | #define VENDOR_LINEAGE_TOUCH_V1_0_STYLUSMODE_H |
| 19 | |
Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 20 | #include <hidl/MQDescriptor.h> |
| 21 | #include <hidl/Status.h> |
Jan Altensen | 6f3af5a | 2019-07-20 01:00:46 +0200 | [diff] [blame] | 22 | #include <vendor/lineage/touch/1.0/IStylusMode.h> |
Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 23 | |
| 24 | namespace vendor { |
| 25 | namespace lineage { |
| 26 | namespace touch { |
| 27 | namespace V1_0 { |
Paul Keith | 2b27b27 | 2019-01-09 00:11:40 +0100 | [diff] [blame] | 28 | namespace samsung { |
Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 29 | |
| 30 | using ::android::hardware::hidl_array; |
| 31 | using ::android::hardware::hidl_memory; |
| 32 | using ::android::hardware::hidl_string; |
| 33 | using ::android::hardware::hidl_vec; |
| 34 | using ::android::hardware::Return; |
| 35 | using ::android::hardware::Void; |
| 36 | using ::android::sp; |
| 37 | |
Paul Keith | 2b27b27 | 2019-01-09 00:11:40 +0100 | [diff] [blame] | 38 | class StylusMode : public IStylusMode { |
| 39 | public: |
| 40 | StylusMode() = default; |
| 41 | |
| 42 | bool isSupported(); |
| 43 | |
Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 44 | // Methods from ::vendor::lineage::touch::V1_0::IStylusMode follow. |
Paul Keith | 2b27b27 | 2019-01-09 00:11:40 +0100 | [diff] [blame] | 45 | Return<bool> isEnabled() override; |
| 46 | Return<bool> setEnabled(bool enabled) override; |
Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 47 | |
| 48 | // Methods from ::android::hidl::base::V1_0::IBase follow. |
Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 49 | }; |
| 50 | |
Paul Keith | 2b27b27 | 2019-01-09 00:11:40 +0100 | [diff] [blame] | 51 | } // namespace samsung |
Paul Keith | 5b3bd86 | 2019-01-08 23:45:03 +0100 | [diff] [blame] | 52 | } // namespace V1_0 |
| 53 | } // namespace touch |
| 54 | } // namespace lineage |
| 55 | } // namespace vendor |
| 56 | |
| 57 | #endif // VENDOR_LINEAGE_TOUCH_V1_0_STYLUSMODE_H |