blob: e7c5fea97b4e9f091ef8e12d458085d0d1c99570 [file] [log] [blame]
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -07001/*
2 * Copyright (C) 2017 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 */
Tomasz Wiszkowskiec936762017-09-26 11:07:23 -070016#pragma once
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -070017
Hunter Knepshield1abd4e92020-01-21 13:46:09 -080018#include <android/hardware/dumpstate/1.1/IDumpstateDevice.h>
19#include <android/hardware/dumpstate/1.1/types.h>
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -070020#include <hidl/MQDescriptor.h>
21#include <hidl/Status.h>
22
23namespace android {
24namespace hardware {
25namespace dumpstate {
Hunter Knepshield1abd4e92020-01-21 13:46:09 -080026namespace V1_1 {
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -070027namespace implementation {
28
Hunter Knepshield897f7602020-02-03 17:05:27 -080029using ::android::sp;
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -070030using ::android::hardware::hidl_array;
31using ::android::hardware::hidl_handle;
32using ::android::hardware::hidl_string;
33using ::android::hardware::hidl_vec;
Hunter Knepshield897f7602020-02-03 17:05:27 -080034using ::android::hardware::Return;
35using ::android::hardware::Void;
36using ::android::hardware::dumpstate::V1_1::DumpstateMode;
37using ::android::hardware::dumpstate::V1_1::DumpstateStatus;
38using ::android::hardware::dumpstate::V1_1::IDumpstateDevice;
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -070039
40struct DumpstateDevice : public IDumpstateDevice {
41 // Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
42 Return<void> dumpstateBoard(const hidl_handle& h) override;
Hunter Knepshield1abd4e92020-01-21 13:46:09 -080043
44 // Methods from ::android::hardware::dumpstate::V1_1::IDumpstateDevice follow.
Hunter Knepshield897f7602020-02-03 17:05:27 -080045 Return<DumpstateStatus> dumpstateBoard_1_1(const hidl_handle& h,
46 DumpstateMode mode,
47 uint64_t timeoutMillis) override;
Hunter Knepshield4ffc9272020-02-12 19:04:11 -080048 Return<void> setVerboseLoggingEnabled(bool enable) override;
49 Return<bool> getVerboseLoggingEnabled() override;
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -070050};
51
52} // namespace implementation
Hunter Knepshield1abd4e92020-01-21 13:46:09 -080053} // namespace V1_1
Tomasz Wiszkowskia5a276e2017-09-26 10:58:06 -070054} // namespace dumpstate
55} // namespace hardware
56} // namespace android