/base/location/frameworks/location_common/common/source/ |
D | location.cpp | 45 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/ |
D | README.en.md | 14 …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… 22 …location 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… 30 …location 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… 38 …location 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/ |
D | report_manager.cpp | 42 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 …]
|
D | request.cpp | 137 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/ |
D | report_manager_test.cpp | 78 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 …]
|
D | location_approximately_permission_test.cpp | 83 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/ |
D | report_manager.h | 34 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);
|
D | subability_common.h | 38 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/ |
D | gnss_event_callback.cpp | 28 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/ |
D | network_callback_host.cpp | 35 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/ |
D | gsm_user_data_encode.cpp | 56 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/ |
D | location_callback_adapter_test.cpp | 52 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/ |
D | location_common_test.cpp | 233 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/ |
D | reportmanager_fuzzer.cpp | 37 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/ |
D | installer_manager_helper.h | 32 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/ |
D | BUILD.gn | 14 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/ |
D | BUILD.gn | 14 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/ |
D | location_callback_adapter_impl.cpp | 41 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/ |
D | sys_installer_server.cpp | 71 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/ |
D | installer_manager.cpp | 79 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/ |
D | BUILD.gn | 14 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/ |
D | BUILD.gn | 14 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/ |
D | BUILD.gn | 14 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/ |
D | locator_callback_proxy.cpp | 32 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/ |
D | fusioncontroller_fuzzer.cpp | 34 auto location = std::make_unique<OHOS::Location::Location>(); in FusionControllerFuzzerTest() local 35 fusionController->FuseResult(abilityName, location); in FusionControllerFuzzerTest()
|