Searched refs:RawBatteryStats (Results 1 – 4 of 4) sorted by relevance
23 import com.android.powermodel.RawBatteryStats;30 public static List<ComponentActivity> createActivities(RawBatteryStats bs) { in createActivities()45 private static void createGlobal(List<ComponentActivity> result, RawBatteryStats bs) { in createGlobal()49 final RawBatteryStats.GlobalNetwork gn = bs.getSingle(RawBatteryStats.GlobalNetwork.class); in createGlobal()50 final RawBatteryStats.Misc misc = bs.getSingle(RawBatteryStats.Misc.class); in createGlobal()63 private static void createApps(List<ComponentActivity> result, RawBatteryStats bs) { in createApps()66 final RawBatteryStats.Network network in createApps()67 = bs.getSingle(RawBatteryStats.Network.class, uid); in createApps()81 private static void createRemainder(List<ComponentActivity> result, RawBatteryStats bs) { in createRemainder()82 final RawBatteryStats.SignalStrengthTime strength in createRemainder()[all …]
50 final RawBatteryStats bs = RawBatteryStats.parse(is); in testVersion()51 final List<RawBatteryStats.Record> records = bs.getRecords(); in testVersion()52 final RawBatteryStats.Version line = (RawBatteryStats.Version)records.get(0); in testVersion()59 Assert.assertEquals(RawBatteryStats.Category.INFO, line.category); in testVersion()71 final RawBatteryStats bs = RawBatteryStats.parse(is); in testUid()72 final List<RawBatteryStats.Record> records = bs.getRecords(); in testUid()73 final RawBatteryStats.Uid line = (RawBatteryStats.Uid)records.get(1); in testUid()82 final RawBatteryStats bs = RawBatteryStats.parse(is); in testVarargs()83 final List<RawBatteryStats.Record> records = bs.getRecords(); in testVarargs()84 final RawBatteryStats.GlobalModemController line in testVarargs()[all …]
49 RawBatteryStats mBs;64 mBs = RawBatteryStats.parse(mStream); in parse()
40 public class RawBatteryStats { class774 Record create(RawBatteryStats bs, int dumpsysVersion, int lineNumber, in create()858 public static RawBatteryStats parse(InputStream input) throws ParseException, IOException { in parse()859 final RawBatteryStats result = new RawBatteryStats(); in parse()930 private RawBatteryStats() { in RawBatteryStats() method in RawBatteryStats1126 for (Class<?> cl: RawBatteryStats.class.getClasses()) {