Home
last modified time | relevance | path

Searched refs:trigger (Results 1 – 18 of 18) sorted by relevance

/base/startup/init_lite/services/param/trigger/
Dtrigger_manager.c30 int AddCommand(JobNode *trigger, uint32_t cmdKeyIndex, const char *content) in AddCommand() argument
32 PARAM_CHECK(trigger != NULL, return -1, "trigger is null"); in AddCommand()
49 if (trigger->firstCmd == NULL) { in AddCommand()
50 trigger->firstCmd = node; in AddCommand()
51 trigger->lastCmd = node; in AddCommand()
53 PARAM_CHECK(trigger->lastCmd != NULL, free(node); in AddCommand()
55 trigger->lastCmd->next = node; in AddCommand()
56 trigger->lastCmd = node; in AddCommand()
61 CommandNode *GetNextCmdNode(const JobNode *trigger, const CommandNode *curr) in GetNextCmdNode() argument
63 PARAM_CHECK(trigger != NULL, return NULL, "trigger is null"); in GetNextCmdNode()
[all …]
Dtrigger_processor.c30 static int DoTriggerExecute_(const TriggerNode *trigger, const char *content, uint32_t size) in DoTriggerExecute_() argument
32 PARAM_CHECK(trigger != NULL, return -1, "Invalid trigger"); in DoTriggerExecute_()
33 PARAM_LOGI("DoTriggerExecute_ trigger %s type: %d", GetTriggerName(trigger), trigger->type); in DoTriggerExecute_()
34 … PARAM_CHECK(trigger->type <= TRIGGER_UNKNOW, return -1, "Invalid trigger type %d", trigger->type); in DoTriggerExecute_()
35 CommandNode *cmd = GetNextCmdNode((JobNode *)trigger, NULL); in DoTriggerExecute_()
40 cmd = GetNextCmdNode((JobNode *)trigger, cmd); in DoTriggerExecute_()
45 static int DoTiggerCheckResult(TriggerNode *trigger, const char *content, uint32_t size) in DoTiggerCheckResult() argument
49 if (TRIGGER_IN_QUEUE(trigger)) { in DoTiggerCheckResult()
50 PARAM_LOGI("DoTiggerExecute trigger %s has been waiting execute", GetTriggerName(trigger)); in DoTiggerCheckResult()
53 TRIGGER_SET_FLAG(trigger, TRIGGER_FLAGS_QUEUE); in DoTiggerCheckResult()
[all …]
/base/startup/init_lite/test/unittest/param/
Dtrigger_unittest.cpp35 static int TestCmdExec(const TriggerNode *trigger, const char *content, uint32_t size) in TestCmdExec() argument
37 PARAM_CHECK(trigger != NULL, return -1, "Invalid trigger"); in TestCmdExec()
38 PARAM_LOGI("DoTriggerExecute_ trigger type: %d %s", trigger->type, GetTriggerName(trigger)); in TestCmdExec()
39 PARAM_CHECK(trigger->type <= TRIGGER_UNKNOW, return -1, in TestCmdExec()
40 "Invalid trigger type %d", trigger->type); in TestCmdExec()
41 CommandNode *cmd = GetNextCmdNode((JobNode *)trigger, NULL); in TestCmdExec()
44 cmd = GetNextCmdNode((JobNode *)trigger, cmd); in TestCmdExec()
49 static int TestTriggerExecute(TriggerNode *trigger, const char *content, uint32_t size) in TestTriggerExecute() argument
51 JobNode *node = (JobNode *)trigger; in TestTriggerExecute()
112 JobNode *trigger = GetTriggerByName(GetTriggerWorkSpace(), "init-later"); in TestAddTriggerForBoot() local
[all …]
/base/startup/init_lite/services/param/include/
Dtrigger_manager.h51 #define TRIGGER_IN_QUEUE(trigger) (((trigger)->flags & TRIGGER_FLAGS_QUEUE) == TRIGGER_FLAGS_QUEUE) argument
52 #define TRIGGER_SET_FLAG(trigger, flag) ((trigger)->flags |= (flag)) argument
53 #define TRIGGER_CLEAR_FLAG(trigger, flag) ((trigger)->flags &= ~(flag)) argument
54 #define TRIGGER_TEST_FLAG(trigger, flag) (((trigger)->flags & (flag)) == (flag)) argument
93 …int32_t (*executeTrigger)(const struct tagTriggerNode_ *trigger, const char *content, uint32_t siz…
101 const char *(*getTriggerName)(const struct tagTriggerNode_ *trigger);
102 const char *(*getCondition)(const struct tagTriggerNode_ *trigger);
103 void (*delTrigger)(const struct TriggerWorkSpace_ *workSpace, struct tagTriggerNode_ *trigger);
105 const struct tagTriggerNode_ *trigger);
106 int32_t (*compareData)(const struct tagTriggerNode_ *trigger, const void *data);
[all …]
Dtrigger_checker.h49 typedef int (*PARAM_CHECK_DONE)(struct tagTriggerNode_ *trigger, const char *content, uint32_t size…
/base/startup/init_lite/test/unittest/test_data/
Dtrigger_test.cfg27 "trigger late-init"
35 "trigger late-init"
/base/startup/init_lite/services/param/service/
Dparam_service.c229 uint32_t trigger = 1; in CheckAndSendTrigger() local
231 trigger = (CheckAndMarkTrigger(TRIGGER_PARAM, name) != 0) ? 1 : 0; in CheckAndSendTrigger()
233 if (trigger) { in CheckAndSendTrigger()
389 static int32_t AddWatchNode(struct tagTriggerNode_ *trigger, const struct TriggerExtInfo_ *extInfo) in AddWatchNode() argument
397 WaitNode *node = (WaitNode *)trigger; in AddWatchNode()
404 WatchNode *node = (WatchNode *)trigger; in AddWatchNode()
419 static int32_t ExecuteWatchTrigger_(const struct tagTriggerNode_ *trigger, const char *content, uin… in ExecuteWatchTrigger_() argument
422 extData.type = trigger->type; in ExecuteWatchTrigger_()
423 if (trigger->type == TRIGGER_PARAM_WAIT) { in ExecuteWatchTrigger_()
424 WaitNode *node = (WaitNode *)trigger; in ExecuteWatchTrigger_()
[all …]
/base/startup/init_lite/services/param/
DBUILD.gn30 "trigger/trigger_checker.c",
31 "trigger/trigger_manager.c",
32 "trigger/trigger_processor.c",
/base/startup/init_lite/services/etc/
Dinit.without_two_stages.cfg146 "write /sys/class/leds/vibrator/trigger transient",
157 "trigger early-fs",
158 "trigger fs",
159 "trigger post-fs",
160 "trigger late-fs",
161 "trigger post-fs-data",
162 "trigger firmware_mounts_complete",
163 "trigger early-boot",
164 "trigger boot"
361 "chown system system /sys/class/leds/vibrator/trigger",
Dinit.cfg147 "write /sys/class/leds/vibrator/trigger transient",
161 "trigger early-fs",
162 "trigger fs",
163 "trigger post-fs",
164 "trigger late-fs",
165 "trigger post-fs-data",
166 "trigger firmware_mounts_complete",
167 "trigger early-boot",
168 "trigger boot"
368 "chown system system /sys/class/leds/vibrator/trigger",
/base/startup/init_lite/test/unittest/
DBUILD.gn85 "//base/startup/init_lite/services/param/trigger/trigger_checker.c",
86 "//base/startup/init_lite/services/param/trigger/trigger_manager.c",
87 "//base/startup/init_lite/services/param/trigger/trigger_processor.c",
/base/powermgr/power_manager/services/native/include/
Dpower_state_machine.h139 void RecordFailure(PowerState from, StateChangeReason trigger, TransitResult failReason);
/base/sensors/miscdevice/
DREADME_zh.md136 console.error("Failed to trigger vibration. Error code: " + error.code);
152 console.error("Failed to trigger vibration. Error code: " + error.code);
DREADME.md73 The APIs provided for the vibrator are used to trigger and stop vibration. The following table desc…
136 console.error("Failed to trigger vibration. Error code: " + error.code);
152 console.error("Failed to trigger vibration. Error code: " + error.code);
/base/security/selinux/sepolicy/base/system/
Dvirtfs_contexts53 genfscon proc /sysrq-trigger u:object_r:proc_sysrq_trigger_file:s0
/base/powermgr/power_manager/services/native/src/
Dpower_state_machine.cpp1037 StateChangeReason trigger, TransitResult failReason) in RecordFailure() argument
1040 failTrigger_ = trigger; in RecordFailure()
/base/startup/init_lite/
DREADME_zh.md96 "trigger testjob",
97 "trigger testjob2"
/base/update/updater/test/unittest/test_data/applypatch/
DTestGZipModeImagePatch.old.gz