Home
last modified time | relevance | path

Searched refs:requestConfig (Results 1 – 25 of 36) sorted by relevance

12

/base/location/frameworks/location_common/common/source/
Drequest_config.cpp45 void RequestConfig::Set(RequestConfig& requestConfig) in Set() argument
47 scenario_ = requestConfig.GetScenario(); in Set()
48 priority_ = requestConfig.GetPriority(); in Set()
49 timeInterval_ = requestConfig.GetTimeInterval(); in Set()
50 distanceInterval_ = requestConfig.GetDistanceInterval(); in Set()
51 maxAccuracy_ = requestConfig.GetMaxAccuracy(); in Set()
52 fixNumber_ = requestConfig.GetFixNumber(); in Set()
55 bool RequestConfig::IsSame(RequestConfig& requestConfig) in IsSame() argument
57 if (scenario_ != requestConfig.GetScenario()) { in IsSame()
63 return priority_ == requestConfig.GetPriority(); in IsSame()
[all …]
/base/location/test/fuzztest/locator/locatorbackgroundproxy_fuzzer/
Dlocatorbackgroundproxy_fuzzer.cpp41 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/
Dreport_manager_test.cpp122 auto requestConfig = std::make_unique<RequestConfig>(); variable
123 EXPECT_NE(nullptr, requestConfig);
124 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX);
125 requestConfig->SetMaxAccuracy(1000.0);
126 requestConfig->SetFixNumber(1);
127 request->SetRequestConfig(*requestConfig);
279 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); variable
280 requestConfig->SetPriority(PRIORITY_ACCURACY);
281 requestConfig->SetFixNumber(0);
282 requestConfig->SetTimeInterval(1);
[all …]
Dlocator_background_proxy_test.cpp153 auto requestConfig = std::make_unique<RequestConfig>(); variable
154 EXPECT_NE(nullptr, requestConfig);
155 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX);
156 requestConfig->SetFixNumber(0);
157 request1->SetRequestConfig(*requestConfig);
178 auto requestConfig = std::make_unique<RequestConfig>(); variable
179 EXPECT_NE(nullptr, requestConfig);
180 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX);
181 requestConfig->SetFixNumber(1); // fix number is 1
182 request1->SetRequestConfig(*requestConfig);
[all …]
Dlocation_without_permission_test.cpp94 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); variable
95 requestConfig->SetPriority(PRIORITY_ACCURACY);
97 locatorImpl->StartLocating(requestConfig, callbackStub);
195 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); variable
196 requestConfig->SetPriority(PRIORITY_ACCURACY);
198 EXPECT_EQ(ERRCODE_SWITCH_OFF, locatorImpl->StartLocatingV9(requestConfig, callbackStub));
Dlocator_impl_test.cpp165 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); variable
166 requestConfig->SetPriority(PRIORITY_ACCURACY);
167 …EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->StartLocatingV9(requestConfig, callbackStub_)); // startL…
414 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); variable
415 requestConfig->SetPriority(PRIORITY_ACCURACY);
416 …EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->StartLocatingV9(requestConfig, callbackStub_)); // startL…
432 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); variable
433 requestConfig->SetPriority(PRIORITY_ACCURACY);
434 …EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->StartLocatingV9(requestConfig, callbackStub_)); // startL…
Drequest_manager_test.cpp47 auto requestConfig = std::make_unique<RequestConfig>(); in SetUp() local
48 EXPECT_NE(nullptr, requestConfig); in SetUp()
49 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in SetUp()
50 requestConfig->SetFixNumber(1); in SetUp()
51 request_->SetRequestConfig(*requestConfig); in SetUp()
90 std::unique_ptr<RequestConfig> requestConfig = in FillRequestField() local
92 request->SetRequestConfig(*requestConfig); in FillRequestField()
/base/location/interfaces/inner_api/include/
Drequest_config.h104 void Set(RequestConfig& requestConfig);
105 bool IsSame(RequestConfig& requestConfig);
Dnapi_util.h47 std::unique_ptr<RequestConfig>& requestConfig);
49 std::unique_ptr<RequestConfig>& requestConfig);
Dlocator.h41 virtual void StartLocating(std::unique_ptr<RequestConfig>& requestConfig,
81 virtual LocationErrCode StartLocatingV9(std::unique_ptr<RequestConfig>& requestConfig,
/base/location/frameworks/js/napi/source/
Dlocation_napi_system.cpp38 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()
Dlocation_napi_event.cpp207 auto requestConfig = std::make_unique<RequestConfig>(); in SubscribeLocationChange() local
208 JsObjToLocationRequest(env, object, requestConfig); in SubscribeLocationChange()
209 g_locatorProxy->StartLocating(requestConfig, locatorCallback); in SubscribeLocationChange()
224 auto requestConfig = std::make_unique<RequestConfig>(); in SubscribeLocationChangeV9() local
225 JsObjToLocationRequest(env, object, requestConfig); in SubscribeLocationChangeV9()
226 return g_locatorProxy->StartLocatingV9(requestConfig, locatorCallback); in SubscribeLocationChangeV9()
433 auto requestConfig = std::make_unique<RequestConfig>(); in CreateRequestConfig() local
435 JsObjToCurrentLocationRequest(env, argv[objectArgsNum - 1], requestConfig); in CreateRequestConfig()
437 requestConfig->SetPriority(PRIORITY_FAST_FIRST_FIX); in CreateRequestConfig()
439 requestConfig->SetFixNumber(1); in CreateRequestConfig()
[all …]
/base/location/services/location_gnss/gnss/source/
Dgnss_ability_skeleton.cpp100 …std::unique_ptr<CachedGnssLocationsRequest> requestConfig = std::make_unique<CachedGnssLocationsRe… in OnRemoteRequest() local
101 requestConfig->reportingPeriodSec = data.ReadInt32(); in OnRemoteRequest()
102 requestConfig->wakeUpCacheQueueFull = data.ReadBool(); in OnRemoteRequest()
104 reply.WriteInt32(RegisterCachedCallback(requestConfig, callback)); in OnRemoteRequest()
/base/location/services/location_locator/locator/source/
Drequest_manager.cpp188 auto requestConfig = request->GetRequestConfig(); in RestorRequest() local
189 if (requestConfig == nullptr || newConfig == nullptr) { in RestorRequest()
192 if (newConfig->IsSame(*requestConfig)) { in RestorRequest()
393 auto requestConfig = request->GetRequestConfig(); in ActiveLocatingStrategies() local
394 if (requestConfig == nullptr) { in ActiveLocatingStrategies()
397 int requestType = requestConfig->GetScenario(); in ActiveLocatingStrategies()
399 requestType = requestConfig->GetPriority(); in ActiveLocatingStrategies()
426 auto requestConfig = request->GetRequestConfig(); in AddRequestToWorkRecord() local
427 if (requestConfig == nullptr) { in AddRequestToWorkRecord()
433 requestConfig->GetTimeInterval(), request->GetUuid()); in AddRequestToWorkRecord()
Drequest.cpp39 void Request::SetRequestConfig(RequestConfig& requestConfig) in SetRequestConfig() argument
44 this->requestConfig_->Set(requestConfig); in SetRequestConfig()
Dcountry_code_manager.cpp200 auto requestConfig = std::make_unique<RequestConfig>(); in StartPassiveLocationListen() local
201 requestConfig->SetScenario(SCENE_NO_POWER); in StartPassiveLocationListen()
202 requestConfig->SetTimeInterval(DEFAULT_TIME_INTERVAL); in StartPassiveLocationListen()
215 request->SetRequestConfig(*requestConfig); in StartPassiveLocationListen()
/base/location/test/fuzztest/locator/locator_fuzzer/
Dlocator_fuzzer.cpp66 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); in TestStartLocating() local
67 requestConfig->SetScenario(data[index++]); in TestStartLocating()
68 requestConfig->SetPriority(data[index++]); in TestStartLocating()
69 requestConfig->SetTimeInterval(data[index++]); in TestStartLocating()
70 requestConfig->SetDistanceInterval(data[index++]); in TestStartLocating()
71 requestConfig->SetMaxAccuracy(data[index++]); in TestStartLocating()
72 requestConfig->SetFixNumber(data[index++]); in TestStartLocating()
73 requestConfig->SetTimeOut(data[index++]); in TestStartLocating()
76 locator->StartLocating(requestConfig, locatorCallback); in TestStartLocating()
80 requestConfig->SetFixNumber(1); in TestStartLocating()
[all …]
/base/location/test/fuzztest/locator/requestmanager_fuzzer/
Drequestmanager_fuzzer.cpp62 auto requestConfig = std::make_unique<RequestConfig>(); in RequestFuzzerTest() local
63 request->SetRequestConfig(*requestConfig); in RequestFuzzerTest()
/base/location/test/location_common/source/
Dlocation_common_test.cpp315 std::unique_ptr<RequestConfig> requestConfig = std::make_unique<RequestConfig>(); variable
323 requestConfig->ReadFromParcel(parcel);
324 EXPECT_EQ(1, requestConfig->GetScenario());
325 EXPECT_EQ(2, requestConfig->GetPriority());
326 EXPECT_EQ(3, requestConfig->GetTimeInterval());
327 EXPECT_EQ(10, requestConfig->GetDistanceInterval());
328 EXPECT_EQ(1000.0, requestConfig->GetMaxAccuracy());
329 EXPECT_EQ(1, requestConfig->GetFixNumber());
332 requestConfig->Marshalling(newParcel);
/base/location/test/location_gnss/source/
Dgnss_ability_test.cpp341 …std::unique_ptr<CachedGnssLocationsRequest> requestConfig = std::make_unique<CachedGnssLocationsRe… variable
342 requestConfig->reportingPeriodSec = 100;
343 requestConfig->wakeUpCacheQueueFull = true;
351 EXPECT_EQ(ERRCODE_INVALID_PARAM, proxy_->RegisterCachedCallback(requestConfig, callback));
368 …std::unique_ptr<CachedGnssLocationsRequest> requestConfig = std::make_unique<CachedGnssLocationsRe… variable
369 requestConfig->reportingPeriodSec = 100;
370 requestConfig->wakeUpCacheQueueFull = false;
376 …EXPECT_EQ(ERRCODE_NOT_SUPPORTED, proxy_->RegisterCachedCallback(requestConfig, callbackStub_->AsOb…
393 …std::unique_ptr<CachedGnssLocationsRequest> requestConfig = std::make_unique<CachedGnssLocationsRe… variable
394 requestConfig->reportingPeriodSec = 100;
[all …]
/base/web/webview/test/fuzztest/ohos_nweb/flushbuffer_fuzzer/
Dflushbuffer_fuzzer.cpp132 BufferRequestConfig requestConfig = { in DoSomethingInterestingWithMyAPI() local
140 surface->RequestBuffer(surfaceBuffer, releaseFence, requestConfig); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/ohos_nweb/copyframe_fuzzer/
Dcopyframe_fuzzer.cpp141 BufferRequestConfig requestConfig = { in DoSomethingInterestingWithMyAPI() local
149 surface->RequestBuffer(surfaceBuffer, releaseFence, requestConfig); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/unittest/nweb_surface_adapter_test/
Dnweb_surface_adapter_test.cpp166 BufferRequestConfig requestConfig = { variable
174 surface->RequestBuffer(g_surfaceBuffer, releaseFence, requestConfig);
/base/location/services/location_locator/locator/include/
Drequest.h40 void SetRequestConfig(RequestConfig& requestConfig);
/base/location/frameworks/native/source/
Dlocator_impl.cpp65 void LocatorImpl::StartLocating(std::unique_ptr<RequestConfig>& requestConfig, in StartLocating() argument
68 client_->StartLocating(requestConfig, callback, "location.ILocator", 0, 0); in StartLocating()
321 LocationErrCode LocatorImpl::StartLocatingV9(std::unique_ptr<RequestConfig>& requestConfig, in StartLocatingV9() argument
325 return client_->StartLocatingV9(requestConfig, callback); in StartLocatingV9()

12