sm8450-common: gps: Add new NLP Session Status data item
Change-Id: Idf5b415fe232dbd098bdae392f40a50e0d11584b CRs-Fixed: 3494806
This commit is contained in:
@@ -1814,6 +1814,11 @@ bool SystemStatus::eventDataItemNotify(IDataItemCore* dataitem)
|
||||
SystemStatusLocFeatureStatus(
|
||||
*(static_cast<LocFeatureStatusDataItem*>(dataitem))));
|
||||
break;
|
||||
case NETWORK_POSITIONING_STARTED_DATA_ITEM_ID:
|
||||
ret = setIteminReport(mCache.mNlpSessionStarted,
|
||||
SystemStatusNlpSessionStarted(
|
||||
*(static_cast<NlpSessionStartedDataItem*>(dataitem))));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2056,5 +2061,18 @@ bool SystemStatus::eventLocFeatureStatus(std::unordered_set<int> fids) {
|
||||
mSysStatusObsvr.notify({&s.mDataItem});
|
||||
return true;
|
||||
}
|
||||
/******************************************************************************
|
||||
@brief API to update network positioning session state
|
||||
|
||||
@param[In] session state
|
||||
|
||||
@return true when successfully done
|
||||
******************************************************************************/
|
||||
bool SystemStatus::eventNlpSessionStatus(bool nlpStarted) {
|
||||
SystemStatusNlpSessionStarted s(nlpStarted);
|
||||
mSysStatusObsvr.notify({&s.mDataItem});
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace loc_core
|
||||
|
||||
|
Reference in New Issue
Block a user