summaryrefslogtreecommitdiffstats
path: root/gnss/1.0/GnssBatching.h
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2020-05-18 06:29:20 +0200
committerArne Coucheron <arco68@gmail.com>2020-05-26 00:18:25 +0200
commitaaaa0eb529480e73088c91e0e49b3dc554730b56 (patch)
treea738a5bfbe7560661a273799b8d703416242c8be /gnss/1.0/GnssBatching.h
parent08f0000e15a28f1622e4ef0c6d17595714c1be58 (diff)
downloadhardware_lineage_interfaces-aaaa0eb529480e73088c91e0e49b3dc554730b56.tar.gz
hardware_lineage_interfaces-aaaa0eb529480e73088c91e0e49b3dc554730b56.tar.bz2
hardware_lineage_interfaces-aaaa0eb529480e73088c91e0e49b3dc554730b56.zip
gnss: Rename to legacy
Change-Id: I0d71f1a32d82a9a24eea0e3dffe7c8b463d17d9d
Diffstat (limited to 'gnss/1.0/GnssBatching.h')
-rw-r--r--gnss/1.0/GnssBatching.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/gnss/1.0/GnssBatching.h b/gnss/1.0/GnssBatching.h
deleted file mode 100644
index 001c27d..0000000
--- a/gnss/1.0/GnssBatching.h
+++ /dev/null
@@ -1,67 +0,0 @@
-#ifndef ANDROID_HARDWARE_GNSS_V1_0_GNSSBATCHING_H
-#define ANDROID_HARDWARE_GNSS_V1_0_GNSSBATCHING_H
-
-#include <android/hardware/gnss/1.0/IGnssBatching.h>
-#include <hardware/fused_location.h>
-#include <hidl/MQDescriptor.h>
-#include <hidl/Status.h>
-
-namespace android {
-namespace hardware {
-namespace gnss {
-namespace V1_0 {
-namespace implementation {
-
-using ::android::hardware::gnss::V1_0::IGnssBatching;
-using ::android::hardware::gnss::V1_0::IGnssBatchingCallback;
-using ::android::hidl::base::V1_0::IBase;
-using ::android::hardware::hidl_array;
-using ::android::hardware::hidl_memory;
-using ::android::hardware::hidl_string;
-using ::android::hardware::hidl_vec;
-using ::android::hardware::Return;
-using ::android::hardware::Void;
-using ::android::sp;
-
-struct GnssBatching : public IGnssBatching {
- GnssBatching(const FlpLocationInterface* flpLocationIface);
-
- // Methods from ::android::hardware::gnss::V1_0::IGnssBatching follow.
- Return<bool> init(const sp<IGnssBatchingCallback>& callback) override;
- Return<uint16_t> getBatchSize() override;
- Return<bool> start(const IGnssBatching::Options& options ) override;
- Return<void> flush() override;
- Return<bool> stop() override;
- Return<void> cleanup() override;
-
- /*
- * Callback methods to be passed into the conventional FLP HAL by the default
- * implementation. These methods are not part of the IGnssBatching base class.
- */
- static void locationCb(int32_t locationsCount, FlpLocation** locations);
- static void acquireWakelockCb();
- static void releaseWakelockCb();
- static int32_t setThreadEventCb(ThreadEvent event);
- static void flpCapabilitiesCb(int32_t capabilities);
- static void flpStatusCb(int32_t status);
-
- /*
- * Holds function pointers to the callback methods.
- */
- static FlpCallbacks sFlpCb;
-
- private:
- const FlpLocationInterface* mFlpLocationIface = nullptr;
- static sp<IGnssBatchingCallback> sGnssBatchingCbIface;
- static bool sFlpSupportsBatching;
-};
-
-extern "C" IGnssBatching* HIDL_FETCH_IGnssBatching(const char* name);
-
-} // namespace implementation
-} // namespace V1_0
-} // namespace gnss
-} // namespace hardware
-} // namespace android
-
-#endif // ANDROID_HARDWARE_GNSS_V1_0_GNSSBATCHING_H