/base/location/ |
D | bundle.json | 2 "name": "@ohos/location", 4 "description": "Location service, providing location and geocoding capabilities.", 13 "destPath": "base/location" 16 "name": "location", 17 "subsystem": "location", 19 "SystemCapability.Location.Location.Core", 20 "SystemCapability.Location.Location.Gnss", 21 "SystemCapability.Location.Location.Geofence", 22 "SystemCapability.Location.Location.Geocoder", 23 "SystemCapability.Location.Location.Lite" [all …]
|
D | README.en.md | 1 # Location<a name="EN-US_TOPIC_0000001080646118"></a> 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 awareness helps determine where a mobile device locates. The system identifies the locatio… 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… 41 **Figure 1** Location subsystem architecture<a name="fig4460722185514"></a> [all …]
|
/base/location/frameworks/location_common/common/source/ |
D | location.cpp | 16 #include "location.h" 23 namespace Location { namespace 27 Location::Location() in Location() function in OHOS::Location::Location 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() [all …]
|
D | request_config.cpp | 23 namespace Location { namespace 28 timeInterval_ = 1; // no time interval limit for reporting location in RequestConfig() 29 distanceInterval_ = 0.0; // no distance interval limit for reporting location in RequestConfig() 30 maxAccuracy_ = 0.0; // no accuracy limit for reporting location in RequestConfig() 31 fixNumber_ = 0; // no fix size limit for reporting location in RequestConfig() 38 timeInterval_ = 1; // no time interval limit for reporting location in RequestConfig() 39 distanceInterval_ = 0.0; // no distance interval limit for reporting location in RequestConfig() 40 maxAccuracy_ = 0.0; // no accuracy limit for reporting location in RequestConfig() 41 fixNumber_ = 0; // no fix size limit for reporting location in RequestConfig() 96 ", location priority : " + std::to_string(priority_) + in ToString() [all …]
|
/base/location/services/location_locator/locator/include/ |
D | report_manager.h | 24 #include "location.h" 28 namespace Location { 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); 37 std::unique_ptr<Location> GetLastLocation(); 38 … std::unique_ptr<Location> GetPermittedLocation(pid_t uid, uint32_t tokenId, uint32_t firstTokenId, 39 const std::unique_ptr<Location>& location); 44 Location lastLocation_; 45 std::unique_ptr<Location> ApproximatelyLocation(const std::unique_ptr<Location>& location); [all …]
|
D | subability_common.h | 25 #include "location.h" 30 namespace Location { 38 const std::vector<std::shared_ptr<Location>> &location) = 0; 53 …SetMockedLocations(const int timeInterval, const std::vector<std::shared_ptr<Location>> &location); 57 std::vector<std::shared_ptr<Location>> GetLocationMock(); 59 …oid ReportLocationInfo(const std::string& systemAbility, const std::shared_ptr<Location> location); 64 void CacheLocationMock(const std::vector<std::shared_ptr<Location>> &location); 76 std::vector<std::shared_ptr<Location>> mockLoc_; 79 } // namespace Location
|
/base/location/services/location_locator/locator/source/ |
D | report_manager.cpp | 28 namespace Location { namespace 42 bool ReportManager::OnReportLocation(const std::unique_ptr<Location>& location, std::string ability… in OnReportLocation() argument 44 LBSLOGI(REPORT_MANAGER, "receive location : %{public}s", abilityName.c_str()); in OnReportLocation() 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 96 std::unique_ptr<Location> finalLocation = GetPermittedLocation(request->GetUid(), in ProcessRequestForReport() 97 request->GetTokenId(), request->GetFirstTokenId(), location); in ProcessRequestForReport() 115 std::unique_ptr<Location> ReportManager::GetPermittedLocation(pid_t uid, uint32_t tokenId, uint32_t… in GetPermittedLocation() [all …]
|
/base/location/test/location_locator/source/ |
D | report_manager_test.cpp | 24 #include "location.h" 36 namespace Location { namespace 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)); 121 EXPECT_EQ(false, reportManager_->ResultCheck(nullptr, request)); // no location 122 EXPECT_EQ(false, reportManager_->ResultCheck(location, nullptr)); // no request 123 EXPECT_EQ(false, reportManager_->ResultCheck(nullptr, nullptr)); // no location & no request 131 EXPECT_EQ(true, reportManager_->ResultCheck(location, request)); // no last location [all …]
|
D | location_approximately_permission_test.cpp | 25 #include "location.h" 29 namespace Location { namespace 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); 118 } // namespace Location
|
/base/location/test/mock/src/ |
D | mock_service_registry.cpp | 27 LBSLOGI(Location::LOCATOR, "%{public}s return instance", __func__); in GetInstance() 34 LBSLOGI(Location::LOCATOR, "%{public}s return nullptr", __func__); in GetSystemAbilityManager() 40 LBSLOGI(Location::LOCATOR, "%{public}s return nullptr", __func__); in GetSystemAbility() 47 LBSLOGI(Location::LOCATOR, "%{public}s return nullptr", __func__); in GetSystemAbility() 53 LBSLOGI(Location::LOCATOR, "%{public}s return nullptr", __func__); in CheckSystemAbilityWrapper() 59 LBSLOGI(Location::LOCATOR, "%{public}s return nullptr", __func__); in CheckSystemAbility() 65 LBSLOGI(Location::LOCATOR, "%{public}s return nullptr", __func__); in CheckSystemAbility() 71 LBSLOGI(Location::LOCATOR, "%{public}s return nullptr", __func__); in CheckSystemAbility() 78 LBSLOGI(Location::LOCATOR, "%{public}s return ERR_OK", __func__); in AddOnDemandSystemAbilityInfo() 84 LBSLOGI(Location::LOCATOR, "%{public}s return ERR_OK", __func__); in RemoveSystemAbilityWrapper() [all …]
|
/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 42 OHOS::Location::Location::Unmarshalling(data); in OnRemoteRequest() 43 OnLocationReport(location); in OnRemoteRequest() 65 const std::unique_ptr<OHOS::Location::Location>& location) in OnLocationReport() argument 67 std::unique_ptr<OHOS::Location::Location> tempLocation = in OnLocationReport() 68 std::make_unique<OHOS::Location::Location>(*location); in OnLocationReport()
|
D | location_proxy_adapter_impl.cpp | 26 using namespace OHOS::Location; 38 ret = OHOS::Location::SCENE_UNSET; in ConvertScenario() 41 ret = OHOS::Location::SCENE_NAVIGATION; in ConvertScenario() 44 ret = OHOS::Location::SCENE_TRAJECTORY_TRACKING; in ConvertScenario() 47 ret = OHOS::Location::SCENE_CAR_HAILING; in ConvertScenario() 50 ret = OHOS::Location::SCENE_DAILY_LIFE_SERVICE; in ConvertScenario() 53 ret = OHOS::Location::SCENE_NO_POWER; in ConvertScenario() 66 ret = OHOS::Location::PRIORITY_UNSET; in ConvertPriority() 69 ret = OHOS::Location::PRIORITY_ACCURACY; in ConvertPriority() 72 ret = OHOS::Location::PRIORITY_LOW_POWER; in ConvertPriority() [all …]
|
/base/location/services/location_network/network/source/ |
D | network_callback_host.cpp | 24 namespace Location { namespace 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() 63 } // namespace Location
|
/base/web/webview/ohos_adapter/location_adapter/include/ |
D | location_proxy_adapter_impl.h | 22 #include "location.h" 39 std::unique_ptr<OHOS::Location::RequestConfig>& GetConfig(); 41 std::unique_ptr<OHOS::Location::RequestConfig> config_; 47 explicit LocationInfoImpl(std::unique_ptr<OHOS::Location::Location>& location); 59 std::unique_ptr<OHOS::Location::Location>& GetLocation(); 61 std::unique_ptr<OHOS::Location::Location> location_; 65 std::map<LocationCallbackAdapter*, sptr<OHOS::Location::ILocatorCallback>>; 69 std::unique_ptr<OHOS::Location::RequestConfig>& requestConfig, 70 OHOS::sptr<OHOS::Location::ILocatorCallback>& callback); 72 OHOS::sptr<OHOS::Location::ILocatorCallback>& callback);
|
/base/location/services/location_gnss/gnss/include/ |
D | gnss_event_callback.h | 23 namespace Location { 24 using HDI::Location::Gnss::V1_0::IGnssCallback; 25 using HDI::Location::Gnss::V1_0::LocationInfo; 26 using HDI::Location::Gnss::V1_0::GnssWorkingStatus; 27 using HDI::Location::Gnss::V1_0::GnssCapabilities; 28 using HDI::Location::Gnss::V1_0::SatelliteStatusInfo; 29 using HDI::Location::Gnss::V1_0::GnssRefInfoType; 34 int32_t ReportLocation(const LocationInfo& location) override; 43 } // namespace Location
|
D | gnss_ability.h | 40 namespace Location { 47 using HDI::Location::Gnss::V1_0::IGnssInterface; 48 using HDI::Location::Gnss::V1_0::IGnssCallback; 49 using HDI::Location::Gnss::V1_0::GNSS_START_TYPE_NORMAL; 50 using HDI::Location::Gnss::V1_0::GNSS_STATUS_NONE; 51 using HDI::Location::Gnss::V1_0::GNSS_STATUS_SESSION_BEGIN; 52 using HDI::Location::Gnss::V1_0::GNSS_STATUS_SESSION_END; 53 using HDI::Location::Gnss::V1_0::GNSS_STATUS_ENGINE_ON; 54 using HDI::Location::Gnss::V1_0::GNSS_STATUS_ENGINE_OFF; 56 using HDI::Location::Agnss::V1_0::IAGnssInterface; [all …]
|
D | agnss_event_callback.h | 26 namespace Location { 27 using HDI::Location::Agnss::V1_0::IAGnssCallback; 28 using HDI::Location::Agnss::V1_0::AGnssDataLinkRequest; 29 using HDI::Location::Agnss::V1_0::SubscriberSetId; 30 using HDI::Location::Agnss::V1_0::SubscriberSetIdType; 31 using HDI::Location::Agnss::V1_0::AGnssRefInfo; 32 using HDI::Location::Agnss::V1_0::AGnssUserPlaneProtocol; 47 } // namespace Location
|
/base/print/print_fwk/etc/init/ |
D | cups-files.conf | 32 # Location of the file logging all access to the scheduler; may be the name 37 # Location of cache files used by the scheduler... 40 # Location of data files used by the scheduler... 43 # Location of the static web content served by the scheduler... 46 # Location of the file logging all messages produced by the scheduler and any 52 # Location of the file logging all pages printed by the scheduler and any 58 # Location of the file listing all of the local printers... 66 # Location of all spool files... 69 # Location of helper programs... 75 # Location of other configuration files... [all …]
|
/base/location/services/location_gnss/gnss/source/ |
D | gnss_event_callback.cpp | 25 namespace Location { namespace 28 int32_t GnssEventCallback::ReportLocation(const LocationInfo& location) in ReportLocation() argument 36 std::shared_ptr<Location> locationNew = std::make_shared<Location>(); in ReportLocation() 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() [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/fuzztest/locator/reportmanager_fuzzer/ |
D | reportmanager_fuzzer.cpp | 19 #include "location.h" 25 using namespace OHOS::Location; 37 std::unique_ptr<OHOS::Location::Location> location = in ReportManagerFuzzerTest() local 38 std::make_unique<OHOS::Location::Location>(); in ReportManagerFuzzerTest() 48 reportManager->ResultCheck(location, request); in ReportManagerFuzzerTest() 49 reportManager->SetLastLocation(location); in ReportManagerFuzzerTest() 54 reportManager->GetPermittedLocation(uid, tokenId, firstTokenId, location); in ReportManagerFuzzerTest()
|
/base/location/test/location_locator/mock/src/ |
D | mock_common_event_manager.cpp | 22 return Location::MockCommonEventManager::GetInstance().PublishCommonEvent(data); in PublishCommonEvent() 28 return Location::MockCommonEventManager::GetInstance().PublishCommonEvent(data, publishInfo); in PublishCommonEvent() 34 …return Location::MockCommonEventManager::GetInstance().PublishCommonEvent(data, publishInfo, subsc… in PublishCommonEvent() 40 …return Location::MockCommonEventManager::GetInstance().PublishCommonEvent(data, publishInfo, subsc… in PublishCommonEvent() 45 return Location::MockCommonEventManager::GetInstance().SubscribeCommonEvent(subscriber); in SubscribeCommonEvent() 50 return Location::MockCommonEventManager::GetInstance().UnSubscribeCommonEvent(subscriber); in UnSubscribeCommonEvent() 55 return Location::MockCommonEventManager::GetInstance().GetStickyCommonEvent(event, data); in GetStickyCommonEvent() 59 namespace Location { namespace 65 } // namespace Location
|
/base/location/services/location_locator/callback/include/ |
D | locator_callback_proxy.h | 27 #include "location.h" 30 namespace Location { 35 void OnLocationReport(const std::unique_ptr<Location>& location) override; 46 void OnLocationReport(const std::unique_ptr<Location>& location) override; 50 } // namespace Location
|
/base/location/interfaces/inner_api/include/ |
D | i_locator_callback.h | 21 #include "location.h" 24 namespace Location { 32 DECLARE_INTERFACE_DESCRIPTOR(u"location.ILocatorCallback"); 33 virtual void OnLocationReport(const std::unique_ptr<Location>& location) = 0; 37 } // namespace Location
|
D | location.h | 23 namespace Location { 24 class Location : public Parcelable { 26 Location(); 27 explicit Location(Location &location); 28 ~Location() override = default; 172 static std::unique_ptr<Location> Unmarshalling(Parcel& parcel); 173 static std::shared_ptr<Location> UnmarshallingShared(Parcel& parcel); 190 } // namespace Location
|