Home
last modified time | relevance | path

Searched refs:executionContext (Results 1 - 15 of 15) sorted by relevance

/base/startup/init/interfaces/innerkits/include/
H A Dhookmgr.h76 * @param executionContext input arguments for running the hook execution context
79 typedef int (*OhosHook)(const HOOK_INFO *hookInfo, void *executionContext);
126 * @param executionContext input arguments for running the hook execution context.
129 typedef void (*OhosHookPreExecution)(const HOOK_INFO *hookInfo, void *executionContext);
135 * @param executionContext input arguments for running the hook execution context.
139 typedef void (*OhosHookPostExecution)(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal);
167 int HookMgrExecute(HOOK_MGR *hookMgr, int stage, void *executionContext, const HOOK_EXEC_OPTIONS *extraArgs);
/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.c117 static int ServerStageHookRun(const HOOK_INFO *hookInfo, void *executionContext) in ServerStageHookRun() argument
119 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in ServerStageHookRun()
124 static void PreHookExec(const HOOK_INFO *hookInfo, void *executionContext) in PreHookExec() argument
126 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in PreHookExec()
132 static void PostHookExec(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal) in PostHookExec() argument
134 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in PostHookExec()
174 static int AppSpawnHookRun(const HOOK_INFO *hookInfo, void *executionContext) in AppSpawnHookRun() argument
176 AppSpawnForkArg *arg = (AppSpawnForkArg *)executionContext; in AppSpawnHookRun()
181 static void PreAppSpawnHookExec(const HOOK_INFO *hookInfo, void *executionContext) in PreAppSpawnHookExec() argument
183 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in PreAppSpawnHookExec()
188 PostAppSpawnHookExec(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal) PostAppSpawnHookExec() argument
272 ProcessMgrHookRun(const HOOK_INFO *hookInfo, void *executionContext) ProcessMgrHookRun() argument
[all...]
/base/startup/init/test/unittest/innerkits/
H A Dhookmgr_unittest.cpp37 static int OhosHookTestCommon(void *executionContext, int result) in OhosHookTestCommon() argument
41 if (executionContext == nullptr) { in OhosHookTestCommon()
45 ctx = (struct HookExecCtx *)executionContext; in OhosHookTestCommon()
53 static int OhosTestHookRetOK(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOK() argument
55 return OhosHookTestCommon(executionContext, 1); in OhosTestHookRetOK()
58 static int OhosTestHookRetOKEx(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx() argument
60 return OhosHookTestCommon(executionContext, 2); in OhosTestHookRetOKEx()
63 static int OhosTestHookRetOKEx2(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx2() argument
65 return OhosHookTestCommon(executionContext, 3); in OhosTestHookRetOKEx2()
/base/startup/init/interfaces/innerkits/hookmgr/
H A Dhookmgr.c239 void *executionContext; member
250 args->options->preHook(&hookItem->info, args->executionContext); in hookExecutionProc()
252 ret = hookItem->info.hook(&hookItem->info, args->executionContext); in hookExecutionProc()
254 args->options->postHook(&hookItem->info, args->executionContext, ret); in hookExecutionProc()
263 int HookMgrExecute(HOOK_MGR *hookMgr, int stage, void *executionContext, const HOOK_EXEC_OPTIONS *options) in HookMgrExecute() argument
282 args.executionContext = executionContext; in HookMgrExecute()
/base/startup/init/services/modules/init_hook/
H A Dinit_hook.c88 static int JobParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in JobParseHookWrapper() argument
90 JOB_PARSE_CTX *jobParseContext = (JOB_PARSE_CTX *)executionContext; in JobParseHookWrapper()
187 static int BootCompleteCmd(const HOOK_INFO *hookInfo, void *executionContext) in BootCompleteCmd() argument
191 UNUSED(executionContext); in BootCompleteCmd()
/base/startup/init/test/fuzztest/hookmgrdel_fuzzer/
H A Dhookmgrdel_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/base/startup/init/test/fuzztest/hookmgradd_fuzzer/
H A Dhookmgradd_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/base/startup/init/test/moduletest/
H A Dhookmgr_moduletest.cpp50 static int OhosTestHookMultiThread(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookMultiThread() argument
57 static int OhosTestHookMultiThreadAnother(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookMultiThreadAnother() argument
/base/startup/init/services/init/standard/
H A Dinit.c183 INIT_STATIC void InitPreHook(const HOOK_INFO *hookInfo, void *executionContext) in InitPreHook() argument
185 INIT_TIMING_STAT *stat = (INIT_TIMING_STAT *)executionContext; in InitPreHook()
189 INIT_STATIC void InitPostHook(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal) in InitPostHook() argument
191 INIT_TIMING_STAT *stat = (INIT_TIMING_STAT *)executionContext; in InitPostHook()
/base/location/frameworks/location_common/common/source/
H A Dhook_utils.cpp50 LocationProcessStage stage, void *executionContext, const HOOK_EXEC_OPTIONS *options) in ExecuteHook()
52 auto ret = HookMgrExecute(GetLocationExtHookMgr(), static_cast<int>(stage), executionContext, options); in ExecuteHook()
49 ExecuteHook( LocationProcessStage stage, void *executionContext, const HOOK_EXEC_OPTIONS *options) ExecuteHook() argument
/base/startup/init/services/modules/reboot/
H A Dreboot_static.c29 static int RebootHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in RebootHookWrapper() argument
31 RebootHookCtx *ctx = (RebootHookCtx *)executionContext; in RebootHookWrapper()
/base/location/interfaces/inner_api/include/
H A Dhook_utils.h90 static LocationErrCode ExecuteHook(LocationProcessStage stage, void *executionContext,
/base/location/test/location_common/source/
H A Dlocation_common_test.cpp719 static int OhosHookTest01(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest01() argument
724 EXPECT_EQ(executionContext, nullptr); in OhosHookTest01()
728 static int OhosHookTest02(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest02() argument
733 EXPECT_EQ(executionContext, nullptr); in OhosHookTest02()
742 static int OhosHookTest03(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest03() argument
748 EXPECT_NE(executionContext, nullptr); in OhosHookTest03()
749 HOOK_TEST* hookTest = (HOOK_TEST*)executionContext; in OhosHookTest03()
758 static int OhosHookTest04(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest04() argument
764 EXPECT_NE(executionContext, nullptr); in OhosHookTest04()
765 HOOK_TEST* hookTest = (HOOK_TEST*)executionContext; in OhosHookTest04()
[all...]
/base/startup/init/services/init/
H A Dinit_common_service.c106 static int ServiceHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceHookWrapper() argument
108 SERVICE_INFO_CTX *serviceContext = (SERVICE_INFO_CTX *)executionContext; in ServiceHookWrapper()
127 static int ServiceRestartHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceRestartHookWrapper() argument
129 SERVICE_RESTART_CTX *serviceContext = (SERVICE_RESTART_CTX *)executionContext; in ServiceRestartHookWrapper()
H A Dinit_service_manager.c990 static int ServiceParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceParseHookWrapper() argument
992 SERVICE_PARSE_CTX *serviceParseContext = (SERVICE_PARSE_CTX *)executionContext; in ServiceParseHookWrapper()

Completed in 10 milliseconds