锁屏界面十秒超时
/frameworks/base/services/core/java/com/android/server/wm/RootWindowContainer.java
handleNotObscuredLocked { mUserActivityTimeout = w.mAttrs.userActivityTimeout;}
->
SystemUI
KeyguardViewMediator.AWAKE_INTERVAL_DEFAULT_MS = 10000;
StatusBarWindowController.applyUserActivityTimeout
{
mLpChanged.userActivityTimeout = KeyguardViewMediator.AWAKE_INTERVAL_DEFAULT_MS;
}
//
RootWindowContainer.performSurfacePlacement
-->RootWindowContainer.performSurfacePlacementNoTrace
->H.SET_USER_ACTIVITY_TIMEOUT
->PowerManagerService.setUserActivityTimeoutOverrideFromWindowManager
-->PowerManagerService.setUserActivityTimeoutOverrideFromWindowManagerInternal{mUserActivityTimeoutOverrideFromWindowManager = timeoutMillis;}
-->PowerManagerService.getScreenOffTimeoutLocked
{
if (mUserActivityTimeoutOverrideFromWindowManager >= 0) {
timeout = Math.min(timeout, mUserActivityTimeoutOverrideFromWindowManager);
}
//getScreenOffTimeoutLocked timeout=10000 mUserActivityTimeoutOverrideFromWindowManager=10000 sleepTime