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