sm8450-common: gps: Loc QWES check unify
1 Add context call to get location qwes feature status directly. 2 Add data item to dispatch location qwes feature status. 3 EngineHub uses context call to get location qwes feature status. 4 xtwifi uses data item registration to get location qwes feature status. Change-Id: I489b7fadf2b06a4517ac4b362b6ff4d204f94080 CRs-Fixed: 3435284
This commit is contained in:
@@ -1809,6 +1809,11 @@ bool SystemStatus::eventDataItemNotify(IDataItemCore* dataitem)
|
||||
ret = setIteminReport(mCache.mBtLeDeviceScanDetail, SystemStatusBtleDeviceScanDetail(
|
||||
*(static_cast<BtLeDeviceScanDetailsDataItem*>(dataitem))));
|
||||
break;
|
||||
case LOC_FEATURE_STATUS_DATA_ITEM_ID:
|
||||
ret = setIteminReport(mCache.mLocFeatureStatus,
|
||||
SystemStatusLocFeatureStatus(
|
||||
*(static_cast<LocFeatureStatusDataItem*>(dataitem))));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2038,5 +2043,18 @@ void SystemStatus::setTracking(bool tracking) {
|
||||
mTracking = tracking;
|
||||
pthread_mutex_unlock(&mMutexSystemStatus);
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
@brief API to update Location feature QWES status
|
||||
|
||||
@param[In] Location feature QWES status
|
||||
|
||||
@return true when successfully done
|
||||
******************************************************************************/
|
||||
bool SystemStatus::eventLocFeatureStatus(std::unordered_set<int> fids) {
|
||||
SystemStatusLocFeatureStatus s(fids);
|
||||
mSysStatusObsvr.notify({&s.mDataItem});
|
||||
return true;
|
||||
}
|
||||
} // namespace loc_core
|
||||
|
||||
|
Reference in New Issue
Block a user