appstateinfocollector专题

12 展讯Sprd设置-电池-AppStateInfoCollector.handleProcStateChanged 代码走读

1. AppStateInfoCollector.handleProcStateChanged 重点监听UID状态变化,来改变uid的状态 // return true: for new app state// false: for otherspublic boolean reportAppProcStateInfo(String packageName, int uid,

10 展讯Sprd设置-电池-AppStateInfoCollector 接口介绍

1. AppStateInfoCollector 接口介绍 由于应用场景调用地方多样,所以该接口主要更新应用状态信息。这里重点 public接口的被调用状况 2. 实例化 package com.android.server.power;public class PowerController {// App state infoprivate AppStateInfoCollector m