/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | rect.h | 112 friend inline bool operator==(const RectI& r1, const RectI& r2); 113 friend inline bool operator!=(const RectI& r1, const RectI& r2); 263 inline bool operator==(const RectI& r1, const RectI& r2) in operator ==() argument 265 return r1.left_ == r2.left_ && r1.right_ == r2.right_ && r1.top_ == r2.top_ && r1.bottom_ == r2.bottom_; in operator ==() 268 inline bool operator!=(const RectI& r1, const RectI& r2) in operator !=() argument 270 return r1.left_ != r2.left_ || r1.right_ != r2 in operator !=() 476 operator ==(const RectF& r1, const RectF& r2) operator ==() argument 482 operator !=(const RectF& r1, const RectF& r2) operator !=() argument [all...] |
/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | color_fill.h | 20 #define COLOR_FILL_COVER(d, dm, r2, g2, b2, sm) \ 24 reinterpret_cast<Color32*>(d)->red = (r2) << 3; \ 28 reinterpret_cast<Color32*>(d)->red = (r2); \ 34 reinterpret_cast<Color24*>(d)->red = (r2) << 3; \ 38 reinterpret_cast<Color24*>(d)->red = (r2); \ 44 reinterpret_cast<Color16*>(d)->red = (r2) >> 3; \ 48 reinterpret_cast<Color16*>(d)->red = (r2); \ 57 #define COLOR_BLEND_RGBA(r1, g1, b1, a1, r2, g2, b2, a2) \ 61 (r1) = static_cast<uint8_t>(((a2) * (r2) * OPA_OPAQUE + (OPA_OPAQUE - (a2)) * (a1) * (r1)) / Alpha3); \ 67 #define COLOR_BLEND_RGBA(r1, g1, b1, a1, r2, g [all...] |
/foundation/multimodalinput/input/util/network/test/ |
H A D | net_packet_test.cpp | 184 std::string r2; in HWTEST_F() local 185 pkt >> r1 >> r2; in HWTEST_F() local 187 EXPECT_EQ(p2, r2); in HWTEST_F() 227 std::string r2; in HWTEST_F() local 228 pkt >> r1 >> r2; in HWTEST_F() local 231 EXPECT_EQ(p2, r2); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_occlusion_region.cpp | 211 void Region::RegionOp(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOp() argument 217 res = r2; in RegionOp() 221 if (r2.IsEmpty()) { in RegionOp() 229 RegionOpAccelate(r1, r2, res, op); in RegionOp() 232 void Region::RegionOpLocal(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOpLocal() argument 235 r2.MakeBound(); in RegionOpLocal() 246 for (auto& r : r2.GetRegionRects()) { in RegionOpLocal() 282 void Region::RegionOpAccelate(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOpAccelate() argument 285 RectsPtr rhs(r2.CBegin(), r2 in RegionOpAccelate() [all...] |
/foundation/ability/ability_runtime/test/moduletest/common/ams/ipc_app_mgr_test/ |
H A D | ams_ipc_app_mgr_module_test.cpp | 263 auto& r2 = result.emplace_back(); in HWTEST_F() 264 r2.processName_ = testBundleName_2; in HWTEST_F() 265 r2.pid_ = testApp2Pid; in HWTEST_F() 266 r2.processType_ = ProcessType::EXTENSION; in HWTEST_F() 267 r2.extensionType_ = ExtensionAbilityType::INPUTMETHOD; in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_clone_app_test/ |
H A D | bms_bundle_clone_app_bundle_logic_test.cpp | 251 ErrCode r2 = innerBundleInfo.AddCloneBundle(cloneInfo); in HWTEST_F() local 252 EXPECT_EQ(r2, ERR_APPEXECFWK_CLONE_INSTALL_APP_INDEX_EXISTED); in HWTEST_F() 293 ErrCode r2 = innerBundleInfo.RemoveCloneBundle(userId, appIndex); in HWTEST_F() local 294 EXPECT_EQ(r2, ERR_OK); in HWTEST_F() 337 ErrCode r2 = innerBundleInfo.GetBundleInfoV9(0, bundleInfo, userId, appIndex); in HWTEST_F() local 338 EXPECT_EQ(r2, ERR_OK); in HWTEST_F()
|
/foundation/graphic/graphic_utils_lite/interfaces/innerkits/ |
H A D | graphic_neon_utils.h | 121 uint8x8_t r2, uint8x8_t g2, uint8x8_t b2, uint8x8_t a2) in NeonBlendRGBA() 125 uint16x8_t r = vmull_u8(r2, a2) + vmull_u8(r1, da); in NeonBlendRGBA() 134 uint8x8_t r2, uint8x8_t g2, uint8x8_t b2, uint8x8_t a2) in NeonBlendXRGB() 138 uint16x8_t r = vmull_u8(r2, a2) + vmull_u8(r1, da); in NeonBlendXRGB() 147 uint8x8_t r2, uint8x8_t g2, uint8x8_t b2, uint8x8_t a2) in NeonBlendRGB() 150 r1 = NeonMulDiv255(r2, a2) + NeonMulDiv255(r1, da); in NeonBlendRGB() 120 NeonBlendRGBA(uint8x8_t& r1, uint8x8_t& g1, uint8x8_t& b1, uint8x8_t& a1, uint8x8_t r2, uint8x8_t g2, uint8x8_t b2, uint8x8_t a2) NeonBlendRGBA() argument 133 NeonBlendXRGB(uint8x8_t& r1, uint8x8_t& g1, uint8x8_t& b1, uint8x8_t& a1, uint8x8_t r2, uint8x8_t g2, uint8x8_t b2, uint8x8_t a2) NeonBlendXRGB() argument 146 NeonBlendRGB(uint8x8_t& r1, uint8x8_t& g1, uint8x8_t& b1, uint8x8_t& a1, uint8x8_t r2, uint8x8_t g2, uint8x8_t b2, uint8x8_t a2) NeonBlendRGB() argument
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | image_test.cpp | 76 Drawing::Rect r2(RECT2_POSITION_LEFT, RECT2_POSITION_TOP, RECT2_POSITION_RIGHT, RECT2_POSITION_BOTTOM); in TestDrawImageRect() 82 canvas.DrawImageRect(image, r1, r2, sampling, SrcRectConstraint::STRICT_SRC_RECT_CONSTRAINT); in TestDrawImageRect()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rssurfaceohos_fuzzer/ |
H A D | rssurfaceohos_fuzzer.cpp | 77 RectI r2 = RectI(GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>(), GetData<int32_t>()); in RSSurfaceOhosFuzzTest() local 82 rects.emplace_back(r2); in RSSurfaceOhosFuzzTest()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_brdf_common.h | 51 const float r2 = roughness * roughness; in dAshikhmin() local 55 return (sin4h + 4.0 * exp(-cos2h / (sin2h * r2))) / (CORE_BRDF_PI * (1.0 + 4.0 * r2) * sin4h); in dAshikhmin()
|
/foundation/window/window_manager_lite/services/wms/ |
H A D | lite_win.cpp | 31 #define COLOR_BLEND_RGBA(r1, g1, b1, a1, r2, g2, b2, a2) \ 35 (r1) = (A2 * (r2) + (1 - A2) * A1 * (r1)) / a; \ 40 #define COLOR_BLEND_RGB(r1, g1, b1, r2, g2, b2, a2) \ 41 (r1) = (((r2) * (a2)) / OPA_OPAQUE) + (((r1) * (OPA_OPAQUE - (a2))) / OPA_OPAQUE); \
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | convex_paths.cpp | 94 DrawRect r2 = { 0, 0, 100, 5 }; // 5 100 coordinate in MakePath1() local 109 auto Oval_bound2 = OH_Drawing_RectCreate(r2.left, r2.top, r2.right, r2.bottom); in MakePath1()
|
/foundation/window/window_manager/utils/src/ |
H A D | wm_occlusion_region.cpp | 214 void Region::RegionOpLocal(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOpLocal() argument 217 r2.MakeBound(); in RegionOpLocal() 228 for (auto& rect : r2.GetRegionRects()) { in RegionOpLocal() 264 void Region::RegionOp(Region& r1, Region& r2, Region& res, Region::OP op) in RegionOp() argument 266 RegionOpLocal(r1, r2, res, op); in RegionOp()
|
/foundation/graphic/graphic_3d/lume/metaobject/test/src/base/ |
H A D | RefUriTest.cpp | 281 auto r2 = CreateTestType(); in HWTEST_F() local 282 r2->SetName("r2"); in HWTEST_F() 291 interface_pointer_cast<IContainer>(c2)->Add(interface_pointer_cast<IObject>(r2)); in HWTEST_F() 311 auto o5 = interface_pointer_cast<IObjectInstance>(r1)->Resolve<IObjectInstance>(RefUri("ref://c2/r2")); in HWTEST_F() 313 EXPECT_EQ(o5->GetInstanceId(), interface_pointer_cast<IObjectInstance>(r2)->GetInstanceId()); in HWTEST_F()
|
/foundation/arkui/ace_engine/advanced_ui_component/foldsplitcontainer/interfaces/ |
H A D | foldsplitcontainer.js | 201 updateStateVars(r2) { 202 this.__expandedLayoutOptions.reset(r2.expandedLayoutOptions); 203 this.__hoverModeLayoutOptions.reset(r2.hoverModeLayoutOptions); 204 this.__foldedLayoutOptions.reset(r2.foldedLayoutOptions); 205 this.__animationOptions.reset(r2.animationOptions);
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsbasecommon_fuzzer/ |
H A D | rsbasecommon_fuzzer.cpp | 159 int r2 = GetData<int>(); in RSObjOcclusionFuzzTest() local 161 Occlusion::Event event2 = Occlusion::Event(y2, Occlusion::Event::Type::OPEN, l2, r2); in RSObjOcclusionFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | test_common.cpp | 105 unsigned r2 = (r1 << 3) | (r1 >> 2);
in color_to_565() local 109 uint32_t argb = (0xFF << 24) | (r2 << 16) | (g2 << 8) | b2;
in color_to_565()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsblurfilter_fuzzer/ |
H A D | rsblurfilter_fuzzer.cpp | 165 float r2 = GetData<float>();
in DoDrawImageRect() local 168 Rect dst(l2, t2, r2, b2);
in DoDrawImageRect()
|
/foundation/window/window_manager/utils/include/ |
H A D | wm_occlusion_region.h | 231 void RegionOp(Region& r1, Region& r2, Region& res, Region::OP op); 232 void RegionOpLocal(Region& r1, Region& r2, Region& res, Region::OP op);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_legacy.c | 220 cryptS1Param.r2, sizeof(cryptS1Param.r2), SMP_GetPairMng()->local.random, sizeof(cryptS1Param.r2)); in SMP_LegacyPairMasterStep9() 594 cryptS1Param.r2, sizeof(cryptS1Param.r2), SMP_GetPairMng()->peer.random, sizeof(cryptS1Param.r2)); in SMP_LegacyPairSlaveStep10()
|
H A D | smp_tool.h | 145 uint8_t r2[SMP_RANDOM_DATA_LEN]; member
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_occlusion_region.h | 350 void RegionOp(Region& r1, Region& r2, Region& res, Region::OP op); 351 void RegionOpLocal(Region& r1, Region& r2, Region& res, Region::OP op); 352 void RegionOpAccelate(Region& r1, Region& r2, Region& res, Region::OP op);
|
/foundation/arkui/ace_engine/advanced_ui_component/subheader/interfaces/ |
H A D | subheader.js | 1837 setInitiallyProvidedValue(r2) { 1838 if (r2.bgColor !== undefined) { 1839 this.bgColor = r2.bgColor; 1841 if (r2.isFocus !== undefined) { 1842 this.isFocus = r2.isFocus; 1844 if (r2.item !== undefined) { 1845 this.item = r2.item; 1847 if (r2.isSingleIcon !== undefined) { 1848 this.isSingleIcon = r2.isSingleIcon;
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_surface_render_node.cpp | 1925 Occlusion::Region r2{opaqueRect2}; in SetUnfocusedWindowOpaqueRegion() 1926 Occlusion::Region opaqueRegion = r1.Or(r2); in SetUnfocusedWindowOpaqueRegion() 1962 Occlusion::Region r2{opaqueRect2}; in SetFocusedWindowOpaqueRegion() 1963 Occlusion::Region opaqueRegion = r1.Or(r2).Sub(outRRegion); in SetFocusedWindowOpaqueRegion() 1983 Occlusion::Region r2{opaqueRect2}; in SetCornerRadiusOpaqueRegion() 1986 roundedCornerRegion_ = r1.Or(r2).Or(r3).Or(r4); in SetCornerRadiusOpaqueRegion() 1987 opaqueRegion_ = r0.Sub(r1).Sub(r2).Sub(r3).Sub(r4); in SetCornerRadiusOpaqueRegion()
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/ |
H A D | drawing_sample_rs.cpp | 296 Drawing::Rect r2(300, 300, 500, 500); in TestDrawImageRect() 302 canvas.DrawImageRect(image, r1, r2, sampling, SrcRectConstraint::STRICT_SRC_RECT_CONSTRAINT); in TestDrawImageRect()
|