Home
last modified time | relevance | path

Searched refs:hostToken (Results 1 - 25 of 38) sorted by relevance

12

/foundation/ability/form_fwk/test/unittest/fms_form_supply_callback_test/
H A Dmock_ability_connection.cpp27 void FormAbilityConnection::SetHostToken(const sptr<IRemoteObject> hostToken) in SetHostToken() argument
29 hostToken_ = hostToken; in SetHostToken()
H A Dform_supply_callback_test.cpp85 // set hostToken is nullptr in HWTEST_F()
92 * @tc.desc: test IsRemoveConnection function and hostToken is nullptr
106 * @tc.desc: test RemoveConnection function and hostToken is nullptr
127 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); in HWTEST_F() local
133 formSupplyCallback.RemoveConnection(formId, hostToken); in HWTEST_F()
146 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); in HWTEST_F() local
153 formSupplyCallback->IsRemoveConnection(formId, hostToken); in HWTEST_F()
159 * @tc.desc: test HandleHostDied function and hostToken is not nullptr
165 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); in HWTEST_F() local
168 formSupplyCallback.HandleHostDied(hostToken); in HWTEST_F()
195 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); HWTEST_F() local
215 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); HWTEST_F() local
458 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); HWTEST_F() local
[all...]
/foundation/ability/form_fwk/services/include/
H A Dform_supply_callback.h81 * @brief Delete ability connection by formId and hostToken.
83 * @param hostToken Indicates the host token for matching connection.
85 void RemoveConnection(int64_t formId, const sptr<IRemoteObject> &hostToken);
92 * @param hostToken Form host proxy object.
94 void HandleHostDied(const sptr<IRemoteObject> &hostToken);
141 bool IsRemoveConnection(int64_t formId, const sptr<IRemoteObject> &hostToken);
H A Dform_render_mgr.h44 const FormRecord &formRecord, const WantParams &wantParams, const sptr<IRemoteObject> &hostToken = nullptr);
56 const std::string &compId = "", const sptr<IRemoteObject> &hostToken = nullptr);
H A Dform_sandbox_render_mgr_inner.h39 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken = nullptr) override;
H A Dform_acquire_connection.h35 const sptr<IRemoteObject> hostToken);
H A Dform_render_mgr_inner.h43 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken = nullptr);
49 const std::string &compId = "", const sptr<IRemoteObject> &hostToken = nullptr);
123 // <hostToken, formIds>
/foundation/ability/form_fwk/services/src/
H A Dform_supply_callback.cpp259 bool FormSupplyCallback::IsRemoveConnection(int64_t formId, const sptr<IRemoteObject> &hostToken) in IsRemoveConnection() argument
262 if (hostToken == nullptr) { in IsRemoveConnection()
270 if (hostToken == conn.second->GetHostToken() && formId == conn.second->GetFormId()) { in IsRemoveConnection()
285 void FormSupplyCallback::RemoveConnection(int64_t formId, const sptr<IRemoteObject> &hostToken) in RemoveConnection() argument
288 if (hostToken == nullptr) { in RemoveConnection()
294 if (hostToken == conn.second->GetHostToken() && formId == conn.second->GetFormId()) { in RemoveConnection()
297 want.SetParam(Constants::PARAM_FORM_HOST_TOKEN, hostToken); in RemoveConnection()
304 void FormSupplyCallback::HandleHostDied(const sptr<IRemoteObject> &hostToken) in HandleHostDied() argument
307 if (hostToken == nullptr) { in HandleHostDied()
308 HILOG_ERROR("null hostToken"); in HandleHostDied()
[all...]
H A Dform_sandbox_render_mgr_inner.cpp67 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm()
89 return FormRenderMgrInner::RenderForm(formRecord, want, hostToken); in RenderForm()
66 RenderForm( const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) RenderForm() argument
H A Dform_acquire_connection.cpp32 const WantParams &wantParams, const sptr<IRemoteObject> hostToken) : info_(info), wantParams_(wantParams) in FormAcquireConnection()
36 SetHostToken(hostToken); in FormAcquireConnection()
31 FormAcquireConnection(const int64_t formId, const FormItemInfo &info, const WantParams &wantParams, const sptr<IRemoteObject> hostToken) FormAcquireConnection() argument
H A Dform_render_mgr.cpp82 const FormRecord &formRecord, const WantParams &wantParams, const sptr<IRemoteObject> &hostToken) in RenderForm()
105 return sandboxInners_[formRecord.userId]->RenderForm(formRecord, want, hostToken); in RenderForm()
108 return renderInners_[formRecord.userId]->RenderForm(formRecord, want, hostToken); in RenderForm()
242 int64_t formId, const FormRecord &formRecord, const std::string &compId, const sptr<IRemoteObject> &hostToken) in StopRenderingForm()
250 return iter->second->StopRenderingForm(formId, formRecord, compId, hostToken); in StopRenderingForm()
256 return iter->second->StopRenderingForm(formId, formRecord, compId, hostToken); in StopRenderingForm()
81 RenderForm( const FormRecord &formRecord, const WantParams &wantParams, const sptr<IRemoteObject> &hostToken) RenderForm() argument
241 StopRenderingForm( int64_t formId, const FormRecord &formRecord, const std::string &compId, const sptr<IRemoteObject> &hostToken) StopRenderingForm() argument
/foundation/ability/form_fwk/test/fuzztest/formsupplycallback_fuzzer/
H A Dformsupplycallback_fuzzer.cpp65 sptr<IRemoteObject> hostToken = nullptr; in DoSomethingInterestingWithMyAPI() local
66 formSupplyCallback.RemoveConnection(formId, hostToken); in DoSomethingInterestingWithMyAPI()
67 formSupplyCallback.HandleHostDied(hostToken); in DoSomethingInterestingWithMyAPI()
100 return formSupplyCallback.IsRemoveConnection(formId, hostToken); in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/unittest/fms_form_render_mgr_test/
H A Dmock_form_render_mgr_inner.cpp57 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm()
75 const std::string &compId, const sptr<IRemoteObject> &hostToken) in StopRenderingForm()
56 RenderForm( const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) RenderForm() argument
74 StopRenderingForm(int64_t formId, const FormRecord &formRecord, const std::string &compId, const sptr<IRemoteObject> &hostToken) StopRenderingForm() argument
H A Dmock_form_sandbox_render_mgr_inner.cpp32 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm()
31 RenderForm( const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) RenderForm() argument
H A Dfms_form_render_mgr_test.cpp72 sptr<IRemoteObject> hostToken = nullptr; in HWTEST_F() local
73 EXPECT_EQ(ERR_OK, formRenderMgr.RenderForm(formRecord, wantParams, hostToken)); in HWTEST_F()
90 sptr<IRemoteObject> hostToken = nullptr; in HWTEST_F() local
92 ERR_APPEXECFWK_FORM_INVALID_PARAM, formRenderMgr.RenderForm(formRecord, wantParams, hostToken)); in HWTEST_F()
109 sptr<IRemoteObject> hostToken = nullptr; in HWTEST_F() local
112 EXPECT_EQ(ERR_OK, formRenderMgr.RenderForm(formRecord, wantParams, hostToken)); in HWTEST_F()
129 sptr<IRemoteObject> hostToken = nullptr; in HWTEST_F() local
132 EXPECT_EQ(ERR_OK, formRenderMgr.RenderForm(formRecord, wantParams, hostToken)); in HWTEST_F()
/foundation/ability/form_fwk/test/fuzztest/formrenderimpl_fuzzer/
H A Dformrenderimpl_fuzzer.cpp48 sptr<IRemoteObject> hostToken = nullptr; in DoSomethingInterestingWithMyAPI() local
49 formRenderImpl.CleanFormHost(hostToken); in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/fuzztest/formrenderproxy_fuzzer/
H A Dformrenderproxy_fuzzer.cpp48 sptr<IRemoteObject> hostToken = nullptr; in DoSomethingInterestingWithMyAPI() local
49 formRenderProxy.CleanFormHost(hostToken); in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/services/form_render_service/src/
H A Dform_render_impl.cpp97 sptr<IRemoteObject> hostToken = formRenderWant.GetRemoteObject(Constants::PARAM_FORM_HOST_TOKEN); in RenderForm() local
102 result = search->second->UpdateRenderRecord(formJsInfo, formRenderWant, hostToken); in RenderForm()
111 result = record->UpdateRenderRecord(formJsInfo, formRenderWant, hostToken); in RenderForm()
140 sptr<IRemoteObject> hostToken = want.GetRemoteObject(Constants::PARAM_FORM_HOST_TOKEN); in StopRenderingForm() local
155 search->second->DeleteRenderRecord(formJsInfo.formId, compId, hostToken, isRenderGroupEmpty); in StopRenderingForm()
204 int32_t FormRenderImpl::CleanFormHost(const sptr<IRemoteObject> &hostToken) in CleanFormHost() argument
210 if (renderRecord && renderRecord->HandleHostDied(hostToken)) { in CleanFormHost()
/foundation/ability/form_fwk/interfaces/kits/native/src/
H A Dform_provider_client.cpp96 auto hostToken = want.GetRemoteObject(Constants::PARAM_FORM_HOST_TOKEN); in NotifyFormDelete() local
97 if (hostToken != nullptr) { in NotifyFormDelete()
98 FormCallerMgr::GetInstance().RemoveFormProviderCaller(formId, hostToken); in NotifyFormDelete()
460 auto hostToken = want.GetRemoteObject(Constants::PARAM_FORM_HOST_TOKEN); in HandleRemoteAcquire() local
461 if (hostToken == nullptr) { in HandleRemoteAcquire()
462 HILOG_ERROR("null hostToken"); in HandleRemoteAcquire()
465 FormCallerMgr::GetInstance().AddFormProviderCaller(formJsInfo, hostToken); in HandleRemoteAcquire()
/foundation/ability/form_fwk/test/fuzztest/formrendermgr_fuzzer/
H A Dformrendermgr_fuzzer.cpp46 sptr<IRemoteObject> hostToken = nullptr; in DoSomethingInterestingWithMyAPI() local
47 formRenderMgr.RenderForm(formRecord, wantParams, hostToken); in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/fuzztest/formabilityconnection_fuzzer/
H A Dformabilityconnection_fuzzer.cpp56 sptr<IRemoteObject> hostToken = nullptr; in DoSomethingInterestingWithMyAPI() local
57 formAbilityConnection.SetHostToken(hostToken); in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/test/fuzztest/formrendermgrinner_fuzzer/
H A Dformrendermgrinner_fuzzer.cpp45 sptr<IRemoteObject> hostToken = nullptr; in DoSomethingInterestingWithMyAPI() local
46 formRenderMgrInner.RenderForm(formRecord, want, hostToken); in DoSomethingInterestingWithMyAPI()
/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Dform_render_stub.cpp122 sptr<IRemoteObject> hostToken = data.ReadRemoteObject(); in HandleCleanFormHost() local
123 if (hostToken == nullptr) { in HandleCleanFormHost()
124 HILOG_ERROR("null hostToken"); in HandleCleanFormHost()
128 int32_t result = CleanFormHost(hostToken); in HandleCleanFormHost()
/foundation/ability/form_fwk/test/unittest/fms_form_render_mgr_inner_test/
H A Dfms_form_render_mgr_inner_test.cpp68 int32_t CleanFormHost(const sptr<IRemoteObject> &hostToken) override
90 sptr<IRemoteObject> hostToken = nullptr; in HWTEST_F() local
92 EXPECT_EQ(ERR_OK, formRenderMgrInner.RenderForm(formRecord, want, hostToken)); in HWTEST_F()
109 sptr<IRemoteObject> hostToken = nullptr; in HWTEST_F() local
112 ERR_OK, formRenderMgrInner.RenderForm(formRecord, want, hostToken)); in HWTEST_F()
118 * @tc.desc: test RenderForm function and hostToken is not nullptr.
127 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient();; in HWTEST_F() local
130 formRenderMgrInner.RenderForm(formRecord, want, hostToken)); in HWTEST_F()
146 sptr<IRemoteObject> hostToken = nullptr; in HWTEST_F() local
149 formRenderMgrInner.RenderForm(formRecord, want, hostToken)); in HWTEST_F()
169 sptr<IRemoteObject> hostToken = nullptr; HWTEST_F() local
192 sptr<IRemoteObject> hostToken = nullptr; HWTEST_F() local
[all...]
/foundation/ability/form_fwk/interfaces/inner_api/include/
H A Dform_render_interface.h59 * @param hostToken Caller ability token.
62 virtual int32_t CleanFormHost(const sptr<IRemoteObject> &hostToken) = 0;

Completed in 11 milliseconds

12