Home
last modified time | relevance | path

Searched refs:RawBatteryStats (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DModemBatteryStatsReader.java23 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 …]
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DRawBatteryStatsTest.java50 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 …]
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DBatteryStatsReader.java49 RawBatteryStats mBs;
64 mBs = RawBatteryStats.parse(mStream); in parse()
DRawBatteryStats.java40 public class RawBatteryStats { class
774 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 RawBatteryStats
1126 for (Class<?> cl: RawBatteryStats.class.getClasses()) {