在alps/frameworks/base/services/core/java/com/android/server/pm/ShutdownThread.java
// Shutdown Animation
private static final int MIN_SHUTDOWN_ANIMATION_PLAY_TIME = 5*1000; // CU/CMCC operator require 3-5s
private static long beginAnimationTime = 0;
private static long endAnimationTime = 0;
private static boolean bConfirmForAnimation = true;
private static boolean bPlayaudio = true;
其中,
MIN_SHUTDOWN_ANIMATION_PLAY_TIME 是运营商要求的关机时间;
这个函数的作用就是等待关机动画播放完毕后再关机,否则关机动画未播放完成就关机了给人体验不好;
delayForPlayAnimation() ;
阅读(1055) | 评论(0) | 转发(0) |