/base/hiviewdfx/hidumper/test/unittest/common/ |
D | hidumper_manager_test.cpp | 40 int GetDumpResult(int argc, char *argv[]); 67 int HiDumperManagerTest::GetDumpResult(int argc, char *argv[]) in GetDumpResult() argument 71 return DumpImplement::GetInstance().Main(argc, argv, rawParam); in GetDumpResult() 87 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 88 int ret = GetDumpResult(argc, argv); 105 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 106 int ret = GetDumpResult(argc, argv); 123 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 124 int ret = GetDumpResult(argc, argv); 142 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable [all …]
|
/base/notification/distributed_notification_service/tools/test/unittest/dump/ |
D | notification_shell_command_dump_test.cpp | 180 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 182 NotificationShellCommand cmd(argc, argv); 200 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 202 NotificationShellCommand cmd(argc, argv); 222 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 224 NotificationShellCommand cmd(argc, argv); 245 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 247 NotificationShellCommand cmd(argc, argv); 267 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 269 NotificationShellCommand cmd(argc, argv); [all …]
|
/base/notification/common_event_service/tools/test/unittest/cem/ |
D | common_event_command_publish_test.cpp | 104 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 106 CommonEventCommand cmd(argc, argv); 123 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 125 CommonEventCommand cmd(argc, argv); 142 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 144 CommonEventCommand cmd(argc, argv); 161 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 163 CommonEventCommand cmd(argc, argv); 180 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 182 CommonEventCommand cmd(argc, argv); [all …]
|
D | common_event_command_dump_test.cpp | 114 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 116 CommonEventCommand cmd(argc, argv); 137 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 139 CommonEventCommand cmd(argc, argv); 159 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 161 CommonEventCommand cmd(argc, argv); 182 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 184 CommonEventCommand cmd(argc, argv); 205 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 207 CommonEventCommand cmd(argc, argv); [all …]
|
D | common_event_command_test.cpp | 70 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 72 CommonEventCommand cmd(argc, argv); 88 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 90 CommonEventCommand cmd(argc, argv); 106 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 108 CommonEventCommand cmd(argc, argv); 124 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 126 CommonEventCommand cmd(argc, argv); 142 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 144 CommonEventCommand cmd(argc, argv); [all …]
|
/base/account/os_account/tools/test/unittest/acm/ |
D | account_command_test.cpp | 75 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 77 AccountCommand cmd(argc, argv); 94 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 96 AccountCommand cmd(argc, argv); 113 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 115 AccountCommand cmd(argc, argv); 132 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 134 AccountCommand cmd(argc, argv); 151 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 153 AccountCommand cmd(argc, argv); [all …]
|
D | account_command_create_test.cpp | 93 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 95 AccountCommand cmd(argc, argv); 114 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 116 AccountCommand cmd(argc, argv); 135 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 137 AccountCommand cmd(argc, argv); 156 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 158 AccountCommand cmd(argc, argv); 177 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 179 AccountCommand cmd(argc, argv); [all …]
|
D | account_command_set_test.cpp | 91 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 93 AccountCommand cmd(argc, argv); 111 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 113 AccountCommand cmd(argc, argv); 131 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 133 AccountCommand cmd(argc, argv); 151 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 153 AccountCommand cmd(argc, argv); 171 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 173 AccountCommand cmd(argc, argv); [all …]
|
D | account_command_delete_test.cpp | 87 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 89 AccountCommand cmd(argc, argv); 107 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 109 AccountCommand cmd(argc, argv); 127 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 129 AccountCommand cmd(argc, argv); 147 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 149 AccountCommand cmd(argc, argv); 167 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 169 AccountCommand cmd(argc, argv); [all …]
|
D | account_command_dump_test.cpp | 87 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 89 AccountCommand cmd(argc, argv); 107 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 109 AccountCommand cmd(argc, argv); 127 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 129 AccountCommand cmd(argc, argv); 147 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 149 AccountCommand cmd(argc, argv); 167 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 169 AccountCommand cmd(argc, argv); [all …]
|
D | account_command_switch_test.cpp | 87 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 89 AccountCommand cmd(argc, argv); 107 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 109 AccountCommand cmd(argc, argv); 127 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 129 AccountCommand cmd(argc, argv); 147 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 149 AccountCommand cmd(argc, argv); 167 int argc = sizeof(argv) / sizeof(argv[0]) - 1; variable 169 AccountCommand cmd(argc, argv); [all …]
|
/base/startup/init/services/modules/reboot/ |
D | reboot.c | 40 static int DoReboot(int id, const char *name, int argc, const char **argv) in DoReboot() argument 44 UNUSED(argc); in DoReboot() 51 static int DoRebootPanic(int id, const char *name, int argc, const char **argv) in DoRebootPanic() argument 55 UNUSED(argc); in DoRebootPanic() 75 PLUGIN_STATIC int DoRebootShutdown(int id, const char *name, int argc, const char **argv) in DoRebootShutdown() argument 79 UNUSED(argc); in DoRebootShutdown() 81 PLUGIN_CHECK(argc >= 1, return -1, "Invalid parameter"); in DoRebootShutdown() 100 static int DoRebootUpdater(int id, const char *name, int argc, const char **argv) in DoRebootUpdater() argument 103 PLUGIN_LOGI("DoRebootUpdater argc %d %s", argc, name); in DoRebootUpdater() 104 PLUGIN_CHECK(argc >= 1, return -1, "Invalid parameter"); in DoRebootUpdater() [all …]
|
/base/startup/init/services/begetctl/ |
D | service_control.c | 29 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 37 if (argc < SERVICE_START_NUMBER) { in main_cmd() 38 ServiceControlUsage(shell, argc, argv); in main_cmd() 42 …ServiceControlWithExtra(argv[1], 0, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_STA… in main_cmd() 44 …ServiceControlWithExtra(argv[1], 1, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_STA… in main_cmd() 46 …ServiceControlWithExtra(argv[1], 0, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_STA… in main_cmd() 48 …ServiceControlWithExtra(argv[1], 1, (const char **)argv + SERVICE_START_NUMBER, argc - SERVICE_STA… in main_cmd() 50 if (argc <= SERVICE_START_NUMBER) { in main_cmd() [all …]
|
D | begetctl_cmd.c | 35 static int HandleCmd(BShellHandle shell, const char *cmdName, int argc, char **argv) in HandleCmd() argument 38 BSH_LOGI("initCmd %s argc %d", cmdName, argc); in HandleCmd() 40 if (argc == 0) { in HandleCmd() 46 for (int i = 0; i < argc; i++) { in HandleCmd() 55 static int SetInitLogLevelFromParam(BShellHandle shell, int argc, char **argv) in SetInitLogLevelFromParam() argument 57 if (argc != 2) { // 2 is set log level parameter number 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 94 if (argc != 2) { // 2 is dac get uid parameter number in GetUidByName() [all …]
|
D | modulectl.c | 26 static int32_t ModuleInstallCmd(BShellHandle shell, int32_t argc, char *argv[]) in ModuleInstallCmd() argument 28 if (argc != MODULE_CTL_CMD_ARGS) { in ModuleInstallCmd() 29 BShellCmdHelp(shell, argc, argv); in ModuleInstallCmd() 41 static int ModuleDisplayCmd(BShellHandle shell, int argc, char **argv) in ModuleDisplayCmd() argument 43 if (argc < 1) { in ModuleDisplayCmd() 44 BShellCmdHelp(shell, argc, argv); in ModuleDisplayCmd()
|
D | partitionslot.cpp | 45 static int GetSlot(BShellHandle handle, int32_t argc, char *argv[]) in GetSlot() argument 62 static int GetSuffix(BShellHandle handle, int32_t argc, char *argv[]) in GetSuffix() argument 64 if (argc != PARTITION_ARGC) { in GetSuffix() 65 BShellCmdHelp(handle, argc, argv); in GetSuffix() 83 static int SetActiveSlot(BShellHandle handle, int32_t argc, char *argv[]) in SetActiveSlot() argument 85 if (argc != PARTITION_ARGC) { in SetActiveSlot() 86 BShellCmdHelp(handle, argc, argv); in SetActiveSlot() 103 static int SetUnbootSlot(BShellHandle handle, int32_t argc, char *argv[]) in SetUnbootSlot() argument 105 if (argc != PARTITION_ARGC) { in SetUnbootSlot() 106 BShellCmdHelp(handle, argc, argv); in SetUnbootSlot()
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
D | n_func_arg.cpp | 26 void NFuncArg::SetArgc(size_t argc) in SetArgc() argument 28 argc_ = argc; in SetArgc() 61 size_t argc; in InitArgs() local 63 napi_status status = napi_get_cb_info(env_, info_, &argc, nullptr, &thisVar, nullptr); in InitArgs() 67 if (argc) { in InitArgs() 68 argv_ = make_unique<napi_value[]>(argc); in InitArgs() 69 status = napi_get_cb_info(env_, info_, &argc, argv_.get(), &thisVar, nullptr); in InitArgs() 74 SetArgc(argc); in InitArgs() 80 bool NFuncArg::InitArgs(size_t argc) in InitArgs() argument 82 return InitArgs([argc, this]() { in InitArgs() [all …]
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
D | auth_instance_v9.cpp | 38 size_t argc = ARGS_TWO; in GetAvailableStatus() local 39 napi_status ret = napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr); in GetAvailableStatus() 44 if (argc != ARGS_TWO) { in GetAvailableStatus() 45 IAM_LOGE("invalid param, argc:%{public}zu", argc); in GetAvailableStatus() 105 size_t argc = ARGS_THREE; in Init() local 106 napi_status ret = napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr); in Init() 111 if (argc != ARGS_THREE) { in Init() 112 IAM_LOGE("invalid param, argc:%{public}zu", argc); in Init() 169 size_t argc = ARGS_TWO; in On() local 170 napi_status ret = napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr); in On() [all …]
|
D | user_auth_widget_mgr_v10.cpp | 51 size_t argc = ARGS_ONE; in Init() local 52 napi_status ret = napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr); in Init() 57 if (argc != ARGS_ONE) { in Init() 58 IAM_LOGE("invalid param, argc:%{public}zu", argc); in Init() 103 size_t argc = ARGS_TWO; in On() local 104 napi_status ret = napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr); in On() 109 if (argc != ARGS_TWO) { in On() 110 IAM_LOGE("invalid param, argc:%{public}zu", argc); in On() 147 size_t argc = ARGS_TWO; in Off() local 148 napi_status ret = napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr); in Off() [all …]
|
/base/hiviewdfx/hidumper_lite/lite/ |
D | hidumper.c | 156 int ParameterMatching(int argc, const char *argv[], int fd) in ParameterMatching() argument 159 if (argc == ONE_OF_ARGC_PARAMETERS) { in ParameterMatching() 161 } else if (argc == TWO_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-dc") == 0) { in ParameterMatching() 163 } else if (argc == TWO_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-df") == 0) { in ParameterMatching() 165 } else if (argc == TWO_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-dm") == 0) { in ParameterMatching() 167 } else if (argc == TWO_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-dt") == 0) { in ParameterMatching() 169 … } else if (argc == TWO_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-ikc") == 0) { in ParameterMatching() 171 … } else if (argc == TWO_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-iuc") == 0) { in ParameterMatching() 173 } else if (argc == TWO_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-m") == 0) { in ParameterMatching() 176 … } else if (argc == THREE_OF_ARGC_PARAMETERS && strcmp(argv[ONE_OF_ARGC_PARAMETERS], "-m") == 0) { in ParameterMatching() [all …]
|
/base/hiviewdfx/hisysevent/frameworks/native/test/unittest/common/ |
D | hisysevent_tool_unit_test.cpp | 44 void RunCmds(std::shared_ptr<HiSysEventTool> tool, int argc, char** argv) in RunCmds() argument 46 auto ret = tool->ParseCmdLine(argc, argv); in RunCmds() 193 constexpr int argc = 2; variable 199 auto ret = tool->ParseCmdLine(argc, const_cast<char**>(argv)); 212 constexpr int argc = 7; variable 223 RunCmds(tool, argc, const_cast<char**>(argv)); 235 constexpr int argc = 9; variable 248 RunCmds(tool, argc, const_cast<char**>(argv)); 260 constexpr int argc = 3; variable 267 RunCmds(tool, argc, const_cast<char**>(argv)); [all …]
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab_mount.c | 92 static int ExecCommand(int argc, char **argv) in ExecCommand() argument 94 BEGET_CHECK(!(argc == 0 || argv == NULL || argv[0] == NULL), return -1); in ExecCommand() 133 int argc = ARRAY_LENGTH(formatCmds); in DoFormat() local 135 ret = ExecCommand(argc, argv); in DoFormat() 148 int argc = ARRAY_LENGTH(formatCmds); in DoFormat() local 150 ret = ExecCommand(argc, argv); in DoFormat() 202 int argc = 0; in DoResizeF2fs() local 206 argv[argc++] = file; in DoResizeF2fs() 208 argv[argc++] = "-O"; in DoResizeF2fs() 209 argv[argc++] = "extra_attr,project_quota"; in DoResizeF2fs() [all …]
|
/base/startup/init/services/modules/selinux/ |
D | selinux_adp.c | 38 static int LoadSelinuxPolicy(int id, const char *name, int argc, const char **argv) in LoadSelinuxPolicy() argument 45 UNUSED(argc); in LoadSelinuxPolicy() 65 static int SetServiceContent(int id, const char *name, int argc, const char **argv) in SetServiceContent() argument 67 PLUGIN_CHECK(name != NULL && argc >= 1 && argv != NULL, return -1, "Invalid parameter"); in SetServiceContent() 87 static int SetSockCreateCon(int id, const char *name, int argc, const char **argv) in SetSockCreateCon() argument 90 if (argc == 0) { in SetSockCreateCon() 94 PLUGIN_CHECK(argc >= 1 && argv != NULL, return -1, "Invalid parameter"); in SetSockCreateCon() 108 static int RestoreContentRecurse(int id, const char *name, int argc, const char **argv) in RestoreContentRecurse() argument 110 PLUGIN_CHECK(name != NULL && argc >= 1 && argv != NULL, return -1, "Invalid parameter"); in RestoreContentRecurse() 118 static int RestoreContentRecurseForce(int id, const char *name, int argc, const char **argv) in RestoreContentRecurseForce() argument [all …]
|
/base/update/updater/utils/ |
D | write_updater.cpp | 35 static int ExceptionUpdater(int argc, char **argv, UpdateMessage &boot) in ExceptionUpdater() argument 37 if (argc < BINARY_MAX_ARGS) { in ExceptionUpdater() 51 static int WriteUpdaterPara(int argc, UpdaterPara ¶) in WriteUpdaterPara() argument 53 if (argc != 2) { // 2 : Not 2 is an invalid input in WriteUpdaterPara() 69 int main(int argc, char **argv) in main() argument 71 if (argc == 1) { in main() 80 if (ExceptionUpdater(argc, argv, boot) == -1) { in main() 101 if (WriteUpdaterPara(argc, para) != 0) { in main()
|
/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/ |
D | vibrator_js.cpp | 89 static napi_value VibrateTime(napi_env env, napi_value args[], size_t argc) in VibrateTime() argument 91 NAPI_ASSERT(env, (argc >= 1), "Wrong argument number"); in VibrateTime() 97 if (argc >= 2 && IsMatchType(env, args[1], napi_function)) { in VibrateTime() 103 static napi_value VibrateEffectId(napi_env env, napi_value args[], size_t argc) in VibrateEffectId() argument 105 NAPI_ASSERT(env, (argc >= 1), "Wrong argument number"); in VibrateEffectId() 111 if (argc >= 2 && IsMatchType(env, args[1], napi_function)) { in VibrateEffectId() 149 static napi_value VibrateMode(napi_env env, napi_value args[], size_t argc) in VibrateMode() argument 151 if (argc == 0) { in VibrateMode() 174 bool ParseParameter(napi_env env, napi_value args[], size_t argc, VibrateInfo &info) in ParseParameter() argument 176 CHKCF((argc >= 2), "Wrong argument number"); in ParseParameter() [all …]
|