core: add some function for trigger action.

N/A

Change-Id: I77f6827227f9b1b6883fcfc7edd2b859e25b44ad
Signed-off-by: liminghao <liminghao@xiaomi.com>