/base/location/frameworks/location_common/common/source/ |
D | request_config.cpp | 45 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/ |
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/ |
D | report_manager_test.cpp | 122 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 …]
|
D | locator_background_proxy_test.cpp | 153 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 …]
|
D | location_without_permission_test.cpp | 94 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));
|
D | locator_impl_test.cpp | 165 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…
|
D | request_manager_test.cpp | 47 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/ |
D | request_config.h | 104 void Set(RequestConfig& requestConfig); 105 bool IsSame(RequestConfig& requestConfig);
|
D | napi_util.h | 47 std::unique_ptr<RequestConfig>& requestConfig); 49 std::unique_ptr<RequestConfig>& requestConfig);
|
D | locator.h | 41 virtual void StartLocating(std::unique_ptr<RequestConfig>& requestConfig, 81 virtual LocationErrCode StartLocatingV9(std::unique_ptr<RequestConfig>& requestConfig,
|
/base/location/frameworks/js/napi/source/ |
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()
|
D | location_napi_event.cpp | 207 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/ |
D | gnss_ability_skeleton.cpp | 100 …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/ |
D | request_manager.cpp | 188 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()
|
D | request.cpp | 39 void Request::SetRequestConfig(RequestConfig& requestConfig) in SetRequestConfig() argument 44 this->requestConfig_->Set(requestConfig); in SetRequestConfig()
|
D | country_code_manager.cpp | 200 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/ |
D | locator_fuzzer.cpp | 66 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/ |
D | requestmanager_fuzzer.cpp | 62 auto requestConfig = std::make_unique<RequestConfig>(); in RequestFuzzerTest() local 63 request->SetRequestConfig(*requestConfig); in RequestFuzzerTest()
|
/base/location/test/location_common/source/ |
D | location_common_test.cpp | 315 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/ |
D | gnss_ability_test.cpp | 341 …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/ |
D | flushbuffer_fuzzer.cpp | 132 BufferRequestConfig requestConfig = { in DoSomethingInterestingWithMyAPI() local 140 surface->RequestBuffer(surfaceBuffer, releaseFence, requestConfig); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/ohos_nweb/copyframe_fuzzer/ |
D | copyframe_fuzzer.cpp | 141 BufferRequestConfig requestConfig = { in DoSomethingInterestingWithMyAPI() local 149 surface->RequestBuffer(surfaceBuffer, releaseFence, requestConfig); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/unittest/nweb_surface_adapter_test/ |
D | nweb_surface_adapter_test.cpp | 166 BufferRequestConfig requestConfig = { variable 174 surface->RequestBuffer(g_surfaceBuffer, releaseFence, requestConfig);
|
/base/location/services/location_locator/locator/include/ |
D | request.h | 40 void SetRequestConfig(RequestConfig& requestConfig);
|
/base/location/frameworks/native/source/ |
D | locator_impl.cpp | 65 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()
|