/base/startup/init/interfaces/innerkits/syspara/ |
H A D | param_wrapper.cpp | 123 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 D | parameter.c | 333 int32_t GetIntParameter(const char *key, int32_t def) in GetIntParameter() function
|
/base/hiviewdfx/hiview/test/unittest/xpower_event/ |
H A D | xpower_jsevent_test.cpp | 84 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 D | xpower_event_test.cpp | 58 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 D | xpower_event_js.cpp | 37 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 D | xpower_event.cpp | 27 if ((OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0) != 1)) { in ReportXPowerStackSysEvent()
|
/base/startup/init/test/unittest/syspara/ |
H A D | syspara_unittest.cpp | 287 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 D | param_wrapper.h | 24 int GetIntParameter(const std::string &key, int def);
|
H A D | parameters.h | 42 T GetIntParameter(const std::string& key, T def, T min = std::numeric_limits<T>::min(),
|
H A D | parameter.h | 184 int32_t GetIntParameter(const char *key, int32_t def);
|
/base/startup/init/test/fuzztest/getintparametercpp_fuzzer/ |
H A D | getintparametercpp_fuzzer.cpp | 24 system::GetIntParameter(key, 1); in FuzzGetIntParameterCpp()
|
/base/startup/init/test/fuzztest/getintparameterc_fuzzer/ |
H A D | getintparameterc_fuzzer.cpp | 25 GetIntParameter(key.c_str(), 1); in FuzzGetIntParameterC()
|
/base/telephony/call_manager/services/call/src/ |
H A D | call_superprivacy_control_manager.cpp | 110 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 D | syspara_moduleTest.cpp | 369 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 D | location_config_manager.h | 132 int GetIntParameter(const std::string& type);
|
/base/location/services/location_locator/locator/source/ |
H A D | location_config_manager.cpp | 177 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 D | app_spawn_stub.cpp | 54 bool GetIntParameter(const std::string &key, bool def, bool arg1 = false, bool arg2 = false)
in GetIntParameter() function
|
/base/startup/init/device_info/ |
H A D | device_info_stub.cpp | 142 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_INFO); in OnStart()
|
/base/startup/init/services/begetctl/ |
H A D | begetctl_cmd.c | 84 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_ERROR); in GetInitLogLevelFromParam()
|
/base/startup/init/test/unittest/init/ |
H A D | init_unittest.cpp | 141 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 D | mock_parameter_ex.cpp | 39 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | parameter_ex.cpp | 35 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
|
/base/msdp/device_status/utils/common/src/ |
H A D | util.cpp | 55 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 D | system_properties_adapter_impl.cpp | 241 return OHOS::system::GetIntParameter("web.flowbuffer.maxfd", -1); in GetFlowBufMaxFd()
|
/base/startup/init/test/unittest/param/ |
H A D | param_stub.cpp | 522 int32_t loglevel = GetIntParameter("persist.init.debug.loglevel", INIT_ERROR); in PrepareInitUnitTestEnv()
|