Home
last modified time | relevance | path

Searched refs:GetIntParameter (Results 1 - 25 of 28) sorted by relevance

12

/base/startup/init/interfaces/innerkits/syspara/
H A Dparam_wrapper.cpp123 T GetIntParameter(const std::string& key, T def, T min, T max) in GetIntParameter() function
136 template int8_t GetIntParameter(const std::string&, int8_t, int8_t, int8_t);
137 template int16_t GetIntParameter(const std::string&, int16_t, int16_t, int16_t);
138 template int32_t GetIntParameter(const std::string&, int32_t, int32_t, int32_t);
139 template int64_t GetIntParameter(const std::string&, int64_t, int64_t, int64_t);
180 int GetIntParameter(const std::string &key, int def) in GetIntParameter() function
182 return GetIntParameter(key, def, INT_MIN, INT_MAX); in GetIntParameter()
H A Dparameter.c333 int32_t GetIntParameter(const char *key, int32_t def) in GetIntParameter() function
/base/hiviewdfx/hiview/test/unittest/xpower_event/
H A Dxpower_jsevent_test.cpp84 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
93 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
123 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
133 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
160 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
H A Dxpower_event_test.cpp58 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
67 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
/base/hiviewdfx/hiview/interfaces/innerkits/xpower_event/src/
H A Dxpower_event_js.cpp37 if ((OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0) != 1)) { in ReportXPowerJsStackSysEvent()
55 if ((OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0) != 1)) { in ReportXPowerJsStackSysEvent()
H A Dxpower_event.cpp27 if ((OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0) != 1)) { in ReportXPowerStackSysEvent()
/base/startup/init/test/unittest/syspara/
H A Dsyspara_unittest.cpp287 EXPECT_EQ(GetIntParameter("test.int.get", 0) == -TEST_VALUE, 1); in HWTEST_F()
289 EXPECT_EQ(GetIntParameter("test.uint.get", 0), TEST_VALUE); in HWTEST_F()
291 EXPECT_EQ(GetIntParameter("test.int.default", 10), 10); // key not find,value = default in HWTEST_F()
315 int v = OHOS::system::GetIntParameter(key1, 0); in HWTEST_F()
317 int8_t v1 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range in HWTEST_F()
319 int16_t v2 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range in HWTEST_F()
321 int32_t v3 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range in HWTEST_F()
323 int64_t v4 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range in HWTEST_F()
326 int8_t v5 = OHOS::system::GetIntParameter(key1, 0, -10, 10); // -10, 10 range in HWTEST_F()
/base/startup/init/interfaces/innerkits/include/syspara/
H A Dparam_wrapper.h24 int GetIntParameter(const std::string &key, int def);
H A Dparameters.h42 T GetIntParameter(const std::string& key, T def, T min = std::numeric_limits<T>::min(),
H A Dparameter.h184 int32_t GetIntParameter(const char *key, int32_t def);
/base/startup/init/test/fuzztest/getintparametercpp_fuzzer/
H A Dgetintparametercpp_fuzzer.cpp24 system::GetIntParameter(key, 1); in FuzzGetIntParameterCpp()
/base/startup/init/test/fuzztest/getintparameterc_fuzzer/
H A Dgetintparameterc_fuzzer.cpp25 GetIntParameter(key.c_str(), 1); in FuzzGetIntParameterC()
/base/telephony/call_manager/services/call/src/
H A Dcall_superprivacy_control_manager.cpp110 int32_t privpacyMode = system::GetIntParameter(SUPER_PRIVACY_MODE_PARAM_KEY.c_str(), -1); in SetOldSuperPrivacyMode()
162 int32_t privpacyMode = system::GetIntParameter(SUPER_PRIVACY_MODE_PARAM_KEY.c_str(), -1); in RestoreSuperPrivacyMode()
177 int32_t privpacyMode = system::GetIntParameter(SUPER_PRIVACY_MODE_PARAM_KEY.c_str(), -1); in GetCurrentIsSuperPrivacyMode()
/base/startup/init/test/moduletest/
H A Dsyspara_moduleTest.cpp369 EXPECT_EQ(GetIntParameter(key1, 0), 1118481); // 0x111111 decimalism result in HWTEST_F()
375 EXPECT_EQ(GetIntParameter(key2, 0), -1118481); // 0x111111 decimalism result in HWTEST_F()
382 EXPECT_EQ(GetIntParameter(key3, 0), 9999999); // value3 int result in HWTEST_F()
388 EXPECT_EQ(GetIntParameter(key4, 0), -9999999); // value4 int result in HWTEST_F()
394 EXPECT_EQ(GetIntParameter(key5, 0), 0); in HWTEST_F()
399 EXPECT_EQ(GetIntParameter(key6, 0), 0); in HWTEST_F()
/base/location/services/location_locator/locator/include/
H A Dlocation_config_manager.h132 int GetIntParameter(const std::string& type);
/base/location/services/location_locator/locator/source/
H A Dlocation_config_manager.cpp177 int LocationConfigManager::GetIntParameter(const std::string& type) in GetIntParameter() function in OHOS::Location::LocationConfigManager
227 return GetIntParameter(SUPL_MODE_NAME); in GetSuplMode()
237 return GetIntParameter(AGNSS_SERVER_PORT); in GetAgnssServerPort()
/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.cpp54 bool GetIntParameter(const std::string &key, bool def, bool arg1 = false, bool arg2 = false) in GetIntParameter() function
/base/startup/init/device_info/
H A Ddevice_info_stub.cpp142 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_INFO); in OnStart()
/base/startup/init/services/begetctl/
H A Dbegetctl_cmd.c84 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_ERROR); in GetInitLogLevelFromParam()
/base/startup/init/test/unittest/init/
H A Dinit_unittest.cpp141 int32_t loglevel = GetIntParameter("persist.init.debug.loglevel", INIT_ERROR); in HWTEST_F()
/base/hiviewdfx/hiview/plugins/unified_collector/test/unittest/common/mock/
H A Dmock_parameter_ex.cpp39 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
/base/hiviewdfx/hiview/base/utility/
H A Dparameter_ex.cpp35 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
/base/msdp/device_status/utils/common/src/
H A Dutil.cpp55 const int32_t ROTATE_POLICY = OHOS::system::GetIntParameter("const.window.device.rotate_policy", 0);
/base/web/webview/ohos_adapter/system_properties_adapter/src/
H A Dsystem_properties_adapter_impl.cpp241 return OHOS::system::GetIntParameter("web.flowbuffer.maxfd", -1); in GetFlowBufMaxFd()
/base/startup/init/test/unittest/param/
H A Dparam_stub.cpp522 int32_t loglevel = GetIntParameter("persist.init.debug.loglevel", INIT_ERROR); in PrepareInitUnitTestEnv()

Completed in 16 milliseconds

12