Android Suspend
2015-02-12 23:58:58 8 举报
android休眠流程,基于android 4.3
作者其他创作
大纲/内容
sendPendingNotificationsLocked
interceptKeyBeforeQueueing
setScreenOn
mDisplayBlanker.blankAllDisplays();
停止分发event事件updateEventDispatchingLocked
NativeInputManager
InputMonitor
PowerManagerService
这里有5s timeout时间,如果下面函数超时将重新调用checkReadyForSleepLocked
TvManager.getInstance().enterStrMode();
updatePowerStateLocked
onGoToSleepStarted
Notifier
关屏updateDisplayPowerStateLocked
InputDispatcher
DisplayBlankerImplblankAllDisplays
android_server_PowerManagerService_goToSleep
mScreenUpdateRunnable
onGoToSleepFinished
scheduleScreenUpdate
handleInterceptActions
setState
updateSuspendBlockerLocked
sendGoToSleepBroadcast
goToSleepFromNative
goToSleepInternal
sendNextBroadcast
InputManagerService
ActivityManagerService
stopIfSleepingLocked
requestPowerState
android的原生休眠这里mstar去掉了nativeSetAutoSuspend
injectInputEvent
updatePendingBroadcastLockedsendMessage(MSG_BROADCAST)
DisplayPowerState
PhoneWindowManager
updatePendingBroadcastLocked
goToSleepNoUpdateLocked
PhotonicModulator
ActivityStack
ActivityManagerNative
DisplayPowerController
sendUpdatePowerStateLockedsend msg MSG_UPDATE_POWER_STATE
goingToSleep
updatePowerState
0 条评论
下一页