Home
last modified time | relevance | path

Searched refs:locations (Results 1 – 20 of 20) sorted by relevance

/base/location/services/location_locator/callback/source/
Dcached_locations_callback_proxy.cpp29 …tionsCallbackProxy::OnCacheLocationsReport(const std::vector<std::unique_ptr<Location>>& locations) in OnCacheLocationsReport() argument
36 for (unsigned int i = 0; i < locations.size(); i++) { in OnCacheLocationsReport()
37 locations[i]->Marshalling(data); in OnCacheLocationsReport()
/base/location/test/location_passive/source/
Dpassive_ability_test.cpp139 std::vector<std::shared_ptr<Location>> locations; variable
141 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SetMocked(timeInterval, locations));
144 EXPECT_EQ(ERRCODE_NOT_SUPPORTED, proxy_->SetMocked(timeInterval, locations));
204 std::vector<std::shared_ptr<Location>> locations; variable
220 locations.push_back(Location::UnmarshallingShared(parcel));
222 EXPECT_EQ(ERRCODE_SUCCESS, ability_->SetMocked(timeInterval, locations));
235 std::vector<std::shared_ptr<Location>> locations; variable
251 locations.push_back(Location::UnmarshallingShared(parcel));
253 EXPECT_EQ(ERRCODE_SUCCESS, ability_->SetMocked(timeInterval, locations));
/base/location/frameworks/native/source/
Dcached_locations_callback_host.cpp54 std::vector<std::shared_ptr<Location>> locations(size); in OnRemoteRequest() local
56 locations.push_back(Location::UnmarshallingShared(data)); in OnRemoteRequest()
58 Send(locations); in OnRemoteRequest()
75 bool CachedLocationsCallbackHost::Send(std::vector<std::shared_ptr<Location>>& locations) in Send() argument
97 context->locationList = locations; in Send()
151 …ationsCallbackHost::OnCacheLocationsReport(const std::vector<std::unique_ptr<Location>>& locations) in OnCacheLocationsReport() argument
Dnapi_util.cpp83 void LocationsToJs(const napi_env& env, const std::vector<std::shared_ptr<Location>>& locations, na… in LocationsToJs() argument
85 if (locations.size() > 0) { in LocationsToJs()
86 for (unsigned int index = 0; index < locations.size(); index++) { in LocationsToJs()
88 SetValueDouble(env, "latitude", locations[index]->GetLatitude(), value); in LocationsToJs()
89 SetValueDouble(env, "longitude", locations[index]->GetLongitude(), value); in LocationsToJs()
90 SetValueDouble(env, "altitude", locations[index]->GetAltitude(), value); in LocationsToJs()
91 SetValueDouble(env, "accuracy", locations[index]->GetAccuracy(), value); in LocationsToJs()
92 SetValueDouble(env, "speed", locations[index]->GetSpeed(), value); in LocationsToJs()
93 SetValueInt64(env, "timeStamp", locations[index]->GetTimeStamp(), value); in LocationsToJs()
94 SetValueDouble(env, "direction", locations[index]->GetDirection(), value); in LocationsToJs()
[all …]
/base/location/interfaces/inner_api/include/
Dcached_locations_callback_host.h41 bool Send(std::vector<std::shared_ptr<Location>>& locations);
42 void OnCacheLocationsReport(const std::vector<std::unique_ptr<Location>>& locations) override;
Di_cached_locations_callback.h31 … virtual void OnCacheLocationsReport(const std::vector<std::unique_ptr<Location>>& locations) = 0;
Dnapi_util.h43 void LocationsToJs(const napi_env& env, const std::vector<std::shared_ptr<Location>>& locations, na…
/base/update/updater/services/applypatch/
Dblock_set.cpp241 void BlockSet::MoveBlock(std::vector<uint8_t> &target, const BlockSet& locations, in MoveBlock() argument
246 size_t start = locations.TotalBlockSize(); in MoveBlock()
247 for (auto it = locations.CrBegin(); it != locations.CrEnd(); it++) { in MoveBlock()
279 BlockSet locations; in LoadSourceBuffer() local
280 locations.ParserAndInsert(nextArgv); in LoadSourceBuffer()
281 MoveBlock(sourceBuffer, locations, sourceBuffer); in LoadSourceBuffer()
297 BlockSet locations; in LoadSourceBuffer() local
298 locations.ParserAndInsert(tokens[1]); in LoadSourceBuffer()
299 MoveBlock(sourceBuffer, locations, stash); in LoadSourceBuffer()
/base/location/test/location_network/source/
Dnetwork_ability_test.cpp181 std::vector<std::shared_ptr<Location>> locations; variable
183 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SetMocked(timeInterval, locations));
186 EXPECT_EQ(ERRCODE_NOT_SUPPORTED, proxy_->SetMocked(timeInterval, locations));
247 std::vector<std::shared_ptr<Location>> locations; variable
263 locations.push_back(Location::UnmarshallingShared(parcel));
265 EXPECT_EQ(ERRCODE_SUCCESS, ability_->SetMocked(timeInterval, locations));
278 std::vector<std::shared_ptr<Location>> locations; variable
294 locations.push_back(Location::UnmarshallingShared(parcel));
296 EXPECT_EQ(ERRCODE_SUCCESS, ability_->SetMocked(timeInterval, locations));
/base/location/test/fuzztest/locator/gnss_fuzzer/
Dgnss_fuzzer.cpp74 std::vector<std::shared_ptr<OHOS::Location::Location>> locations; in GnssProxyFuzzTest() local
77 proxy->SetMocked(data[index++], locations); in GnssProxyFuzzTest()
/base/location/services/location_locator/callback/include/
Dcached_locations_callback_proxy.h33 void OnCacheLocationsReport(const std::vector<std::unique_ptr<Location>>& locations) override;
/base/location/test/location_gnss/mock/include/
Dmock_cached_locations_callback_host.h37 …CK_METHOD(void, OnCacheLocationsReport, (const std::vector<std::unique_ptr<Location>>& locations));
/base/location/test/fuzztest/locator/locator_fuzzer/
Dlocator_fuzzer.cpp298 std::vector<std::shared_ptr<OHOS::Location::Location>> locations; in TestMockFunc() local
299 g_locatorImpl->SetMockedLocations(data[index++], locations); in TestMockFunc()
314 std::vector<std::shared_ptr<OHOS::Location::Location>> locations; in TestMockFuncV9() local
315 g_locatorImpl->SetMockedLocationsV9(data[index++], locations); in TestMockFuncV9()
530 std::vector<std::shared_ptr<OHOS::Location::Location>> locations; in LocatorAbility003FuzzerTest() local
531 locatorAbility->SetMockedLocations(data[index++], locations); in LocatorAbility003FuzzerTest()
542 locatorAbility->ProcessLocationMockMsg(timeInterval, locations, data[index++]); in LocatorAbility003FuzzerTest()
544 locatorAbility->SendLocationMockMsgToGnssSa(nullptr, timeInterval, locations, data[index++]); in LocatorAbility003FuzzerTest()
547 locatorAbility->SendLocationMockMsgToNetworkSa(nullptr, timeInterval, locations, data[index++]); in LocatorAbility003FuzzerTest()
/base/location/test/location_locator/source/
Dcallback_test.cpp60 std::vector<std::unique_ptr<Location>> locations; variable
80 locations.emplace_back(std::move(location));
81 cachedLocationsCallbackProxy->OnCacheLocationsReport(locations);
Dlocator_service_test.cpp1376 std::vector<std::shared_ptr<Location>> locations; variable
1377 EXPECT_EQ(true, locatorImpl->SetMockedLocations(timeInterval, locations));
1759 std::vector<std::shared_ptr<Location>> locations; variable
1760 EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->SetMockedLocations(timeInterval, locations));
1763 EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->SetMockedLocations(timeInterval, locations));
1975 std::vector<std::shared_ptr<OHOS::Location::Location>> locations; variable
1976 locatorAbility->SendLocationMockMsgToGnssSa(nullptr, 0, locations, 0);
1977 locatorAbility->SendLocationMockMsgToNetworkSa(nullptr, 0, locations, 0);
1978 locatorAbility->SendLocationMockMsgToPassiveSa(nullptr, 0, locations, 0);
Dlocator_impl_test.cpp209 std::vector<std::shared_ptr<Location>> locations; variable
225 locations.push_back(Location::UnmarshallingShared(parcel));
226 …EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->SetMockedLocationsV9(timeInterval, locations)); // set fa…
/base/location/test/location_gnss/source/
Dgnss_ability_test.cpp558 std::vector<std::shared_ptr<Location>> locations; variable
561 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SetMocked(timeInterval, locations));
565 EXPECT_EQ(ERRCODE_NOT_SUPPORTED, proxy_->SetMocked(timeInterval, locations));
617 std::vector<std::shared_ptr<Location>> locations; variable
633 locations.push_back(Location::UnmarshallingShared(parcel));
635 EXPECT_EQ(ERRCODE_SUCCESS, ability_->SetMocked(timeInterval, locations));
648 std::vector<std::shared_ptr<Location>> locations; variable
664 locations.push_back(Location::UnmarshallingShared(parcel));
666 EXPECT_EQ(ERRCODE_SUCCESS, ability_->SetMocked(timeInterval, locations));
/base/update/updater/services/include/applypatch/
Dblock_set.h85 static void MoveBlock(std::vector<uint8_t> &target, const BlockSet &locations,
/base/update/updater/services/script/script_interpreter/
Dscript_yacc.y85 %locations
/base/location/
DREADME.en.md38 …itioning estimates the current location of a mobile device based on the locations of WLANs and Blu…