Search in sources :

Example 6 with PowerProfile

use of com.android.internal.os.PowerProfile in project android_frameworks_base by crdroidandroid.

the class BatteryStatsService method publish.

public void publish(Context context) {
    mContext = context;
    mStats.setRadioScanningTimeout(mContext.getResources().getInteger(com.android.internal.R.integer.config_radioScanningTimeout) * 1000L);
    mStats.setPowerProfile(new PowerProfile(context));
    ServiceManager.addService(BatteryStats.SERVICE_NAME, asBinder());
}
Also used : PowerProfile(com.android.internal.os.PowerProfile)

Aggregations

PowerProfile (com.android.internal.os.PowerProfile)6 Drawable (android.graphics.drawable.Drawable)1 BatteryStats (android.os.BatteryStats)1 UserHandle (android.os.UserHandle)1 TypedValue (android.util.TypedValue)1 BatterySipper (com.android.internal.os.BatterySipper)1