Home
last modified time | relevance | path

Searched refs:Location (Results 1 - 25 of 429) sorted by relevance

12345678910>>...18

/base/location/frameworks/cj/source/
H A Dgeolocationmanager_impl.cpp38 std::unique_ptr<Location::CachedGnssLocationsRequest> cachedRequest =
39 std::make_unique<Location::CachedGnssLocationsRequest>();
41 auto g_locatorProxy = Location::Locator::GetInstance();
42 auto g_geofenceClient = Location::GeofenceManager::GetInstance();
56 bool CjIsRequestConfigValid(const std::unique_ptr<Location::RequestConfig>& config) in CjIsRequestConfigValid()
61 if ((config->GetScenario() > Location::SCENE_NO_POWER || config->GetScenario() < Location::SCENE_UNSET) && in CjIsRequestConfigValid()
62 (config->GetScenario() > Location::LOCATION_SCENE_DAILY_LIFE_SERVICE || in CjIsRequestConfigValid()
63 config->GetScenario() < Location::LOCATION_SCENE_NAVIGATION) && in CjIsRequestConfigValid()
64 (config->GetScenario() > Location in CjIsRequestConfigValid()
[all...]
H A Dlocator_callback.cpp42 callback_ = [ lambda = CJLambda::Create(cFunc)](const std::unique_ptr<Location::Location>& location) -> in LocatorCallback()
48 latch_ = new Location::CountDownLatch(); in InitLatch()
61 LBSLOGE(Location::LOCATOR_CALLBACK, "invalid token."); in OnRemoteRequest()
66 case Location::ILocatorCallback::RECEIVE_LOCATION_INFO_EVENT: { in OnRemoteRequest()
67 std::unique_ptr<Location::Location> location = Location::Location::Unmarshalling(data); in OnRemoteRequest()
69 if (location->GetLocationSourceType() == Location in OnRemoteRequest()
[all...]
H A Dcached_locations_callback.cpp33 callback_ = [ lambda = CJLambda::Create(cFunc)](const std::vector<std::unique_ptr<Location::Location>>& locations) in CachedLocationsCallback()
44 LBSLOGD(Location::CACHED_LOCATIONS_CALLBACK, "CachedLocationsCallback::OnRemoteRequest!"); in OnRemoteRequest()
46 LBSLOGE(Location::CACHED_LOCATIONS_CALLBACK, "invalid token."); in OnRemoteRequest()
50 LBSLOGD(Location::CACHED_LOCATIONS_CALLBACK, "Failed to `%{public}s`,Remote service is died!", __func__); in OnRemoteRequest()
55 case Location::ICachedLocationsCallback::RECEIVE_CACHED_LOCATIONS_EVENT: { in OnRemoteRequest()
57 if (size > 0 && size < Location::MAXIMUM_CACHE_LOCATIONS) { in OnRemoteRequest()
58 std::vector<std::unique_ptr<Location::Location>> locations(size); in OnRemoteRequest()
60 locations.push_back(Location in OnRemoteRequest()
[all...]
H A Dgnss_status_callback.cpp32 callback_ = [ lambda = CJLambda::Create(cFunc)](const std::unique_ptr<Location::SatelliteStatus>& statusInfo) -> in GnssStatusCallback()
43 LBSLOGD(Location::GNSS_STATUS_CALLBACK, "GnssStatusCallback::OnRemoteRequest!"); in OnRemoteRequest()
45 LBSLOGE(Location::GNSS_STATUS_CALLBACK, "invalid token."); in OnRemoteRequest()
49 LBSLOGD(Location::GNSS_STATUS_CALLBACK, "Failed to `%{public}s`,Remote service is died!", __func__); in OnRemoteRequest()
54 case Location::IGnssStatusCallback::RECEIVE_STATUS_INFO_EVENT: { in OnRemoteRequest()
55 std::unique_ptr<Location::SatelliteStatus> statusInfo = Location::SatelliteStatus::Unmarshalling(data); in OnRemoteRequest()
72 void GnssStatusCallback::OnStatusChange(const std::unique_ptr<Location::SatelliteStatus>& statusInfo) in OnStatusChange()
74 LBSLOGD(Location::GNSS_STATUS_CALLBACK, "GnssStatusCallback::OnStatusChange"); in OnStatusChange()
H A Dcountry_code_callback.cpp30 callback_ = [ lambda = CJLambda::Create(cFunc)](const std::shared_ptr<Location::CountryCode>& country) -> in CountryCodeCallback()
41 LBSLOGD(Location::COUNTRY_CODE_CALLBACK, "CountryCodeCallback::OnRemoteRequest!"); in OnRemoteRequest()
43 LBSLOGE(Location::COUNTRY_CODE_CALLBACK, "invalid token."); in OnRemoteRequest()
48 case Location::ICountryCodeCallback::COUNTRY_CODE_CHANGE_EVENT: { in OnRemoteRequest()
49 auto countryCodePtr = Location::CountryCode::Unmarshalling(data); in OnRemoteRequest()
61 void CountryCodeCallback::OnCountryCodeChange(const std::shared_ptr<Location::CountryCode>& country) in OnCountryCodeChange()
63 LBSLOGD(Location::COUNTRY_CODE_CALLBACK, "CountryCodeCallback::OnCountryCodeChange"); in OnCountryCodeChange()
/base/location/services/location_locator/locator/include/
H A Dfusion_controller.h26 namespace Location { namespace
30 std::unique_ptr<Location> chooseBestLocation(const std::unique_ptr<Location>& gnssLocation,
31 const std::unique_ptr<Location>& networkLocation);
32 std::unique_ptr<Location> GetFuseLocation(
33 const std::unique_ptr<Location>& location, const sptr<Location>& lastFuseLocation);
37 bool CheckIfLastIndoorLocationValid(const std::unique_ptr<Location>& location,
38 const std::unique_ptr<Location>& lastFuseLocation);
39 bool CheckIfLastGnssLocationValid(const std::unique_ptr<Location>
[all...]
H A Dreport_manager.h30 namespace Location { namespace
36 bool OnReportLocation(const std::unique_ptr<Location>& location, std::string abilityName);
37 bool ResultCheck(const std::unique_ptr<Location>& location, const std::shared_ptr<Request>& request);
38 void UpdateCacheLocation(const std::unique_ptr<Location>& location, std::string abilityName);
39 std::unique_ptr<Location> GetLastLocation();
40 std::unique_ptr<Location> GetCacheLocation(const std::shared_ptr<Request>& request);
41 std::unique_ptr<Location> GetPermittedLocation(const std::shared_ptr<Request>& request,
42 const std::unique_ptr<Location>& location);
46 std::unique_ptr<Location>& location);
53 std::map<int, std::shared_ptr<Location>> lastLocationsMap
[all...]
/base/location/services/location_locator/locator/source/
H A Dfusion_controller.cpp27 namespace Location { namespace
64 std::unique_ptr<Location> FusionController::chooseBestLocation(const std::unique_ptr<Location>& location, in chooseBestLocation()
65 const std::unique_ptr<Location>& lastFuseLocation) in chooseBestLocation()
71 return std::make_unique<Location>(*location); in chooseBestLocation()
74 if (CheckIfLastGnssLocationValid(location, std::make_unique<Location>(*lastFuseLocation)) && in chooseBestLocation()
76 return std::make_unique<Location>(*lastFuseLocation); in chooseBestLocation()
78 return std::make_unique<Location>(*location); in chooseBestLocation()
82 return std::make_unique<Location>(*location); in chooseBestLocation()
84 if (CheckIfLastIndoorLocationValid(location, std::make_unique<Location>(*lastFuseLocatio in chooseBestLocation()
[all...]
H A Dreport_manager.cpp33 namespace Location { namespace
56 bool ReportManager::OnReportLocation(const std::unique_ptr<Location>& location, std::string abilityName) in OnReportLocation()
101 std::unique_ptr<Location>& location) in UpdateLocationByRequest()
115 const std::unique_ptr<Location>& location, std::string abilityName) in ProcessRequestForReport()
121 std::unique_ptr<Location> fuseLocation; in ProcessRequestForReport()
122 std::unique_ptr<Location> finalLocation; in ProcessRequestForReport()
169 std::unique_ptr<Location> ReportManager::ExecuteReportProcess(std::shared_ptr<Request>& request, in ExecuteReportProcess()
170 std::unique_ptr<Location>& location, std::string abilityName) in ExecuteReportProcess()
182 return std::make_unique<Location>(reportStruct.location); in ExecuteReportProcess()
185 std::unique_ptr<Location> ReportManage
[all...]
/base/location/test/mock/src/
H A Dmock_service_registry.cpp27 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 in RemoveSystemAbilityWrapper()
[all...]
/base/location/frameworks/cj/include/
H A Dlocator_callback.h30 class LocatorCallback : public IRemoteStub<Location::ILocatorCallback> {
38 void OnLocationReport(const std::unique_ptr<Location::Location>& location) override;
68 inline std::shared_ptr<Location::Location> GetSingleLocation() in GetSingleLocation()
79 bool NeedSetSingleLocation(const std::unique_ptr<Location::Location>& location);
81 void SetSingleLocation(const std::unique_ptr<Location::Location>& location);
85 std::function<void(const std::unique_ptr<Location
[all...]
/base/location/frameworks/native/location_ndk/source/
H A Dlocator_c_impl.cpp37 std::vector<OHOS::sptr<OHOS::Location::LocationInfoCallbackHost>> g_locationCallbackVector;
38 auto g_locatorProxy = OHOS::Location::Locator::GetInstance();
47 if (errCode != OHOS::Location::ERRCODE_SUCCESS) { in OH_Location_IsLocatingEnabled()
56 LBSLOGI(OHOS::Location::LOCATION_CAPI, "OH_Location_StartLocating "); in OH_Location_StartLocating()
61 LBSLOGE(OHOS::Location::LOCATION_CAPI, "%{public}s callback has registered.", __func__); in OH_Location_StartLocating()
64 auto locatorCallbackHost = OHOS::sptr<OHOS::Location::LocationInfoCallbackHost>( in OH_Location_StartLocating()
65 new (std::nothrow) OHOS::Location::LocationInfoCallbackHost()); in OH_Location_StartLocating()
67 auto locatorCallback = OHOS::sptr<OHOS::Location::ILocatorCallback>(locatorCallbackHost); in OH_Location_StartLocating()
68 auto requestConfigV9 = std::make_unique<OHOS::Location::RequestConfig>(); in OH_Location_StartLocating()
69 if (requestConfig->scenario_ == OHOS::Location in OH_Location_StartLocating()
[all...]
/base/web/webview/ohos_adapter/location_adapter/src/
H A Dlocation_callback_adapter_impl.cpp41 std::unique_ptr<OHOS::Location::Location> location = in OnRemoteRequest()
42 OHOS::Location::Location::Unmarshalling(data); in OnRemoteRequest()
65 const std::unique_ptr<OHOS::Location::Location>& location) in OnLocationReport()
67 std::unique_ptr<OHOS::Location::Location> tempLocation = in OnLocationReport()
68 std::make_unique<OHOS::Location::Location>(*locatio in OnLocationReport()
[all...]
H A Dlocation_proxy_adapter_impl.cpp26 using namespace OHOS::Location;
40 ret = OHOS::Location::SCENE_UNSET; in ConvertScenario()
43 ret = OHOS::Location::SCENE_NAVIGATION; in ConvertScenario()
46 ret = OHOS::Location::SCENE_TRAJECTORY_TRACKING; in ConvertScenario()
49 ret = OHOS::Location::SCENE_CAR_HAILING; in ConvertScenario()
52 ret = OHOS::Location::SCENE_DAILY_LIFE_SERVICE; in ConvertScenario()
55 ret = OHOS::Location::SCENE_NO_POWER; in ConvertScenario()
68 ret = OHOS::Location::PRIORITY_UNSET; in ConvertPriority()
71 ret = OHOS::Location::PRIORITY_ACCURACY; in ConvertPriority()
74 ret = OHOS::Location in ConvertPriority()
[all...]
/base/location/services/location_gnss/gnss/include/
H A Dgeofence_event_callback.h24 namespace Location { namespace
25 using HDI::Location::Geofence::V2_0::IGeofenceCallback;
26 using HDI::Location::Geofence::V2_0::GeofenceEvent;
27 using HDI::Location::Geofence::V2_0::GeofenceOperateType;
28 using HDI::Location::Geofence::V2_0::GeofenceOperateResult;
29 using HDI::Location::Geofence::V2_0::TYPE_DELETE;
30 using HDI::Location::Geofence::V2_0::GEOFENCE_OPERATION_SUCCESS;
31 using HDI::Location::Geofence::V2_0::TYPE_ADD;
38 const HDI::Location::Geofence::V2_0::LocationInfo& location, GeofenceEvent event, int64_t timestamp) override;
42 } // namespace Location
[all...]
H A Dagnss_ni_manager.h32 namespace Location { namespace
33 using HDI::Location::Gnss::V2_0::IGnssInterface;
34 using HDI::Location::Gnss::V2_0::GnssNiNotificationRequest;
35 using HDI::Location::Gnss::V2_0::GnssNiRequestCategory;
36 using HDI::Location::Gnss::V2_0::GnssNiResponseCmd;
37 using HDI::Location::Gnss::V2_0::GNSS_NI_NOTIFICATION_REQUIRE_NOTIFY;
38 using HDI::Location::Gnss::V2_0::GNSS_NI_NOTIFICATION_REQUIRE_VERIFY;
39 using HDI::Location::Gnss::V2_0::GNSS_NI_NOTIFICATION_REQUIRE_PRIVACY_OVERRIDE;
40 using HDI::Location::Gnss::V2_0::GNSS_NI_RESPONSE_CMD_ACCEPT;
41 using HDI::Location
[all...]
H A Dagnss_event_callback.h28 namespace Location { namespace
29 using HDI::Location::Agnss::V2_0::IAGnssCallback;
30 using HDI::Location::Agnss::V2_0::AGnssDataLinkRequest;
31 using HDI::Location::Agnss::V2_0::SubscriberSetId;
32 using HDI::Location::Agnss::V2_0::SubscriberSetIdType;
33 using HDI::Location::Agnss::V2_0::AGnssRefInfo;
34 using HDI::Location::Agnss::V2_0::AGnssRefInfoType;
35 using HDI::Location::Agnss::V2_0::AGnssUserPlaneProtocol;
57 } // namespace Location
H A Dgnss_event_callback.h24 namespace Location { namespace
25 using HDI::Location::Gnss::V2_0::IGnssCallback;
26 using HDI::Location::Gnss::V2_0::LocationInfo;
27 using HDI::Location::Gnss::V2_0::GnssWorkingStatus;
28 using HDI::Location::Gnss::V2_0::GnssCapabilities;
29 using HDI::Location::Gnss::V2_0::SatelliteStatusInfo;
30 using HDI::Location::Gnss::V2_0::GnssRefInfoType;
31 using HDI::Location::Gnss::V2_0::GnssNiNotificationRequest;
54 } // namespace Location
/base/location/frameworks/base_module/source/
H A Dlocation.cpp23 namespace Location { namespace
27 Location::Location() in Location() function in OHOS::Location::Location
51 Location::Location(Location& location) in Location() function in OHOS::Location::Location
77 void Location::ReadFromParcel(Parcel& parcel) in ReadFromParcel()
102 void Location::VectorString16ToVectorString8(const std::vector<std::u16string>& additions) in VectorString16ToVectorString8()
117 std::shared_ptr<Location> Location
[all...]
/base/location/test/location_locator/source/
H A Dfusion_controller_test.cpp24 namespace Location { namespace
115 std::unique_ptr<Location> location = std::make_unique<Location>(); in HWTEST_F()
119 std::unique_ptr<Location> location_gnss = std::make_unique<Location>(); in HWTEST_F()
121 std::unique_ptr<Location> location_network = std::make_unique<Location>(); in HWTEST_F()
152 std::unique_ptr<Location> location_gnss = std::make_unique<Location>(); in HWTEST_F()
154 std::unique_ptr<Location> location_networ in HWTEST_F()
[all...]
/base/location/test/location_locator/mock/src/
H A Dmock_common_event_manager.cpp22 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, subscriber); in PublishCommonEvent()
40 return Location::MockCommonEventManager::GetInstance().PublishCommonEvent(data, publishInfo, subscriber, uid); 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/test/location_manager/mock/src/
H A Dmock_common_event_manager.cpp22 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, subscriber); in PublishCommonEvent()
40 return Location::MockCommonEventManager::GetInstance().PublishCommonEvent(data, publishInfo, subscriber, uid); 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/test/location_gnss/include/
H A Dgnss_interface_test.h26 namespace Location { namespace
27 using HDI::Location::Gnss::V2_0::IGnssInterface;
28 using HDI::Location::Gnss::V2_0::IGnssCallback;
29 using HDI::Location::Gnss::V2_0::GnssConfigPara;
30 using HDI::Location::Gnss::V2_0::GnssRefInfo;
43 int32_t StartGnss(HDI::Location::Gnss::V2_0::GnssStartType type) override;
45 int32_t StopGnss(HDI::Location::Gnss::V2_0::GnssStartType type) override;
58 HDI::Location::Gnss::V2_0::GnssNiResponseCmd userResponse) override;
63 const sptr<HDI::Location::Gnss::V2_0::IGnssMeasurementCallback> &callbackObj) override;
67 } // namespace Location
[all...]
/base/web/webview/ohos_adapter/location_adapter/include/
H A Dlocation_proxy_adapter_impl.h42 std::unique_ptr<OHOS::Location::RequestConfig>& GetConfig();
44 std::unique_ptr<OHOS::Location::RequestConfig> config_;
52 explicit LocationInfoImpl(std::unique_ptr<OHOS::Location::Location>& location);
66 std::unique_ptr<OHOS::Location::Location>& GetLocation();
68 std::unique_ptr<OHOS::Location::Location> location_;
74 std::map<int32_t, sptr<OHOS::Location::ILocatorCallback>>;
78 std::unique_ptr<OHOS::Location
[all...]
/base/location/services/location_network/network/source/
H A Dnetwork_callback_host.cpp28 namespace Location { namespace
39 std::unique_ptr<Location> location = Location::Unmarshalling(data); in OnRemoteRequest()
44 std::unique_ptr<Location> location = Location::Unmarshalling(data); in OnRemoteRequest()
63 void NetworkCallbackHost::OnLocationReport(const std::unique_ptr<Location>& location) in OnLocationReport()
75 std::shared_ptr<Location> locationNew = std::make_shared<Location>(*location); in OnLocationReport()
92 } // namespace Location

Completed in 7 milliseconds

12345678910>>...18