屏幕旋转180度

  1. 屏幕旋转180度

屏幕旋转180度

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk b/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk
index db00f1c..a587139 100755
--- a/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk
+++ b/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk
@@ -498,7 +498,9 @@ MTK_KERNEL_POWER_OFF_CHARGING = no

MTK_LAUNCHER_UNREAD_SUPPORT = yes
MTK_LCEEFT_SUPPORT = yes
-MTK_LCM_PHYSICAL_ROTATION = 90
+# modified by wilber
+MTK_LCM_PHYSICAL_ROTATION = 270
+#MTK_LCM_PHYSICAL_ROTATION = 90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/native/services/surfaceflinger/DisplayDevice.cpp b/native/services/surfaceflinger/DisplayDevice.cpp
index 71c4403..e484d52 100755
--- a/native/services/surfaceflinger/DisplayDevice.cpp
+++ b/native/services/surfaceflinger/DisplayDevice.cpp
@@ -450,9 +450,13 @@ status_t DisplayDevice::orientationToTransfrom(
break;
default:
// return BAD_VALUE;
- flags = Transform::ROT_90;
+ // modified by wilber
+ //flags = Transform::ROT_90;
+ flags = Transform::ROT_270;
}
- flags = Transform::ROT_90;
+ // modified by wilber
+ // flags = Transform::ROT_90;
+ flags = Transform::ROT_270;

tr->set(flags, w, h);
return NO_ERROR;

一般修改地方

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/bootloader/lk/project/aeon6735_65c_s_l1.mk b/bootloader/lk/project/aeon6735_65c_s_l1.mk
index b5986a5..eee3593 100644
--- a/bootloader/lk/project/aeon6735_65c_s_l1.mk
+++ b/bootloader/lk/project/aeon6735_65c_s_l1.mk
@@ -13,7 +13,9 @@ DEFINES += MTK_NEW_COMBO_EMMC_SUPPORT
#MTK_KERNEL_POWER_OFF_CHARGING = yes
MTK_KERNEL_POWER_OFF_CHARGING = no

-MTK_LCM_PHYSICAL_ROTATION = 0
+# modified by wilber
+#MTK_LCM_PHYSICAL_ROTATION = 0
+MTK_LCM_PHYSICAL_ROTATION = 270
CUSTOM_LK_LCM="bl16c78001n_beilijia_400x1280_vdo_dsi rm68200_hd720_dsi_vdo_belijia hx8394d_hd720_dsi_vdo_belijia hp784lcm0271a_400x1280_vdo_dsi wtl0686ota7209_480x1280_vdo_dsi"
#hx8392a_dsi_cmd = yes

@@ -23,7 +25,7 @@ MTK_VERIFIED_BOOT_SUPPORT = yes
MTK_SEC_FASTBOOT_UNLOCK_SUPPORT = yes

DEBUG := 2
-BOOT_LOGO=cu_lte_wvga cmcc_lte_hd720
+BOOT_LOGO=customs_logo_hd720

#DEFINES += WITH_DEBUG_DCC=1
DEFINES += WITH_DEBUG_UART=1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk b/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk
index db00f1c..1f94db5 100755
--- a/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk
+++ b/eastaeon/aeon6735_65c_s_l1/ProjectConfig.mk
@@ -498,7 +498,9 @@ MTK_KERNEL_POWER_OFF_CHARGING = no

MTK_LAUNCHER_UNREAD_SUPPORT = yes
MTK_LCEEFT_SUPPORT = yes
-MTK_LCM_PHYSICAL_ROTATION = 90
+# modified by wilber
+#MTK_LCM_PHYSICAL_ROTATION = 90
+MTK_LCM_PHYSICAL_ROTATION = 270
#MTK_LIVEWALLPAPER_APP = yes
MTK_LIVEWALLPAPER_APP = no
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/base/services/core/java/com/android/server/wm/WindowManagerService.java b/base/services/core/java/com/android/server/wm/WindowManagerService.java
index e815d55..992e7be 100755
--- a/base/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/base/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -4174,8 +4174,9 @@ public class WindowManagerService extends IWindowManager.Stub
+ " mClosingApps.size() = " + mClosingApps.size());
}

