/base/startup/appspawn/modules/modulemgr/ |
D | appspawn_modulemgr.c | 104 static int ServerStageHookRun(const HOOK_INFO *hookInfo, void *executionContext) in ServerStageHookRun() argument 106 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in ServerStageHookRun() 111 static void PreHookExec(const HOOK_INFO *hookInfo, void *executionContext) in PreHookExec() argument 113 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in PreHookExec() 119 static void PostHookExec(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVal) in PostHookExec() argument 121 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in PostHookExec() 160 static int AppSpawnHookRun(const HOOK_INFO *hookInfo, void *executionContext) in AppSpawnHookRun() argument 162 AppSpawnForkArg *arg = (AppSpawnForkArg *)executionContext; in AppSpawnHookRun() 167 static void PreAppSpawnHookExec(const HOOK_INFO *hookInfo, void *executionContext) in PreAppSpawnHookExec() argument 169 AppSpawnHookArg *arg = (AppSpawnHookArg *)executionContext; in PreAppSpawnHookExec() [all …]
|
/base/startup/init/interfaces/innerkits/include/ |
D | hookmgr.h | 79 typedef int (*OhosHook)(const HOOK_INFO *hookInfo, void *executionContext); 129 typedef void (*OhosHookPreExecution)(const HOOK_INFO *hookInfo, void *executionContext); 139 typedef void (*OhosHookPostExecution)(const HOOK_INFO *hookInfo, void *executionContext, int execut… 167 int HookMgrExecute(HOOK_MGR *hookMgr, int stage, void *executionContext, const HOOK_EXEC_OPTIONS *e…
|
/base/startup/init/test/unittest/innerkits/ |
D | hookmgr_unittest.cpp | 37 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/ |
D | hookmgr.c | 239 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 *o… in HookMgrExecute() argument 282 args.executionContext = executionContext; in HookMgrExecute()
|
/base/startup/init/services/modules/init_hook/ |
D | init_hook.c | 88 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/moduletest/ |
D | hookmgr_moduletest.cpp | 50 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/ |
D | init.c | 183 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 executionRetVa… in InitPostHook() argument 191 INIT_TIMING_STAT *stat = (INIT_TIMING_STAT *)executionContext; in InitPostHook()
|
/base/location/frameworks/location_common/common/source/ |
D | hook_utils.cpp | 50 LocationProcessStage stage, void *executionContext, const HOOK_EXEC_OPTIONS *options) in ExecuteHook() argument 52 …auto ret = HookMgrExecute(GetLocationExtHookMgr(), static_cast<int>(stage), executionContext, opti… in ExecuteHook()
|
/base/startup/init/test/fuzztest/hookmgradd_fuzzer/ |
D | hookmgradd_fuzzer.cpp | 20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
|
/base/startup/init/test/fuzztest/hookmgrdel_fuzzer/ |
D | hookmgrdel_fuzzer.cpp | 20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
|
/base/location/test/location_common/source/ |
D | location_common_test.cpp | 720 static int OhosHookTest01(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest01() argument 725 EXPECT_EQ(executionContext, nullptr); in OhosHookTest01() 729 static int OhosHookTest02(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest02() argument 734 EXPECT_EQ(executionContext, nullptr); in OhosHookTest02() 743 static int OhosHookTest03(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest03() argument 749 EXPECT_NE(executionContext, nullptr); in OhosHookTest03() 750 HOOK_TEST* hookTest = (HOOK_TEST*)executionContext; in OhosHookTest03() 759 static int OhosHookTest04(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest04() argument 765 EXPECT_NE(executionContext, nullptr); in OhosHookTest04() 766 HOOK_TEST* hookTest = (HOOK_TEST*)executionContext; in OhosHookTest04()
|
/base/startup/init/services/modules/reboot/ |
D | reboot_static.c | 29 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/ |
D | hook_utils.h | 72 static LocationErrCode ExecuteHook(LocationProcessStage stage, void *executionContext,
|
/base/startup/init/services/init/ |
D | init_common_service.c | 105 static int ServiceHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceHookWrapper() argument 107 SERVICE_INFO_CTX *serviceContext = (SERVICE_INFO_CTX *)executionContext; in ServiceHookWrapper() 126 static int ServiceRestartHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceRestartHookWrapper() argument 128 SERVICE_RESTART_CTX *serviceContext = (SERVICE_RESTART_CTX *)executionContext; in ServiceRestartHookWrapper()
|
D | init_service_manager.c | 967 static int ServiceParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceParseHookWrapper() argument 969 SERVICE_PARSE_CTX *serviceParseContext = (SERVICE_PARSE_CTX *)executionContext; in ServiceParseHookWrapper()
|