/base/location/frameworks/native/location_ndk/source/ |
H A D | locator_c_impl.cpp | 54 Location_ResultCode OH_Location_StartLocating(const Location_RequestConfig* requestConfig) in OH_Location_StartLocating() argument 57 if (requestConfig == nullptr) { in OH_Location_StartLocating() 60 if (GetLocationCallBack(requestConfig) != nullptr) { in OH_Location_StartLocating() 66 locatorCallbackHost->SetRequestConfig(requestConfig); in OH_Location_StartLocating() 69 if (requestConfig->scenario_ == OHOS::Location::SCENE_UNSET) { in OH_Location_StartLocating() 72 requestConfigV9->SetScenario(requestConfig->scenario_); in OH_Location_StartLocating() 74 requestConfigV9->SetTimeInterval(requestConfig->timeInterval_); in OH_Location_StartLocating() 78 RemoveLocationCallBack(requestConfig); in OH_Location_StartLocating() 84 Location_ResultCode OH_Location_StopLocating(const Location_RequestConfig* requestConfig) in OH_Location_StopLocating() argument 87 if (requestConfig in OH_Location_StopLocating() 149 OH_Location_DestroyRequestConfig(Location_RequestConfig* requestConfig) OH_Location_DestroyRequestConfig() argument 159 OH_LocationRequestConfig_SetUseScene(Location_RequestConfig* requestConfig, Location_UseScene useScene) OH_LocationRequestConfig_SetUseScene() argument 174 OH_LocationRequestConfig_SetPowerConsumptionScene(Location_RequestConfig* requestConfig, Location_PowerConsumptionScene powerConsumptionScene) OH_LocationRequestConfig_SetPowerConsumptionScene() argument 194 OH_LocationRequestConfig_SetInterval(Location_RequestConfig* requestConfig, int interval) OH_LocationRequestConfig_SetInterval() argument 210 OH_LocationRequestConfig_SetCallback(Location_RequestConfig* requestConfig, Location_InfoCallback callback, void* userData) OH_LocationRequestConfig_SetCallback() argument 229 RemoveLocationCallBack(const Location_RequestConfig* requestConfig) RemoveLocationCallBack() argument 251 GetLocationCallBack(const Location_RequestConfig* requestConfig) GetLocationCallBack() argument [all...] |
/base/location/frameworks/base_module/source/ |
H A D | request_config.cpp | 47 void RequestConfig::Set(RequestConfig& requestConfig) in Set() argument 49 scenario_ = requestConfig.GetScenario(); in Set() 50 priority_ = requestConfig.GetPriority(); in Set() 51 timeInterval_ = requestConfig.GetTimeInterval(); in Set() 52 distanceInterval_ = requestConfig.GetDistanceInterval(); in Set() 53 maxAccuracy_ = requestConfig.GetMaxAccuracy(); in Set() 54 fixNumber_ = requestConfig.GetFixNumber(); in Set() 55 timeOut_ = requestConfig.GetTimeOut(); in Set() 56 timestamp_ = requestConfig.GetTimeStamp(); in Set() 59 bool RequestConfig::IsSame(RequestConfig& requestConfig) in IsSame() argument 83 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); Unmarshalling() local [all...] |
/base/location/test/fuzztest/locator/locatorbackgroundproxy_fuzzer/ |
H A D | locatorbackgroundproxy_fuzzer.cpp | 41 std::unique_ptr<RequestConfig> requestConfig = in LocatorBackgroundProxyFuzzerTest() local 43 requestConfig->SetScenario(data[index++]); in LocatorBackgroundProxyFuzzerTest() 44 requestConfig->SetPriority(data[index++]); in LocatorBackgroundProxyFuzzerTest() 45 requestConfig->SetTimeInterval(data[index++]); in LocatorBackgroundProxyFuzzerTest() 46 requestConfig->SetDistanceInterval(data[index++]); in LocatorBackgroundProxyFuzzerTest() 47 requestConfig->SetMaxAccuracy(data[index++]); in LocatorBackgroundProxyFuzzerTest() 48 requestConfig->SetFixNumber(data[index++]); in LocatorBackgroundProxyFuzzerTest() 49 requestConfig->SetTimeOut(data[index++]); in LocatorBackgroundProxyFuzzerTest() 50 request->SetRequestConfig(*requestConfig); in LocatorBackgroundProxyFuzzerTest()
|
/base/location/test/location_locator/source/ |
H A D | report_manager_test.cpp | 130 auto requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 131 EXPECT_NE(nullptr, requestConfig); in HWTEST_F() 132 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in HWTEST_F() 133 requestConfig->SetMaxAccuracy(1000.0); in HWTEST_F() 134 requestConfig->SetFixNumber(1); in HWTEST_F() 135 request->SetRequestConfig(*requestConfig); in HWTEST_F() 149 requestConfig->SetDistanceInterval(1.0); in HWTEST_F() 150 request->SetRequestConfig(*requestConfig); in HWTEST_F() 156 requestConfig->SetDistanceInterval(0.0); in HWTEST_F() 157 requestConfig in HWTEST_F() 175 auto requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local 285 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local 405 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local 422 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local 457 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local 502 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local [all...] |
H A D | work_record_test.cpp | 83 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 84 requestConfig->SetTimeInterval(0); in HWTEST_F() 88 request->SetRequestConfig(*requestConfig); in HWTEST_F() 121 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 122 requestConfig->SetTimeInterval(1); in HWTEST_F() 126 request->SetRequestConfig(*requestConfig); in HWTEST_F() 154 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 155 requestConfig->SetTimeInterval(1); in HWTEST_F() 159 request->SetRequestConfig(*requestConfig); in HWTEST_F() 188 std::unique_ptr<RequestConfig> requestConfig in HWTEST_F() local 208 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local 240 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); HWTEST_F() local [all...] |
H A D | location_without_permission_test.cpp | 106 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 107 requestConfig->SetPriority(PRIORITY_ACCURACY); in HWTEST_F() 109 locatorImpl->StartLocating(requestConfig, callbackStub); in HWTEST_F() 205 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 206 requestConfig->SetPriority(PRIORITY_ACCURACY); in HWTEST_F() 209 EXPECT_EQ(ERRCODE_PERMISSION_DENIED, locatorImpl->StartLocatingV9(requestConfig, callbackStub)); in HWTEST_F()
|
H A D | locator_impl_test.cpp | 209 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 210 requestConfig->SetPriority(PRIORITY_ACCURACY); in HWTEST_F() 211 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->StartLocatingV9(requestConfig, callbackStub_)); // startLocating first in HWTEST_F() 451 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 452 requestConfig->SetPriority(PRIORITY_ACCURACY); in HWTEST_F() 453 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->StartLocatingV9(requestConfig, callbackStub_)); // startLocating first in HWTEST_F() 471 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 472 requestConfig->SetPriority(PRIORITY_ACCURACY); in HWTEST_F() 473 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->StartLocatingV9(requestConfig, callbackStub_)); // startLocating first in HWTEST_F() 520 std::unique_ptr<LocatingRequiredDataConfig> requestConfig in HWTEST_F() local [all...] |
/base/location/interfaces/c_api/include/ |
H A D | oh_location_type.h | 305 * @param requestConfig - Pointer to {@link Location_RequestConfig} instance.\n 309 void OH_Location_DestroyRequestConfig(Location_RequestConfig* requestConfig); 320 * @param requestConfig - Pointer to the {@link Location_RequestConfig} instance.\n 327 void OH_LocationRequestConfig_SetUseScene(Location_RequestConfig* requestConfig, 333 * @param requestConfig - Pointer to the {@link Location_RequestConfig} instance.\n 340 void OH_LocationRequestConfig_SetPowerConsumptionScene(Location_RequestConfig* requestConfig, 346 * @param requestConfig - Pointer to the {@link Location_RequestConfig} instance.\n 352 void OH_LocationRequestConfig_SetInterval(Location_RequestConfig* requestConfig, 358 * @param requestConfig - Pointer to the {@link Location_RequestConfig} instance.\n 366 void OH_LocationRequestConfig_SetCallback(Location_RequestConfig* requestConfig, [all...] |
H A D | oh_location.h | 60 * @param requestConfig - Pointer to the locating request parameters.\n 66 * {@link LOCATION_INVALID_PARAM} The input parameter requestConfig is a null pointer.\n 76 Location_ResultCode OH_Location_StartLocating(const Location_RequestConfig* requestConfig); 81 * @param requestConfig - Pointer to the locating request parameters.\n 83 * This parameter needs to be the same as the requestConfig pointer passed in\n 89 * 2.Different from the requestConfig pointer passed from {@link OH_Location_StartLocating}.\n 99 Location_ResultCode OH_Location_StopLocating(const Location_RequestConfig* requestConfig);
|
/base/location/frameworks/cj/source/ |
H A D | geolocationmanager_utils.cpp | 80 std::unique_ptr<Location::RequestConfig>& requestConfig) in CJCurrentLocationRequestToRequestConfig() 82 requestConfig->SetPriority(request.priority); in CJCurrentLocationRequestToRequestConfig() 83 requestConfig->SetScenario(request.scenario); in CJCurrentLocationRequestToRequestConfig() 84 requestConfig->SetMaxAccuracy(request.maxAccuracy); in CJCurrentLocationRequestToRequestConfig() 85 requestConfig->SetTimeOut(request.timeoutMs); in CJCurrentLocationRequestToRequestConfig() 89 std::unique_ptr<Location::RequestConfig>& requestConfig) in CJSingleLocationRequestRequestToRequestConfig() 91 requestConfig->SetPriority(request.locatingPriority); in CJSingleLocationRequestRequestToRequestConfig() 92 requestConfig->SetTimeOut(request.locatingTimeoutMs); in CJSingleLocationRequestRequestToRequestConfig() 217 std::unique_ptr<Location::RequestConfig>& requestConfig) in CJLocationRequestToRequestConfig() 219 requestConfig in CJLocationRequestToRequestConfig() 79 CJCurrentLocationRequestToRequestConfig(const CJCurrentLocationRequest& request, std::unique_ptr<Location::RequestConfig>& requestConfig) CJCurrentLocationRequestToRequestConfig() argument 88 CJSingleLocationRequestRequestToRequestConfig(const CJSingleLocationRequest& request, std::unique_ptr<Location::RequestConfig>& requestConfig) CJSingleLocationRequestRequestToRequestConfig() argument 216 CJLocationRequestToRequestConfig(CJLocationRequest& request, std::unique_ptr<Location::RequestConfig>& requestConfig) CJLocationRequestToRequestConfig() argument 230 CJContinuousLocationRequestToRequestConfig(CJContinuousLocationRequest request, std::unique_ptr<Location::RequestConfig>& requestConfig) CJContinuousLocationRequestToRequestConfig() argument 256 CJCachedGnssLocationsRequestToCachedLocationRequest(CJCachedGnssLocationsRequest& request, std::unique_ptr<Location::CachedGnssLocationsRequest>& requestConfig) CJCachedGnssLocationsRequestToCachedLocationRequest() argument [all...] |
H A D | geolocationmanager_impl.cpp | 185 auto requestConfig = std::make_unique<Location::RequestConfig>(); in GetCurrentLocation() local 186 requestConfig->SetPriority(Location::PRIORITY_FAST_FIRST_FIX); in GetCurrentLocation() 187 requestConfig->SetFixNumber(1); in GetCurrentLocation() 189 if (!CjIsRequestConfigValid(requestConfig)) { in GetCurrentLocation() 193 return GetCurrentLocation(requestConfig, errCode); in GetCurrentLocation() 198 auto requestConfig = std::make_unique<Location::RequestConfig>(); in GetCurrentLocationCurrent() local 199 CJCurrentLocationRequestToRequestConfig(request, requestConfig); in GetCurrentLocationCurrent() 200 return GetCurrentLocation(requestConfig, errCode); in GetCurrentLocationCurrent() 205 auto requestConfig = std::make_unique<Location::RequestConfig>(); in GetCurrentLocationSingle() local 206 CJSingleLocationRequestRequestToRequestConfig(request, requestConfig); in GetCurrentLocationSingle() 210 GetCurrentLocation(std::unique_ptr<Location::RequestConfig>& requestConfig, int32_t& errCode) GetCurrentLocation() argument 363 OnLocationChange(std::unique_ptr<OHOS::Location::RequestConfig>& requestConfig, int64_t callbackId) OnLocationChange() argument 390 auto requestConfig = std::make_unique<Location::RequestConfig>(); OnLocationRequest() local 397 auto requestConfig = std::make_unique<Location::RequestConfig>(); OnContinuousLocationRequest() local [all...] |
/base/web/webview/test/unittest/ohos_adapter/location_proxy_adapter_test/ |
H A D | location_proxy_adapter_test.cpp | 77 std::shared_ptr<LocationRequestConfig> requestConfig = in HWTEST_F() local 79 EXPECT_NE(requestConfig, nullptr); in HWTEST_F() 121 std::unique_ptr<OHOS::Location::RequestConfig>& requestConfig = requestConfigImpl->GetConfig(); in HWTEST_F() local 122 EXPECT_NE(requestConfig, nullptr); in HWTEST_F() 219 std::shared_ptr<LocationRequestConfig> requestConfig = std::make_shared<LocationRequestConfigImpl>(); in HWTEST_F() local 220 EXPECT_NE(requestConfig, nullptr); in HWTEST_F() 232 int32_t id = proxyAdapterImpl->StartLocating(requestConfig, nullptr); in HWTEST_F() 234 id = proxyAdapterImpl->StartLocating(requestConfig, callback); in HWTEST_F() 262 std::shared_ptr<LocationRequestConfig> requestConfig = std::make_shared<LocationRequestConfigImpl>(); in HWTEST_F() local 263 EXPECT_NE(requestConfig, nullpt in HWTEST_F() [all...] |
/base/web/webview/ohos_wrapper/src/ |
H A D | nweb_location_wrapper.cpp | 42 std::unique_ptr<RequestConfig>& requestConfig, in StartLocating() 45 if (!NWeb::g_locatorProxy || !requestConfig || !callback) { in StartLocating() 50 requestConfig, callback); in StartLocating() 41 StartLocating( std::unique_ptr<RequestConfig>& requestConfig, OHOS::sptr<ILocatorCallback>& callback) StartLocating() argument
|
/base/location/frameworks/native/location_ndk/include/ |
H A D | locator_c_impl.h | 50 void RemoveLocationCallBack(const Location_RequestConfig* requestConfig); 51 OHOS::sptr<OHOS::Location::LocationInfoCallbackHost> GetLocationCallBack(const Location_RequestConfig* requestConfig);
|
H A D | location_info_callback_host.h | 35 inline void SetRequestConfig(const Location_RequestConfig* requestConfig) in SetRequestConfig() argument 37 requestConfig_ = requestConfig; in SetRequestConfig()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_location_proxy_adapter_wrapper.cpp | 28 int32_t ArkLocationProxyAdapterWrapper::StartLocating(std::shared_ptr<OHOS::NWeb::LocationRequestConfig> requestConfig, in StartLocating() argument 32 std::static_pointer_cast<ArkLocationRequestConfigWrapper>(requestConfig); in StartLocating()
|
H A D | ark_location_proxy_adapter_wrapper.h | 28 int32_t StartLocating(std::shared_ptr<OHOS::NWeb::LocationRequestConfig> requestConfig,
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_location_proxy_adapter_impl.cpp | 30 ArkWebRefPtr<ArkLocationRequestConfig> requestConfig, ArkWebRefPtr<ArkLocationCallbackAdapter> callback) in StartLocating() 32 ArkLocationRequestConfigImpl* imp = static_cast<ArkLocationRequestConfigImpl*>(requestConfig.get()); in StartLocating() 29 StartLocating( ArkWebRefPtr<ArkLocationRequestConfig> requestConfig, ArkWebRefPtr<ArkLocationCallbackAdapter> callback) StartLocating() argument
|
H A D | ark_location_proxy_adapter_impl.h | 28 int32_t StartLocating(ArkWebRefPtr<ArkLocationRequestConfig> requestConfig,
|
/base/location/frameworks/cj/include/ |
H A D | geolocationmanager_utils.h | 188 std::unique_ptr<Location::RequestConfig>& requestConfig); 191 std::unique_ptr<Location::RequestConfig>& requestConfig); 200 std::unique_ptr<Location::RequestConfig>& requestConfig); 203 std::unique_ptr<Location::RequestConfig>& requestConfig); 208 std::unique_ptr<Location::CachedGnssLocationsRequest>& requestConfig);
|
/base/location/interfaces/inner_api/include/ |
H A D | request_config.h | 114 void Set(RequestConfig& requestConfig); 115 bool IsSame(RequestConfig& requestConfig);
|
/base/location/services/location_locator/locator/source/ |
H A D | request_manager.cpp | 180 auto requestConfig = request->GetRequestConfig(); in RestorRequest() local 181 if (requestConfig == nullptr || newConfig == nullptr) { in RestorRequest() 184 if (newConfig->IsSame(*requestConfig)) { in RestorRequest() 378 auto requestConfig = request->GetRequestConfig(); in ActiveLocatingStrategies() local 379 if (requestConfig == nullptr) { in ActiveLocatingStrategies() 382 int requestType = requestConfig->GetScenario(); in ActiveLocatingStrategies() 384 requestType = requestConfig->GetPriority(); in ActiveLocatingStrategies() 480 auto requestConfig = request->GetRequestConfig(); in AddRequestToWorkRecord() local 481 if (requestConfig == nullptr) { in AddRequestToWorkRecord() 605 auto requestConfig in UpdateRunningUids() local [all...] |
/base/location/frameworks/js/napi/source/ |
H A D | location_napi_system.cpp | 38 auto requestConfig = std::make_unique<RequestConfig>(); in GetLocationOnce() local 40 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in GetLocationOnce() 41 requestConfig->SetFixNumber(fixNumber); in GetLocationOnce() 56 g_locatorImpl->StartLocating(requestConfig, locatorCallback); in GetLocationOnce() 206 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in SubscribeSystemLocationChange() local 207 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in SubscribeSystemLocationChange() 208 requestConfig->SetFixNumber(fixNumber); in SubscribeSystemLocationChange() 209 g_locatorImpl->StartLocating(requestConfig, locatorCallback); in SubscribeSystemLocationChange()
|
/base/location/frameworks/native/locator_agent/source/ |
H A D | locator_agent.cpp | 232 auto requestConfig = std::make_unique<RequestConfig>(); in StartGnssLocating() local 233 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in StartGnssLocating() 234 requestConfig->SetScenario(SCENE_UNSET); in StartGnssLocating() 235 requestConfig->SetFixNumber(0); in StartGnssLocating() 240 requestConfig->Marshalling(data); in StartGnssLocating()
|
/base/location/test/location_manager/source/ |
H A D | request_manager_test.cpp | 52 auto requestConfig = std::make_unique<RequestConfig>(); in SetUp() local 53 EXPECT_NE(nullptr, requestConfig); in SetUp() 54 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in SetUp() 55 requestConfig->SetFixNumber(0); in SetUp() 56 request_->SetRequestConfig(*requestConfig); in SetUp() 97 std::unique_ptr<RequestConfig> requestConfig = in FillRequestField() local 99 request->SetRequestConfig(*requestConfig); in FillRequestField() 166 auto requestConfig = std::make_unique<RequestConfig>(); in HWTEST_F() local 167 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in HWTEST_F() 168 requestConfig in HWTEST_F() [all...] |