Home
last modified time | relevance | path

Searched refs:UidStats (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/java/android/os/
DBluetoothBatteryStats.java33 public static class UidStats { class in BluetoothBatteryStats
41 public UidStats(int uid, long scanTimeMs, long unoptimizedScanTimeMs, int scanResultCount, in UidStats() method in BluetoothBatteryStats.UidStats
51 private UidStats(Parcel in) { in UidStats() method in BluetoothBatteryStats.UidStats
82 private final List<UidStats> mUidStats;
84 public BluetoothBatteryStats(@NonNull List<UidStats> uidStats) { in BluetoothBatteryStats()
89 public List<UidStats> getUidStats() { in getUidStats()
97 mUidStats.add(new UidStats(in)); in BluetoothBatteryStats()
106 UidStats stats = mUidStats.get(i); in writeToParcel()
/frameworks/base/core/tests/coretests/src/android/os/
DBluetoothBatteryStatsTest.java34 new BluetoothBatteryStats.UidStats(42, 100, 200, 300, 400, 500), in parcelability()
35 new BluetoothBatteryStats.UidStats(99, 600, 700, 800, 900, 999) in parcelability()
51 BluetoothBatteryStats.UidStats uid1 = actual.getUidStats().stream() in parcelability()
60 BluetoothBatteryStats.UidStats uid2 = actual.getUidStats().stream() in parcelability()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerComponentAggregatedPowerStats.java72 private final SparseArray<UidStats> mUidStats = new SparseArray<>();
75 private static class UidStats { class in PowerComponentAggregatedPowerStats
133 PowerComponentAggregatedPowerStats.UidStats uidStats = mUidStats.valueAt(i); in setState()
152 UidStats uidStats = getUidStats(uid); in setUidState()
173 UidStats uidStats = getUidStats(uid); in setUidStats()
200 PowerComponentAggregatedPowerStats.UidStats uidStats = getUidStats(uid); in addPowerStats()
212 PowerComponentAggregatedPowerStats.UidStats uidStats = mUidStats.valueAt(i); in addPowerStats()
236 private UidStats getUidStats(int uid) { in getUidStats()
237 UidStats uidStats = mUidStats.get(uid); in getUidStats()
239 uidStats = new UidStats(); in getUidStats()
[all …]
DBluetoothPowerStatsCollector.java85 private static class UidStats { class in BluetoothPowerStatsCollector
94 private final SparseArray<UidStats> mUidStats = new SparseArray<>();
228 UidStats counts = mUidStats.get(uid); in collectBluetoothActivityInfo()
230 counts = new UidStats(); in collectBluetoothActivityInfo()
238 UidStats counts = mUidStats.valueAt(i); in collectBluetoothActivityInfo()
264 UidStats uidStats = mUidStats.get(uid); in collectBluetoothScanStats()
266 uidStats = new UidStats(); in collectBluetoothScanStats()
274 UidStats counts = mUidStats.valueAt(i); in collectBluetoothScanStats()
DCpuPowerStatsCollector.java86 private final SparseArray<UidStats> mUidStats = new SparseArray<>();
415 UidStats uidStats = mUidStats.get(uid); in processUidStats()
417 uidStats = new UidStats(); in processUidStats()
480 private static class UidStats { class in CpuPowerStatsCollector
DBatteryStatsImpl.java1765 ArrayList<BluetoothBatteryStats.UidStats> uidStats = new ArrayList<>(); in getBluetoothBatteryStats()
1791 uidStats.add(new BluetoothBatteryStats.UidStats(uid.getUid(), in getBluetoothBatteryStats()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DConnectivityController.java181 private final Comparator<UidStats> mUidStatsComparator = new Comparator<UidStats>() {
195 public int compare(UidStats us1, UidStats us2) {
277 private final SparseArray<UidStats> mUidStats = new SparseArray<>();
284 private final List<UidStats> mSortedStats = new ArrayList<>();
339 final UidStats uidStats = in maybeStartTrackingJobLocked()
359 final UidStats uidStats = in prepareForExecutionLocked()
369 final UidStats uidStats = in unprepareFromExecutionLocked()
384 final UidStats uidStats = in maybeStopTrackingJobLocked()
412 private UidStats getUidStats(int uid, String packageName, boolean shouldExist) { in getUidStats()
413 UidStats us = mUidStats.get(uid); in getUidStats()
[all …]
/frameworks/base/core/proto/android/os/
Dappbatterystats.proto23 message UidStats { message
46 repeated UidStats uid_stats = 1;
/frameworks/base/services/core/java/com/android/server/am/
DAppBatteryTracker.java915 proto.write(AppBatteryStatsProto.UidStats.UID, uid); in dumpUidStats()
917 AppBatteryStatsProto.UidStats.ProcessStateStats.FOREGROUND, in dumpUidStats()
920 AppBatteryStatsProto.UidStats.ProcessStateStats.BACKGROUND, in dumpUidStats()
923 AppBatteryStatsProto.UidStats.ProcessStateStats.FOREGROUND_SERVICE, in dumpUidStats()
926 AppBatteryStatsProto.UidStats.ProcessStateStats.CACHED, in dumpUidStats()
936 final long token = proto.start(AppBatteryStatsProto.UidStats.PROCESS_STATE_STATS); in dumpProcessStateStats()
937 proto.write(AppBatteryStatsProto.UidStats.ProcessStateStats.PROCESS_STATE, processState); in dumpProcessStateStats()
938 proto.write(AppBatteryStatsProto.UidStats.ProcessStateStats.POWER_MAH, powerMah); in dumpProcessStateStats()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsImplTest.java784 final BluetoothBatteryStats.UidStats uidStats = in testGetBluetoothBatteryStats()
/frameworks/base/services/
Dart-profile1763 …ang/String;Z)Lcom/android/server/job/controllers/ConnectivityController$UidStats;+]Landroid/util/S…
3164 …tats(Lcom/android/server/power/stats/PowerComponentAggregatedPowerStats$UidStats;J)V+]Lcom/android…
3165 …ts(I)Lcom/android/server/power/stats/PowerComponentAggregatedPowerStats$UidStats;+]Landroid/util/S…
Dart-wear-profile13126 HPLcom/android/server/job/controllers/ConnectivityController$UidStats;-><init>(I)V
13127 …ntrollers/ConnectivityController$UidStats;-><init>(ILcom/android/server/job/controllers/Connectivi…
13134 …tUidStats(ILjava/lang/String;Z)Lcom/android/server/job/controllers/ConnectivityController$UidStats;
22226 PLcom/android/server/power/stats/CpuPowerStatsCollector$UidStats;-><init>()V
22227 …/power/stats/CpuPowerStatsCollector$UidStats;-><init>(Lcom/android/server/power/stats/CpuPowerStat…