blob: 31270595fc2d6130386f05ab8bb2c073b60a1d61 [file] [log] [blame]
Hridya Valsaraju97052052019-03-04 14:15:16 -08001/*
2 * Copyright (C) 2019 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 */
16#pragma once
17
18#include <android/hardware/fastboot/1.0/IFastboot.h>
19#include <hidl/Status.h>
20
21namespace android {
22namespace hardware {
23namespace fastboot {
24namespace V1_0 {
25namespace implementation {
26
27using ::android::hardware::hidl_string;
28using ::android::hardware::Return;
29using ::android::hardware::Void;
30
31struct Fastboot : public IFastboot {
32 // Methods from ::android::hardware::fastboot::V1_0::IFastboot follow.
33 Return<void> getPartitionType(const hidl_string& partitionName,
34 getPartitionType_cb _hidl_cb) override;
35 Return<void> doOemCommand(const hidl_string& oemCmd, doOemCommand_cb _hidl_cb) override;
36 Return<void> getVariant(getVariant_cb _hidl_cb) override;
37 Return<void> getOffModeChargeState(getOffModeChargeState_cb _hidl_cb) override;
38 Return<void> getBatteryVoltageFlashingThreshold(
39 getBatteryVoltageFlashingThreshold_cb _hidl_cb) override;
40};
41
42extern "C" IFastboot* HIDL_FETCH_IFastboot(const char* name);
43
44} // namespace implementation
45} // namespace V1_0
46} // namespace fastboot
47} // namespace hardware
48} // namespace android