Home
last modified time | relevance | path

Searched refs:hookInfo (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.c117 static int ServerStageHookRun(const HOOK_INFO *hookInfo, void *executionContext) in ServerStageHookRun() argument
120 ServerStageHook realHook = (ServerStageHook)hookInfo->hookCookie; in ServerStageHookRun()
124 static void PreHookExec(const HOOK_INFO *hookInfo, void *executionContext) in PreHookExec() argument
129 APPSPAWN_LOGI("Hook stage: %{public}d prio: %{public}d start", hookInfo->stage, hookInfo->prio); in PreHookExec()
139 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in PostHookExec()
174 static int AppSpawnHookRun(const HOOK_INFO *hookInfo, void *executionContext) in AppSpawnHookRun() argument
177 AppSpawnHook realHook = (AppSpawnHook)hookInfo->hookCookie; in AppSpawnHookRun()
185 APPSPAWN_LOGV("Hook stage: %{public}d prio: %{public}d start", hookInfo->stage, hookInfo->prio); in PreAppSpawnHookExec()
194 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in PostAppSpawnHookExec()
272 static int ProcessMgrHookRun(const HOOK_INFO *hookInfo, void *executionContext) in ProcessMgrHookRun() argument
[all …]
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dhookmgr.h79 typedef int (*OhosHook)(const HOOK_INFO *hookInfo, void *executionContext);
108 int HookMgrAddEx(HOOK_MGR *hookMgr, const HOOK_INFO *hookInfo);
129 typedef void (*OhosHookPreExecution)(const HOOK_INFO *hookInfo, void *executionContext);
139 typedef void (*OhosHookPostExecution)(const HOOK_INFO *hookInfo, void *executionContext, int execut…
192 typedef void (*OhosHookTraversal)(const HOOK_INFO *hookInfo, void *traversalCookie);
/ohos5.0/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
64 static void OhosHookPrint(const HOOK_INFO *hookInfo, void *traversalCookie) in OhosHookPrint() argument
66 printf("\tstage[%02d] prio[%02d].\n", hookInfo->stage, hookInfo->prio); in OhosHookPrint()
/ohos5.0/base/startup/init/services/modules/init_hook/
H A Dinit_hook.c88 static int JobParseHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in JobParseHookWrapper() argument
91 JobParseHook realHook = (JobParseHook)hookInfo->hookCookie; in JobParseHookWrapper()
138 static int ParamSetInitCmdHook(const HOOK_INFO *hookInfo, void *cookie) in ParamSetInitCmdHook() argument
187 static int BootCompleteCmd(const HOOK_INFO *hookInfo, void *executionContext) in BootCompleteCmd() argument
190 UNUSED(hookInfo); in BootCompleteCmd()
/ohos5.0/base/startup/init/interfaces/innerkits/hookmgr/
H A Dhookmgr.c167 int HookMgrAddEx(HOOK_MGR *hookMgr, const HOOK_INFO *hookInfo) in HookMgrAddEx() argument
170 BEGET_CHECK(hookInfo != NULL, return -1); in HookMgrAddEx()
171 BEGET_CHECK(hookInfo->hook != NULL, return -1); in HookMgrAddEx()
178 stageItem = getHookStage(hookMgr, hookInfo->stage, true); in HookMgrAddEx()
182 return addHookToStage(stageItem, hookInfo->prio, hookInfo->hook, hookInfo->hookCookie); in HookMgrAddEx()
/ohos5.0/base/startup/init/test/unittest/innerkits/
H A Dhookmgr_unittest.cpp53 static int OhosTestHookRetOK(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOK() argument
58 static int OhosTestHookRetOKEx(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx() argument
63 static int OhosTestHookRetOKEx2(const HOOK_INFO *hookInfo, void *executionContext) in OhosTestHookRetOKEx2() argument
68 static void OhosHookPrint(const HOOK_INFO *hookInfo, void *traversalCookie) in OhosHookPrint() argument
70 printf("\tstage[%02d] prio[%02d].\n", hookInfo->stage, hookInfo->prio); in OhosHookPrint()
/ohos5.0/base/startup/init/services/init/standard/
H A Dinit.c183 INIT_STATIC void InitPreHook(const HOOK_INFO *hookInfo, void *executionContext) in InitPreHook() argument
189 INIT_STATIC void InitPostHook(const HOOK_INFO *hookInfo, void *executionContext, int executionRetVa… in InitPostHook() argument
195 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in InitPostHook()
/ohos5.0/base/location/test/location_common/source/
H A Dlocation_common_test.cpp718 static int OhosHookTest01(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest01() argument
721 EXPECT_NE(hookInfo, nullptr); in OhosHookTest01()
722 EXPECT_EQ(hookInfo->prio, 0); in OhosHookTest01()
727 static int OhosHookTest02(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest02() argument
730 EXPECT_NE(hookInfo, nullptr); in OhosHookTest02()
731 EXPECT_EQ(hookInfo->prio, 1); in OhosHookTest02()
741 static int OhosHookTest03(const HOOK_INFO *hookInfo, void *executionContext) in OhosHookTest03() argument
744 EXPECT_NE(hookInfo, nullptr); in OhosHookTest03()
745 EXPECT_EQ(hookInfo->prio, 0); in OhosHookTest03()
760 EXPECT_NE(hookInfo, nullptr); in OhosHookTest04()
[all …]
/ohos5.0/base/startup/init/services/modules/udid/
H A Dudid_static.c19 static int UDidCalc(const HOOK_INFO *hookInfo, void *cookie) in UDidCalc() argument
/ohos5.0/base/startup/init/services/modules/reboot/
H A Dreboot_static.c29 static int RebootHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in RebootHookWrapper() argument
32 InitRebootHook realHook = (InitRebootHook)hookInfo->hookCookie; in RebootHookWrapper()
/ohos5.0/base/startup/init/test/fuzztest/hookmgrdel_fuzzer/
H A Dhookmgrdel_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/ohos5.0/base/startup/init/test/fuzztest/hookmgrtraversal_fuzzer/
H A Dhookmgrtraversal_fuzzer.cpp20 static void HookTraversal(const HOOK_INFO *hookInfo, void *traversalCookie) in HookTraversal() argument
/ohos5.0/base/startup/init/test/fuzztest/hookmgradd_fuzzer/
H A Dhookmgradd_fuzzer.cpp20 static int TestHook(const HOOK_INFO *hookInfo, void *executionContext) in TestHook() argument
/ohos5.0/base/startup/init/services/modules/selinux/
H A Dselinux_static.c21 static int SelinuxHook(const HOOK_INFO *hookInfo, void *cookie) in SelinuxHook() argument
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/zidl/
H A Dscreen_session_manager_stub.cpp801 DMHookInfo hookInfo; in OnRemoteRequest() local
802 hookInfo.width_ = data.ReadUint32(); in OnRemoteRequest()
803 hookInfo.height_ = data.ReadUint32(); in OnRemoteRequest()
804 hookInfo.density_ = data.ReadFloat(); in OnRemoteRequest()
805 hookInfo.rotation_ = data.ReadUint32(); in OnRemoteRequest()
806 hookInfo.enableHookRotation_ = data.ReadBool(); in OnRemoteRequest()
807 UpdateDisplayHookInfo(uid, enable, hookInfo); in OnRemoteRequest()
H A Dscreen_session_manager_proxy.cpp2959 …eenSessionManagerProxy::UpdateDisplayHookInfo(int32_t uid, bool enable, const DMHookInfo& hookInfo) in UpdateDisplayHookInfo() argument
2986 if (!data.WriteUint32(hookInfo.width_) || !data.WriteUint32(hookInfo.height_) || in UpdateDisplayHookInfo()
2987 !data.WriteFloat(hookInfo.density_) || !data.WriteUint32(hookInfo.rotation_) || in UpdateDisplayHookInfo()
2988 !data.WriteBool(hookInfo.enableHookRotation_)) { in UpdateDisplayHookInfo()
/ohos5.0/base/startup/init/interfaces/innerkits/init_module_engine/include/
H A Dbootstage.h90 typedef int (*ParamLoadFilter)(const HOOK_INFO *hookInfo, PARAM_LOAD_FILTER_CTX *filter);
/ohos5.0/base/startup/init/services/init/
H A Dinit_common_service.c106 static int ServiceHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceHookWrapper() argument
109 ServiceHook realHook = (ServiceHook)hookInfo->hookCookie; in ServiceHookWrapper()
127 static int ServiceRestartHookWrapper(const HOOK_INFO *hookInfo, void *executionContext) in ServiceRestartHookWrapper() argument
130 ServiceRestartHook realHook = (ServiceRestartHook)hookInfo->hookCookie; in ServiceRestartHookWrapper()
/ohos5.0/foundation/window/window_manager/window_scene/screen_session_manager/include/
H A Dscreen_session_manager_client.h78 void UpdateDisplayHookInfo(int32_t uid, bool enable, const DMHookInfo& hookInfo);
/ohos5.0/foundation/window/window_manager/window_scene/screen_session_manager/src/
H A Dscreen_session_manager_client.cpp556 …enSessionManagerClient::UpdateDisplayHookInfo(int32_t uid, bool enable, const DMHookInfo& hookInfo) in UpdateDisplayHookInfo() argument
562 screenSessionManager_->UpdateDisplayHookInfo(uid, enable, hookInfo); in UpdateDisplayHookInfo()
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/
H A Djs_scene_utils.cpp496 bool ConvertHookInfoFromJs(napi_env env, napi_value jsObject, HookInfo& hookInfo) in ConvertHookInfoFromJs() argument
514 hookInfo.width_ = width; in ConvertHookInfoFromJs()
521 hookInfo.height_ = height; in ConvertHookInfoFromJs()
528 hookInfo.density_ = static_cast<float_t>(density); in ConvertHookInfoFromJs()
535 hookInfo.rotation_ = rotation; in ConvertHookInfoFromJs()
542 hookInfo.enableHookRotation_ = enableHookRotation; in ConvertHookInfoFromJs()
H A Djs_scene_utils.h189 bool ConvertHookInfoFromJs(napi_env env, napi_value jsObject, HookInfo& hookInfo);
/ohos5.0/foundation/window/window_manager/dmserver/include/
H A Ddisplay_manager_interface.h44 virtual void UpdateDisplayHookInfo(int32_t uid, bool enable, const DMHookInfo& hookInfo) {}; in UpdateDisplayHookInfo() argument
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/zidl/
H A Dscreen_session_manager_proxy.h121 … virtual void UpdateDisplayHookInfo(int32_t uid, bool enable, const DMHookInfo& hookInfo) override;
/ohos5.0/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dscreen_session_manager_client_test.cpp1020 DMHookInfo hookInfo; variable
1022 screenSessionManagerClient_->UpdateDisplayHookInfo(uid, enable, hookInfo);

12