欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

android开发中常用的log 关键字有哪些?

程序员文章站 2022-03-16 17:24:41
android开发中常用的log 关键字有哪些? 1.windowmanager接收到全局按键 WindowManager: interceptKeyTq keycode...

android开发中常用的log 关键字有哪些?

1.windowmanager接收到全局按键

 WindowManager: interceptKeyTq keycode=26 interactive=false keyguardActive=true policyFlags=2000000
 WindowManager: interceptKeyTq keycode=26 interactive=false keyguardActive=true policyFlags=2000000 down =true   // 按下
 WindowManager: interceptKeyTq keycode=26 interactive=true keyguardActive=false policyFlags=22000000
 WindowManager: interceptKeyTq keycode=26 interactive=true keyguardActive=false policyFlags=22000000 down =false // 松开

2.powermanager接收到power键灭屏

PowerManagerService: Going to sleep due to power button

3.亮灭屏

DisplayManagerService: Display device changed state: "内置屏幕", OFF
DisplayManagerService: Display device changed state: "内置屏幕", ON