blob: 0629831557fe537325845d79694b1c52bc329f74 [file] [log] [blame]
Kedar Chitnisbc093212021-11-16 09:08:19 +00001/*
2 * Copyright (C) 2021 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
17#pragma once
18
19#include <aidl/android/hardware/dumpstate/BnDumpstateDevice.h>
20#include <aidl/android/hardware/dumpstate/IDumpstateDevice.h>
21#include <android/binder_status.h>
22
23namespace aidl {
24namespace android {
25namespace hardware {
26namespace dumpstate {
27
28class Dumpstate : public BnDumpstateDevice {
29 private:
30 bool getVerboseLoggingEnabledImpl();
31 ::ndk::ScopedAStatus dumpstateBoardImpl(const int fd, const bool full);
32
33 public:
34 ::ndk::ScopedAStatus dumpstateBoard(const std::vector<::ndk::ScopedFileDescriptor>& in_fds,
35 IDumpstateDevice::DumpstateMode in_mode,
36 int64_t in_timeoutMillis) override;
37
38 ::ndk::ScopedAStatus getVerboseLoggingEnabled(bool* _aidl_return) override;
39
40 ::ndk::ScopedAStatus setVerboseLoggingEnabled(bool in_enable) override;
41};
42
43} // namespace dumpstate
44} // namespace hardware
45} // namespace android
46} // namespace aidl