Home
last modified time | relevance | path

Searched refs:supportShapes (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/foundation/ability/form_fwk/services/src/
H A Dform_info_storage.cpp63 …d_match_shapes(const std::vector<int32_t> &targetShapes, const std::vector<int32_t> &supportShapes) in find_match_shapes() argument
65 for (const auto &val : supportShapes) { in find_match_shapes()
74 static bool find_rect_shape(const std::vector<int32_t> &supportShapes) in find_rect_shape() argument
76 for (const auto &val : supportShapes) { in find_rect_shape()
96 if (filter.supportShapes.empty() && !find_rect_shape(item.supportShapes)) { in GetFormsInfoByFilter()
100 …if (!filter.supportShapes.empty() && !find_match_shapes(filter.supportShapes, item.supportShapes))… in GetFormsInfoByFilter()
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_info_storage_test/
H A Dfms_form_info_storage_test.cpp240 formInfo.supportShapes.emplace_back(10);
258 filter.supportShapes.emplace_back(10);
262 formInfo.supportShapes.emplace_back(11);
280 filter.supportShapes.emplace_back(10);
284 formInfo.supportShapes.emplace_back(10);
302 filter.supportShapes.emplace_back(10);
307 formInfo.supportShapes.emplace_back(10);
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dform_info.cpp120 for (const auto &shape : formInfo.supportShapes) { in FormInfo()
121 supportShapes.push_back(shape); in FormInfo()
213 CONTAINER_SECURITY_VERIFY(parcel, supportShapeSize, &supportShapes); in ReadFromParcel()
215 supportShapes.emplace_back(parcel.ReadInt32()); in ReadFromParcel()
296 const auto supportShapeSize = static_cast<int32_t>(supportShapes.size()); in Marshalling()
299 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, supportShapes[i]); in Marshalling()
368 {JSON_KEY_SUPPORT_SHAPES, formInfo.supportShapes}, in to_json()
711 formInfo.supportShapes, in from_json()
H A Dextension_form_profile.cpp90 std::vector<std::string> supportShapes {}; member
316 extensionFormProfileInfo.supportShapes, in from_json()
393 for (const auto &shape: form.supportShapes) { in GetSupportShapes()
408 info.supportShapes.emplace_back(shape); in GetSupportShapes()
/ohos5.0/foundation/ability/form_fwk/test/unittest/form_info_mgr_test/
H A Dform_info_mgr_test.cpp81 formInfo.supportShapes = {1, 2}; in GetTestFormInfo()
100 formInfo.supportShapes = {2}; in GetTestCircleFormInfo()
414 filter.supportShapes = {2};
419 EXPECT_EQ(filter.supportShapes, formInfos[0].supportShapes);
441 filter.supportShapes = {1};
464 filter.supportShapes = {2};
470 EXPECT_EQ(filter.supportShapes, formInfos[0].supportShapes);
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/include/
H A Dform_info_filter.h32 std::vector<int32_t> supportShapes; member
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dextension_form_info.h49 std::vector<int32_t> supportShapes {};
H A Dform_info.h63 std::vector<int32_t> supportShapes; member
/ohos5.0/docs/zh-cn/application-dev/form/
H A Darkts-ui-widget-configuration.md59 …| supportShapes | 表示卡片的显示形状,取值范围如下:<br/>-&nbsp;rect:表示方形卡片。<br/>-&nbsp;circle:表示圆形卡片。| 字符串 | 可缺省,缺…
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_death_callback_test/
H A Dfms_form_mgr_death_callback_test.cpp132 formInfo.supportShapes = {1}; in CreateProviderData()
/ohos5.0/docs/en/application-dev/form/
H A Darkts-ui-widget-configuration.md61 …| supportShapes | Shapes that the widget can be displayed. The options are as follows:<br>- **rect…
/ohos5.0/foundation/ability/form_fwk/frameworks/js/napi/formUtil/
H A Dnapi_form_util.cpp547 …named_property(env, objContext, "supportedShapes", CreateNativeArray(env, formInfo.supportShapes)); in CreateFormInfo()
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_add_form_test/
H A Dfms_form_mgr_add_form_test.cpp140 formInfo.supportShapes = {1}; in CreateProviderData()
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Dform_mgr_stub.cpp984 data.ReadInt32Vector(&filter.supportShapes); in HandleGetFormsInfoByFilter()
H A Dform_mgr_proxy.cpp1292 if (!data.WriteInt32Vector(filter.supportShapes)) { in GetFormsInfoByFilter()
/ohos5.0/foundation/ability/form_fwk/frameworks/js/napi/form_host/
H A Djs_form_host.cpp1347 if (jsShapeValue != nullptr && !GetIntVecValue(env, jsShapeValue, filter.supportShapes)) { in GetFormsInfoByFilter()