Lines Matching refs:paramName

36 static int GetBootSwitchEnable(const char *paramName)  in GetBootSwitchEnable()  argument
40 SystemReadParam(paramName, bootEventOpen, &len); in GetBootSwitchEnable()
56 if (strncmp(item->paramName, BOOT_EVENT_PARA_PREFIX, BOOT_EVENT_PARA_PREFIX_LEN) != 0) { in BootEventParaListCompareProc()
59 if (strcmp(item->paramName + BOOT_EVENT_PARA_PREFIX_LEN, (const char *)data) == 0) { in BootEventParaListCompareProc()
68 if (strcmp(item->paramName, (const char *)data) == 0) { in ParseBooteventCompareProc()
74 static int AddBootEventItem(BOOT_EVENT_PARAM_ITEM *item, const char *paramName) in AddBootEventItem() argument
81 item->paramName = strdup(paramName); in AddBootEventItem()
82 if (item->paramName == NULL) { in AddBootEventItem()
92 static int AddBootEventItemByName(const char *paramName) in AddBootEventItemByName() argument
99 return AddBootEventItem(item, paramName); in AddBootEventItemByName()
102 static void SetServiceBooteventHookMgr(const char *serviceName, const char *paramName, int state) in SetServiceBooteventHookMgr() argument
107 context.reserved = paramName; in SetServiceBooteventHookMgr()
114 static int AddServiceBootEvent(const char *serviceName, const char *paramName) in AddServiceBootEvent() argument
118 …if ((paramName == NULL) || (strncmp(paramName, BOOT_EVENT_PARA_PREFIX, BOOT_EVENT_PARA_PREFIX_LEN)… in AddServiceBootEvent()
121 found = OH_ListFind(&bootEventList, (void *)paramName, ParseBooteventCompareProc); in AddServiceBootEvent()
137 if (AddBootEventItem(item, paramName) != 0) { in AddServiceBootEvent()
142 SetServiceBooteventHookMgr(serviceName, paramName, 1); in AddServiceBootEvent()
162 item->paramName = strdup(bootEventName); in AddInitBootEvent()
163 INIT_CHECK(item->paramName != NULL, free(item); in AddInitBootEvent()
176 INIT_CHECK(bootEvent->paramName == NULL, free((void *)bootEvent->paramName)); in BootEventDestroy()
211 INIT_CHECK_RETURN_VALUE(AddItemToJson((cJSON *)root, item->paramName, 0, in BootEventTraversal()
215 INIT_CHECK_RETURN_VALUE(AddItemToJson((cJSON *)root, item->paramName, forkTime, in BootEventTraversal()
294 free(((BOOT_EVENT_PARAM_ITEM *)extData->data)->paramName); in BootCompleteClearAll()
305 static void WriteBooteventSysParam(const char *paramName) in WriteBooteventSysParam() argument
315 …CK_ONLY_ELOG(snprintf_s(name, sizeof(name), sizeof(name) - 1, "ohos.boot.time.%s", paramName) >= 0, in WriteBooteventSysParam()
320 static int BootEventParaFireByName(const char *paramName) in BootEventParaFireByName() argument
324 char *bootEventValue = strrchr(paramName, '.'); in BootEventParaFireByName()
328 WriteBooteventSysParam(paramName); in BootEventParaFireByName()
330 …found = (BOOT_EVENT_PARAM_ITEM *)OH_ListFind(&bootEventList, (void *)paramName, BootEventParaListC… in BootEventParaFireByName()
343 SetServiceBooteventHookMgr(NULL, paramName, 2); // 2: bootevent service has ready in BootEventParaFireByName()
534 item->paramName = calloc(1, cmdLen); in AddCmdBootEvent()
535 if (item->paramName == NULL) { in AddCmdBootEvent()
539 INIT_CHECK_ONLY_ELOG(snprintf_s(item->paramName, cmdLen, cmdLen - 1, "%s%s", in AddCmdBootEvent()