Home
last modified time | relevance | path

Searched refs:cfg (Results 1 - 25 of 80) sorted by relevance

1234

/base/inputmethod/imf/services/src/
H A Dime_cfg_manager.cpp44 IMSA_HILOGD("ime cfg file not found."); in ReadImeCfg()
47 std::string cfg; in ReadImeCfg() local
48 bool ret = FileOperator::Read(IME_CFG_FILE_PATH, cfg); in ReadImeCfg()
53 ParseImeCfg(cfg); in ReadImeCfg()
71 ImePersistCfg cfg; in ParseImeCfg() local
72 auto ret = cfg.Unmarshall(content); in ParseImeCfg()
78 imeConfigs_ = cfg.imePersistInfo; in ParseImeCfg()
84 ImePersistCfg cfg; in PackageImeCfg() local
87 cfg.imePersistInfo = imeConfigs_; in PackageImeCfg()
90 auto ret = cfg in PackageImeCfg()
96 AddImeCfg(const ImePersistInfo &cfg) AddImeCfg() argument
103 ModifyImeCfg(const ImePersistInfo &cfg) ModifyImeCfg() argument
149 auto cfg = GetImeCfg(userId); GetCurrentImeCfg() local
164 auto cfg = GetImeCfg(userId); IsDefaultImeSet() local
[all...]
/base/startup/appspawn/test/unittest/hnp_test/
H A Dhnp_pack_test.cpp134 * @tc.desc: Verify set Arg with cfg if HnpCmdPack succeed.
154 { // cfg file content is empty in HWTEST_F()
157 { // cfg file not json formaat in HWTEST_F()
158 char cfg[] = "this is for test!"; in HWTEST_F() local
160 EXPECT_EQ(fwrite(cfg, sizeof(char), strlen(cfg) + 1, fp), strlen(cfg) + 1); in HWTEST_F()
174 * @tc.desc: Verify set cfg type item invalid if HnpCmdPack succeed.
194 { // cfg file content has not type item in HWTEST_F()
195 char cfg[] in HWTEST_F() local
205 char cfg[] = "{\\"type\\":\\"hnpconfig\\",\\"name\\":\\"sample\\",\\"version\\":\\"1.1\\",\\"install\\":" HWTEST_F() local
245 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"version\\":\\"1.1\\",\\"install\\":" HWTEST_F() local
255 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"name\\":\\"sample\\",\\"install\\":" HWTEST_F() local
265 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"name\\":\\"sample\\",\\"version\\":\\"1.1\\",\\"uninstall\\":" HWTEST_F() local
305 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"name\\":\\"sample\\",\\"version\\":\\"1.1\\",\\"install\\":" HWTEST_F() local
315 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"name\\":\\"sample\\",\\"version\\":\\"1.1\\",\\"install\\":" HWTEST_F() local
362 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"name\\":\\"sample\\",\\"version\\":\\"1.1\\",\\"install\\":{}}"; HWTEST_F() local
371 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"name\\":\\"sample\\",\\"version\\":\\"1.1\\",\\"install\\":" HWTEST_F() local
381 char cfg[] = "{\\"type\\":\\"hnp-config\\",\\"name\\":\\"sample\\",\\"version\\":\\"1.1\\",\\"install\\":" HWTEST_F() local
[all...]
/base/request/request/services/src/service/run_count/
H A Dmod.rs28 #[cfg(feature = "oh")]
31 #[cfg(feature = "oh")]
36 #[cfg(feature = "oh")]
41 fn new(#[cfg(feature = "oh")] obj: RemoteObj) -> Self { in new()
43 #[cfg(feature = "oh")] in new()
48 #[cfg(feature = "oh")]
51 #[cfg(feature = "oh")] in notify_run_count()
H A Dmanager.rs39 #[cfg(feature = "oh")]
51 #[cfg(feature = "oh")]
66 #[cfg(feature = "oh")]
103 #[cfg(feature = "oh")]
106 #[cfg(feature = "oh")]
114 #[cfg(feature = "oh")]
132 #[cfg(feature = "oh")]
/base/hiviewdfx/hidumper/frameworks/native/src/common/
H A Ddump_cfg.cpp128 void DumpCfg::Dump(const DumpCfg& cfg, int nest) in Dump() argument
136 cfg.section_.c_str(), in Dump()
137 cfg.class_, ToStr(cfg.class_).c_str(), cfg.level_, ToStr(cfg.level_).c_str(), in Dump()
138 cfg.name_.c_str(), cfg.type_, ToStr(cfg.type_).c_str(), cfg in Dump()
[all...]
/base/security/security_guard/test/unittest/config_manager/src/
H A Dsecurity_guard_config_manager_test.cpp207 ConfigSubscriber::UpdateConfig("/data/service/el1/public/security_guard/tmp/security_guard_model.cfg")); in HWTEST_F()
219 config.stream_.open("/data/test/unittest/resource/security_guard_preset_event.cfg"); in HWTEST_F()
237 config.stream_.open("/data/test/unittest/resource/security_guard_update_event.cfg"); in HWTEST_F()
273 config.stream_.open("/data/test/unittest/resource/security_guard_preset_model.cfg"); in HWTEST_F()
292 config.stream_.open("/data/test/unittest/resource/security_guard_update_model.cfg"); in HWTEST_F()
327 config.stream_.open("/data/test/unittest/resource/security_guard_preset_model.cfg"); in HWTEST_F()
346 SecurityGuard::AppDetectionCfg cfg = jsonObj.get<SecurityGuard::AppDetectionCfg>(); in HWTEST_F() local
347 EXPECT_TRUE(cfg.detectionCategory == ""); in HWTEST_F()
354 SecurityGuard::AppDetectionCfg cfg = jsonObj.get<SecurityGuard::AppDetectionCfg>(); in HWTEST_F() local
355 EXPECT_TRUE(cfg in HWTEST_F()
362 SecurityGuard::AppDetectionCfg cfg = jsonObj.get<SecurityGuard::AppDetectionCfg>(); HWTEST_F() local
545 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
556 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
568 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
581 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
595 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
617 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
639 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
661 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
683 SecurityGuard::BuildInDetectionCfg cfg = jsonObj.get<SecurityGuard::BuildInDetectionCfg>(); HWTEST_F() local
[all...]
/base/request/request/services/src/
H A Dmacros.rs17 #[cfg(feature = "oh")]
26 #[cfg(not(feature = "oh"))]
32 #[cfg(not(feature = "oh"))]
H A Dlib.rs29 #[cfg(not(feature = "oh"))]
51 #[cfg(not(test))]
58 #[cfg(test)]
66 #[cfg(feature = "oh")]
67 #[cfg(test)]
/base/security/security_guard/services/risk_classify/model_manager/src/
H A Dmodel_manager.cpp39 ModelCfg cfg; in Init() local
41 bool success = ConfigDataManager::GetInstance().GetModelConfig(modelId, cfg); in Init()
45 SGLOGI("modelId is %{public}u, start_mode: %{public}u", modelId, cfg.startMode); in Init()
46 if (cfg.startMode != START_ON_STARTUP) { in Init()
49 if (cfg.modelId != AUDIT_MODEL) { in Init()
72 ModelCfg cfg; in InitModel() local
73 bool success = ConfigDataManager::GetInstance().GetModelConfig(modelId, cfg); in InitModel()
79 if (!PathToRealPath(cfg.path, realPath) || realPath.find(PREFIX_MODEL_PATH) != 0) { in InitModel()
/base/request/request/services/src/manage/
H A Dnetwork.rs28 #[cfg(feature = "oh")]
49 #[cfg(feature = "oh")] task_manager: TaskManagerTx,
52 #[cfg(feature = "oh")]
65 #[cfg(feature = "oh")]
68 #[cfg(not(test))]
76 #[cfg(feature = "oh")]
87 #[cfg(feature = "oh")]
160 #[cfg(feature = "oh")]
161 #[cfg(test)]
H A Ddatabase.rs42 #[cfg(feature = "oh")]
44 #[cfg(not(feature = "oh"))]
49 #[cfg(feature = "oh")]
54 let (path, encrypt) = if cfg!(test) {
71 #[cfg(not(feature = "oh"))]
89 #[cfg(feature = "oh")]
100 #[cfg(not(feature = "oh"))]
110 #[cfg(feature = "oh")]
133 #[cfg(not(feature = "oh"))]
175 #[cfg(featur
[all...]
H A Daccount.rs69 #[cfg(feature = "oh")]
77 #[cfg(feature = "oh")]
99 #[cfg(feature = "oh")]
114 #[cfg(feature = "oh")]
129 #[cfg(feature = "oh")]
269 #[cfg(feature = "oh")]
270 #[cfg(test)]
/base/security/security_component_manager/test/fuzztest/security_component/innerkits/setenhancecfg_fuzzer/
H A Dsetenhancecfg_fuzzer.cpp30 uint8_t *cfg = const_cast<uint8_t *>(data); in SetEnhanceCfgFuzzTest() local
31 SecCompEnhanceKit::SetEnhanceCfg(cfg, size); in SetEnhanceCfgFuzzTest()
/base/request/request/services/src/utils/
H A Dmod.rs29 #[cfg(not(test))]
107 #[cfg(feature = "oh")]
113 #[cfg(feature = "oh")]
119 #[cfg(feature = "oh")]
140 #[cfg(feature = "oh")]
141 #[cfg(test)]
H A Dtask_id_generator.rs23 #[cfg(feature = "oh")]
40 #[cfg(not(feature = "oh"))]
/base/request/request/services/src/task/
H A Dclient.rs34 #[cfg(feature = "oh")] mut system: SystemConfig,
50 #[cfg(feature = "oh")]
61 #[cfg(feature = "oh")]
86 #[cfg(feature = "oh")]
104 #[cfg(feature = "oh")]
150 #[cfg(feature = "oh")]
220 #[cfg(feature = "oh")]
/base/security/security_component_manager/frameworks/inner_api/enhance_kits/src/
H A Dsec_comp_enhance_kit.cpp33 int32_t SecCompEnhanceKit::SetEnhanceCfg(uint8_t* cfg, uint32_t cfgLen) in SetEnhanceCfg() argument
35 return SecCompEnhanceAdapter::SetEnhanceCfg(cfg, cfgLen); in SetEnhanceCfg()
/base/request/request/services/src/manage/scheduler/state/
H A Dmod.rs23 #[cfg(feature = "oh")]
24 #[cfg(not(test))]
55 #[cfg(not(test))]
56 #[cfg(feature = "oh")]
/base/global/resource_management/interfaces/js/innerkits/core/src/
H A Dresource_manager_napi_utils.cpp441 std::unique_ptr<ResConfig> cfg(CreateResConfig()); in CreateJsDeviceCap()
442 context.addon_->GetResMgr()->GetResConfig(*cfg); in CreateJsDeviceCap()
452 status = napi_create_int32(env, static_cast<int>(cfg->GetDeviceType()), &deviceType); in CreateJsDeviceCap()
464 status = napi_create_int32(env, static_cast<int>(cfg->ConvertDensity(cfg->GetScreenDensity())), &screenDensity); in CreateJsDeviceCap()
478 std::string ResourceManagerNapiUtils::GetLocale(std::unique_ptr<ResConfig> &cfg) in GetLocale() argument
482 const icu::Locale *localeInfo = cfg->GetLocaleInfo(); in GetLocale()
507 std::unique_ptr<ResConfig> cfg(CreateResConfig()); in CreateJsConfig()
508 context.addon_->GetResMgr()->GetResConfig(*cfg); in CreateJsConfig()
509 return CreateConfig(env, context, cfg); in CreateJsConfig()
519 CreateConfig(napi_env env, ResMgrDataContext& context, std::unique_ptr<ResConfig> &cfg) CreateConfig() argument
[all...]
/base/global/resource_management/interfaces/cj/src/
H A Dresource_manager_impl.cpp282 std::unique_ptr<ResConfig> cfg(CreateResConfig()); in GetConfiguration()
283 resMgr_->GetResConfig(*cfg); in GetConfiguration()
284 configuration.direction = static_cast<int32_t>(cfg->GetDirection()); in GetConfiguration()
286 std::string locale = GetLocale(cfg); in GetConfiguration()
297 std::unique_ptr<ResConfig> cfg(CreateResConfig()); in GetDeviceCapability()
298 resMgr_->GetResConfig(*cfg); in GetDeviceCapability()
299 deviceCapability.screenDensity = static_cast<int32_t>(cfg->ConvertDensity(cfg->GetScreenDensity())); in GetDeviceCapability()
300 deviceCapability.deviceType = static_cast<int32_t>(cfg->GetDeviceType()); in GetDeviceCapability()
413 std::string ResourceManagerImpl::GetLocale(std::unique_ptr<Global::Resource::ResConfig> &cfg) in GetLocale() argument
[all...]
/base/request/request/services/src/manage/events/
H A Dconstruct.rs62 #[cfg(feature = "oh")]
67 #[cfg(feature = "oh")]
/base/security/asset/services/db_operator/src/
H A Dlib.rs25 #[cfg(test)]
/base/security/security_guard/test/fuzztest/config_manager/configmanager_fuzzer/
H A Dconfig_manager_fuzzer.cpp88 EventCfg cfg{}; in EventConfigFuzzTest()
89 std::vector<EventCfg> cfgs{cfg}; in EventConfigFuzzTest()
107 ModelCfg cfg = {}; in ModelConfigFuzzTest() local
108 std::vector<ModelCfg> cfgs{cfg}; in ModelConfigFuzzTest()
/base/request/request/pre_download/native/src/
H A Dlib.rs23 #[cfg(feature = "ohos")]
/base/request/request/services/src/manage/config/
H A Dcert_manager.rs99 #[cfg(feature = "oh")]
117 #[cfg(feature = "oh")]
118 #[cfg(test)]

Completed in 10 milliseconds

1234