DumpstateDevice.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2018 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. #ifndef ANDROID_HARDWARE_DUMPSTATE_V1_1_DUMPSTATEDEVICE_H
  17. #define ANDROID_HARDWARE_DUMPSTATE_V1_1_DUMPSTATEDEVICE_H
  18. #include <android/hardware/dumpstate/1.1/IDumpstateDevice.h>
  19. #include <hidl/MQDescriptor.h>
  20. #include <hidl/Status.h>
  21. #include <string>
  22. namespace android {
  23. namespace hardware {
  24. namespace dumpstate {
  25. namespace V1_1 {
  26. namespace implementation {
  27. using ::android::hardware::dumpstate::V1_1::DumpstateMode;
  28. using ::android::hardware::dumpstate::V1_1::DumpstateStatus;
  29. using ::android::hardware::dumpstate::V1_1::IDumpstateDevice;
  30. using ::android::hardware::hidl_array;
  31. using ::android::hardware::hidl_handle;
  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. struct DumpstateDevice : public IDumpstateDevice {
  38. // Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
  39. Return<void> dumpstateBoard(const hidl_handle& h) override;
  40. // Methods from ::android::hardware::dumpstate::V1_1::IDumpstateDevice follow.
  41. Return<DumpstateStatus> dumpstateBoard_1_1(const hidl_handle& h,
  42. const DumpstateMode mode,
  43. const uint64_t timeoutMillis) override;
  44. Return<void> setVerboseLoggingEnabled(const bool enable) override;
  45. Return<bool> getVerboseLoggingEnabled() override;
  46. };
  47. } // namespace implementation
  48. } // namespace V1_1
  49. } // namespace dumpstate
  50. } // namespace hardware
  51. } // namespace android
  52. #endif // ANDROID_HARDWARE_DUMPSTATE_V1_1_DUMPSTATEDEVICE_H