blob: e7bc4ecb5d7197916ea99ca7b593d90f16a787b0 [file] [log] [blame]
Alessandro Astonea4fdced2021-03-30 11:34:38 +02001/*
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/powershare/1.0/IPowerShare.h>
20#include <hidl/MQDescriptor.h>
21#include <hidl/Status.h>
22
23namespace vendor::lineage::powershare::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 PowerShare : public V1_0::IPowerShare {
34 // Methods from ::vendor::lineage::powershare::V1_0::IPowerShare follow.
35 Return<bool> isEnabled() override;
36 Return<bool> setEnabled(bool enable) override;
37 Return<uint32_t> getMinBattery() override;
38 Return<uint32_t> setMinBattery(uint32_t minBattery) override;
39};
40
41} // namespace vendor::lineage::powershare::pixel