完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
RK3288[android 7.1]调试笔记 强制横屏
修改路径为/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java文件 wangxd@build-server-100:~/work/dsy/rk3288-Android-7.0/frameworks/base(m_android_7_0)$ git diff /services/core/java/com/android/server/wm/WindowManagerService.java diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/ index f4ba143..6432e65 100755 --- a/services/core/java/com/android/server/wm/WindowManagerService.java +++ b/services/core/java/com/android/server/wm/WindowManagerService.java @@ -4360,7 +4360,9 @@ public class WindowManagerService extends IWindowManager.Stub boolean updateOrientationFromAppTokensLocked(boolean inTransaction) { long ident = Binder.clearCallingIdentity(); try { - int req = getOrientationLocked(); + // int req = getOrientationLocked(); + //SCREEN_ORIENTATION_LANDSCAPE 横屏显示 + int req = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; if (req != mLastOrientation) { mLastOrientation = req; //send a message to Policy indicating orientation change to take SCREEN_ORIENTATION_LANDSCAPE :横屏显示 SCREEN_ORIENTATION_PORTRAIT : 竖屏显示 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1567 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
1790 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
4465 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-10 13:19 , Processed in 0.332663 second(s), Total 39, Slave 34 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号