Android 284log中的有用信息
DISPLAY 相关
14:19:44.025 1000 2227 2318 D DisplayManagerService: Ignore redundant display event 0/4 to 10137/32680 0 表示display 的id,此处为默认屏的id = 0 4 表示亮度改变事件,5 表示hdr/sdr改变 10137表示 Uid, 32680表示pid 打印这个log表示通知列表中最后一个数据与当前添加的数据一致,所以不进行添加操作,这里应该不会造成ANR的
当前resume、paused的activity
08-23 20:29:13.961 13444 13596 I wm_resume_activity: [0,35420232,8270,com.miui.home/.launcher.Launcher]
wm_resume_activity 是TAG
om.miui.home/.launcher.Launcher 是当前activity的包名和activity签名
查看应用的焦点
08-23 20:29:13.976 13444 13474 I input_focus: [Focus request a35b3bb com.miui.home/com.miui.home.launcher.Launcher,reaso
示例
08-23 20:29:13.961 13444 13596 I wm_resume_activity: [0,35420232,8270,com.miui.home/.launcher.Launcher]
08-23 20:29:13.966 13444 13474 I input_focus: [Requesting to set focus to null window,reason=UpdateInputWindows]
08-23 20:29:13.976 13444 13474 I input_focus: [Focus request a35b3bb com.miui.home/com.miui.home.launcher.Launcher,reason=UpdateInputWindows]
08-23 20:29:13.985 13444 14352 I input_focus: [Focus receive :a35b3bb com.miui.home/com.miui.home.launcher.Launcher,reason=setFocusedWindow]
08-23 20:29:14.178 4799 4799 I wm_on_resume_called: [0,35420232,com.miui.home.launcher.Launcher,RESUME_ACTIVITY,3]
08-23 20:29:14.179 4799 4799 I wm_on_top_resumed_gained_called: [35420232,com.miui.home.launcher.Launcher,topStateChangedWhenResumed]
08-23 20:29:14.225 4799 4799 I wm_on_top_resumed_lost_called: [35420232,com.miui.home.launcher.Launcher,pausing]
08-23 20:29:14.226 4799 4799 I wm_on_paused_called: [0,35420232,com.miui.home.launcher.Launcher,performPause,1]
08-23 20:29:14.231 4799 4799 I wm_on_resume_called: [0,35420232,com.miui.home.launcher.Launcher,LIFECYCLER_RESUME_ACTIVITY,3]
08-23 20:29:14.232 4799 4799 I wm_on_top_resumed_gained_called: [35420232,com.miui.home.launcher.Launcher,topWhenResuming]
08-23 20:29:19.145 4799 4920 I dvm_lock_sample: com.miui.home,0,LauncherTask #3,5154,RecentsTaskLoadPlan.java,-1,void com.android.systemui.shared.recents.model.RecentsTaskLoadPlan.updatePlan(java.util.Set, java.lang.String),-,127,void com.android.systemui.shared.recents.model.RecentsTaskLoadPlan.preloadRawTasks(int, boolean),5251
08-23 20:29:19.154 4799 4799 I wm_on_top_resumed_lost_called: [35420232,com.miui.home.launcher.Launcher,pausing]
08-23 20:29:19.157 4799 4799 I wm_on_paused_called: [0,35420232,com.miui.home.launcher.Launcher,performPause,3]
08-23 20:29:19.163 4799 4799 I wm_on_resume_called: [0,35420232,com.miui.home.launcher.Launcher,LIFECYCLER_RESUME_ACTIVITY,3]
08-23 20:29:19.163 4799 4799 I wm_on_top_resumed_gained_called: [35420232,com.miui.home.launcher.Launcher,topWhenResuming]
08-23 20:29:27.014 13444 26121 I am_anr : [0,4799,com.miui.home,821673541,Input dispatching timed out (Application does not have a focused window)]