/base/startup/init/services/param/trigger/ |
D | trigger_manager.c | 28 int AddCommand(JobNode *trigger, uint32_t cmdKeyIndex, const char *content, const ConfigContext *cf… in AddCommand() argument 30 PARAM_CHECK(trigger != NULL, return -1, "trigger is null"); in AddCommand() 50 if (trigger->firstCmd == NULL) { in AddCommand() 51 trigger->firstCmd = node; in AddCommand() 52 trigger->lastCmd = node; in AddCommand() 54 PARAM_CHECK(trigger->lastCmd != NULL, free(node); in AddCommand() 56 trigger->lastCmd->next = node; in AddCommand() 57 trigger->lastCmd = node; in AddCommand() 62 CommandNode *GetNextCmdNode(const JobNode *trigger, const CommandNode *curr) in GetNextCmdNode() argument 64 PARAM_CHECK(trigger != NULL, return NULL, "trigger is null"); in GetNextCmdNode() [all …]
|
D | trigger_processor.c | 33 static int DoTriggerExecute_(const TriggerNode *trigger, const char *content, uint32_t size) in DoTriggerExecute_() argument 35 PARAM_CHECK(trigger != NULL, return -1, "Invalid trigger"); in DoTriggerExecute_() 36 PARAM_LOGV("Do execute trigger %s type: %d", GetTriggerName(trigger), trigger->type); in DoTriggerExecute_() 37 … PARAM_CHECK(trigger->type <= TRIGGER_UNKNOW, return -1, "Invalid trigger type %d", trigger->type); in DoTriggerExecute_() 38 CommandNode *cmd = GetNextCmdNode((JobNode *)trigger, NULL); in DoTriggerExecute_() 43 cmd = GetNextCmdNode((JobNode *)trigger, cmd); in DoTriggerExecute_() 48 static int DoTriggerCheckResult(TriggerNode *trigger, const char *content, uint32_t size) in DoTriggerCheckResult() argument 52 if (TRIGGER_IN_QUEUE(trigger)) { in DoTriggerCheckResult() 53 PARAM_LOGI("DoTiggerExecute trigger %s has been waiting execute", GetTriggerName(trigger)); in DoTriggerCheckResult() 56 TRIGGER_SET_FLAG(trigger, TRIGGER_FLAGS_QUEUE); in DoTriggerCheckResult() [all …]
|
/base/startup/init/test/unittest/param/ |
D | trigger_unittest.cpp | 44 static int TestCmdExec(const TriggerNode *trigger, const char *content, uint32_t size) in TestCmdExec() argument 46 PARAM_CHECK(trigger != nullptr, return -1, "Invalid trigger"); in TestCmdExec() 47 PARAM_LOGI("DoTriggerExecute_ trigger type: %d %s", trigger->type, GetTriggerName(trigger)); in TestCmdExec() 48 … PARAM_CHECK(trigger->type <= TRIGGER_UNKNOW, return -1, "Invalid trigger type %d", trigger->type); in TestCmdExec() 49 CommandNode *cmd = GetNextCmdNode(reinterpret_cast<const JobNode *>(trigger), nullptr); in TestCmdExec() 52 cmd = GetNextCmdNode(reinterpret_cast<const JobNode *>(trigger), cmd); in TestCmdExec() 57 static int TestTriggerExecute(TriggerNode *trigger, const char *content, uint32_t size) in TestTriggerExecute() argument 59 JobNode *node = reinterpret_cast<JobNode *>(trigger); in TestTriggerExecute() 130 JobNode *trigger = GetTriggerByName(GetTriggerWorkSpace(), "init-later"); in TestAddTriggerForBoot() local 131 EXPECT_EQ(node, trigger); in TestAddTriggerForBoot() [all …]
|
/base/startup/init/services/param/include/ |
D | trigger_manager.h | 51 #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 …]
|
D | trigger_checker.h | 49 typedef int (*PARAM_CHECK_DONE)(struct tagTriggerNode_ *trigger, const char *content, uint32_t size…
|
/base/startup/init/services/param/linux/ |
D | param_service.c | 64 uint32_t trigger = 1; in CheckAndSendTrigger() local 66 trigger = (CheckAndMarkTrigger(TRIGGER_PARAM, name) != 0) ? 1 : 0; in CheckAndSendTrigger() 68 if (trigger) { in CheckAndSendTrigger() 178 static int32_t AddWatchNode(struct tagTriggerNode_ *trigger, const struct TriggerExtInfo_ *extInfo) in AddWatchNode() argument 186 WaitNode *node = (WaitNode *)trigger; in AddWatchNode() 193 WatchNode *node = (WatchNode *)trigger; in AddWatchNode() 208 static int32_t ExecuteWatchTrigger_(const struct tagTriggerNode_ *trigger, const char *content, uin… in ExecuteWatchTrigger_() argument 211 extData.type = trigger->type; in ExecuteWatchTrigger_() 212 if (trigger->type == TRIGGER_PARAM_WAIT) { in ExecuteWatchTrigger_() 213 WaitNode *node = (WaitNode *)trigger; in ExecuteWatchTrigger_() [all …]
|
D | BUILD.gn | 59 "//base/startup/init/services/param/trigger/trigger_checker.c", 60 "//base/startup/init/services/param/trigger/trigger_manager.c", 61 "//base/startup/init/services/param/trigger/trigger_processor.c",
|
/base/powermgr/power_manager/test/unittest/src/ |
D | native_power_state_machine_test.cpp | 40 TransitResult TransitResultToStateChangeReason(StateChangeReason trigger) in TransitResultToStateChangeReason() argument 225 StateChangeReason trigger = StateChangeReason::STATE_CHANGE_REASON_BATTERY; variable 227 stateMachineController->RecordFailure(PowerState::INACTIVE, trigger, failReason); 229 stateMachineController->RecordFailure(PowerState::INACTIVE, trigger, failReason); 231 stateMachineController->RecordFailure(PowerState::INACTIVE, trigger, failReason); 233 stateMachineController->RecordFailure(PowerState::INACTIVE, trigger, failReason); 235 stateMachineController->RecordFailure(PowerState::INACTIVE, trigger, failReason); 237 … EXPECT_TRUE(stateMachineController->TransitTo(trigger, false) == TransitResult::ALREADY_IN_STATE); 242 EXPECT_TRUE(stateMachineController2->TransitTo(trigger, false) == TransitResult::OTHER_ERR); 263 StateChangeReason trigger = StateChangeReason::STATE_CHANGE_REASON_BATTERY; variable [all …]
|
D | device_state_action_native_test.cpp | 33 void DeviceStateActionCallback(uint32_t trigger) {} in DeviceStateActionCallback() argument
|
/base/update/updater/services/etc/ |
D | updater_common.cfg | 24 "trigger boot" 29 "trigger post-fs-data",
|
/base/startup/init/services/etc/ |
D | init.cfg | 30 "trigger init-hitrace" 71 "write /sys/class/leds/vibrator/trigger transient", 86 "trigger early-fs", 87 "trigger fs", 88 "trigger post-fs", 89 "trigger late-fs", 90 "trigger post-fs-data", 91 "trigger firmware_mounts_complete", 92 "trigger early-boot", 93 "trigger boot"
|
D | init.without_two_stages.cfg | 59 "write /sys/class/leds/vibrator/trigger transient", 71 "trigger early-fs", 72 "trigger fs", 73 "trigger post-fs", 74 "trigger late-fs", 75 "trigger post-fs-data", 76 "trigger firmware_mounts_complete", 77 "trigger early-boot", 78 "trigger boot"
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_hiappevent_watch.cpp | 138 bool IsValidTrigger(const napi_env env, const napi_value trigger) in IsValidTrigger() argument 140 if (trigger == nullptr) { in IsValidTrigger() 143 if (!NapiUtil::IsFunction(env, trigger)) { in IsValidTrigger() 292 napi_value trigger = NapiUtil::GetProperty(env, watcher, TRIGGER_PROPERTY); in AddWatcher() local 293 if (trigger != nullptr) { in AddWatcher() 294 watcherPtr->InitTrigger(env, trigger); in AddWatcher()
|
/base/inputmethod/imf/services/include/ |
D | input_method_system_ability.h | 70 const std::string &bundleName, const std::string &subName, SwitchTrigger trigger) override; 111 int32_t CheckSwitchPermission(const SwitchInfo &switchInfo, SwitchTrigger trigger); 113 int32_t OnSwitchInputMethod(const SwitchInfo &switchInfo, SwitchTrigger trigger);
|
D | i_input_method_system_ability.h | 66 const std::string &bundleName, const std::string &name, SwitchTrigger trigger) = 0;
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/ |
D | input_method_utils.h | 130 Trigger trigger{ END }; 134 && info.visible == visible && info.trigger == trigger;
|
/base/inputmethod/imf/frameworks/native/inputmethod_ability/include/ |
D | input_method_ability.h | 146 int32_t HideKeyboard(Trigger trigger); 150 …wPanel(const std::shared_ptr<InputMethodPanel> &inputMethodPanel, PanelFlag flag, Trigger trigger); 151 …ePanel(const std::shared_ptr<InputMethodPanel> &inputMethodPanel, PanelFlag flag, Trigger trigger);
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/include/ |
D | napi_app_event_watcher.h | 57 void InitTrigger(const napi_env env, const napi_value trigger);
|
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/ |
D | input_method_ability.cpp | 444 if (controlChannel != nullptr && info.trigger == Trigger::IME_APP && !info.visible) { in NotifyPanelStatusInfo() 855 const std::shared_ptr<InputMethodPanel> &inputMethodPanel, PanelFlag flag, Trigger trigger) in ShowPanel() argument 860 if (trigger == Trigger::IME_APP && GetInputDataChannelProxy() == nullptr) { in ShowPanel() 873 NotifyPanelStatusInfo({ { inputMethodPanel->GetPanelType(), flag }, true, trigger }); in ShowPanel() 879 const std::shared_ptr<InputMethodPanel> &inputMethodPanel, PanelFlag flag, Trigger trigger) in HidePanel() argument 886 NotifyPanelStatusInfo({ { inputMethodPanel->GetPanelType(), flag }, false, trigger }); in HidePanel() 924 int32_t InputMethodAbility::HideKeyboard(Trigger trigger) in HideKeyboard() argument 930 IMSA_HILOGD("IMA, trigger: %{public}d", static_cast<int32_t>(trigger)); in HideKeyboard() 943 return HidePanel(panel, flag, trigger); in HideKeyboard() 952 if (controlChannel != nullptr && trigger == Trigger::IME_APP) { in HideKeyboard()
|
/base/hiviewdfx/hiview/service/config/ |
D | hiview.cfg | 25 "chown root system /proc/sysrq-trigger", 32 "chmod 660 /proc/sysrq-trigger",
|
/base/startup/init/test/unittest/init/ |
D | service_unittest.cpp | 80 static int ServiceTestTriggerExe(const TriggerNode *trigger, const char *content, uint32_t size) in ServiceTestTriggerExe() argument 82 INIT_ERROR_CHECK(trigger != NULL, return -1, "ParamWriteTriggerExe trigger is NULL"); in ServiceTestTriggerExe() 83 CommandNode *cmd = GetNextCmdNode((JobNode *)trigger, NULL); in ServiceTestTriggerExe() 86 cmd = GetNextCmdNode((JobNode *)trigger, cmd); in ServiceTestTriggerExe()
|
/base/inputmethod/imf/services/src/ |
D | input_method_system_ability.cpp | 566 const std::string &bundleName, const std::string &subName, SwitchTrigger trigger) in SwitchInputMethod() argument 569 if (trigger == SwitchTrigger::IMSA) { in SwitchInputMethod() 582 : OnSwitchInputMethod(switchInfo, trigger); in SwitchInputMethod() 585 … InputMethodSystemAbility::OnSwitchInputMethod(const SwitchInfo &switchInfo, SwitchTrigger trigger) in OnSwitchInputMethod() argument 594 int32_t ret = CheckSwitchPermission(switchInfo, trigger); in OnSwitchInputMethod() 1189 …nputMethodSystemAbility::CheckSwitchPermission(const SwitchInfo &switchInfo, SwitchTrigger trigger) in CheckSwitchPermission() argument 1191 IMSA_HILOGD("trigger: %{public}d", static_cast<int32_t>(trigger)); in CheckSwitchPermission() 1192 if (trigger == SwitchTrigger::IMSA) { in CheckSwitchPermission() 1195 if (trigger == SwitchTrigger::SYSTEM_APP) { in CheckSwitchPermission() 1206 if (trigger == SwitchTrigger::CURRENT_IME) { in CheckSwitchPermission()
|
/base/inputmethod/imf/common/src/ |
D | itypes_util.cpp | 299 && data.WriteInt32(static_cast<int32_t>(input.trigger)); in Marshalling() 307 int32_t trigger = -1; in Unmarshalling() local 308 ….ReadInt32(type) || !data.ReadInt32(flag) || !data.ReadBool(visible) || !data.ReadInt32(trigger)) { in Unmarshalling() 311 …ic_cast<PanelType>(type), static_cast<PanelFlag>(flag) }, visible, static_cast<Trigger>(trigger) }; in Unmarshalling()
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/ |
D | input_method_system_ability_proxy.cpp | 201 const std::string &name, const std::string &subName, SwitchTrigger trigger) in SwitchInputMethod() argument 204 …[&name, &subName, trigger](MessageParcel &data) { return ITypesUtil::Marshal(data, name, subName, … in SwitchInputMethod()
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
D | js_input_method.h | 33 SwitchTrigger trigger = SwitchTrigger::CURRENT_IME; member
|