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

adb shell dumpsys power

程序员文章站 2024-02-29 18:40:34
...
POWER MANAGER (dumpsys power)

Power Manager State:
  mDirty=0x0//
  mWakefulness=Dozing//设备的清醒状态。
  mWakefulnessChanging=false//设备清醒状态是否正在改变中
  mIsPowered=true//是否连接电源
  mPlugType=2//充电种类,1 ac充电,2 usb充电 3 无线充电
  mBatteryLevel=100//电池电量百分比
  mBatteryLevelWhenDreamStarted=100//屏保开始时电量百分比
  mDockState=0//插入基座类型,0 没有基座,1 桌面基座 2 车载基座 3 低端模拟桌面基座 4 高端模拟桌面基座
  mStayOn=false//
  mProximityPositive=false//距离传感器得到正数结果
  mBootCompleted=true//开机动作是否完成
  mSystemReady=true//系统加载完成
  mHalAutoSuspendModeEnabled=true//?
  mHalInteractiveModeEnabled=false//?
  mWakeLockSummary=0x40//?
  mUserActivitySummary=0x4//?
  mRequestWaitForNegativeProximity=false//?
  mSandmanScheduled=false//?
  mSandmanSummoned=false//?
  mLowPowerModeEnabled=false//设备是否开启低电量模式
  mBatteryLevelLow=false//电量是否很低
  mLastWakeTime=71986209 (11539 ms ago)//最后一次电量屏的时间
  mLastSleepTime=71996210 (1538 ms ago)//最后一次睡眠的时间
  mLastUserActivityTime=71986209 (11539 ms ago)//最后一次显示activity时间
  mLastUserActivityTimeNoChangeLights=70050061 (1947687 ms ago)//最后一次显示activity时间
  mLastInteractivePowerHintTime=71986209 (11539 ms ago)//上一次电源提示时间
  mLastScreenBrightnessBoostTime=0 (71997748 ms ago)//上一次亮度改变的时间
  mScreenBrightnessBoostInProgress=false//?
  mDisplayReady=true//display加载完成
  mHoldingWakeLockSuspendBlocker=false//?
  mHoldingDisplaySuspendBlocker=false//?

Settings and Configuration:
  mDecoupleHalAutoSuspendModeFromDisplayConfig=false//?
  mDecoupleHalInteractiveModeFromDisplayConfig=true//?
  mWakeUpWhenPluggedOrUnpluggedConfig=true//插拔usb power是否亮屏
  mWakeUpWhenPluggedOrUnpluggedInTheaterModeConfig=false//插拔usb 是否可以从剧场模式唤醒
  mTheaterModeEnabled=false//剧场模式是否可用
  mSuspendWhenScreenOffDueToProximityConfig=true//近距离产生的屏灭是否允许刷新display暂停
  mDreamsSupportedConfig=true//是否支持屏保模式
  mDreamsEnabledByDefaultConfig=true//默认是否支持屏保模式
  mDreamsActivatedOnSleepByDefaultConfig=false//睡眠和充电下是否支持屏保模式
  mDreamsActivatedOnDockByDefaultConfig=true//?
  mDreamsEnabledOnBatteryConfig=false
  mDreamsBatteryLevelMinimumWhenPoweredConfig=-1
  mDreamsBatteryLevelMinimumWhenNotPoweredConfig=15
  mDreamsBatteryLevelDrainCutoffConfig=5
  mDreamsEnabledSetting=true
  mDreamsActivateOnSleepSetting=false
  mDreamsActivateOnDockSetting=true
  mDozeAfterScreenOffConfig=true
  mLowPowerModeSetting=false//当前是否时低电量模式
  mAutoLowPowerModeConfigured=false//当前是否允许自动启动低电量模式
  mAutoLowPowerModeSnoozing=false//用户是否关闭了低功耗模式
  mMinimumScreenOffTimeoutConfig=10000//屏幕最小timeout时间
  mMaximumScreenDimDurationConfig=7000//屏幕变暗持续的最长时间
  mMaximumScreenDimRatioConfig=0.20000005//屏幕变暗为20%
  mScreenOffTimeoutSetting=300000//屏幕timeout默认时间
  mSleepTimeoutSetting=-1//?
  mMaximumScreenOffTimeoutFromDeviceAdmin=2147483647 (enforced=false)//?
  mStayOnWhilePluggedInSetting=0//?
  mScreenBrightnessSetting=255//当前屏亮度
  mScreenAutoBrightnessAdjustmentSetting=0.0//自动亮度 -1 到1,0表示没有效果
  mScreenBrightnessModeSetting=0//屏亮度模式0,没有打开自动亮度,1 打开自动亮度
  mScreenBrightnessOverrideFromWindowManager=-1//是否允许前台应用修改屏亮度
  mUserActivityTimeoutOverrideFromWindowManager=0//是否允许前台应用修改屏timeout -1 不允许,0 允许
  mTemporaryScreenBrightnessSettingOverride=-1//是否允许设置应用,临时调整屏亮度,知道下次刷新 -1 为不允许
  mTemporaryScreenAutoBrightnessAdjustmentSettingOverride=NaN//设置自动调整自动亮度,直到下次刷新 NaN为不允许
  mDozeScreenStateOverrideFromDreamManager=1//打瞌睡 低功耗屏的状态 0 位置,1 关闭,2 屏亮
  mDozeScreenBrightnessOverrideFromDreamManager=-1//打瞌睡 低功耗时屏的亮度 -1 为灭屏
  mScreenBrightnessSettingMinimum=60//设置屏暗最小百分比
  mScreenBrightnessSettingMaximum=255//设置屏亮的最大百分比
  mScreenBrightnessSettingDefault=160//默认屏亮度
  
Sleep timeout: -1 ms
Screen off timeout: 10000 ms
Screen dim duration: 2000 ms

Wake Locks: size=1//ap 层wake lock 列表
  DOZE_WAKE_LOCK                 'DreamManagerService' (uid=1000, pid=757, ws=null)


Suspend Blockers: size=4
  PowerManagerService.WakeLocks: ref count=0
  PowerManagerService.Display: ref count=0
  PowerManagerService.Broadcasts: ref count=0
  PowerManagerService.WirelessChargerDetector: ref count=0


Wireless Charger Detector State://无线充电信息
  mGravitySensor=null
  mPoweredWirelessly=false
  mAtRest=false
  mRestX=0.0, mRestY=0.0, mRestZ=0.0
  mDetectionInProgress=false
  mDetectionStartTime=0 (never)
  mMustUpdateRestPosition=false
  mTotalSamples=0
  mMovingSamples=0
  mFirstSampleX=0.0, mFirstSampleY=0.0, mFirstSampleZ=0.0
  mLastSampleX=0.0, mLastSampleY=0.0, mLastSampleZ=0.0
相关标签: Android