diff options
Diffstat (limited to 'android/2.0/GnssMeasurement.h')
-rw-r--r-- | android/2.0/GnssMeasurement.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/android/2.0/GnssMeasurement.h b/android/2.0/GnssMeasurement.h index 7fa66b4..37fdc1c 100644 --- a/android/2.0/GnssMeasurement.h +++ b/android/2.0/GnssMeasurement.h @@ -18,12 +18,18 @@ * limitations under the License. */ +/* âââââChanges from Qualcomm Innovation Center are provided under the following license: + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear + */ + #ifndef ANDROID_HARDWARE_GNSS_V2_0_GNSSMEASUREMENT_H #define ANDROID_HARDWARE_GNSS_V2_0_GNSSMEASUREMENT_H #include <android/hardware/gnss/2.0/IGnssMeasurement.h> #include <hidl/MQDescriptor.h> #include <hidl/Status.h> +#include "MeasurementAPIClient.h" namespace android { namespace hardware { @@ -69,7 +75,9 @@ struct GnssMeasurement : public V2_0::IGnssMeasurement { sp<GnssMeasurement> mGnssMeasurement; }; - private: + template <typename T> + Return<IGnssMeasurement::GnssMeasurementStatus> setCallback( + const sp<T>& callback, sp<T>& myCallback, GnssPowerMode powerMode); sp<GnssMeasurementDeathRecipient> mGnssMeasurementDeathRecipient = nullptr; sp<V1_0::IGnssMeasurementCallback> mGnssMeasurementCbIface = nullptr; sp<V1_1::IGnssMeasurementCallback> mGnssMeasurementCbIface_1_1 = nullptr; |