sm8450-common: gps: Update to LA.VENDOR.1.0.r1-21900-WAIPIO.0

Change-Id: Ib431364a902ecd9b068e672978f5e24ecbf42160
This commit is contained in:
Arian
2024-02-27 23:45:03 +01:00
부모 36c55874bb
커밋 f518e7ef8f
29개의 변경된 파일1500개의 추가작업 그리고 168개의 파일을 삭제

파일 보기

@@ -349,12 +349,20 @@ LocationAPI::updateCallbacks(LocationCallbacks& locationCallbacks)
pthread_mutex_lock(&gDataMutex);
LocationCallbacks currentCallbacks = {};
auto it = gData.clientData.find(this);
if (it != gData.clientData.end()) {
currentCallbacks = gData.clientData[this];
}
if (isGnssClient(locationCallbacks)) {
loadLibGnss();
if (NULL != gData.gnssInterface) {
// either adds new Client or updates existing Client
gData.gnssInterface->addClient(this, locationCallbacks);
}
} else if (NULL != gData.gnssInterface && isGnssClient(currentCallbacks)) {
gData.gnssInterface->removeClient(this, nullptr);
}
if (isBatchingClient(locationCallbacks)) {
@@ -363,6 +371,8 @@ LocationAPI::updateCallbacks(LocationCallbacks& locationCallbacks)
// either adds new Client or updates existing Client
gData.batchingInterface->addClient(this, locationCallbacks);
}
} else if (NULL != gData.batchingInterface && isBatchingClient(currentCallbacks)) {
gData.batchingInterface->removeClient(this, nullptr);
}
if (isGeofenceClient(locationCallbacks)) {
@@ -371,6 +381,8 @@ LocationAPI::updateCallbacks(LocationCallbacks& locationCallbacks)
// either adds new Client or updates existing Client
gData.geofenceInterface->addClient(this, locationCallbacks);
}
} else if (NULL != gData.geofenceInterface && isGeofenceClient(currentCallbacks)) {
gData.geofenceInterface->removeClient(this, nullptr);
}
gData.clientData[this] = locationCallbacks;