/ohos5.0/foundation/ability/form_fwk/services/src/ |
H A D | form_info_storage.cpp | 63 …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 D | fms_form_info_storage_test.cpp | 240 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 D | form_info.cpp | 120 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 D | extension_form_profile.cpp | 90 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 D | form_info_mgr_test.cpp | 81 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 D | form_info_filter.h | 32 std::vector<int32_t> supportShapes; member
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | extension_form_info.h | 49 std::vector<int32_t> supportShapes {};
|
H A D | form_info.h | 63 std::vector<int32_t> supportShapes; member
|
/ohos5.0/docs/zh-cn/application-dev/form/ |
H A D | arkts-ui-widget-configuration.md | 59 …| supportShapes | 表示卡片的显示形状,取值范围如下:<br/>- rect:表示方形卡片。<br/>- circle:表示圆形卡片。| 字符串 | 可缺省,缺…
|
/ohos5.0/foundation/ability/form_fwk/test/unittest/fms_form_mgr_death_callback_test/ |
H A D | fms_form_mgr_death_callback_test.cpp | 132 formInfo.supportShapes = {1}; in CreateProviderData()
|
/ohos5.0/docs/en/application-dev/form/ |
H A D | arkts-ui-widget-configuration.md | 61 …| 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 D | napi_form_util.cpp | 547 …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 D | fms_form_mgr_add_form_test.cpp | 140 formInfo.supportShapes = {1}; in CreateProviderData()
|
/ohos5.0/foundation/ability/form_fwk/interfaces/inner_api/src/ |
H A D | form_mgr_stub.cpp | 984 data.ReadInt32Vector(&filter.supportShapes); in HandleGetFormsInfoByFilter()
|
H A D | form_mgr_proxy.cpp | 1292 if (!data.WriteInt32Vector(filter.supportShapes)) { in GetFormsInfoByFilter()
|
/ohos5.0/foundation/ability/form_fwk/frameworks/js/napi/form_host/ |
H A D | js_form_host.cpp | 1347 if (jsShapeValue != nullptr && !GetIntVecValue(env, jsShapeValue, filter.supportShapes)) { in GetFormsInfoByFilter()
|