Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_supply_callback_test/
H A Dform_supply_callback_test.cpp127 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); variable
133 formSupplyCallback.RemoveConnection(formId, hostToken);
146 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); variable
153 formSupplyCallback->IsRemoveConnection(formId, hostToken);
165 sptr<IRemoteObject> hostToken = new (std::nothrow) MockFormProviderClient(); variable
168 formSupplyCallback.HandleHostDied(hostToken);
201 formAbilityConnection.SetHostToken(hostToken);
203 formSupplyCallback.HandleHostDied(hostToken);
224 formSupplyCallback.HandleHostDied(hostToken);
459 formSupplyCallback.HandleHostDied(hostToken);
[all …]
H A Dmock_ability_connection.cpp27 void FormAbilityConnection::SetHostToken(const sptr<IRemoteObject> hostToken) in SetHostToken() argument
29 hostToken_ = hostToken; in SetHostToken()
/ohos5.0/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()
316 if (hostToken == conn.second->GetHostToken()) { in HandleHostDied()
H A Dform_sandbox_render_mgr_inner.cpp67 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm() argument
89 return FormRenderMgrInner::RenderForm(formRecord, want, hostToken); in RenderForm()
H A Dform_acquire_connection.cpp32 …const WantParams &wantParams, const sptr<IRemoteObject> hostToken) : info_(info), wantParams_(want… in FormAcquireConnection() argument
36 SetHostToken(hostToken); in FormAcquireConnection()
H A Dform_render_mgr_inner.cpp56 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm() argument
67 if (hostToken) { in RenderForm()
69 AddHostToken(hostToken, formRecord.formId); in RenderForm()
70 want.SetParam(Constants::PARAM_FORM_HOST_TOKEN, hostToken); in RenderForm()
280 const std::string &compId, const sptr<IRemoteObject> &hostToken) in StopRenderingForm() argument
299 if (hostToken) { in StopRenderingForm()
301 want.SetParam(Constants::PARAM_FORM_HOST_TOKEN, hostToken); in StopRenderingForm()
H A Dform_render_mgr.cpp82 … const FormRecord &formRecord, const WantParams &wantParams, const sptr<IRemoteObject> &hostToken) in RenderForm() argument
105 return sandboxInners_[formRecord.userId]->RenderForm(formRecord, want, hostToken); in RenderForm()
108 return renderInners_[formRecord.userId]->RenderForm(formRecord, want, hostToken); in RenderForm()
322 …mId, const FormRecord &formRecord, const std::string &compId, const sptr<IRemoteObject> &hostToken) in StopRenderingForm() argument
330 return iter->second->StopRenderingForm(formId, formRecord, compId, hostToken); in StopRenderingForm()
336 return iter->second->StopRenderingForm(formId, formRecord, compId, hostToken); in StopRenderingForm()
H A Dform_ability_connection.cpp242 void FormAbilityConnection::SetHostToken(const sptr<IRemoteObject> hostToken) in SetHostToken() argument
244 hostToken_ = hostToken; in SetHostToken()
/ohos5.0/foundation/ability/form_fwk/services/include/
H A Dform_supply_callback.h85 void RemoveConnection(int64_t formId, const sptr<IRemoteObject> &hostToken);
94 void HandleHostDied(const sptr<IRemoteObject> &hostToken);
143 bool IsRemoveConnection(int64_t formId, const sptr<IRemoteObject> &hostToken);
H A Dform_render_mgr.h44 …mRecord &formRecord, const WantParams &wantParams, const sptr<IRemoteObject> &hostToken = nullptr);
58 const std::string &compId = "", const sptr<IRemoteObject> &hostToken = nullptr);
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);
H A Dform_sandbox_render_mgr_inner.h39 …const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken = nullptr) override;
/ohos5.0/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()
/ohos5.0/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 in CleanFormHost() argument
90 sptr<IRemoteObject> hostToken = nullptr; variable
109 sptr<IRemoteObject> hostToken = nullptr; variable
112 ERR_OK, formRenderMgrInner.RenderForm(formRecord, want, hostToken));
130 formRenderMgrInner.RenderForm(formRecord, want, hostToken));
146 sptr<IRemoteObject> hostToken = nullptr; variable
149 formRenderMgrInner.RenderForm(formRecord, want, hostToken));
169 sptr<IRemoteObject> hostToken = nullptr; variable
172 formRenderMgrInner.RenderForm(formRecord, want, hostToken));
192 sptr<IRemoteObject> hostToken = nullptr; variable
[all …]
/ohos5.0/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() argument
75 const std::string &compId, const sptr<IRemoteObject> &hostToken) in StopRenderingForm() argument
H A Dfms_form_render_mgr_test.cpp72 sptr<IRemoteObject> hostToken = nullptr; variable
73 EXPECT_EQ(ERR_OK, formRenderMgr.RenderForm(formRecord, wantParams, hostToken));
90 sptr<IRemoteObject> hostToken = nullptr; variable
92 … ERR_APPEXECFWK_FORM_INVALID_PARAM, formRenderMgr.RenderForm(formRecord, wantParams, hostToken));
109 sptr<IRemoteObject> hostToken = nullptr; variable
112 EXPECT_EQ(ERR_OK, formRenderMgr.RenderForm(formRecord, wantParams, hostToken));
129 sptr<IRemoteObject> hostToken = nullptr; variable
132 EXPECT_EQ(ERR_OK, formRenderMgr.RenderForm(formRecord, wantParams, hostToken));
H A Dmock_form_sandbox_render_mgr_inner.cpp32 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm() argument
/ohos5.0/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()
465 FormCallerMgr::GetInstance().AddFormProviderCaller(formJsInfo, hostToken); in HandleRemoteAcquire()
/ohos5.0/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()
/ohos5.0/foundation/ability/form_fwk/services/form_render_service/src/
H A Dform_render_impl.cpp99 … sptr<IRemoteObject> hostToken = formRenderWant.GetRemoteObject(Constants::PARAM_FORM_HOST_TOKEN); in RenderForm() local
104 result = search->second->UpdateRenderRecord(formJsInfo, formRenderWant, hostToken); in RenderForm()
113 result = record->UpdateRenderRecord(formJsInfo, formRenderWant, hostToken); in RenderForm()
142 sptr<IRemoteObject> hostToken = want.GetRemoteObject(Constants::PARAM_FORM_HOST_TOKEN); in StopRenderingForm() local
156 search->DeleteRenderRecord(formJsInfo.formId, compId, hostToken, isRenderGroupEmpty); in StopRenderingForm()
213 int32_t FormRenderImpl::CleanFormHost(const sptr<IRemoteObject> &hostToken) in CleanFormHost() argument
219 if (renderRecord && renderRecord->HandleHostDied(hostToken)) { in CleanFormHost()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Dform_render_stub.cpp140 sptr<IRemoteObject> hostToken = data.ReadRemoteObject(); in HandleCleanFormHost() local
141 if (hostToken == nullptr) { in HandleCleanFormHost()
148 int32_t result = CleanFormHost(hostToken); in HandleCleanFormHost()

12