Searched refs:powerCtrlArg (Results 1 – 2 of 2) sorted by relevance
/base/startup/init/services/modules/init_hook/ |
D | param_hook.c | 49 static const ParamCmdInfo powerCtrlArg[] = { in GetStartupPowerCtl() local 56 *size = ARRAY_LENGTH(powerCtrlArg); in GetStartupPowerCtl() 57 return powerCtrlArg; in GetStartupPowerCtl()
|
/base/startup/init/services/param/manager/ |
D | param_manager.c | 285 const ParamCmdInfo *powerCtrlArg = GetStartupPowerCtl(&size); in GetServiceCtrlInfoForPowerCtrl() local 286 PARAM_CHECK(powerCtrlArg != NULL, return -1, "Invalid ctrlInfo for %s", name); in GetServiceCtrlInfoForPowerCtrl() 293 PARAM_LOGV("Get power ctrl %s name %s value %s", powerCtrlArg[i].name, name, value); in GetServiceCtrlInfoForPowerCtrl() 294 if (strncmp(value, powerCtrlArg[i].name, strlen(powerCtrlArg[i].name)) == 0) { in GetServiceCtrlInfoForPowerCtrl() 295 valueOffset = strlen(OHOS_SERVICE_CTRL_PREFIX) + strlen(powerCtrlArg[i].replace) + 1; in GetServiceCtrlInfoForPowerCtrl() 296 return CreateCtrlInfo(ctrlInfo, powerCtrlArg[i].cmd, valueOffset, 1, in GetServiceCtrlInfoForPowerCtrl() 297 "%s%s.%s", OHOS_SERVICE_CTRL_PREFIX, powerCtrlArg[i].replace, value); in GetServiceCtrlInfoForPowerCtrl()
|