Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 1429) sorted by relevance

12345678910>>...58

/base/security/certificate_manager/
DBUILD.gn48 "//base/security/certificate_manager/config:trusted_system_certificate0",
49 "//base/security/certificate_manager/config:trusted_system_certificate1",
50 "//base/security/certificate_manager/config:trusted_system_certificate10",
51 "//base/security/certificate_manager/config:trusted_system_certificate100",
52 "//base/security/certificate_manager/config:trusted_system_certificate101",
53 "//base/security/certificate_manager/config:trusted_system_certificate102",
54 "//base/security/certificate_manager/config:trusted_system_certificate103",
55 "//base/security/certificate_manager/config:trusted_system_certificate104",
56 "//base/security/certificate_manager/config:trusted_system_certificate105",
57 "//base/security/certificate_manager/config:trusted_system_certificate106",
[all …]
/base/startup/init/ueventd/
Dueventd_read_cfg.c92 struct DeviceUdevConf *config = calloc(1, sizeof(struct DeviceUdevConf)); in ParseDeviceConfig() local
93 if (config == NULL) { in ParseDeviceConfig()
98 config->name = strdup(items[DEVICE_CONFIG_NAME_NUM]); // device node in ParseDeviceConfig()
100 config->mode = strtoul(items[DEVICE_CONFIG_MODE_NUM], NULL, OCTAL_BASE); in ParseDeviceConfig()
101 INIT_ERROR_CHECK(errno == 0, config->mode = DEVMODE, in ParseDeviceConfig()
102 "Invalid mode in config file for device node %s. use default mode", config->name); in ParseDeviceConfig()
103 config->uid = (uid_t)DecodeUid(items[DEVICE_CONFIG_UID_NUM]); in ParseDeviceConfig()
104 config->gid = (gid_t)DecodeGid(items[DEVICE_CONFIG_GID_NUM]); in ParseDeviceConfig()
106 config->parameter = strdup(items[DEVICE_CONFIG_PARAM_NUM]); // device parameter in ParseDeviceConfig()
108 config->parameter = NULL; in ParseDeviceConfig()
[all …]
/base/update/updater/services/etc/
Dinit.usb.configfs.cfg3 "name" : "param:sys.usb.config=none && param:sys.usb.configfs=1",
4 "condition" : "sys.usb.config=none && sys.usb.configfs=1",
6 "write /config/usb_gadget/g1/UDC none",
8 "write /config/usb_gadget/g1/bDeviceClass 0",
9 "write /config/usb_gadget/g1/bDeviceSubClass 0",
10 "write /config/usb_gadget/g1/bDeviceProtocol 0",
11 "rm /config/usb_gadget/g1/configs/b.1/f1",
12 "setparam sys.usb.state ${sys.usb.config}"
15 … "name" : "param:sys.usb.ffs.ready=1 && param:sys.usb.config=hdc && param:sys.usb.configfs=1",
16 "condition" : "sys.usb.ffs.ready=1 && sys.usb.config=hdc && sys.usb.configfs=1",
[all …]
Dinit.cfg25 "mkdir /config 0770 shell shell",
26 "mount configfs none /config",
27 "mkdir /config/usb_gadget/g1 0770 shell shell",
28 "write /config/usb_gadget/g1/idVendor 0x12D1",
29 "write /config/usb_gadget/g1/idProduct 0x5000",
30 "write /config/usb_gadget/g1/os_desc/use 1",
31 "write /config/usb_gadget/g1/bcdDevice 0x0223",
32 "write /config/usb_gadget/g1/bcdUSB 0x0200",
33 "mkdir /config/usb_gadget/g1/strings/0x409 0770",
34 … "copy /sys/block/mmcblk0/device/cid /config/usb_gadget/g1/strings/0x409/serialnumber",
[all …]
Dinit.usb.cfg8 "name" : "boot && param:persist.sys.usb.config=*",
9 "condition" : "boot && persist.sys.usb.config=*",
11 "setparam sys.usb.config ${persist.sys.usb.config}"
/base/sensors/miscdevice/services/miscdevice_service/src/
Dvibration_priority_manager.cpp30 PriorityConfig config; in VibrationPriorityManager() local
31 int32_t ret = LoadPriorityConfig(CONFIG_PATH, config); in VibrationPriorityManager()
36 CopyPriorityConfig(config); in VibrationPriorityManager()
41 void VibrationPriorityManager::CopyPriorityConfig(PriorityConfig config) in CopyPriorityConfig() argument
43 priorityConfig_.privilegePkgs = config.privilegePkgs; in CopyPriorityConfig()
44 priorityConfig_.globalSettings.byPassUsages = config.globalSettings.byPassUsages; in CopyPriorityConfig()
45 priorityConfig_.globalSettings.byPassPkgs = config.globalSettings.byPassPkgs; in CopyPriorityConfig()
46 priorityConfig_.globalSettings.filterUsages = config.globalSettings.filterUsages; in CopyPriorityConfig()
47 priorityConfig_.globalSettings.filterPkgs = config.globalSettings.filterPkgs; in CopyPriorityConfig()
49 priorityConfig_.lowPowerMode.byPassUsages = config.lowPowerMode.byPassUsages; in CopyPriorityConfig()
[all …]
/base/startup/init/ueventd/standard/
Dueventd_parameter.c84 struct DeviceUdevConf *config = GetFristParameter(parameterCtrl); in ThreadRun() local
85 if (config == NULL) { in ThreadRun()
90 const char *paramValue = (config->action == ACTION_ADD) ? "added" : "removed"; in ThreadRun()
91 INIT_LOGI("[uevent] SystemSetParameter %s act %s", config->parameter, paramValue); in ThreadRun()
92 int len = sprintf_s(paramName, sizeof(paramName), "startup.uevent.%s", config->parameter); in ThreadRun()
94 INIT_LOGE("[uevent] SystemSetParameter %s failed", config->parameter); in ThreadRun()
96 OH_ListAddTail(&parameterCtrl->parameterList, &config->paramNode); in ThreadRun()
104 static void AddParameter(DeviceParameterCtrl *parameterCtrl, struct DeviceUdevConf *config) in AddParameter() argument
107 if (ListEmpty(config->paramNode)) { in AddParameter()
108 OH_ListAddTail(&parameterCtrl->parameterList, &config->paramNode); in AddParameter()
[all …]
/base/hiviewdfx/hidumper/test/unittest/common/
Dhidumper_dumpers_test.cpp73 auto config = std::make_shared<DumpCfg>(); variable
74 config->name_ = "FileDumperTest";
76 config->target_ = file_name;
77 config->loop_ = DumperConstant::LOOP;
78 config->args_ = OptionArgs::Create();
79 config->args_->SetPid(DEFAULT_PID, DEFAULT_UID);
80 file_dumper->SetDumpConfig(config);
104 auto config = std::make_shared<DumpCfg>(); variable
105 config->name_ = "FileDumperTest";
107 config->target_ = file_name;
[all …]
/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_config.h41 explicit USBConfig(const Json::Value &config) in USBConfig() argument
43 id_ = config["id"].asInt(); in USBConfig()
44 attributes_ = config["attributes"].asUInt(); in USBConfig()
45 maxPower_ = config["maxPower"].asInt(); in USBConfig()
46 name_ = config["name"].asString(); in USBConfig()
48 Json::Value interfaces = config["interfaces"]; in USBConfig()
161 Json::Value config; in ToJson() local
162 config["id"] = id_; in ToJson()
163 config["attributes"] = attributes_; in ToJson()
164 config["maxPower"] = maxPower_; in ToJson()
[all …]
/base/hiviewdfx/hiview/core/test/unittest/common/
Dplatform_config_test.cpp47 PluginConfig config("/data/test/test_data/plugin_config1"); variable
48 if (!config.StartParse()) {
56 auto pluginInfoList = config.GetPluginInfoList();
62 auto pipelineInfoList = config.GetPipelineInfoList();
80 PluginConfig config("/data/test/test_data/plugin_config_incomplete"); variable
81 if (!config.StartParse()) {
89 auto pluginInfoList = config.GetPluginInfoList();
95 auto pipelineInfoList = config.GetPipelineInfoList();
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
DBUILD.gn40 "//build/config/compiler:afdo",
41 "//build/config/compiler:afdo_optimize_size",
42 "//build/config/compiler:compiler",
43 "//build/config/compiler:compiler_arm_fpu",
44 "//build/config/compiler:compiler_arm_thumb",
45 "//build/config/compiler:chromium_code",
46 "//build/config/compiler:default_include_dirs",
47 "//build/config/compiler:default_optimization",
48 "//build/config/compiler:default_stack_frames",
49 "//build/config/compiler:default_symbols",
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/services/src/
Dfaultlogger_config_test.cpp51 …std::shared_ptr<FaultLoggerConfig> config = std::make_shared<FaultLoggerConfig>(LOG_FILE_NUMBER, L… variable
54 bool ret = config->SetLogFileMaxNumber(input);
56 int output = config->GetLogFileMaxNumber();
70 …std::shared_ptr<FaultLoggerConfig> config = std::make_shared<FaultLoggerConfig>(LOG_FILE_NUMBER, L… variable
73 bool ret = config->SetLogFileMaxSize(input);
75 long output = config->GetLogFileMaxSize();
89 …std::shared_ptr<FaultLoggerConfig> config = std::make_shared<FaultLoggerConfig>(LOG_FILE_NUMBER, L… variable
92 bool ret = config->SetLogFilePath(input);
94 std::string output = config->GetLogFilePath();
/base/hiviewdfx/hiview/plugins/eventlogger/config/test/unittest/common/
Devent_logger_config_test.cpp51 auto config = std::make_unique<EventLoggerConfig>("/data/test/test_data/event_logger_config"); variable
53 bool ret = config->FindConfigLine(0, "FWK_BLOCK", configOut);
58 ret = config->FindConfigLine(0, "RESUME03", configOut);
62 EXPECT_EQ(config->GetVersion() == "0.1", true);
64 ret = config->FindConfigLine(0, "RESUME04", configOut);
67 ret = config->FindConfigLine(0, "RESUME05", configOut);
72 EXPECT_EQ(config->GetVersion() == "0.1", true);
/base/web/webview/test/fuzztest/ohos_adapter/distributeddatamgr_adapter/webdatabase/dnsdatabaseoncreate_fuzzer/
Ddnsdatabaseoncreate_fuzzer.cpp38 RdbStoreConfig config(""); in DoSomethingInterestingWithMyAPI() local
39 config.SetPath(std::move(realPath)); in DoSomethingInterestingWithMyAPI()
40 config.SetBundleName(bundleName); in DoSomethingInterestingWithMyAPI()
41 config.SetName(std::move(name)); in DoSomethingInterestingWithMyAPI()
42 config.SetArea(1); in DoSomethingInterestingWithMyAPI()
45 auto rdbStore = NativeRdb::RdbHelper::GetRdbStore(config, 1, callBack, errorCode); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/ohos_adapter/distributeddatamgr_adapter/webdatabase/databaseoncreate_fuzzer/
Ddatabaseoncreate_fuzzer.cpp38 RdbStoreConfig config(""); in DoSomethingInterestingWithMyAPI() local
39 config.SetPath(std::move(realPath)); in DoSomethingInterestingWithMyAPI()
40 config.SetBundleName(bundleName); in DoSomethingInterestingWithMyAPI()
41 config.SetName(std::move(name)); in DoSomethingInterestingWithMyAPI()
42 config.SetArea(1); in DoSomethingInterestingWithMyAPI()
45 auto rdbStore = NativeRdb::RdbHelper::GetRdbStore(config, 1, callBack, errorCode); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/ohos_adapter/distributeddatamgr_adapter/webdatabase/pmsdatabaseoncreate_fuzzer/
Dpmsdatabaseoncreate_fuzzer.cpp38 RdbStoreConfig config(""); in DoSomethingInterestingWithMyAPI() local
39 config.SetPath(std::move(realPath)); in DoSomethingInterestingWithMyAPI()
40 config.SetBundleName(bundleName); in DoSomethingInterestingWithMyAPI()
41 config.SetName(std::move(name)); in DoSomethingInterestingWithMyAPI()
42 config.SetArea(1); in DoSomethingInterestingWithMyAPI()
45 auto rdbStore = NativeRdb::RdbHelper::GetRdbStore(config, 1, callBack, errorCode); in DoSomethingInterestingWithMyAPI()
/base/request/request/download/interfaces/kits/js/napi/download_single/src/
Ddownload_task_napi.cpp144 DownloadConfig config; in Initialize() local
145 if (!ParseConfig(env, argv[parametersPosition], config)) { in Initialize()
150 config.SetBundleName(context->GetBundleName()); in Initialize()
151 config.SetApplicationInfoUid(static_cast<int32_t>(getuid())); in Initialize()
153 auto *task = DownloadManager::GetInstance()->EnqueueTask(config, err); in Initialize()
200 bool DownloadTaskNapi::ParseConfig(napi_env env, napi_value configValue, DownloadConfig &config) in ParseConfig() argument
202 if (!ParseHeader(env, configValue, config)) { in ParseConfig()
205 if (!ParseUrl(env, configValue, config)) { in ParseConfig()
209 config.SetMetered(NapiUtils::GetBooleanProperty(env, configValue, PARAM_KEY_METERED)); in ParseConfig()
210 config.SetRoaming(NapiUtils::GetBooleanProperty(env, configValue, PARAM_KEY_ROAMING)); in ParseConfig()
[all …]
Ddownload_service_proxy.cpp47 int32_t DownloadServiceProxy::Request(const DownloadConfig &config, ExceptionError &error) in Request() argument
54 if (!IsPathValid(config.GetFilePath())) { in Request()
59 fd = open(config.GetFilePath().c_str(), O_RDWR); in Request()
68 fd = open(config.GetFilePath().c_str(), O_CREAT | O_RDWR, FILE_PERMISSION); in Request()
82 data.WriteString(config.GetUrl()); in Request()
83 data.WriteBool(config.IsMetered()); in Request()
84 data.WriteBool(config.IsRoaming()); in Request()
85 data.WriteString(config.GetDescription()); in Request()
86 data.WriteUint32(config.GetNetworkType()); in Request()
87 data.WriteString(config.GetFilePath()); in Request()
[all …]
Ddownload_task_napi_V9.cpp163 DownloadConfig config; in Initialize() local
164 if (!ParseConfig(env, argv[parametersPosition], config, errInfo)) { in Initialize()
169 config.SetBundleName(context->GetBundleName()); in Initialize()
170 config.SetApplicationInfoUid(static_cast<int32_t>(getuid())); in Initialize()
173 auto *task = DownloadManager::GetInstance()->EnqueueTask(config, err); in Initialize()
222 bool DownloadTaskNapiV9::ParseConfig(napi_env env, napi_value configValue, DownloadConfig &config, … in ParseConfig() argument
224 if (!ParseHeader(env, configValue, config, errInfo)) { in ParseConfig()
229 if (!ParseUrl(env, configValue, config, errInfo)) { in ParseConfig()
234 config.SetMetered(NapiUtils::GetBooleanProperty(env, configValue, PARAM_KEY_METERED)); in ParseConfig()
235 config.SetRoaming(NapiUtils::GetBooleanProperty(env, configValue, PARAM_KEY_ROAMING)); in ParseConfig()
[all …]
/base/request/request/download/services/src/
Ddownload_service_stub.cpp76 DownloadConfig config; in OnRequest() local
79 config.SetFD(fd); in OnRequest()
80 config.SetFDError(data.ReadInt32()); in OnRequest()
81 config.SetUrl(data.ReadString()); in OnRequest()
82 config.SetMetered(data.ReadBool()); in OnRequest()
83 config.SetRoaming(data.ReadBool()); in OnRequest()
84 config.SetDescription(data.ReadString()); in OnRequest()
85 config.SetNetworkType(data.ReadUint32()); in OnRequest()
86 config.SetFilePath(data.ReadString()); in OnRequest()
87 config.SetTitle(data.ReadString()); in OnRequest()
[all …]
/base/customization/config_policy/
DREADME.md5 The config policy, namely, cust, provides APIs for each service module to obtain the configuration …
9 The directory structure for the config policy is as follows:
13 ├── config_policy # Code repository for the config policy
14 │ ├── frameworks # Core code of the config policy
15 │ │ ├── config_policy # config policy
17 │ ├── interfaces # APIs of the config policy
18 │ │ ├── inner_api # APIs of the config policy for internal subsystems
25 Call the APIs of the config policy to obtain the configuration directories at different levels or t…
/base/hiviewdfx/hiview/plugins/eventservice/store/
Dsys_event_db_cleaner.cpp48 void SysEventDbCleaner::TryToCleanDb(StoreType type, const std::pair<int, int>& config) in TryToCleanDb() argument
52 type, curNum, config.first, config.second); in TryToCleanDb()
56 if (curNum <= (config.first + config.first * delPct)) { in TryToCleanDb()
61 int saveHour = config.second; in TryToCleanDb()
65 while (curNum > config.first && delTime <= delEndTime) { in TryToCleanDb()
79 saveHour -= isDeleteLess ? 1 : (config.second * delPct); // change from 10% to 1h in TryToCleanDb()
/base/startup/init/services/param/base/
DBUILD.gn16 config("exported_header_files") {
80 "//build/config/compiler:afdo",
81 "//build/config/compiler:afdo_optimize_size",
82 "//build/config/compiler:compiler",
83 "//build/config/compiler:compiler_arm_fpu",
84 "//build/config/compiler:compiler_arm_thumb",
85 "//build/config/compiler:chromium_code",
86 "//build/config/compiler:default_include_dirs",
87 "//build/config/compiler:default_optimization",
88 "//build/config/compiler:default_stack_frames",
[all …]
/base/powermgr/thermal_manager/
DREADME_zh.md77 <config name="warm_base" level="1">
82 </config>
83 <config name="warm_base" level="2">
88 </config>
89 <config name="warm_base" level="3">
94 </config>
95 <config name="warm_safe" level="1">
97 </config>
111 └── config # config目录,配置对应档位的动作,name对应sensor_cluster的name,level对应其item中的level
/base/useriam/user_auth_framework/test/unittest/executors/
Ddriver_manager_unit_test.cpp61 HdiConfig config = {}; variable
62 config.id = 10;
63 config.driver = nullptr;
66 hdiName2Config.emplace(serviceName, config);
69 config.driver = Common::MakeShared<MockIAuthDriverHdi>();

12345678910>>...58