概要
在Android 12 产品定制化开发中,由于系统默认方向为竖屏,平板电脑要横屏显示。系统在开机时,有时因为旋转,会出现动画只显示一部分。
整体架构流程
1、frameworks/native/services/surfaceflinger/DisplayDevice.cpp
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
本文介绍了在Android 12系统中,针对平板电脑横屏显示时,开机动画可能出现部分显示不全的问题。分析了整体架构流程,包括在frameworks/native/services/surfaceflinger/DisplayDevice.cpp中的处理,并提出解决方案,建议在开机动画结束前禁止屏幕旋转事件。
订阅专栏 解锁全文
2664

被折叠的 条评论
为什么被折叠?



