GnssDebug.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2016 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_GNSS_V1_1_GNSSDEBUG_H
  17. #define ANDROID_HARDWARE_GNSS_V1_1_GNSSDEBUG_H
  18. #include <android/hardware/gnss/1.0/IGnssDebug.h>
  19. #include <hidl/Status.h>
  20. namespace android {
  21. namespace hardware {
  22. namespace gnss {
  23. namespace V1_1 {
  24. namespace implementation {
  25. using ::android::hardware::gnss::V1_0::IGnssDebug;
  26. using ::android::hardware::Return;
  27. using ::android::hardware::Void;
  28. using ::android::hardware::hidl_vec;
  29. using ::android::hardware::hidl_string;
  30. using ::android::sp;
  31. /* Interface for GNSS Debug support. */
  32. struct Gnss;
  33. struct GnssDebug : public IGnssDebug {
  34. GnssDebug(Gnss* gnss);
  35. ~GnssDebug() {};
  36. /*
  37. * Methods from ::android::hardware::gnss::V1_0::IGnssDebug follow.
  38. * These declarations were generated from IGnssDebug.hal.
  39. */
  40. Return<void> getDebugData(getDebugData_cb _hidl_cb) override;
  41. private:
  42. Gnss* mGnss = nullptr;
  43. };
  44. } // namespace implementation
  45. } // namespace V1_1
  46. } // namespace gnss
  47. } // namespace hardware
  48. } // namespace android
  49. #endif // ANDROID_HARDWARE_GNSS_V1_1_GNSSDEBUG_H