Home
last modified time | relevance | path

Searched refs:GetIntParameter (Results 1 – 24 of 24) sorted by relevance

/base/startup/init/interfaces/innerkits/syspara/
Dparam_wrapper.cpp122 T GetIntParameter(const std::string& key, T def, T min, T max) in GetIntParameter() function
135 template int8_t GetIntParameter(const std::string&, int8_t, int8_t, int8_t);
136 template int16_t GetIntParameter(const std::string&, int16_t, int16_t, int16_t);
137 template int32_t GetIntParameter(const std::string&, int32_t, int32_t, int32_t);
138 template int64_t GetIntParameter(const std::string&, int64_t, int64_t, int64_t);
176 int GetIntParameter(const std::string &key, int def) in GetIntParameter() function
178 return GetIntParameter(key, def, INT_MIN, INT_MAX); in GetIntParameter()
Dparameter.c322 int32_t GetIntParameter(const char *key, int32_t def) in GetIntParameter() function
/base/hiviewdfx/hiview/test/unittest/xpower_event/
Dxpower_jsevent_test.cpp68 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0);
77 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0);
104 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0);
114 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0);
138 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0);
Dxpower_event_test.cpp58 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0);
67 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0);
/base/hiviewdfx/hiview/interfaces/innerkits/xpower_event/src/
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()
Dxpower_event.cpp27 if ((OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0) != 1)) { in ReportXPowerStackSysEvent()
/base/startup/init/test/unittest/syspara/
Dsyspara_unittest.cpp287 EXPECT_EQ(GetIntParameter("test.int.get", 0) == -TEST_VALUE, 1);
289 EXPECT_EQ(GetIntParameter("test.uint.get", 0), TEST_VALUE);
291 EXPECT_EQ(GetIntParameter("test.int.default", 10), 10); // key not find,value = default
315 int v = OHOS::system::GetIntParameter(key1, 0);
317 int8_t v1 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
319 int16_t v2 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
321 int32_t v3 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
323 int64_t v4 = OHOS::system::GetIntParameter(key1, 0, -127, 128); // -127, 128 range
326 int8_t v5 = OHOS::system::GetIntParameter(key1, 0, -10, 10); // -10, 10 range
/base/startup/init/interfaces/innerkits/include/syspara/
Dparam_wrapper.h24 int GetIntParameter(const std::string &key, int def);
Dparameters.h42 T GetIntParameter(const std::string& key, T def, T min = std::numeric_limits<T>::min(),
Dparameter.h173 int32_t GetIntParameter(const char *key, int32_t def);
/base/startup/init/test/fuzztest/getintparametercpp_fuzzer/
Dgetintparametercpp_fuzzer.cpp24 system::GetIntParameter(key, 1); in FuzzGetIntParameterCpp()
/base/startup/init/test/fuzztest/getintparameterc_fuzzer/
Dgetintparameterc_fuzzer.cpp25 GetIntParameter(key.c_str(), 1); in FuzzGetIntParameterC()
/base/startup/init/test/moduletest/
Dsyspara_moduleTest.cpp369 EXPECT_EQ(GetIntParameter(key1, 0), 1118481); // 0x111111 decimalism result
375 EXPECT_EQ(GetIntParameter(key2, 0), -1118481); // 0x111111 decimalism result
382 EXPECT_EQ(GetIntParameter(key3, 0), 9999999); // value3 int result
388 EXPECT_EQ(GetIntParameter(key4, 0), -9999999); // value4 int result
394 EXPECT_EQ(GetIntParameter(key5, 0), 0);
399 EXPECT_EQ(GetIntParameter(key6, 0), 0);
/base/hiviewdfx/hiview/base/utility/
Dparameter_ex.cpp31 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
/base/startup/appspawn/interfaces/innerkits/client/
Dclient_socket.cpp70 int value = OHOS::system::GetIntParameter("persist.appspawn.client.timeout", TIMEOUT_DEF); in ConnectSocket()
/base/startup/init/test/unittest/init/
Dinit_unittest.cpp146 int32_t loglevel = GetIntParameter("persist.init.debug.loglevel", INIT_ERROR);
/base/startup/init/services/begetctl/
Dbegetctl_cmd.c84 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_ERROR); in GetInitLogLevelFromParam()
/base/startup/init/interfaces/innerkits/
Dlibbegetutil.versionscript129 *GetIntParameter*;
/base/startup/init/device_info/
Ddevice_info_stub.cpp141 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_INFO); in OnStart()
/base/startup/appspawn/adapter/
Dappspawn_ace.cpp146 if (GetIntParameter("persist.init.debug.checkexit", true)) { in RunChildProcessor()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_meter.cpp83 int nums = OHOS::system::GetIntParameter<int>(KEY_APP_NUMBER, 0); in IsAppValid()
/base/startup/init/test/unittest/param/
Dparam_stub.cpp523 int32_t loglevel = GetIntParameter("persist.init.debug.loglevel", INIT_ERROR); in PrepareInitUnitTestEnv()
/base/startup/init/services/param/watcher/proxy/
Dwatcher_manager.cpp322 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_ERROR); in OnStart()
/base/telephony/cellular_call/services/control/src/
Dcellular_call_config.cpp490 int32_t vonrState = GetIntParameter(vonrStateKey.c_str(), VONR_SWITCH_STATUS_ON); in ObtainVoNRState()