+ //// modified by wilber,set reverse landscape
return ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
-
+ //return ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE;
/* if (mDisplayFrozen || mOpeningApps.size() > 0 || mClosingApps.size() > 0) {
// If the display is frozen, some activities may be in the middle
// of restarting, and thus have removed their old window. If the
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/native/services/inputflinger/InputReader.cpp b/native/services/inputflinger/InputReader.cpp
index 7471b36..71d231d 100755
--- a/native/services/inputflinger/InputReader.cpp
+++ b/native/services/inputflinger/InputReader.cpp
@@ -3103,7 +3103,9 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) {
int32_t naturalPhysicalWidth, naturalPhysicalHeight;
int32_t naturalPhysicalLeft, naturalPhysicalTop;
int32_t naturalDeviceWidth, naturalDeviceHeight;
- mViewport.orientation = DISPLAY_ORIENTATION_90;//add at 20151102
+// modified by wilber,set orientation 270
+ // mViewport.orientation = DISPLAY_ORIENTATION_90;//add at 20151102
+ mViewport.orientation = DISPLAY_ORIENTATION_270;
switch (mViewport.orientation) {
case DISPLAY_ORIENTATION_90:
naturalLogicalWidth = mViewport.logicalBottom - mViewport.logicalTop;
@@ -4436,7 +4438,9 @@ void TouchInputMapper::cookPointerData() {
// Adjust X, Y, and coverage coords for surface orientation.
float x, y;
float left, top, right, bottom;
- mSurfaceOrientation = DISPLAY_ORIENTATION_90;//add at 20151102
+// modified by wilber,set orientation 270
+ // mSurfaceOrientation = DISPLAY_ORIENTATION_90;//add at 20151102
+ mSurfaceOrientation = DISPLAY_ORIENTATION_270;
switch (mSurfaceOrientation) {
case DISPLAY_ORIENTATION_90:
x = float(yTransformed - mRawPointerAxes.y.minValue) * mYScale + mYTranslate;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/arch/arm64/configs/aeon6735_65c_s_l1_debug_defconfig b/arch/arm64/configs/aeon6735_65c_s_l1_debug_defconfig
index 8ca8f58..a637080 100644
--- a/arch/arm64/configs/aeon6735_65c_s_l1_debug_defconfig
+++ b/arch/arm64/configs/aeon6735_65c_s_l1_debug_defconfig
@@ -1183,7 +1183,9 @@ CONFIG_MTK_CONN_LTE_IDC_SUPPORT=y
CONFIG_MTK_FB=y
CONFIG_MTK_FB_SUPPORT_ASSERTION_LAYER=y
CONFIG_MTK_DITHERING_SUPPORT=y
-CONFIG_MTK_LCM_PHYSICAL_ROTATION="0"
+# modified by wilber set reverse
+#CONFIG_MTK_LCM_PHYSICAL_ROTATION="0"
+CONFIG_MTK_LCM_PHYSICAL_ROTATION="270"
CONFIG_LCM_HEIGHT="1280"
CONFIG_LCM_WIDTH="720"
CONFIG_CUSTOM_LCM_X="0"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/arch/arm64/configs/aeon6735_65c_s_l1_defconfig b/arch/arm64/configs/aeon6735_65c_s_l1_defconfig
index f95ef38..f7b346a 100644
--- a/arch/arm64/configs/aeon6735_65c_s_l1_defconfig
+++ b/arch/arm64/configs/aeon6735_65c_s_l1_defconfig
@@ -1181,7 +1181,9 @@ CONFIG_MTK_CONN_LTE_IDC_SUPPORT=y
CONFIG_MTK_FB=y
CONFIG_MTK_FB_SUPPORT_ASSERTION_LAYER=y
CONFIG_MTK_DITHERING_SUPPORT=y
-CONFIG_MTK_LCM_PHYSICAL_ROTATION="0"
+# modified by wilber set reverse
+#CONFIG_MTK_LCM_PHYSICAL_ROTATION="0"
+CONFIG_MTK_LCM_PHYSICAL_ROTATION="270"
CONFIG_LCM_HEIGHT="960"
CONFIG_LCM_WIDTH="540"
CONFIG_CUSTOM_LCM_X="0"

ref:

http://blog.csdn.net/zqh2007/article/details/52640822?locationNum=7

http://blog.csdn.net/androiddeveloper_lee/article/details/9496005

http://blog.csdn.net/huil0925/article/details/52049354

http://cubie.cc/forum.php?mod=viewthread&tid=4816

http://www.it610.com/article/1766212.htm

http://duanyu010.iteye.com/blog/1944888


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wilber_bai@hotmail.com

文章标题:屏幕旋转180度

文章字数:798

本文作者:风沉殇史

发布时间:2017-12-12, 12:12:12

最后更新:2020-01-03, 17:32:48

原始链接:http://wilber.win/posts/531c256a/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录
×

喜欢就点赞,疼爱就打赏