Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 152) sorted by relevance

1234567

/base/location/frameworks/location_common/common/source/
Dlocation.cpp45 Location::Location(Location& location) in Location() argument
47 latitude_ = location.GetLatitude(); in Location()
48 longitude_ = location.GetLongitude(); in Location()
49 altitude_ = location.GetAltitude(); in Location()
50 accuracy_ = location.GetAccuracy(); in Location()
51 speed_ = location.GetSpeed(); in Location()
52 direction_ = location.GetDirection(); in Location()
53 timeStamp_ = location.GetTimeStamp(); in Location()
54 timeSinceBoot_ = location.GetTimeSinceBoot(); in Location()
55 additions_ = location.GetAdditions(); in Location()
[all …]
/base/location/
DREADME.en.md14 …ta from a workout. All these activities are so much associated with the location services on mobil…
16 …the location awareness capability offered by OpenHarmony, mobile devices will be able to obtain re…
18 Your application can call location-specific APIs to obtain the location information of a mobile dev…
22location of a mobile device with its coordinates, and uses location technologies such as Global Na…
26 …A coordinate describes a location on the earth using the longitude and latitude in reference to th…
30location algorithm offered by the device chip to compute the location information provided by the …
34 …Base station positioning estimates the current location of a mobile device based on the location o…
38location of a mobile device based on the locations of WLANs and Bluetooth devices that can be disc…
49 /base/location # Source code directory structure:
54 ├── services # Directory of SA codes for location services
[all …]
/base/location/services/location_locator/locator/source/
Dreport_manager.cpp42 bool ReportManager::OnReportLocation(const std::unique_ptr<Location>& location, std::string ability… in OnReportLocation() argument
49 fusionController->FuseResult(abilityName, location); in OnReportLocation()
50 SetLastLocation(location); in OnReportLocation()
69 if (!ProcessRequestForReport(request, deadRequests, location)) { in OnReportLocation()
90 …_ptr<std::list<std::shared_ptr<Request>>>& deadRequests, const std::unique_ptr<Location>& location) in ProcessRequestForReport() argument
97 request->GetTokenId(), request->GetFirstTokenId(), location); in ProcessRequestForReport()
116 const std::unique_ptr<Location>& location) in GetPermittedLocation() argument
118 if (location == nullptr) { in GetPermittedLocation()
125 std::unique_ptr<Location> finalLocation = std::make_unique<Location>(*location); in GetPermittedLocation()
129 finalLocation = ApproximatelyLocation(location); in GetPermittedLocation()
[all …]
Drequest.cpp137 void Request::SetLastLocation(const std::unique_ptr<Location>& location) in SetLastLocation() argument
142 this->lastLocation_->SetLatitude(location->GetLatitude()); in SetLastLocation()
143 this->lastLocation_->SetLongitude(location->GetLongitude()); in SetLastLocation()
144 this->lastLocation_->SetAltitude(location->GetAltitude()); in SetLastLocation()
145 this->lastLocation_->SetAccuracy(location->GetAccuracy()); in SetLastLocation()
146 this->lastLocation_->SetSpeed(location->GetSpeed()); in SetLastLocation()
147 this->lastLocation_->SetDirection(location->GetDirection()); in SetLastLocation()
148 this->lastLocation_->SetTimeStamp(location->GetTimeStamp()); in SetLastLocation()
149 this->lastLocation_->SetTimeSinceBoot(location->GetTimeSinceBoot()); in SetLastLocation()
/base/location/test/location_locator/source/
Dreport_manager_test.cpp78 std::unique_ptr<Location> location = std::make_unique<Location>(); variable
103 std::unique_ptr<Location> location = std::make_unique<Location>(); variable
119 location->ReadFromParcel(parcel);
120 EXPECT_EQ(true, reportManager_->ResultCheck(location, request));
122 EXPECT_EQ(false, reportManager_->ResultCheck(location, nullptr)); // no request
131 EXPECT_EQ(true, reportManager_->ResultCheck(location, request)); // no last location
133 std::unique_ptr<Location> lastLocation1 = std::make_unique<Location>(*location);
136 EXPECT_EQ(true, reportManager_->ResultCheck(location, request)); // no need to check
138 std::unique_ptr<Location> lastLocation2 = std::make_unique<Location>(*location);
140 EXPECT_EQ(false, reportManager_->ResultCheck(location, request)); // time interval check failed
[all …]
Dlocation_approximately_permission_test.cpp83 std::unique_ptr<Location> location = std::make_unique<Location>(); variable
84 location->ReadFromParcel(parcel);
85 auto newLocation = reportManager_->GetPermittedLocation(0, tokenId_, 0, location);
110 std::unique_ptr<Location> location = std::make_unique<Location>(); variable
111 location->ReadFromParcel(parcel);
112 auto newLocation = reportManager_->GetPermittedLocation(0, tokenId_, 0, location);
/base/location/services/location_locator/locator/include/
Dreport_manager.h34 bool OnReportLocation(const std::unique_ptr<Location>& location, std::string abilityName);
35 …bool ResultCheck(const std::unique_ptr<Location>& location, const std::shared_ptr<Request>& reques…
36 void SetLastLocation(const std::unique_ptr<Location>& location);
39 const std::unique_ptr<Location>& location);
45 std::unique_ptr<Location> ApproximatelyLocation(const std::unique_ptr<Location>& location);
47 …ptr<std::list<std::shared_ptr<Request>>>& deadRequests, const std::unique_ptr<Location>& location);
Dsubability_common.h38 const std::vector<std::shared_ptr<Location>> &location) = 0;
53 …SetMockedLocations(const int timeInterval, const std::vector<std::shared_ptr<Location>> &location);
59 …oid ReportLocationInfo(const std::string& systemAbility, const std::shared_ptr<Location> location);
64 void CacheLocationMock(const std::vector<std::shared_ptr<Location>> &location);
/base/location/services/location_gnss/gnss/source/
Dgnss_event_callback.cpp28 int32_t GnssEventCallback::ReportLocation(const LocationInfo& location) in ReportLocation() argument
37 locationNew->SetLatitude(location.latitude); in ReportLocation()
38 locationNew->SetLongitude(location.longitude); in ReportLocation()
39 locationNew->SetAltitude(location.altitude); in ReportLocation()
40 locationNew->SetAccuracy(location.accuracy); in ReportLocation()
41 locationNew->SetSpeed(location.speed); in ReportLocation()
42 locationNew->SetDirection(location.direction); in ReportLocation()
43 locationNew->SetTimeStamp(location.timeStamp); in ReportLocation()
44 locationNew->SetTimeSinceBoot(location.timeSinceBoot); in ReportLocation()
/base/location/services/location_network/network/source/
Dnetwork_callback_host.cpp35 std::unique_ptr<Location> location = Location::Unmarshalling(data); in OnRemoteRequest() local
36 OnLocationReport(location); in OnRemoteRequest()
47 void NetworkCallbackHost::OnLocationReport(const std::unique_ptr<Location>& location) in OnLocationReport() argument
50 std::shared_ptr<Location> locationNew = std::make_shared<Location>(*location); in OnLocationReport()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_user_data_encode.cpp56 uint16_t location = buffer.GetIndex(); in EncodeGsmHeadPdu() local
84 if (!buffer.InsertByte((value / HEX_07), location)) { in EncodeGsmHeadPdu()
88 if (!buffer.InsertByte(static_cast<uint8_t>(udhl), location + 1)) { in EncodeGsmHeadPdu()
93 if (!buffer.InsertByte(userData->length, location)) { in EncodeGsmHeadPdu()
129 uint16_t location = buffer.GetIndex(); in Encode8bitHeadPdu() local
148 if (!buffer.InsertByte(static_cast<uint8_t>(udhl + 1 + userData->length), location)) { in Encode8bitHeadPdu()
152 if (!buffer.InsertByte(static_cast<uint8_t>(udhl), location + 1)) { in Encode8bitHeadPdu()
157 if (!buffer.InsertByte(userData->length, location)) { in Encode8bitHeadPdu()
203 uint16_t location = buffer.GetIndex(); in EncodeUcs2HeadPdu() local
223 if (!buffer.InsertByte(static_cast<uint8_t>(udhl + 1 + userData->length), location)) { in EncodeUcs2HeadPdu()
[all …]
/base/web/webview/test/unittest/ohos_adapter/location_callback_adapter_test/
Dlocation_callback_adapter_test.cpp52 const std::unique_ptr<LocationInfo>& location) override in OnLocationReport() argument
95 … std::unique_ptr<OHOS::Location::Location> location = std::make_unique<OHOS::Location::Location>(); variable
96 EXPECT_NE(location, nullptr);
97 locationImpl->OnLocationReport(location);
123 … std::unique_ptr<OHOS::Location::Location> location = std::make_unique<OHOS::Location::Location>(); variable
124 EXPECT_NE(location, nullptr);
125 locationImpl->OnLocationReport(location);
/base/location/test/location_common/source/
Dlocation_common_test.cpp233 auto location = std::make_shared<Location>(); variable
249 location->ReadFromParcel(parcel);
250 EXPECT_EQ(VERIFY_LOCATION_LATITUDE, location->GetLatitude());
251 EXPECT_EQ(VERIFY_LOCATION_LONGITUDE, location->GetLongitude());
252 EXPECT_EQ(VERIFY_LOCATION_ALTITUDE, location->GetAltitude());
253 EXPECT_EQ(VERIFY_LOCATION_ACCURACY, location->GetAccuracy());
254 EXPECT_EQ(VERIFY_LOCATION_SPEED, location->GetSpeed());
255 EXPECT_EQ(VERIFY_LOCATION_DIRECTION, location->GetDirection());
256 EXPECT_EQ(VERIFY_LOCATION_TIME, location->GetTimeStamp());
257 EXPECT_EQ(VERIFY_LOCATION_TIMESINCEBOOT, location->GetTimeSinceBoot());
[all …]
/base/location/test/fuzztest/locator/reportmanager_fuzzer/
Dreportmanager_fuzzer.cpp37 std::unique_ptr<OHOS::Location::Location> location = in ReportManagerFuzzerTest() local
48 reportManager->ResultCheck(location, request); in ReportManagerFuzzerTest()
49 reportManager->SetLastLocation(location); in ReportManagerFuzzerTest()
54 reportManager->GetPermittedLocation(uid, tokenId, firstTokenId, location); in ReportManagerFuzzerTest()
/base/update/sys_installer/frameworks/installer_manager/include/
Dinstaller_manager_helper.h32 const std::string &location, const std::string &cfgDir) = 0;
33 virtual int32_t StartDeleteParaZip(const std::string &location, const std::string &cfgDir) = 0;
46 const std::string &location, const std::string &cfgDir);
47 virtual int32_t StartDeleteParaZip(const std::string &location, const std::string &cfgDir);
/base/location/services/location_geocode/geocode/
DBUILD.gn14 import("//base/location/config.gni")
52 part_name = "location"
53 subsystem_name = "location"
57 part_name = "location"
58 subsystem_name = "location"
/base/location/services/location_passive/passive/
DBUILD.gn14 import("//base/location/config.gni")
50 part_name = "location"
51 subsystem_name = "location"
55 part_name = "location"
56 subsystem_name = "location"
/base/web/webview/ohos_adapter/location_adapter/src/
Dlocation_callback_adapter_impl.cpp41 std::unique_ptr<OHOS::Location::Location> location = in OnRemoteRequest() local
43 OnLocationReport(location); in OnRemoteRequest()
65 const std::unique_ptr<OHOS::Location::Location>& location) in OnLocationReport() argument
68 std::make_unique<OHOS::Location::Location>(*location); in OnLocationReport()
/base/update/sys_installer/frameworks/ipc_server/src/
Dsys_installer_server.cpp71 const std::string &location, const std::string &cfgDir) in StartUpdateParaZip() argument
74 return InstallerManager::GetInstance().StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZip()
77 int32_t SysInstallerServer::StartDeleteParaZip(const std::string &location, const std::string &cfgD… in StartDeleteParaZip() argument
80 return InstallerManager::GetInstance().StartDeleteParaZip(location, cfgDir); in StartDeleteParaZip()
/base/update/sys_installer/frameworks/installer_manager/src/
Dinstaller_manager.cpp79 const std::string &location, const std::string &cfgDir) in StartUpdateParaZip() argument
85 return helper_->StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZip()
88 int32_t InstallerManager::StartDeleteParaZip(const std::string &location, const std::string &cfgDir) in StartDeleteParaZip() argument
94 return helper_->StartDeleteParaZip(location, cfgDir); in StartDeleteParaZip()
/base/location/services/location_network/network/
DBUILD.gn14 import("//base/location/config.gni")
62 part_name = "location"
63 subsystem_name = "location"
67 part_name = "location"
68 subsystem_name = "location"
/base/location/frameworks/js/napi/
DBUILD.gn14 import("//base/location/config.gni")
52 part_name = "location"
53 subsystem_name = "location"
83 part_name = "location"
84 subsystem_name = "location"
124 part_name = "location"
125 subsystem_name = "location"
/base/location/services/location_gnss/gnss/
DBUILD.gn14 import("//base/location/config.gni")
80 part_name = "location"
81 subsystem_name = "location"
85 part_name = "location"
86 subsystem_name = "location"
/base/location/services/location_locator/callback/source/
Dlocator_callback_proxy.cpp32 void LocatorCallbackProxy::OnLocationReport(const std::unique_ptr<Location>& location) in OnLocationReport() argument
34 if (location == nullptr) { in OnLocationReport()
42 location->Marshalling(data); in OnLocationReport()
101 void LocatorCallbackStub::OnLocationReport(const std::unique_ptr<Location>& location) in OnLocationReport() argument
/base/location/test/fuzztest/locator/fusioncontroller_fuzzer/
Dfusioncontroller_fuzzer.cpp34 auto location = std::make_unique<OHOS::Location::Location>(); in FusionControllerFuzzerTest() local
35 fusionController->FuseResult(abilityName, location); in FusionControllerFuzzerTest()

1234567