Home
last modified time | relevance | path

Searched refs:shell (Results 1 – 25 of 94) sorted by relevance

1234

/base/startup/init/services/begetctl/shell/
Dshell_bas.c40 BShellEnv *shell = (BShellEnv *)handle; in BShellEnvErrString() local
41 int len = sprintf_s(shell->data, sizeof(shell->data) - 1, "System unknown err 0x%08x", err); in BShellEnvErrString()
45 return shell->data; in BShellEnvErrString()
65 BShellEnv *shell = (BShellEnv *)handle; in BShellCmdHelp() local
69 BShellCommand *cmd = shell->command; in BShellCmdHelp()
82 cmd = shell->command; in BShellCmdHelp()
121 BShellEnv *shell = (BShellEnv *)handle; in BShellEnvOutputPrompt() local
122 if (shell->prompt != NULL) { in BShellEnvOutputPrompt()
123 free(shell->prompt); in BShellEnvOutputPrompt()
127 shell->prompt = strdup(prompt + promptLen - BSH_CMD_NAME_END); in BShellEnvOutputPrompt()
[all …]
/base/startup/init/test/moduletest/
Dsyspara.cpp57 static int32_t SysParaApiDumpCmd(BShellHandle shell, int32_t argc, char *argv[]) in SysParaApiDumpCmd() argument
62 BShellEnvOutput(shell, const_cast<char *>("Begin dump syspara\r\n")); in SysParaApiDumpCmd()
63 BShellEnvOutput(shell, const_cast<char *>("=======================\r\n")); in SysParaApiDumpCmd()
66 BShellEnvOutput(shell, const_cast<char *>("%s:%s\r\n"), SYSPARA_LIST[index].infoName, temp); in SysParaApiDumpCmd()
69 BShellEnvOutput(shell, const_cast<char *>("FirstApiVersion:%d\r\n"), GetFirstApiVersion()); in SysParaApiDumpCmd()
70 BShellEnvOutput(shell, const_cast<char *>("GetSerial:%s\r\n"), GetSerial()); in SysParaApiDumpCmd()
72 BShellEnvOutput(shell, const_cast<char *>("acl serial:%s\r\n"), AclGetSerial()); in SysParaApiDumpCmd()
76 BShellEnvOutput(shell, const_cast<char *>("GetDevUdid:%s\r\n"), udid); in SysParaApiDumpCmd()
79 BShellEnvOutput(shell, const_cast<char *>("Acl devUdid:%s\r\n"), udid); in SysParaApiDumpCmd()
81 BShellEnvOutput(shell, const_cast<char *>("Version:%d.%d.%d.%d\r\n"), in SysParaApiDumpCmd()
[all …]
Dparam_test_cmds.c64 static int32_t BShellParamCmdRead(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdRead() argument
190 static int32_t BShellParamCmdWatch(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdWatch() argument
222 static int32_t BShellParamCmdInstall(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdInstall() argument
235 static int32_t BShellParamCmdDisplay(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdDisplay() argument
251 static int32_t BShellParamCmdGroupTest(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdGroupTest() argument
264 static int32_t BShellParamCmdUdidGet(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdUdidGet() argument
270 BShellEnvOutput(shell, " udid: %s\r\n", localDeviceId); in BShellParamCmdUdidGet()
294 static int32_t BShellParamCmdMemGet(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdMemGet() argument
363 static int32_t BShellParamCmdWatchService(BShellHandle shell, int32_t argc, char *argv[]) in BShellParamCmdWatchService() argument
369 int32_t BShellCmdRegister(BShellHandle shell, int execMode) in BShellCmdRegister() argument
[all …]
/base/startup/init/services/begetctl/
Dparam_cmd.c76 static char *GetRealParameter(BShellHandle shell, const char *name, char *buffer, uint32_t buffSize) in GetRealParameter() argument
79 const BShellParam *param = BShellEnvGetParam(shell, PARAM_REVERESD_NAME_CURR_PARAMETER); in GetRealParameter()
110 int SetParamShellPrompt(BShellHandle shell, const char *param) in SetParamShellPrompt() argument
114 char *realParameter = GetRealParameter(shell, param, buffer, buffSize); in SetParamShellPrompt()
117 BShellEnvOutputPrompt(shell, PARAM_SHELL_DEFAULT_PROMPT); in SetParamShellPrompt()
123 BShellEnvOutput(shell, "Error: parameter \'%s\' not found\r\n", realParameter); in SetParamShellPrompt()
126 BShellEnvOutput(shell, "Error: Forbid to enter parameters \'%s\'\r\n", realParameter); in SetParamShellPrompt()
130 ret = BShellEnvSetParam(shell, PARAM_REVERESD_NAME_CURR_PARAMETER, in SetParamShellPrompt()
133 BShellEnvOutputPrompt(shell, PARAM_SHELL_DEFAULT_PROMPT); in SetParamShellPrompt()
136 ret = BShellEnvSetParam(shell, PARAM_REVERESD_NAME_CURR_PARAMETER, in SetParamShellPrompt()
[all …]
Dbootchart_cmd.c22 static int bootchartCmdEnable(BShellHandle shell, int argc, char **argv) in bootchartCmdEnable() argument
28 static int bootchartCmdDisable(BShellHandle shell, int argc, char **argv) in bootchartCmdDisable() argument
34 static int bootchartCmdStart(BShellHandle shell, int argc, char **argv) in bootchartCmdStart() argument
40 BShellEnvOutput(shell, "Not bootcharting\r\n"); in bootchartCmdStart()
47 static int bootchartCmdStop(BShellHandle shell, int argc, char **argv) in bootchartCmdStop() argument
Dbegetctl_cmd.c35 static int HandleCmd(BShellHandle shell, const char *cmdName, int argc, char **argv) in HandleCmd() argument
37 BSH_CHECK(shell != NULL, return BSH_INVALID_PARAM, "Invalid shell env"); in HandleCmd()
55 static int SetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in SetInitLogLevelFromParam() argument
59 BShellCmdHelp(shell, 1, helpArgs); in SetInitLogLevelFromParam()
70 int ret = HandleCmd(shell, "setloglevel", argc - 1, &argv[1]); in SetInitLogLevelFromParam()
82 static int32_t GetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in GetInitLogLevelFromParam() argument
92 static int32_t GetUidByName(BShellHandle shell, int argc, char **argv) in GetUidByName() argument
96 BShellCmdHelp(shell, 1, helpArgs); in GetUidByName()
129 static int32_t GetGidByName(BShellHandle shell, int argc, char **argv) in GetGidByName() argument
133 BShellCmdHelp(shell, 1, helpArgs); in GetGidByName()
Dservice_control.c29 static void ServiceControlUsage(BShellHandle shell, int argc, char **argv) in ServiceControlUsage() argument
31 BShellCmdHelp(shell, argc, argv); in ServiceControlUsage()
35 static int main_cmd(BShellHandle shell, int argc, char **argv) in main_cmd() argument
38 ServiceControlUsage(shell, argc, argv); in main_cmd()
51 ServiceControlUsage(shell, argc, argv); in main_cmd()
64 ServiceControlUsage(shell, argc, argv); in main_cmd()
Dmodulectl.c26 static int32_t ModuleInstallCmd(BShellHandle shell, int32_t argc, char *argv[]) in ModuleInstallCmd() argument
29 BShellCmdHelp(shell, argc, argv); in ModuleInstallCmd()
41 static int ModuleDisplayCmd(BShellHandle shell, int argc, char **argv) in ModuleDisplayCmd() argument
44 BShellCmdHelp(shell, argc, argv); in ModuleDisplayCmd()
Dbegetctl.h40 int SetParamShellPrompt(BShellHandle shell, const char *param);
41 int32_t BShellParamCmdRegister(BShellHandle shell, int execMode);
42 int32_t BShellCmdRegister(BShellHandle shell, int execMode);
Ddump_service.c27 static int main_cmd(BShellHandle shell, int argc, char **argv) in main_cmd() argument
44 BShellCmdHelp(shell, argc, argv); in main_cmd()
49 static int BootEventEnable(BShellHandle shell, int argc, char **argv) in BootEventEnable() argument
56 static int BootEventDisable(BShellHandle shell, int argc, char **argv) in BootEventDisable() argument
Dsetloglevel.c26 static int32_t SetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in SetInitLogLevelFromParam() argument
29 BShellCmdHelp(shell, argc, argv); in SetInitLogLevelFromParam()
51 static int32_t GetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in GetInitLogLevelFromParam() argument
Dinit_cmd_reboot.c23 static int main_cmd(BShellHandle shell, int argc, char* argv[]) in main_cmd() argument
26 BShellCmdHelp(shell, argc, argv); in main_cmd()
DBUILD.gn17 "//base/startup/init/services/begetctl/shell",
40 "shell/shell_bas.c",
82 "shell/shell_bas.c",
145 "shell/shell_bas.c",
146 "shell/shell_main.c",
190 "shell/shell_bas.c",
/base/startup/init/services/etc_lite/
Dgroup4 servicectrl:x:1050:root,shell,system,samgr,hdf_devmgr
5 shell:x:2000:
/base/startup/init/services/etc/
Dconsole.user.cfg8 "uid" : "shell",
9 "gid" : ["shell", "log", "readproc"],
Dgroup33 servicectrl:x:1050:root,shell,system,samgr,hdf_devmgr,foundation,update
34 powerctrl:x:1051:root,shell,system,update,power_host,charger,foundation
35 bootctrl:x:1052:root,shell,system
36 deviceprivate:x:1053:root,shell,system,samgr,hdf_devmgr,deviceinfo,dsoftbus,dms,account,pin_auth_ho…
39 shell:x:2000:hiview
/base/powermgr/power_manager/utils/
DBUILD.gn33 ohos_executable("power-shell") {
36 "${powermgr_utils_path}/shell/include",
42 "shell/src/main.cpp",
43 "shell/src/power_shell_command.cpp",
/base/update/updater/services/etc/
Dupdater_hdcd.cfg11 "start shell"
16 "name" : "shell",
/base/hiviewdfx/hidumper/services/native/etc/
Dhidumper_service.cfg5 "mkdir /data/log/hidumper 0770 hidumper_service shell"
13 "gid" : ["shell", "1212", "access_token", "system"],
/base/hiviewdfx/hilog/services/hilogd/etc/
Dhilog.para.dac15 hilog.="shell:log:775"
16 persist.sys.hilog.="shell:log:775"
/base/update/packaging_tools/zipalign/
Dbuild_jar.py48 subprocess.call(javac_cmd, shell=False)
50 subprocess.call(jar_cmd, shell=False)
/base/update/updater/services/flashd/
DReadme.md22 `hdc_std shell reboot updater `
27 `hdc_std shell /bin/updater_reboot `
/base/web/webview/
Drun_shell_cmd.py22 return subprocess.run(' '.join(sys.argv[1:]), shell=True).returncode
/base/powermgr/thermal_manager/application/init/
Dthermal_protector.cfg7 "gid" : ["thermal", "shell"],
/base/startup/init/device_info/etc/
Ddeviceinfoservice.cfg6 "gid" : ["deviceinfo", "shell"],

1234