Home
last modified time | relevance | path

Searched refs:statusInfo (Results 1 – 15 of 15) sorted by relevance

/base/location/services/location_locator/callback/source/
Dgnss_status_callback_proxy.cpp29 void GnssStatusCallbackProxy::OnStatusChange(const std::unique_ptr<SatelliteStatus>& statusInfo) in OnStatusChange() argument
36 if (statusInfo != nullptr) { in OnStatusChange()
37 statusInfo->Marshalling(data); in OnStatusChange()
/base/location/frameworks/native/source/
Dgnss_status_callback_host.cpp53 std::unique_ptr<SatelliteStatus> statusInfo = SatelliteStatus::Unmarshalling(data); in OnRemoteRequest() local
54 Send(statusInfo); in OnRemoteRequest()
70 bool GnssStatusCallbackHost::Send(std::unique_ptr<SatelliteStatus>& statusInfo) in Send() argument
91 context->statusInfo = std::move(statusInfo); in Send()
124 if (context->statusInfo != nullptr) { in UvQueueWork()
127 SatelliteStatusToJs(context->env, context->statusInfo, jsEvent); in UvQueueWork()
147 void GnssStatusCallbackHost::OnStatusChange(const std::unique_ptr<SatelliteStatus>& statusInfo) in OnStatusChange() argument
Dnapi_util.cpp40 const std::shared_ptr<SatelliteStatus>& statusInfo, napi_value& result) in SatelliteStatusToJs() argument
47 SetValueDouble(env, "satellitesNumber", statusInfo->GetSatellitesNumber(), result); in SatelliteStatusToJs()
48 if (statusInfo->GetSatellitesNumber() > 0) { in SatelliteStatusToJs()
50 … napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &satelliteIdsArray)); in SatelliteStatusToJs()
52 napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &cn0Array)); in SatelliteStatusToJs()
54 napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &altitudesArray)); in SatelliteStatusToJs()
56 napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &azimuthsArray)); in SatelliteStatusToJs()
58 … napi_create_array_with_length(env, statusInfo->GetSatellitesNumber(), &carrierFrequenciesArray)); in SatelliteStatusToJs()
60 for (int index = 0; index < statusInfo->GetSatellitesNumber(); index++) { in SatelliteStatusToJs()
62 … NAPI_CALL_RETURN_VOID(env, napi_create_double(env, statusInfo->GetSatelliteIds()[index], &value)); in SatelliteStatusToJs()
[all …]
/base/location/interfaces/inner_api/include/
Dgnss_status_callback_host.h38 bool Send(std::unique_ptr<SatelliteStatus>& statusInfo);
39 void OnStatusChange(const std::unique_ptr<SatelliteStatus>& statusInfo) override;
Di_gnss_status_callback.h35 virtual void OnStatusChange(const std::unique_ptr<SatelliteStatus>& statusInfo) = 0;
Dlocation_async_context.h131 std::shared_ptr<SatelliteStatus> statusInfo;
134 : AsyncContext(env, work, deferred), statusInfo(nullptr) {} in AsyncContext()
Dnapi_util.h44 void SatelliteStatusToJs(const napi_env& env, const std::shared_ptr<SatelliteStatus>& statusInfo, n…
/base/location/services/location_locator/callback/include/
Dgnss_status_callback_proxy.h31 void OnStatusChange(const std::unique_ptr<SatelliteStatus>& statusInfo) override;
/base/location/test/location_gnss/mock/include/
Dmock_gnss_status_callback_host.h37 MOCK_METHOD(void, OnStatusChange, (const std::unique_ptr<SatelliteStatus>& statusInfo));
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_receive_handler.cpp61 std::shared_ptr<SmsReceiveIndexer> statusInfo = std::make_shared<SmsReceiveIndexer>(); in HandleSmsByType() local
62 if (statusInfo == nullptr) { in HandleSmsByType()
66 statusInfo->SetMsgRefId(message->GetMsgRef()); in HandleSmsByType()
67 statusInfo->SetPdu(message->GetRawPdu()); in HandleSmsByType()
68 cdmaSend->ReceiveStatusReport(statusInfo); in HandleSmsByType()
Dcdma_sms_sender.cpp436 std::shared_ptr<SmsReceiveIndexer> statusInfo = event->GetSharedObject<SmsReceiveIndexer>(); in StatusReportAnalysis() local
437 if (statusInfo == nullptr) { in StatusReportAnalysis()
441 std::string pdu = StringUtils::StringToHex(statusInfo->GetPdu()); in StatusReportAnalysis()
/base/location/test/location_locator/source/
Dcallback_test.cpp180 auto statusInfo = std::make_unique<SatelliteStatus>(); variable
190 statusInfo->ReadFromParcel(parcel);
191 EXPECT_NE(nullptr, statusInfo);
192 gnssStatusCallbackProxy->OnStatusChange(statusInfo);
/base/location/test/fuzztest/locator/locator_fuzzer/
Dlocator_fuzzer.cpp377 std::unique_ptr<SatelliteStatus> statusInfo = nullptr; in GnssStatusCallbackHostFuzzerTest() local
378 gnssCallbackHost->Send(statusInfo); in GnssStatusCallbackHostFuzzerTest()
380 gnssCallbackHost->OnStatusChange(statusInfo); in GnssStatusCallbackHostFuzzerTest()
/base/location/test/location_gnss/source/
Dgnss_ability_test.cpp931 SatelliteStatusInfo statusInfo; variable
932 statusInfo.satellitesNumber = 0;
933 statusInfo.flags =
935 gnssCallback->ReportSatelliteStatusInfo(statusInfo);
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_sender.cpp405 std::shared_ptr<SmsMessageInfo> statusInfo = event->GetSharedObject<SmsMessageInfo>(); in StatusReportAnalysis() local
406 if (statusInfo == nullptr) { in StatusReportAnalysis()
411 std::string pdu = StringUtils::StringToHex(statusInfo->pdu); in StatusReportAnalysis()