Home
last modified time | relevance | path

Searched refs:formDeathCallback (Results 1 - 3 of 3) sorted by relevance

/foundation/ability/form_fwk/test/fuzztest/formmgr_fuzzer/
H A Dformmgr_fuzzer.cpp77 std::shared_ptr<FormCallbackInterface> formDeathCallback = nullptr; in DoSomethingInterestingWithMyAPI() local
78 formMgr.RegisterDeathCallback(formDeathCallback); in DoSomethingInterestingWithMyAPI()
79 formMgr.UnRegisterDeathCallback(formDeathCallback); in DoSomethingInterestingWithMyAPI()
81 formMgr.CheckIsDeathCallbackRegistered(formDeathCallback); in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/interfaces/kits/native/include/
H A Dform_mgr.h246 * @param formDeathCallback The death callback.
248 void RegisterDeathCallback(const std::shared_ptr<FormCallbackInterface> &formDeathCallback);
253 * @param formDeathCallback The death callback.
255 void UnRegisterDeathCallback(const std::shared_ptr<FormCallbackInterface> &formDeathCallback);
313 * @param formDeathCallback The specified death callback for checking.
316 bool CheckIsDeathCallbackRegistered(const std::shared_ptr<FormCallbackInterface> &formDeathCallback);
/foundation/ability/form_fwk/interfaces/kits/native/src/
H A Dform_mgr.cpp742 void FormMgr::RegisterDeathCallback(const std::shared_ptr<FormCallbackInterface> &formDeathCallback) in RegisterDeathCallback() argument
745 if (formDeathCallback == nullptr) { in RegisterDeathCallback()
746 HILOG_ERROR("null formDeathCallback"); in RegisterDeathCallback()
749 formDeathCallbacks_.emplace_back(formDeathCallback); in RegisterDeathCallback()
757 void FormMgr::UnRegisterDeathCallback(const std::shared_ptr<FormCallbackInterface> &formDeathCallback) in UnRegisterDeathCallback() argument
760 if (formDeathCallback == nullptr) { in UnRegisterDeathCallback()
761 HILOG_ERROR("null formDeathCallback"); in UnRegisterDeathCallback()
766 auto iter = std::find(formDeathCallbacks_.begin(), formDeathCallbacks_.end(), formDeathCallback); in UnRegisterDeathCallback()
784 * @param formDeathCallback The specified death callback for checking.
787 bool FormMgr::CheckIsDeathCallbackRegistered(const std::shared_ptr<FormCallbackInterface> &formDeathCallback) in CheckIsDeathCallbackRegistered() argument
[all...]

Completed in 4 milliseconds