Home | History | Annotate | Download | only in default

Lines Matching refs:Gnss

19 #include "Gnss.h"
24 namespace gnss {
28 std::vector<std::unique_ptr<ThreadFuncArgs>> Gnss::sThreadFuncArgsList;
29 sp<IGnssCallback> Gnss::sGnssCbIface = nullptr;
30 bool Gnss::sInterfaceExists = false;
31 bool Gnss::sWakelockHeldGnss = false;
32 bool Gnss::sWakelockHeldFused = false;
34 GpsCallbacks Gnss::sGnssCb = {
49 uint32_t Gnss::sCapabilitiesCached = 0;
50 uint16_t Gnss::sYearOfHwCached = 0;
52 Gnss::Gnss(gps_device_t* gnssDevice) :
66 Gnss::~Gnss() {
71 void Gnss::locationCb(GpsLocation* location) {
73 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
78 ALOGE("%s: Invalid location from GNSS HAL", __func__);
82 android::hardware::gnss::V1_0::GnssLocation gnssLocation = convertToGnssLocation(location);
89 void Gnss::statusCb(GpsStatus* gnssStatus) {
91 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
96 ALOGE("%s: Invalid GpsStatus from GNSS HAL", __func__);
109 void Gnss::gnssSvStatusCb(GnssSvStatus* status) {
111 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
116 ALOGE("Invalid status from GNSS HAL %s", __func__);
133 android::hardware::gnss::V1_0::GnssConstellationType>(
157 * implementation and is not part of the GNSS interface.
174 * being deprecated and is no longer part of the GNSS interface.
176 void Gnss::gpsSvStatusCb(GpsSvStatus* svInfo) {
178 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
183 ALOGE("Invalid status from GNSS HAL %s", __func__);
257 void Gnss::nmeaCb(GpsUtcTime timestamp, const char* nmea, int length) {
259 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
271 void Gnss::setCapabilitiesCb(uint32_t capabilities) {
273 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
286 void Gnss::acquireWakelockCb() {
290 void Gnss::releaseWakelockCb() {
295 void Gnss::acquireWakelockGnss() {
300 void Gnss::releaseWakelockGnss() {
305 void Gnss::acquireWakelockFused() {
310 void Gnss::releaseWakelockFused() {
315 void Gnss::updateWakelock() {
321 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
327 ALOGI("%s: GNSS HAL Wakelock acquired due to gps: %d, fused: %d", __func__,
337 ALOGI("%s: GNSS HAL Wakelock released", __func__);
341 ALOGW("%s: GNSS HAL Wakelock released, duplicate request", __func__);
351 void Gnss::requestUtcTimeCb() {
353 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
363 pthread_t Gnss::createThreadCb(const char* name, void (*start)(void*), void* arg) {
367 void Gnss::setSystemInfoCb(const LegacyGnssSystemInfo* info) {
369 ALOGE("%s: GNSS Callback Interface configured incorrectly", __func__);
374 ALOGE("Invalid GnssSystemInfo from GNSS HAL %s", __func__);
392 // Methods from ::android::hardware::gnss::V1_0::IGnss follow.
393 Return<bool> Gnss::setCallback(const sp<IGnssCallback>& callback) {
395 ALOGE("%s: Gnss interface is unavailable", __func__);
427 Return<bool> Gnss::start() {
429 ALOGE("%s: Gnss interface is unavailable", __func__);
436 Return<bool> Gnss::stop() {
438 ALOGE("%s: Gnss interface is unavailable", __func__);
445 Return<void> Gnss::cleanup() {
447 ALOGE("%s: Gnss interface is unavailable", __func__);
454 Return<bool> Gnss::injectLocation(double latitudeDegrees,
458 ALOGE("%s: Gnss interface is unavailable", __func__);
465 Return<bool> Gnss::injectTime(int64_t timeMs, int64_t timeReferenceMs,
468 ALOGE("%s: Gnss interface is unavailable", __func__);
475 Return<void> Gnss::deleteAidingData(IGnss::GnssAidingData aidingDataFlags) {
477 ALOGE("%s: Gnss interface is unavailable", __func__);
484 Return<bool> Gnss::setPositionMode(IGnss::GnssPositionMode mode,
490 ALOGE("%s: Gnss interface is unavailable", __func__);
501 Return<sp<IAGnssRil>> Gnss::getExtensionAGnssRil() {
503 ALOGE("%s: Gnss interface is unavailable", __func__);
511 ALOGE("%s GnssRil interface not implemented by GNSS HAL", __func__);
519 Return<sp<IGnssConfiguration>> Gnss::getExtensionGnssConfiguration() {
521 ALOGE("%s: Gnss interface is unavailable", __func__);
531 ALOGE("%s GnssConfiguration interface not implemented by GNSS HAL", __func__);
539 Return<sp<IGnssGeofencing>> Gnss::getExtensionGnssGeofencing() {
541 ALOGE("%s: Gnss interface is unavailable", __func__);
551 ALOGE("%s GnssGeofencing interface not implemented by GNSS HAL", __func__);
560 Return<sp<IAGnss>> Gnss::getExtensionAGnss() {
562 ALOGE("%s: Gnss interface is unavailable", __func__);
570 ALOGE("%s AGnss interface not implemented by GNSS HAL", __func__);
578 Return<sp<IGnssNi>> Gnss::getExtensionGnssNi() {
580 ALOGE("%s: Gnss interface is unavailable", __func__);
588 ALOGE("%s GnssNi interface not implemented by GNSS HAL", __func__);
596 Return<sp<IGnssMeasurement>> Gnss::getExtensionGnssMeasurement() {
598 ALOGE("%s: Gnss interface is unavailable", __func__);
608 ALOGE("%s GnssMeasurement interface not implemented by GNSS HAL", __func__);
616 Return<sp<IGnssNavigationMessage>> Gnss::getExtensionGnssNavigationMessage() {
618 ALOGE("%s: Gnss interface is unavailable", __func__);
628 ALOGE("%s GnssNavigationMessage interface not implemented by GNSS HAL",
638 Return<sp<IGnssXtra>> Gnss::getExtensionXtra() {
640 ALOGE("%s: Gnss interface is unavailable", __func__);
658 Return<sp<IGnssDebug>> Gnss::getExtensionGnssDebug() {
660 ALOGE("%s: Gnss interface is unavailable", __func__);
678 Return<sp<IGnssBatching>> Gnss::getExtensionGnssBatching() {
680 ALOGE("%s: Gnss interface is unavailable", __func__);
690 ALOGE("gnss flp hw_get_module failed: %d", err);
715 void Gnss::handleHidlDeath() {
716 ALOGW("GNSS service noticed HIDL death. Stopping all GNSS operations.");
748 iface = new Gnss(reinterpret_cast<gps_device_t*>(device));
753 ALOGE("gnss hw_get_module %s failed: %d", GPS_HARDWARE_MODULE_ID, err);
760 } // namespace gnss