Searched refs:supportShapes (Results 1 - 14 of 14) sorted by relevance
/foundation/ability/form_fwk/services/src/ |
H A D | form_info_storage.cpp | 63 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 D | fms_form_info_storage_test.cpp | 240 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 D | form_info_filter.h | 32 std::vector<int32_t> supportShapes; member
|
/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 | 62 std::vector<int32_t> supportShapes; member
|
/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}; 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 D | form_info.cpp | 69 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 D | extension_form_profile.cpp | 116 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 D | fms_form_mgr_death_callback_test.cpp | 132 formInfo.supportShapes = {1}; in CreateProviderData()
|
/foundation/ability/form_fwk/frameworks/js/napi/formUtil/ |
H A D | napi_form_util.cpp | 547 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 D | fms_form_mgr_add_form_test.cpp | 140 formInfo.supportShapes = {1}; in CreateProviderData()
|
/foundation/ability/form_fwk/interfaces/inner_api/src/ |
H A D | form_mgr_proxy.cpp | 1292 if (!data.WriteInt32Vector(filter.supportShapes)) { in GetFormsInfoByFilter() 1293 HILOG_ERROR("fail write vector supportShapes"); in GetFormsInfoByFilter()
|
H A D | form_mgr_stub.cpp | 982 data.ReadInt32Vector(&filter.supportShapes); in HandleGetFormsInfoByFilter()
|
/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()
|
Completed in 23 milliseconds