Home
last modified time | relevance | path

Searched refs:ScreenRotation (Results 1 – 25 of 78) sorted by relevance

1234

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/screen_manager/
H A Drs_screen_info.h43 ScreenRotation rotation = ScreenRotation::ROTATION_0;
56 …return (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) ? widt… in GetRotatedWidth()
61 …return (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) ? heig… in GetRotatedHeight()
65 return (rotation == ScreenRotation::ROTATION_0 || in GetRotatedPhyWidth()
66 rotation == ScreenRotation::ROTATION_180) ? phyWidth : phyHeight; in GetRotatedPhyWidth()
71 return (rotation == ScreenRotation::ROTATION_0 || in GetRotatedPhyHeight()
72 rotation == ScreenRotation::ROTATION_180) ? phyHeight : phyWidth; in GetRotatedPhyHeight()
H A Dscreen_types.h64 enum class ScreenRotation : uint32_t { enum
269 inline int32_t ScreenRotationMapping(ScreenRotation screenCorrection) in ScreenRotationMapping()
271 return screenCorrection == ScreenRotation::INVALID_SCREEN_ROTATION ? in ScreenRotationMapping()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_composer_adapter_test.cpp40 ScreenRotation rotation = ScreenRotation::ROTATION_0);
102 ScreenRotation::ROTATION_0);
126 ScreenRotation::ROTATION_0);
151 ScreenRotation::ROTATION_0);
187 ScreenRotation::ROTATION_0);
219 ScreenRotation::ROTATION_0);
243 ScreenRotation::ROTATION_90);
266 ScreenRotation::ROTATION_180);
289 ScreenRotation::ROTATION_270);
315 ScreenRotation::ROTATION_180);
[all …]
H A Drs_surface_capture_task_parallel_test.cpp51 task.screenCorrection_ = ScreenRotation::ROTATION_90;
52 task.screenRotation_ = ScreenRotation::ROTATION_270;
H A Drs_uni_render_virtual_processor_test.cpp155 …virtualProcessor->OriginScreenRotation(ScreenRotation::ROTATION_0, DEFAULT_CANVAS_WIDTH, DEFAULT_C…
156 …virtualProcessor->OriginScreenRotation(ScreenRotation::ROTATION_90, DEFAULT_CANVAS_WIDTH, DEFAULT_…
157 …virtualProcessor->OriginScreenRotation(ScreenRotation::ROTATION_180, DEFAULT_CANVAS_WIDTH, DEFAULT…
158 …virtualProcessor->OriginScreenRotation(ScreenRotation::ROTATION_270, DEFAULT_CANVAS_WIDTH, DEFAULT…
H A Drs_round_corner_display_test.cpp127 ScreenRotation curOrientation = ScreenRotation::ROTATION_0;
158 ScreenRotation curOrientation = ScreenRotation::ROTATION_0;
265 ScreenRotation curOrientation = ScreenRotation::ROTATION_90;
949 ScreenRotation curOrientation = ScreenRotation::INVALID_SCREEN_ROTATION;
952 EXPECT_TRUE(rcdInstance.curOrientation_ == ScreenRotation::INVALID_SCREEN_ROTATION);
956 curOrientation = ScreenRotation::ROTATION_180;
961 EXPECT_TRUE(rcdInstance.curOrientation_ == ScreenRotation::ROTATION_180);
965 curOrientation = ScreenRotation::ROTATION_180;
968 EXPECT_TRUE(rcdInstance.curOrientation_ == ScreenRotation::ROTATION_180);
1095 auto rot = ScreenRotation::ROTATION_90;
[all …]
H A Drs_hardware_thread_test.cpp41 ScreenRotation rotation = ScreenRotation::ROTATION_0);
93 ScreenColorGamut::COLOR_GAMUT_SRGB, ScreenState::UNKNOWN, ScreenRotation::ROTATION_0); in SetUp()
104 ScreenColorGamut colorGamut, ScreenState state, ScreenRotation rotation) in CreateComposerAdapterWithScreenInfo()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_virtual_processor.h79 void ScaleMirrorIfNeed(const ScreenRotation angle, RSPaintFilterCanvas& canvas);
83 void OriginScreenRotation(ScreenRotation screenRotation, float width, float height);
98 ScreenRotation screenRotation_ = ScreenRotation::ROTATION_0;
99 ScreenRotation screenCorrection_ = ScreenRotation::ROTATION_0;
H A Drs_uni_render_virtual_processor.cpp150 …auto rotationAngle = static_cast<ScreenRotation>((rotationDiff + SCREEN_ROTATION_NUM) % SCREEN_ROT… in CanvasInit()
230 if (screenRotation == ScreenRotation::ROTATION_0) { in OriginScreenRotation()
232 } else if (screenRotation == ScreenRotation::ROTATION_90) { in OriginScreenRotation()
236 } else if (screenRotation == ScreenRotation::ROTATION_180) { in OriginScreenRotation()
238 } else if (screenRotation == ScreenRotation::ROTATION_270) { in OriginScreenRotation()
253 ScreenRotation angle = displayDrawable.GetOriginScreenRotation(); in CalculateTransform()
258 void RSUniRenderVirtualProcessor::ScaleMirrorIfNeed(const ScreenRotation angle, RSPaintFilterCanvas… in ScaleMirrorIfNeed()
260 if (screenCorrection_ == ScreenRotation::ROTATION_90 || in ScaleMirrorIfNeed()
261 screenCorrection_ == ScreenRotation::ROTATION_270) { in ScaleMirrorIfNeed()
265 if (angle == ScreenRotation::ROTATION_90 || in ScaleMirrorIfNeed()
[all …]
H A Drs_surface_capture_task_parallel.h82 ScreenRotation screenCorrection_ = ScreenRotation::ROTATION_0;
83 ScreenRotation screenRotation_ = ScreenRotation::ROTATION_0;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_point_light_manager.cpp133 if (rotation == ScreenRotation::ROTATION_0 || rotation == ScreenRotation::ROTATION_180) { in CheckIlluminated()
135 … } else if (rotation == ScreenRotation::ROTATION_90 || rotation == ScreenRotation::ROTATION_270) { in CheckIlluminated()
155 case ScreenRotation::ROTATION_0: in CalculateLightPosForIlluminated()
159 case ScreenRotation::ROTATION_90: in CalculateLightPosForIlluminated()
163 case ScreenRotation::ROTATION_180: in CalculateLightPosForIlluminated()
167 case ScreenRotation::ROTATION_270: in CalculateLightPosForIlluminated()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/round_corner_display/
H A Drs_round_corner_display.h34 enum class ScreenRotation : uint32_t;
78 void UpdateOrientationStatus(ScreenRotation orientation);
162 ScreenRotation curOrientation_ = ScreenRotation::ROTATION_0;
163 ScreenRotation lastOrientation_ = ScreenRotation::ROTATION_0;
H A Drs_round_corner_display.cpp247 void RoundCornerDisplay::UpdateOrientationStatus(ScreenRotation orientation) in UpdateOrientationStatus()
301 case ScreenRotation::ROTATION_0: in RcdChooseTopResourceType()
302 case ScreenRotation::ROTATION_180: in RcdChooseTopResourceType()
311 case ScreenRotation::ROTATION_90: in RcdChooseTopResourceType()
312 case ScreenRotation::ROTATION_270: in RcdChooseTopResourceType()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/
H A Drs_point_light_manager_test.cpp310 instance->SetScreenRotation(ScreenRotation::ROTATION_0);
314 instance->SetScreenRotation(ScreenRotation::ROTATION_90);
351 instance->screenRotation_ = ScreenRotation::ROTATION_0;
355 instance->screenRotation_ = ScreenRotation::ROTATION_180;
359 instance->screenRotation_ = ScreenRotation::ROTATION_90;
363 instance->screenRotation_ = ScreenRotation::ROTATION_270;
382 instance->SetScreenRotation(ScreenRotation::ROTATION_0);
387 instance->SetScreenRotation(ScreenRotation::ROTATION_90);
392 instance->SetScreenRotation(ScreenRotation::ROTATION_180);
397 instance->SetScreenRotation(ScreenRotation::ROTATION_270);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/params/
H A Drs_display_render_params.h68 ScreenRotation GetScreenRotation() const override in GetScreenRotation()
72 ScreenRotation GetNodeRotation() const in GetNodeRotation()
162 ScreenRotation nodeRotation_ = ScreenRotation::INVALID_SCREEN_ROTATION;
163 ScreenRotation screenRotation_ = ScreenRotation::INVALID_SCREEN_ROTATION;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/
H A Drs_display_render_node.h125 void SetScreenRotation(const ScreenRotation& screenRotation) in SetScreenRotation()
130 ScreenRotation GetScreenRotation() in GetScreenRotation()
192 ScreenRotation GetRotation() const;
298 void SetOriginScreenRotation(const ScreenRotation& rotate) { in SetOriginScreenRotation()
302 ScreenRotation GetOriginScreenRotation() const { in GetOriginScreenRotation()
382 ScreenRotation screenRotation_ = ScreenRotation::ROTATION_0;
383 ScreenRotation originScreenRotation_ = ScreenRotation::ROTATION_0;
H A Drs_surface_render_node.h852 void CheckAndUpdateOpaqueRegion(const RectI& screeninfo, const ScreenRotation screenRotation,
855 …aceOpaqueRegion(const RectI& screeninfo, const RectI& absRect, const ScreenRotation screenRotation,
858 const RectI& absRect, const ScreenRotation screenRotation, const bool isFocusWindow) const;
859 …Occlusion::Region SetUnfocusedWindowOpaqueRegion(const RectI& absRect, const ScreenRotation screen…
860 …Occlusion::Region SetFocusedWindowOpaqueRegion(const RectI& absRect, const ScreenRotation screenRo…
863 const ScreenRotation screenRotation);
864 …eRegionBaseInfo(const RectI& screeninfo, const RectI& absRect, const ScreenRotation screenRotation,
866 …eRegionBaseInfo(const RectI& screeninfo, const RectI& absRect, const ScreenRotation screenRotation,
1422 ScreenRotation screenRotation_ = ScreenRotation::INVALID_SCREEN_ROTATION;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_point_light_manager.h38 void SetScreenRotation(ScreenRotation screenRotation) in SetScreenRotation()
42 ScreenRotation GetScreenRotation() const in GetScreenRotation()
64 ScreenRotation screenRotation_ = ScreenRotation::INVALID_SCREEN_ROTATION;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_display_node.cpp181 ScreenRotation screenRotation = ScreenRotation::ROTATION_0; in SetScreenRotation()
184 screenRotation = ScreenRotation::ROTATION_0; in SetScreenRotation()
187 screenRotation = ScreenRotation::ROTATION_90; in SetScreenRotation()
190 screenRotation = ScreenRotation::ROTATION_180; in SetScreenRotation()
193 screenRotation = ScreenRotation::ROTATION_270; in SetScreenRotation()
196 screenRotation = ScreenRotation::INVALID_SCREEN_ROTATION; in SetScreenRotation()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_surface_render_node_test.cpp1779 ScreenRotation screenRotation = ScreenRotation::ROTATION_0;
1798 ScreenRotation rotationCases[] = { ScreenRotation::ROTATION_0, ScreenRotation::ROTATION_90,
1799ScreenRotation::ROTATION_180, ScreenRotation::ROTATION_270, ScreenRotation::INVALID_SCREEN_ROTATIO…
1800 for (ScreenRotation rotation : rotationCases) {
1816 ScreenRotation rotationCases[] = { ScreenRotation::ROTATION_0, ScreenRotation::ROTATION_90,
1817ScreenRotation::ROTATION_180, ScreenRotation::ROTATION_270, ScreenRotation::INVALID_SCREEN_ROTATIO…
1818 for (ScreenRotation rotation : rotationCases) {
1835 ScreenRotation rotationCases[] = { ScreenRotation::ROTATION_0, ScreenRotation::ROTATION_90,
1836ScreenRotation::ROTATION_180, ScreenRotation::ROTATION_270, ScreenRotation::INVALID_SCREEN_ROTATIO…
1985 ScreenRotation screenRotation = ScreenRotation::ROTATION_0;
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/dfx/
H A Drs_dirty_rects_dfx_test.cpp239 ScreenRotation rotation = ScreenRotation::ROTATION_0;
244 rotation = ScreenRotation::ROTATION_90;
250 rotation = ScreenRotation::ROTATION_180;
254 rotation = ScreenRotation::ROTATION_270;
258 rotation = ScreenRotation::INVALID_SCREEN_ROTATION;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_display_render_node_drawable.h129 void SetOriginScreenRotation(const ScreenRotation& rotate) in SetOriginScreenRotation()
135 ScreenRotation GetOriginScreenRotation() const in GetOriginScreenRotation()
155 void RotateMirrorCanvas(ScreenRotation& rotation, float mainWidth, float mainHeight);
209 ScreenRotation originScreenRotation_ = ScreenRotation::INVALID_SCREEN_ROTATION;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/
H A Drs_dirty_rects_dfx.cpp126 ScreenRotation rotation, uint64_t screenId) in RefreshRateRotationProcess()
128 if (rotation != ScreenRotation::ROTATION_0) { in RefreshRateRotationProcess()
131 if (rotation == ScreenRotation::ROTATION_90) { in RefreshRateRotationProcess()
134 } else if (rotation == ScreenRotation::ROTATION_180) { in RefreshRateRotationProcess()
138 } else if (rotation == ScreenRotation::ROTATION_270) { in RefreshRateRotationProcess()
184 (rotation == ScreenRotation::ROTATION_270 ? ScreenRotation::ROTATION_0 in DrawCurrentRefreshRate()
185 … : static_cast<ScreenRotation>(static_cast<int>(rotation) + 1)); in DrawCurrentRefreshRate()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/screen_manager/
H A Drs_screen.h87 virtual ScreenRotation GetScreenCorrection() const = 0;
92 virtual void SetScreenCorrection(ScreenRotation screenRotation) = 0;
178 void SetScreenCorrection(ScreenRotation screenRotation) override;
179 ScreenRotation GetScreenCorrection() const override;
270 ScreenRotation screenRotation_ = ScreenRotation::ROTATION_0;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/command/
H A Drs_display_node_command.h48 static void SetScreenRotation(RSContext&, NodeId, const ScreenRotation&);
70 ScreenRotation))

1234