Jan Altensen | 1a84336 | 2019-01-20 01:40:51 +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_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H |
| 18 | #define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H |
| 19 | |
| 20 | #include <vendor/lineage/livedisplay/2.0/IPictureAdjustment.h> |
| 21 | #include <hidl/MQDescriptor.h> |
| 22 | #include <hidl/Status.h> |
| 23 | |
| 24 | namespace vendor { |
| 25 | namespace lineage { |
| 26 | namespace livedisplay { |
| 27 | namespace V2_0 { |
| 28 | namespace implementation { |
| 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 | |
| 38 | struct PictureAdjustment : public IPictureAdjustment { |
| 39 | // Methods from ::vendor::lineage::livedisplay::V2_0::IPictureAdjustment follow. |
| 40 | Return<void> getHueRange(getHueRange_cb _hidl_cb) override; |
| 41 | Return<void> getSaturationRange(getSaturationRange_cb _hidl_cb) override; |
| 42 | Return<void> getIntensityRange(getIntensityRange_cb _hidl_cb) override; |
| 43 | Return<void> getContrastRange(getContrastRange_cb _hidl_cb) override; |
| 44 | Return<void> getSaturationThresholdRange(getSaturationThresholdRange_cb _hidl_cb) override; |
| 45 | Return<void> getPictureAdjustment(getPictureAdjustment_cb _hidl_cb) override; |
| 46 | Return<void> getDefaultPictureAdjustment(getDefaultPictureAdjustment_cb _hidl_cb) override; |
| 47 | Return<bool> setPictureAdjustment(const ::vendor::lineage::livedisplay::V2_0::HSIC& hsic) override; |
| 48 | |
| 49 | // Methods from ::android::hidl::base::V1_0::IBase follow. |
| 50 | |
| 51 | }; |
| 52 | |
| 53 | // FIXME: most likely delete, this is only for passthrough implementations |
| 54 | // extern "C" IPictureAdjustment* HIDL_FETCH_IPictureAdjustment(const char* name); |
| 55 | |
| 56 | } // namespace implementation |
| 57 | } // namespace V2_0 |
| 58 | } // namespace livedisplay |
| 59 | } // namespace lineage |
| 60 | } // namespace vendor |
| 61 | |
| 62 | #endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H |