/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_supply_callback_test/ |
H A D | form_supply_callback_test.cpp | 127 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 D | mock_ability_connection.cpp | 27 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 D | form_supply_callback.cpp | 259 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 D | form_sandbox_render_mgr_inner.cpp | 67 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm() argument 89 return FormRenderMgrInner::RenderForm(formRecord, want, hostToken); in RenderForm()
|
H A D | form_acquire_connection.cpp | 32 …const WantParams &wantParams, const sptr<IRemoteObject> hostToken) : info_(info), wantParams_(want… in FormAcquireConnection() argument 36 SetHostToken(hostToken); in FormAcquireConnection()
|
H A D | form_render_mgr_inner.cpp | 56 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 D | form_render_mgr.cpp | 82 … 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 D | form_ability_connection.cpp | 242 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 D | form_supply_callback.h | 85 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 D | form_render_mgr.h | 44 …mRecord &formRecord, const WantParams &wantParams, const sptr<IRemoteObject> &hostToken = nullptr); 58 const std::string &compId = "", const sptr<IRemoteObject> &hostToken = nullptr);
|
H A D | form_render_mgr_inner.h | 43 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken = nullptr); 49 const std::string &compId = "", const sptr<IRemoteObject> &hostToken = nullptr);
|
H A D | form_sandbox_render_mgr_inner.h | 39 …const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken = nullptr) override;
|
/ohos5.0/foundation/ability/form_fwk/test/fuzztest/formsupplycallback_fuzzer/ |
H A D | formsupplycallback_fuzzer.cpp | 65 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 D | fms_form_render_mgr_inner_test.cpp | 68 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 D | mock_form_render_mgr_inner.cpp | 57 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 D | fms_form_render_mgr_test.cpp | 72 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 D | mock_form_sandbox_render_mgr_inner.cpp | 32 const FormRecord &formRecord, Want &want, const sptr<IRemoteObject> &hostToken) in RenderForm() argument
|
/ohos5.0/foundation/ability/form_fwk/interfaces/kits/native/src/ |
H A D | form_provider_client.cpp | 96 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 D | formrenderimpl_fuzzer.cpp | 48 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 D | form_render_impl.cpp | 99 … 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 D | formrenderproxy_fuzzer.cpp | 48 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 D | formrendermgr_fuzzer.cpp | 46 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 D | formabilityconnection_fuzzer.cpp | 56 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 D | formrendermgrinner_fuzzer.cpp | 45 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 D | form_render_stub.cpp | 140 sptr<IRemoteObject> hostToken = data.ReadRemoteObject(); in HandleCleanFormHost() local 141 if (hostToken == nullptr) { in HandleCleanFormHost() 148 int32_t result = CleanFormHost(hostToken); in HandleCleanFormHost()
|