Home
last modified time | relevance | path

Searched refs:supportShapes (Results 1 - 14 of 14) sorted by relevance

/foundation/ability/form_fwk/services/src/
H A Dform_info_storage.cpp63 static bool find_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()
/foundation/ability/form_fwk/test/unittest/fms_form_info_storage_test/
H A Dfms_form_info_storage_test.cpp240 formInfo.supportShapes.emplace_back(10); in HWTEST_F()
258 filter.supportShapes.emplace_back(10); in HWTEST_F()
262 formInfo.supportShapes.emplace_back(11); in HWTEST_F()
280 filter.supportShapes.emplace_back(10); in HWTEST_F()
284 formInfo.supportShapes.emplace_back(10); in HWTEST_F()
302 filter.supportShapes.emplace_back(10); in HWTEST_F()
307 formInfo.supportShapes.emplace_back(10); in HWTEST_F()
/foundation/ability/form_fwk/interfaces/inner_api/include/
H A Dform_info_filter.h32 std::vector<int32_t> supportShapes; member
/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.h62 std::vector<int32_t> supportShapes; member
/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}; in HWTEST_F()
419 EXPECT_EQ(filter.supportShapes, formInfos[0].supportShapes); in HWTEST_F()
441 filter.supportShapes = {1}; in HWTEST_F()
464 filter.supportShapes = {2}; in HWTEST_F()
470 EXPECT_EQ(filter.supportShapes, formInfos[0].supportShapes); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dform_info.cpp69 const char* JSON_KEY_SUPPORT_SHAPES = "supportShapes";
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()
661 formInfo.supportShapes, in from_json()
H A Dextension_form_profile.cpp116 std::vector<std::string> supportShapes {};
302 extensionFormProfileInfo.supportShapes, in from_json()
381 for (const auto &shape: form.supportShapes) { in GetSupportShapes()
398 info.supportShapes.emplace_back(shape); in GetSupportShapes()
/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()
/foundation/ability/form_fwk/frameworks/js/napi/formUtil/
H A Dnapi_form_util.cpp547 napi_set_named_property(env, objContext, "supportedShapes", CreateNativeArray(env, formInfo.supportShapes)); in CreateFormInfo()
/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()
/foundation/ability/form_fwk/interfaces/inner_api/src/
H A Dform_mgr_proxy.cpp1292 if (!data.WriteInt32Vector(filter.supportShapes)) { in GetFormsInfoByFilter()
1293 HILOG_ERROR("fail write vector supportShapes"); in GetFormsInfoByFilter()
H A Dform_mgr_stub.cpp982 data.ReadInt32Vector(&filter.supportShapes); in HandleGetFormsInfoByFilter()
/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()

Completed in 23 milliseconds