Home
last modified time | relevance | path

Searched refs:formLocation (Results 1 - 25 of 35) sorted by relevance

12

/foundation/ability/form_fwk/services/include/
H A Dform_db_info.h36 Constants::FormLocation formLocation; member
59 formLocation = formRecord.formLocation; in FormDBInfo()
112 if (formLocation != formDBInfo.formLocation) { in Compare()
149 formDBInfo_.formLocation = formDBInfo.formLocation; in InnerFormInfo()
167 formDBInfo_.formLocation = innerFormInfo.formDBInfo_.formLocation; in InnerFormInfo()
185 formDBInfo_.formLocation in InnerFormInfo()
[all...]
H A Dform_dump_mgr.h114 void AppendFormLocation(Constants::FormLocation formLocation, std::string &infosResult) const;
H A Dform_record.h78 Constants::FormLocation formLocation; member in OHOS::AppExecFwk::FormRecord
H A Dform_db_cache.h158 * @param formLocation The form location.
161 ErrCode UpdateFormLocation(const int64_t formId, const int32_t formLocation);
H A Dform_item_info.h386 * @brief Get the formLocation of formInfo.
387 * @return formLocation.
392 * @brief set the formLocation.
393 * @param formLocation The FormLocation.
395 void SetFormLocation(Constants::FormLocation formLocation);
H A Dform_data_mgr.h703 * @param formLocation The form location.
707 ErrCode UpdateFormLocation(const int64_t &formId, const int32_t &formLocation);
H A Dform_mgr_service.h615 * @brief Update formLocation with formId.
617 * @param formLocation The FormLocation.
620 ErrCode UpdateFormLocation(const int64_t &formId, const int32_t &formLocation) override;
/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Drunning_form_info.cpp36 formLocation = static_cast<Constants::FormLocation>(parcel.ReadInt32()); in ReadFromParcel()
94 // write formLocation in Marshalling()
95 if (!parcel.WriteInt32(static_cast<int32_t>(formLocation))) { in Marshalling()
/foundation/ability/form_fwk/interfaces/inner_api/include/
H A Drunning_form_info.h42 Constants::FormLocation formLocation; member
/foundation/ability/form_fwk/services/src/
H A Dform_db_cache.cpp194 record.formLocation = dbInfo.formLocation; in GetDBRecord()
459 ErrCode FormDbCache::UpdateFormLocation(const int64_t formId, const int32_t formLocation) in UpdateFormLocation() argument
465 itRecord->formLocation = (Constants::FormLocation)formLocation; in UpdateFormLocation()
H A Dform_db_info.cpp31 const std::string INNER_FORM_INFO_FORM_LOCATION = "formLocation";
49 jsonObject[INNER_FORM_INFO_FORM_LOCATION] = (int)formDBInfo_.formLocation; in ToJson()
87 formDBInfo_.formLocation, JsonType::NUMBER, false, parseResult, ArrayType::NOT_ARRAY); in FromJson()
H A Dform_dump_mgr.cpp259 AppendFormLocation(info.formLocation, infosResult); in AppendRunningFormInfos()
267 void FormDumpMgr::AppendFormLocation(Constants::FormLocation formLocation, std::string &infosResult) const in AppendFormLocation() argument
269 infosResult += " formLocation "; in AppendFormLocation()
270 switch (formLocation) { in AppendFormLocation()
H A Dform_item_info.cpp582 void FormItemInfo::SetFormLocation(Constants::FormLocation formLocation) in SetFormLocation() argument
584 formLocation_ = formLocation; in SetFormLocation()
H A Dform_data_mgr.cpp193 newRecord.formLocation = formInfo.GetFormLocation(); in CreateFormRecord()
1968 runningFormInfo.formLocation = formRecord.formLocation; in FillBasicRunningFormInfoByFormRecord()
2469 ErrCode FormDataMgr::UpdateFormLocation(const int64_t &formId, const int32_t &formLocation) in UpdateFormLocation() argument
2474 HILOG_INFO("form info not find, formId:%{public}" PRId64 " formLocation:%{public}d", in UpdateFormLocation()
2475 formId, formLocation); in UpdateFormLocation()
2478 info->second.formLocation = (Constants::FormLocation)formLocation; in UpdateFormLocation()
2479 HILOG_INFO("success, formId:%{public}" PRId64 " formLocation:%{public}d", in UpdateFormLocation()
2480 formId, formLocation); in UpdateFormLocation()
[all...]
H A Dform_mgr_adapter.cpp1379 int formLocation = want.GetParams().GetIntParam(Constants::FORM_LOCATION_KEY, in GetFormConfigInfo() local
1381 if (formLocation < static_cast<int32_t>(Constants::FormLocation::OTHER) || in GetFormConfigInfo()
1382 formLocation > static_cast<int32_t>(Constants::FormLocation::AI_SUGGESTION)) { in GetFormConfigInfo()
1383 HILOG_ERROR("formLocation not FormLocation enum,formLocation = %{public}d", formLocation); in GetFormConfigInfo()
1386 formConfigInfo.SetFormLocation((Constants::FormLocation)formLocation); in GetFormConfigInfo()
1395 HILOG_DEBUG("GetFormConfigInfo end,formLocation = %{public}d,enable is %{public}d", in GetFormConfigInfo()
1396 formLocation, isFormBundleForbidden); in GetFormConfigInfo()
1408 if (record.formLocation ! in CheckUpdateFormRecord()
3762 UpdateFormLocation(const int64_t &formId, const int32_t &formLocation) UpdateFormLocation() argument
[all...]
/foundation/ability/form_fwk/test/unittest/fms_form_db_record_test/
H A Dfms_form_db_record_test.cpp407 int32_t formLocation = 1; in HWTEST_F() local
409 EXPECT_EQ(ERR_OK, FormDbCache::GetInstance().UpdateFormLocation(formId, formLocation)); in HWTEST_F()
411 EXPECT_EQ(ERR_APPEXECFWK_FORM_INVALID_FORM_ID, FormDbCache::GetInstance().UpdateFormLocation(formId, formLocation)); in HWTEST_F()
/foundation/ability/form_fwk/interfaces/kits/native/include/
H A Dform_mgr.h628 * @brief Update formLocation with formId.
630 * @param formLocation The FormLocation.
633 ErrCode UpdateFormLocation(const int64_t &formId, const int32_t &formLocation);
/foundation/ability/form_fwk/test/mock/include/
H A Dmock_form_mgr_proxy.h92 MOCK_METHOD2(UpdateFormLocation, ErrCode(const int64_t &formId, const int32_t &formLocation));
H A Dmock_form_mgr_service.h110 MOCK_METHOD2(UpdateFormLocation, ErrCode(const int64_t &formId, const int32_t &formLocation));
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_service_test/
H A Dmock_form_mgr_adapter.cpp279 int FormMgrAdapter::UpdateFormLocation(const int64_t &formId, const int32_t &formLocation) in UpdateFormLocation() argument
H A Dfms_form_mgr_service_test2.cpp618 int32_t formLocation = 1; in HWTEST_F() local
619 EXPECT_EQ(ERR_OK, formMgrService.UpdateFormLocation(formId, formLocation)); in HWTEST_F()
/foundation/ability/form_fwk/frameworks/js/napi/form_host/
H A Djs_form_host.cpp1748 int32_t formLocation = INVALID_FORM_LOCATION; in OnUpdateFormLocation() local
1749 if (napi_get_value_int32(env, argv[PARAM1], &formLocation) == napi_ok) { in OnUpdateFormLocation()
1750 if (formLocation < static_cast<int32_t>(Constants::FormLocation::OTHER) || in OnUpdateFormLocation()
1751 formLocation > static_cast<int32_t>(Constants::FormLocation::AI_SUGGESTION)) { in OnUpdateFormLocation()
1752 HILOG_ERROR("formLocation not FormLocation enum"); in OnUpdateFormLocation()
1753 NapiFormUtil::ThrowParamTypeError(env, "formLocation", "FormLocation enum"); in OnUpdateFormLocation()
1757 HILOG_ERROR("formLocation not number"); in OnUpdateFormLocation()
1758 NapiFormUtil::ThrowParamTypeError(env, "formLocation", "number"); in OnUpdateFormLocation()
1761 HILOG_INFO("formLocation:%{public}s", std::to_string(formLocation) in OnUpdateFormLocation()
[all...]
/foundation/ability/form_fwk/test/unittest/form_mgr_proxy_test/
H A Dform_mgr_proxy_test.cpp816 int32_t formLocation = 1; in HWTEST_F() local
817 EXPECT_EQ(formMgrProxy->UpdateFormLocation(formId, formLocation), ERR_OK); in HWTEST_F()
/foundation/ability/form_fwk/frameworks/js/napi/formUtil/
H A Dnapi_form_util.cpp493 napi_set_named_property(env, result, "formLocation", CreateJsValue(env, (int32_t)runningFormInfo.formLocation)); in ParseRunningFormInfoIntoNapi()
581 napi_set_named_property(env, objContext, "formLocation", CreateJsValue(env, (int32_t)runningFormInfo.formLocation)); in CreateRunningFormInfo()
/foundation/ability/form_fwk/test/unittest/fms_form_db_info_test/
H A Dfms_form_db_info_test.cpp59 info.formLocation = Constants::FormLocation::SCREEN_LOCK; in CreateDbInfo()

Completed in 27 milliseconds

12