Home
last modified time | relevance | path

Searched refs:runningFormInfo (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_running_form_info_test/
H A Dfms_running_form_info_test.cpp63 RunningFormInfo runningFormInfo; variable
65 auto result = runningFormInfo.ReadFromParcel(parcel);
80 RunningFormInfo runningFormInfo; variable
82 auto result = runningFormInfo.Marshalling(parcel);
97 RunningFormInfo runningFormInfo; variable
99 EXPECT_NE(runningFormInfo.Unmarshalling(parcel), nullptr);
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Djs_form_state_observer_stub.cpp64 …std::unique_ptr<AppExecFwk::RunningFormInfo> runningFormInfo(data.ReadParcelable<AppExecFwk::Runni… in HandleOnAddForm() local
65 if (!runningFormInfo) { in HandleOnAddForm()
69 int32_t result = OnAddForm(bundleName, *runningFormInfo); in HandleOnAddForm()
78 …std::unique_ptr<AppExecFwk::RunningFormInfo> runningFormInfo(data.ReadParcelable<AppExecFwk::Runni… in HandleOnRemoveForm() local
79 if (!runningFormInfo) { in HandleOnRemoveForm()
83 int32_t result = OnRemoveForm(bundleName, *runningFormInfo); in HandleOnRemoveForm()
135 …std::unique_ptr<AppExecFwk::RunningFormInfo> runningFormInfo(data.ReadParcelable<AppExecFwk::Runni… in HandleOnFormClick() local
136 if (!runningFormInfo) { in HandleOnFormClick()
140 int32_t result = OnFormClickEvent(bundleName, callType, *runningFormInfo); in HandleOnFormClick()
H A Djs_form_state_observer_proxy.cpp27 const AppExecFwk::RunningFormInfo &runningFormInfo) in OnAddForm() argument
43 if (!data.WriteParcelable(&runningFormInfo)) { in OnAddForm()
60 const AppExecFwk::RunningFormInfo &runningFormInfo) in OnRemoveForm() argument
76 if (!data.WriteParcelable(&runningFormInfo)) { in OnRemoveForm()
153 …tring &bundleName, const std::string &callType, const AppExecFwk::RunningFormInfo &runningFormInfo) in OnFormClickEvent() argument
174 if (!data.WriteParcelable(&runningFormInfo)) { in OnFormClickEvent()
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_js_form_state_observer_proxy_test/
H A Dfms_js_form_state_observer_proxy_test.cpp50 RunningFormInfo runningFormInfo = {}; variable
53 int result = jsFormStateObserverProxy->OnAddForm("bundleName", runningFormInfo);
65 RunningFormInfo runningFormInfo = {}; variable
68 int result = jsFormStateObserverProxy->OnRemoveForm("bundleName", runningFormInfo);
96 RunningFormInfo runningFormInfo = {}; variable
99 …int result = jsFormStateObserverProxy->OnFormClickEvent("bundleName", "callType", runningFormInfo);
/ohos5.0/foundation/ability/form_fwk/frameworks/js/napi/formUtil/
H A Dnapi_form_util.cpp483 …napi_set_named_property(env, result, "bundleName", CreateJsValue(env, runningFormInfo.bundleName)); in ParseRunningFormInfoIntoNapi()
486 …napi_set_named_property(env, result, "moduleName", CreateJsValue(env, runningFormInfo.moduleName)); in ParseRunningFormInfoIntoNapi()
487 …napi_set_named_property(env, result, "abilityName", CreateJsValue(env, runningFormInfo.abilityName… in ParseRunningFormInfoIntoNapi()
488 …napi_set_named_property(env, result, "bundleName", CreateJsValue(env, runningFormInfo.bundleName)); in ParseRunningFormInfoIntoNapi()
489 napi_set_named_property(env, result, "formName", CreateJsValue(env, runningFormInfo.formName)); in ParseRunningFormInfoIntoNapi()
490 … napi_set_named_property(env, result, "dimension", CreateJsValue(env, runningFormInfo.dimension)); in ParseRunningFormInfoIntoNapi()
557 for (const auto &runningFormInfo : runningFormInfos) { in CreateRunningFormInfos() local
558 napi_set_element(env, arrayValue, index++, CreateRunningFormInfo(env, runningFormInfo)); in CreateRunningFormInfos()
563 napi_value CreateRunningFormInfo(napi_env env, const RunningFormInfo &runningFormInfo) in CreateRunningFormInfo() argument
570 std::string formStr = std::to_string(runningFormInfo.formId); in CreateRunningFormInfo()
[all …]
H A Dnapi_form_util.h122 void ParseRunningFormInfoIntoNapi(napi_env env, const AppExecFwk::RunningFormInfo &runningFormInfo,…
127 napi_value CreateRunningFormInfo(napi_env env, const AppExecFwk::RunningFormInfo &runningFormInfo);
131 napi_value CreateRunningFormInfo(napi_env env, const AppExecFwk::RunningFormInfo &runningFormInfo);
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_js_form_state_observer_stub_test/
H A Dfms_js_form_state_observer_stub_test.cpp64 const RunningFormInfo &runningFormInfo) override in OnAddForm() argument
70 const RunningFormInfo &runningFormInfo) override in OnRemoveForm() argument
155 RunningFormInfo runningFormInfo = {}; variable
164 data.WriteParcelable(&runningFormInfo);
198 RunningFormInfo runningFormInfo = {}; variable
207 data.WriteParcelable(&runningFormInfo);
272 RunningFormInfo runningFormInfo = {}; variable
296 RunningFormInfo runningFormInfo = {}; variable
308 data.WriteParcelable(&runningFormInfo);
364 RunningFormInfo runningFormInfo = {}; variable
[all …]
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_observer_record_test/
H A Dfms_observer_record_test.cpp97 RunningFormInfo runningFormInfo; variable
99 formObserverRecord.onFormAdd(bundleName, runningFormInfo);
112 RunningFormInfo runningFormInfo; variable
114 formObserverRecord.onFormRemove(bundleName, runningFormInfo);
127 RunningFormInfo runningFormInfo; variable
/ohos5.0/foundation/ability/form_fwk/frameworks/js/napi/form_host/
H A Djs_form_state_observer.h51 void HandleFormEvent(const AppExecFwk::RunningFormInfo &runningFormInfo) const;
76 … ProcessFormAdd(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo);
92 …ocessFormRemove(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo);
123 …t32_t OnAddForm(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo);
125 …_t OnRemoveForm(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo);
142 const AppExecFwk::RunningFormInfo &runningFormInfo);
H A Djs_form_state_observer.cpp52 const AppExecFwk::RunningFormInfo &runningFormInfo) in ProcessFormAdd() argument
66 ParseRunningFormInfoIntoNapi(sharedThis->env_, runningFormInfo, callbackValues); in ProcessFormAdd()
99 const AppExecFwk::RunningFormInfo &runningFormInfo) in ProcessFormRemove() argument
113 ParseRunningFormInfoIntoNapi(sharedThis->env_, runningFormInfo, callbackValues); in ProcessFormRemove()
267 const AppExecFwk::RunningFormInfo &runningFormInfo) in OnAddForm() argument
275 iter->ProcessFormAdd(bundleName, runningFormInfo); in OnAddForm()
318 const AppExecFwk::RunningFormInfo &runningFormInfo) in OnRemoveForm() argument
326 iter->ProcessFormRemove(bundleName, runningFormInfo); in OnRemoveForm()
514 auto notify = [bundleName, callType, runningFormInfo, weakObserver]() { in OnFormClickEvent()
531 (*callBackListIter)->HandleFormEvent(runningFormInfo); in OnFormClickEvent()
[all …]
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/include/
H A Djs_form_state_observer_interface.h34 …t OnAddForm(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo) = 0;
40 …nRemoveForm(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo) = 0;
49 const AppExecFwk::RunningFormInfo &runningFormInfo) = 0;
H A Djs_form_state_observer_proxy.h34 …t32_t OnAddForm(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo);
40 …_t OnRemoveForm(const std::string &bundleName, const AppExecFwk::RunningFormInfo &runningFormInfo);
49 …ring &bundleName, const std::string &callType, const AppExecFwk::RunningFormInfo &runningFormInfo);
/ohos5.0/foundation/ability/form_fwk/services/src/
H A Dform_observer_record.cpp85 void FormObserverRecord::onFormAdd(const std::string bundleName, RunningFormInfo &runningFormInfo) in onFormAdd() argument
96 FormTaskMgr::GetInstance().PostAddTaskToHost(bundleName, callerToken, runningFormInfo); in onFormAdd()
101 …rmObserverRecord::onFormRemove(const std::string bundleName, const RunningFormInfo runningFormInfo) in onFormRemove() argument
113 … FormTaskMgr::GetInstance().PostRemoveTaskToHost(bundleName, callerToken, runningFormInfo); in onFormRemove()
176 … const std::string &bundleName, const std::string &formEventType, RunningFormInfo &runningFormInfo) in HandleFormEvent() argument
199 NotifyFormEvent(iter, eventId, runningFormInfo, formEventType); in HandleFormEvent()
217 FormEventId formEventId, RunningFormInfo &runningFormInfo, const std::string &formEventType) in NotifyFormEvent() argument
225 … recordInner.BindHostBundle(), formEventType, recordInner.GetRemote(), runningFormInfo); in NotifyFormEvent()
H A Dform_task_mgr.cpp370 const sptr<IRemoteObject> &remoteObject, const RunningFormInfo &runningFormInfo) in PostAddTaskToHost() argument
377 auto addFunc = [bundleName, remoteObject, runningFormInfo]() { in PostAddTaskToHost()
378 FormTaskMgr::GetInstance().FormAdd(bundleName, remoteObject, runningFormInfo); in PostAddTaskToHost()
385 const sptr<IRemoteObject> &remoteObject, const RunningFormInfo &runningFormInfo) in PostRemoveTaskToHost() argument
392 auto removeFunc = [bundleName, remoteObject, runningFormInfo]() { in PostRemoveTaskToHost()
400 const RunningFormInfo &runningFormInfo) in FormAdd() argument
409 remoteJsFormStateObserver->OnAddForm(bundleName, runningFormInfo); in FormAdd()
414 const RunningFormInfo &runningFormInfo) in FormRemove() argument
423 remoteJsFormStateObserver->OnRemoveForm(bundleName, runningFormInfo); in FormRemove()
1315 const RunningFormInfo &runningFormInfo) in PostFormClickEventToHost() argument
[all …]
H A Dform_data_mgr.cpp2007 runningFormInfo.formName = formRecord.formName; in FillBasicRunningFormInfoByFormRecord()
2008 runningFormInfo.dimension = formRecord.specification; in FillBasicRunningFormInfoByFormRecord()
2009 runningFormInfo.bundleName = formRecord.bundleName; in FillBasicRunningFormInfoByFormRecord()
2010 runningFormInfo.moduleName = formRecord.moduleName; in FillBasicRunningFormInfoByFormRecord()
2011 runningFormInfo.abilityName = formRecord.abilityName; in FillBasicRunningFormInfoByFormRecord()
2012 runningFormInfo.description = formRecord.description; in FillBasicRunningFormInfoByFormRecord()
2013 runningFormInfo.formLocation = formRecord.formLocation; in FillBasicRunningFormInfoByFormRecord()
2015 runningFormInfo.recycleStatus = formRecord.recycleStatus; in FillBasicRunningFormInfoByFormRecord()
2048 runningFormInfo.formId = matchedFormId; in GetRunningFormInfosByFormId()
2050 runningFormInfo.formUsageState = FormUsageState::USED; in GetRunningFormInfosByFormId()
[all …]
H A Dform_mgr_adapter.cpp189 int FormMgrAdapter::CreateForm(const Want &want, RunningFormInfo &runningFormInfo) in CreateForm() argument
227 runningFormInfo.formId = formId; in CreateForm()
476 ErrCode FormMgrAdapter::HandleFormRemoveObserver(const RunningFormInfo runningFormInfo) in HandleFormRemoveObserver() argument
487 return FormDataMgr::GetInstance().HandleFormRemoveObserver(hostBundleName, runningFormInfo); in HandleFormRemoveObserver()
541 RunningFormInfo runningFormInfo; in DeleteCommonForm() local
542 FormDataMgr::GetInstance().GetRunningFormInfosByFormId(matchedFormId, runningFormInfo); in DeleteCommonForm()
549 HandleFormRemoveObserver(runningFormInfo); in DeleteCommonForm()
3508 RunningFormInfo runningFormInfo; in NotifyFormClickEvent() local
3509 … auto ref = FormDataMgr::GetInstance().GetRunningFormInfosByFormId(matchedFormId, runningFormInfo); in NotifyFormClickEvent()
3515 …bserverRecord::GetInstance().HandleFormEvent(runningFormInfo.hostBundleName, formClickType, runnin… in NotifyFormClickEvent()
[all …]
/ohos5.0/foundation/ability/form_fwk/services/include/
H A Dform_observer_record.h110 void onFormAdd(const std::string bundleName, RunningFormInfo &runningFormInfo);
116 void onFormRemove(const std::string bundleName, const RunningFormInfo runningFormInfo);
132 …const std::string &bundleName, const std::string &formEventType, RunningFormInfo &runningFormInfo);
158 …st FormObserverRecordInner &recordInner, FormEventId formEventId, RunningFormInfo &runningFormInfo,
H A Dform_task_mgr.h223 const RunningFormInfo &runningFormInfo);
228 const RunningFormInfo &runningFormInfo);
261 const RunningFormInfo &runningFormInfo);
493 const RunningFormInfo &runningFormInfo);
496 const RunningFormInfo &runningFormInfo);
553 const sptr<IRemoteObject> &remoteObject, const RunningFormInfo &runningFormInfo);
H A Dform_data_mgr.h603 … HandleFormRemoveObserver(const std::string hostBundleName, const RunningFormInfo runningFormInfo);
611 ErrCode GetRunningFormInfosByFormId(const int64_t formId, RunningFormInfo &runningFormInfo);
859 …llBasicRunningFormInfoByFormRecord(const FormRecord &formRecord, RunningFormInfo &runningFormInfo);
H A Dform_mgr_adapter.h84 int CreateForm(const Want &want, RunningFormInfo &runningFormInfo);
430 ErrCode HandleFormRemoveObserver(const RunningFormInfo runningFormInfo);
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_service_test/
H A Dfms_form_mgr_service_test2.cpp578 std::string runningFormInfo; variable
579 formMgrService.HiDumpFormRunningFormInfos(args, runningFormInfo);
933 RunningFormInfo runningFormInfo; variable
938 … EXPECT_EQ(ERR_APPEXECFWK_FORM_PERMISSION_DENY, formMgrService.CreateForm(want, runningFormInfo));
941 EXPECT_EQ(ERR_APPEXECFWK_FORM_INVALID_PARAM, formMgrService.CreateForm(want, runningFormInfo));
956 RunningFormInfo runningFormInfo; variable
964 EXPECT_EQ(ERR_OK, formMgrService.CreateForm(want, runningFormInfo));
967 …EXPECT_EQ(ERR_APPEXECFWK_FORM_GET_SYSMGR_FAILED, formMgrService.CreateForm(want, runningFormInfo));
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_adapter_test/
H A Dmock_form_data_mgr.cpp370 …de FormDataMgr::GetRunningFormInfosByFormId(const int64_t formId, RunningFormInfo &runningFormInfo) in GetRunningFormInfosByFormId() argument
/ohos5.0/foundation/ability/form_fwk/interfaces/kits/native/include/
H A Dform_mgr.h100 int CreateForm(const Want &want, RunningFormInfo &runningFormInfo);
/ohos5.0/foundation/ability/form_fwk/test/mock/include/
H A Dmock_form_mgr_proxy.h37 MOCK_METHOD2(CreateForm, int(const Want &want, RunningFormInfo &runningFormInfo));
H A Dmock_form_mgr_service.h42 MOCK_METHOD2(CreateForm, int(const Want &want, RunningFormInfo &runningFormInfo));

12