Home
last modified time | relevance | path

Searched refs:system (Results 1 - 25 of 182) sorted by relevance

12345678

/base/hiviewdfx/hiview/utility/common_utils/test/unittest/common/
H A Dutility_common_utils_test.cpp209 std::string stack = R"("#00 pc 00000000000cfaac /system/lib/ld-musl-aarch64.so.1 in HWTEST_F()
210 #01 pc 00000000000cfc60 /system/lib/ld-musl-aarch64.so.1(raise+76) in HWTEST_F()
211 #02 pc 0000000000094c98 /system/lib/ld-musl-aarch64.so.1(abort+20) in HWTEST_F()
212 #03 pc 00000000000af8d8 /system/lib64/libc++.so(c790e35ba2b0181d76f8e722e0f6670ff6aaf23c) in HWTEST_F()
213 #04 pc 0000000000098004 /system/lib64/libc++.so(c790e35ba2b0181d76f8e722e0f6670ff6aaf23c) in HWTEST_F()
214 #05 pc 00000000000aea80 /system/lib64/libc++.so(c790e35ba2b0181d76f8e722e0f6670ff6aaf23c) in HWTEST_F()
215 #06 pc 00000000000b1d6c /system/lib64/libc++.so(__cxa_rethrow+216)(c790e35ba2b0181d76f8e722e0f6670ff6aaf23c) in HWTEST_F()
216 #07 pc 000000000010020c /system/lib64/libbms.z.so(3256be1e0b8fdc2b4e25a28f1c2086eb) in HWTEST_F()
217 #08 pc 0000000000105e58 /system/lib64/libbms.z.so(3256be1e0b8fdc2b4e25a28f1c2086eb) in HWTEST_F()
218 #09 pc 00000000001d478c /system/lib6 in HWTEST_F()
[all...]
/base/startup/init/test/moduletest/
H A Dsyspara_moduleTest.cpp62 EXPECT_STRNE(system::GetDeviceType().c_str(), nullptr); in GetAllParameterTestFunc()
99 string ret = system::GetParameter(key, def); in GetParameterTestFuncReStr()
105 bool ret = system::SetParameter(key, value); in ParamSetFun()
107 string testValue = system::GetParameter(key, ""); in ParamSetFun()
221 bool ret = system::SetParameter(key, value); in HWTEST_F()
223 string testValue = system::GetParameter(key, ""); in HWTEST_F()
226 testValue = system::GetParameter("test.param.set.002", "aaa.aaa.aaa"); in HWTEST_F()
228 testValue = system::GetParameter("test.param.set.003", ""); in HWTEST_F()
232 ret = system::SetParameter(key1, "1"); in HWTEST_F()
234 EXPECT_TRUE(system in HWTEST_F()
[all...]
/base/web/webview/test/unittest/ohos_adapter/system_properties_adapter/
H A Dsystem_properties_adapter_test.cpp91 system("param set web.optimization false"); in HWTEST_F()
94 system("param set web.optimization true"); in HWTEST_F()
111 system("param set web.render.dump false"); in HWTEST_F()
117 system("param set web.render.dump true"); in HWTEST_F()
120 system("param set web.render.dump false"); in HWTEST_F()
126 system("param set web.render.dump true"); in HWTEST_F()
139 system("param set web.oop.gpu None"); in HWTEST_F()
145 system("param set web.oop.gpu false"); in HWTEST_F()
148 system("param set web.oop.gpu true"); in HWTEST_F()
/base/hiviewdfx/hiview/test/unittest/xpower_event/
H A Dxpower_jsevent_test.cpp81 bool succ = OHOS::system::SetParameter(PROP_XPOWER_OPTIMIZE_ENABLE, "0"); in HWTEST_F()
84 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
90 succ = OHOS::system::SetParameter(PROP_XPOWER_OPTIMIZE_ENABLE, "1"); in HWTEST_F()
93 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
120 bool succ = OHOS::system::SetParameter(PROP_XPOWER_OPTIMIZE_ENABLE, "0"); in HWTEST_F()
123 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
130 succ = OHOS::system::SetParameter(PROP_XPOWER_OPTIMIZE_ENABLE, "1"); in HWTEST_F()
133 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
157 bool succ = OHOS::system::SetParameter(PROP_XPOWER_OPTIMIZE_ENABLE, "1"); in HWTEST_F()
160 int param = OHOS::system in HWTEST_F()
[all...]
H A Dxpower_event_test.cpp55 bool succ = OHOS::system::SetParameter(PROP_XPOWER_OPTIMIZE_ENABLE, "0"); in HWTEST_F()
58 int param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
64 succ = OHOS::system::SetParameter(PROP_XPOWER_OPTIMIZE_ENABLE, "1"); in HWTEST_F()
67 param = OHOS::system::GetIntParameter(PROP_XPOWER_OPTIMIZE_ENABLE, 0); in HWTEST_F()
/base/web/webview/ohos_adapter/system_properties_adapter/src/
H A Dsystem_properties_adapter_impl.cpp58 OHOS::system::GetParameter("const.ohos.fullname", ""); in SystemPropertiesAdapterImpl()
97 return OHOS::system::GetBoolParameter("compress", false); in GetResourceUseHapPathEnable()
122 // RK or other device cant read config,need read from system deviceType in GetProductDeviceType()
123 std::string deviceType = OHOS::system::GetDeviceType(); in GetProductDeviceType()
156 return OHOS::system::GetBoolParameter("web.optimization", true); in GetWebOptimizationValue()
172 return OHOS::system::GetParameter("const.product.os.dist.name", ""); in GetUserAgentOSName()
177 return OHOS::system::GetParameter("const.product.os.dist.apiname", "").empty() ? in GetUserAgentOSVersion()
178 OHOS::system::GetParameter("const.product.os.dist.version", "") : in GetUserAgentOSVersion()
179 OHOS::system::GetParameter("const.product.os.dist.apiname", ""); in GetUserAgentOSVersion()
199 return OHOS::system in GetNetlogMode()
[all...]
/base/hiviewdfx/hitrace/cmd/src/
H A Dhitrace_osal.cpp29 bool result = OHOS::system::SetParameter(property, value); in SetPropertyInner()
38 return OHOS::system::GetParameter(property, value); in GetPropertyInner()
64 return OHOS::system::GetBoolParameter("const.security.developermode.state", false); in IsDeveloperMode()
69 return OHOS::system::GetBoolParameter("const.debuggable", false); in IsRootVersion()
/base/startup/init/test/unittest/syspara/
H A Dsyspara_unittest.cpp314 OHOS::system::SetParameter(std::string("testKey"), std::string("testValue")); 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()
330 uint8_t u1 = OHOS::system::GetUintParameter<uint8_t>(key2, 0, (uint8_t)255); // 255 max value in HWTEST_F()
332 uint16_t u2 = OHOS::system::GetUintParameter<uint16_t>(key2, 0, (uint16_t)255); // 255 max value in HWTEST_F()
334 uint32_t u3 = OHOS::system in HWTEST_F()
[all...]
/base/startup/init/test/systest/
H A Dserver_systest.cpp40 system("pause"); in main()
48 system("pause"); in main()
55 system("pause"); in main()
H A Dclient_systest.cpp40 system("pause"); in main()
48 system("pause"); in main()
/base/hiviewdfx/hiview/base/utility/
H A Dparameter_ex.cpp30 return OHOS::system::GetParameter(key, defaultValue); in GetString()
35 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
40 return OHOS::system::GetUintParameter(key, defaultValue); in GetUnsignedInteger()
45 return OHOS::system::GetBoolParameter(key, defaultValue); in GetBoolean()
50 return OHOS::system::SetParameter(key, defaultValue); in SetProperty()
82 auto leakState = OHOS::system::GetParameter(KEY_LEAKDECTOR_MODE_STATE, "unknown"); in IsLeakStateMode()
112 static std::string deviceType = OHOS::system::GetDeviceType(); in GetDeviceTypeStr()
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Ddisable_bluetooth_plugin.cpp49 std::string originalPara = system::GetParameter(PERSIST_BLUETOOTH_CONTROL, "false"); in OnSetPolicy()
51 bool setParaRet = system::SetParameter(PERSIST_BLUETOOTH_CONTROL, newPara); in OnSetPolicy()
53 EDMLOGW("DisableBluetoothPlugin failed when set system para: %{public}d", disable); in OnSetPolicy()
60 setParaRet = system::SetParameter(PERSIST_BLUETOOTH_CONTROL, originalPara); in OnSetPolicy()
66 EDMLOGI("DisableBluetoothPlugin set system para: %{public}d", disable); in OnSetPolicy()
73 bool paraValue = system::GetBoolParameter(PERSIST_BLUETOOTH_CONTROL, false); in OnGetPolicy()
H A Dlocation_policy_plugin.cpp41 system::SetParameter(PARAM_EDM_LOCATION_POLICY, "none"); in OnSetPolicy()
44 system::SetParameter(PARAM_EDM_LOCATION_POLICY, "disallow"); in OnSetPolicy()
48 system::SetParameter(PARAM_EDM_LOCATION_POLICY, "force_open"); in OnSetPolicy()
62 std::string res = system::GetParameter(PARAM_EDM_LOCATION_POLICY, ""); in OnGetPolicy()
H A Dntp_server_plugin.cpp41 return system::SetParameter(KEY_NTP_SERVER, value) ? ERR_OK : EdmReturnErrCode::SYSTEM_ABNORMALLY; in OnSetPolicy()
47 std::string result = system::GetParameter(KEY_NTP_SERVER, ""); in OnGetPolicy()
H A Ddisallowed_tethering_plugin.cpp42 return system::SetParameter(PERSIST_TETHERING_CONTROL, value) ? ERR_OK : EdmReturnErrCode::SYSTEM_ABNORMALLY; in OnSetPolicy()
48 bool ret = system::GetBoolParameter(PERSIST_TETHERING_CONTROL, true); in OnGetPolicy()
H A Dinactive_user_freeze_plugin.cpp42 if (!system::SetParameter(PERSIST_INACTIVE_USER_FREEZE_CONTROL, value)) { in OnSetPolicy()
52 bool ret = system::GetBoolParameter(PERSIST_INACTIVE_USER_FREEZE_CONTROL, false); in OnGetPolicy()
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
H A Dfirst_use_dialog_test.cpp53 system(cmdline.c_str()); in TearDownTestCase()
61 system(cmdline.c_str()); in TearDownTestCase()
73 system(cmdline.c_str()); in SetUp()
83 system(cmdline.c_str()); in TearDown()
108 system(cmdline.c_str()); in HWTEST_F()
123 system(cmdline.c_str()); in HWTEST_F()
138 system(cmdline.c_str()); in HWTEST_F()
154 system(cmdline.c_str()); in HWTEST_F()
170 system(cmdline.c_str()); in HWTEST_F()
186 system(cmdlin in HWTEST_F()
[all...]
/base/hiviewdfx/hiview/plugins/unified_collector/test/unittest/common/mock/
H A Dmock_parameter_ex.cpp34 return OHOS::system::GetParameter(key, defaultValue); in GetString()
39 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
44 return OHOS::system::GetUintParameter(key, defaultValue); in GetUnsignedInteger()
49 return OHOS::system::GetBoolParameter(key, defaultValue); in GetBoolean()
54 return OHOS::system::SetParameter(key, defaultValue); in SetProperty()
126 static std::string deviceType = OHOS::system::GetDeviceType(); in GetDeviceTypeStr()
/base/request/request/services/src/task/
H A Dclient.rs34 #[cfg(feature = "oh")] mut system: SystemConfig,
53 } else if let Some(proxy) = build_system_proxy(&system)? {
60 // Set system certs.
62 if let Some(certs) = system.certs.take() {
152 system: &SystemConfig, in build_system_proxy()
154 let proxy_host = &system.proxy_host; in build_system_proxy()
160 let proxy_port = &system.proxy_port; in build_system_proxy()
165 let no_proxy = &system.proxy_exlist; in build_system_proxy()
171 "Create system proxy failed", in build_system_proxy()
/base/hiviewdfx/hiview/plugins/eventlogger/test/util/
H A Deventlogger_util_test.cpp42 system("setenforce 0"); in InitSeLinuxEnabled()
55 system("setenforce 1"); in CancelSeLinuxEnabled()
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/test/unittest/
H A Dleak_detector_unit_test.cpp38 system::SetParameter("hiview.memleak.test", "enable"); in SetUpTestCase()
43 system::SetParameter("hiview.memleak.test", "disable"); in TearDownTestCase()
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dmem_profiler_collector_impl.cpp43 OHOS::system::SetParameter("hiviewdfx.hiprofiler.memprofiler.start", "1"); in Prepare()
60 OHOS::system::SetParameter("hiviewdfx.hiprofiler.memprofiler.start", "1"); in Start()
76 OHOS::system::SetParameter("hiviewdfx.hiprofiler.memprofiler.start", "1"); in StartPrintNmd()
104 OHOS::system::SetParameter("hiviewdfx.hiprofiler.memprofiler.start", "1"); in Start()
135 OHOS::system::SetParameter("hiviewdfx.hiprofiler.memprofiler.start", "1"); in Start()
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Ddisable_bluetooth_plugin_test.cpp73 ASSERT_TRUE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false)); in HWTEST_F()
92 ASSERT_FALSE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, true)); in HWTEST_F()
111 ASSERT_FALSE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, true)); in HWTEST_F()
118 ASSERT_TRUE(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false)); in HWTEST_F()
136 ASSERT_EQ(OHOS::system::GetBoolParameter(DisableBluetoothPlugin::PERSIST_BLUETOOTH_CONTROL, false), in HWTEST_F()
/base/customization/enterprise_device_management/test/unittest/utils/src/
H A Dutils.cpp153 std::string edmParaValue = system::GetParameter("persist.edm.edm_enable", "false"); in GetEdmServiceState()
159 system::SetParameter(SET_EDM_SERVICE, "true"); in SetEdmServiceEnable()
164 system::SetParameter(SET_EDM_SERVICE, "false"); in SetEdmServiceDisable()
169 system::SetParameter(PERSIST_BLUETOOTH_CONTROL, "false"); in SetBluetoothEnable()
174 system::SetParameter(PERSIST_BLUETOOTH_CONTROL, "true"); in SetBluetoothDisable()
/base/startup/appspawn/modules/sysevent/
H A Devent_reporter.cpp24 namespace system { namespace
42 } // namespace system
47 OHOS::system::ProcessMgrRemoveApp(appInfo->name, appInfo->pid, appInfo->uid, appInfo->exitStatus); in ProcessMgrRemoveApp()

Completed in 10 milliseconds

12345678