Lines Matching refs:refInfo

107         AGnssRefInfo refInfo;
109 refInfo.type = type;
112 JudgmentDataGsm(refInfo, infoItem);
116 JudgmentDataLte(refInfo, infoItem);
122 JudgmentDataUmts(refInfo, infoItem);
126 JudgmentDataNr(refInfo, infoItem);
132 g_iagnssHci->SetAgnssRefInfo(refInfo);
138 void AgnssCallbackImpl::JudgmentDataGsm(AGnssRefInfo& refInfo, sptr<CellInformation> infoItem)
142 refInfo.cellId.type = HDI::Location::Agnss::V2_0::CELLID_TYPE_GSM;
143 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(gsmCellInfo->GetMcc()));
144 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(gsmCellInfo->GetMnc()));
145 refInfo.cellId.lac = static_cast<unsigned short>(gsmCellInfo->GetLac());
146 refInfo.cellId.cid = static_cast<unsigned int>(gsmCellInfo->GetCellId());
150 void AgnssCallbackImpl::JudgmentDataLte(AGnssRefInfo& refInfo, sptr<CellInformation> infoItem)
154 refInfo.cellId.type = HDI::Location::Agnss::V2_0::CELLID_TYPE_LTE;
155 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(lteCellInfo->GetMcc()));
156 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(lteCellInfo->GetMnc()));
157 refInfo.cellId.tac = static_cast<unsigned short>(lteCellInfo->GetTac());
158 refInfo.cellId.cid = static_cast<unsigned int>(lteCellInfo->GetCellId());
159 refInfo.cellId.pcid = static_cast<unsigned short>(lteCellInfo->GetPci());
163 void AgnssCallbackImpl::JudgmentDataNr(AGnssRefInfo& refInfo, sptr<CellInformation> infoItem)
167 refInfo.cellId.type = HDI::Location::Agnss::V2_0::CELLID_TYPE_NR;
168 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(nrCellInfo->GetMcc()));
169 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(nrCellInfo->GetMnc()));
170 refInfo.cellId.tac = static_cast<unsigned short>(nrCellInfo->GetTac());
171 refInfo.cellId.cid = static_cast<unsigned int>(nrCellInfo->GetCellId());
172 refInfo.cellId.pcid = static_cast<unsigned short>(nrCellInfo->GetPci());
173 refInfo.cellId.nci = static_cast<unsigned int>(nrCellInfo->GetNci());
177 void AgnssCallbackImpl::JudgmentDataUmts(AGnssRefInfo& refInfo, sptr<CellInformation> infoItem)
181 refInfo.cellId.type = HDI::Location::Agnss::V2_0::CELLID_TYPE_UMTS;
182 refInfo.cellId.mcc = static_cast<unsigned short>(std::stoi(wcdmaCellInfo->GetMcc()));
183 refInfo.cellId.mnc = static_cast<unsigned short>(std::stoi(wcdmaCellInfo->GetMnc()));
184 refInfo.cellId.lac = static_cast<unsigned short>(wcdmaCellInfo->GetLac());
185 refInfo.cellId.cid = static_cast<unsigned int>(wcdmaCellInfo->GetCellId());
411 AGnssRefInfo refInfo;
412 refInfo.type = AGnssRefInfoType::ANSS_REF_INFO_TYPE_CELLID;
413 refInfo.cellId.type = CellIdType::CELLID_TYPE_GSM;
414 refInfo.cellId.mcc = 100;
415 refInfo.cellId.mnc = 8;
416 refInfo.cellId.lac = 20;
417 refInfo.cellId.cid = 50;
418 refInfo.cellId.tac = 60;
419 refInfo.cellId.pcid = 80;
420 refInfo.cellId.nci = 90;
421 int32_t ret = g_iagnssHci->SetAgnssRefInfo(refInfo);