GnssDebug.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
  3. * Not a Contribution
  4. */
  5. /*
  6. * Copyright (C) 2016 The Android Open Source Project
  7. *
  8. * Licensed under the Apache License, Version 2.0 (the "License");
  9. * you may not use this file except in compliance with the License.
  10. * You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS,
  16. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. */
  20. #ifndef ANDROID_HARDWARE_GNSS_V2_0_GNSSDEBUG_H
  21. #define ANDROID_HARDWARE_GNSS_V2_0_GNSSDEBUG_H
  22. #include <android/hardware/gnss/2.0/IGnssDebug.h>
  23. #include <hidl/Status.h>
  24. namespace android {
  25. namespace hardware {
  26. namespace gnss {
  27. namespace V2_0 {
  28. namespace implementation {
  29. using ::android::hardware::gnss::V2_0::IGnssDebug;
  30. using ::android::hardware::Return;
  31. using ::android::hardware::Void;
  32. using ::android::hardware::hidl_vec;
  33. using ::android::hardware::hidl_string;
  34. using ::android::sp;
  35. /* Interface for GNSS Debug support. */
  36. struct Gnss;
  37. struct GnssDebug : public IGnssDebug {
  38. GnssDebug(Gnss* gnss);
  39. ~GnssDebug() {};
  40. // Methods from ::android::hardware::gnss::V1_0::IGnssDebug follow
  41. Return<void> getDebugData(getDebugData_cb _hidl_cb) override;
  42. // Methods from ::android::hardware::gnss::V2_0::IGnssDebug follow.
  43. Return<void> getDebugData_2_0(getDebugData_2_0_cb _hidl_cb) override;
  44. private:
  45. Gnss* mGnss = nullptr;
  46. };
  47. } // namespace implementation
  48. } // namespace V2_0
  49. } // namespace gnss
  50. } // namespace hardware
  51. } // namespace android
  52. #endif // ANDROID_HARDWARE_GNSS_V2_0_GNSSDEBUG_H