/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ProcStatsData.java | 36 import com.android.internal.app.procstats.ProcessStats; 37 import com.android.internal.app.procstats.ProcessStats.ProcessDataCollection; 38 import com.android.internal.app.procstats.ProcessStats.TotalMemoryUseCollection; 56 private static ProcessStats sStatsXfer; 63 private ProcessStats mStats; 80 ServiceManager.getService(ProcessStats.SERVICE_NAME)); in ProcStatsData() 81 mMemStates = ProcessStats.ALL_MEM_ADJ; in ProcStatsData() 82 mStates = ProcessStats.BACKGROUND_PROC_STATES; in ProcStatsData() 108 if (factor == ProcessStats.ADJ_NOTHING) { in getMemState() 109 return ProcessStats.ADJ_MEM_FACTOR_NORMAL; in getMemState() [all …]
|
D | ProcessStatsUi.java | 32 import com.android.internal.app.procstats.ProcessStats; 129 ProcessStats.STATE_PERSISTENT, ProcessStats.STATE_IMPORTANT_FOREGROUND, 130 ProcessStats.STATE_IMPORTANT_BACKGROUND, ProcessStats.STATE_BACKUP, 131 ProcessStats.STATE_HEAVY_WEIGHT, ProcessStats.STATE_SERVICE, 132 ProcessStats.STATE_SERVICE_RESTARTING, ProcessStats.STATE_RECEIVER, 133 ProcessStats.STATE_HOME 137 ProcessStats.STATE_TOP 141 ProcessStats.STATE_CACHED_ACTIVITY, ProcessStats.STATE_CACHED_ACTIVITY_CLIENT, 142 ProcessStats.STATE_CACHED_EMPTY
|
D | ProcStatsEntry.java | 29 import com.android.internal.app.procstats.ProcessStats; 60 ProcessStats.ProcessDataCollection tmpBgTotals, in ProcStatsEntry() 61 ProcessStats.ProcessDataCollection tmpRunTotals, boolean useUss) { in ProcStatsEntry() 122 public void evaluateTargetPackage(PackageManager pm, ProcessStats stats, in evaluateTargetPackage() 123 ProcessStats.ProcessDataCollection bgTotals, in evaluateTargetPackage() 124 ProcessStats.ProcessDataCollection runTotals, Comparator<ProcStatsEntry> compare, in evaluateTargetPackage() 145 LongSparseArray<ProcessStats.PackageState> vpkgs in evaluateTargetPackage() 148 ProcessStats.PackageState pkgState = vpkgs.valueAt(ivers); in evaluateTargetPackage() 326 ServiceState.SERVICE_RUN, ProcessStats.STATE_NOTHING, 0, 0); in Service()
|
D | ProcessStatsBase.java | 26 import com.android.internal.app.procstats.ProcessStats; 49 private static final long DURATION_QUANTUM = ProcessStats.COMMIT_PERIOD;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsData.java | 36 import com.android.internal.app.procstats.ProcessStats; 37 import com.android.internal.app.procstats.ProcessStats.ProcessDataCollection; 38 import com.android.internal.app.procstats.ProcessStats.TotalMemoryUseCollection; 56 private static ProcessStats sStatsXfer; 63 private ProcessStats mStats; 80 ServiceManager.getService(ProcessStats.SERVICE_NAME)); in ProcStatsData() 81 mMemStates = ProcessStats.ALL_MEM_ADJ; in ProcStatsData() 82 mStates = ProcessStats.BACKGROUND_PROC_STATES; in ProcStatsData() 108 if (factor == ProcessStats.ADJ_NOTHING) { in getMemState() 109 return ProcessStats.ADJ_MEM_FACTOR_NORMAL; in getMemState() [all …]
|
D | ProcessStatsUi.java | 32 import com.android.internal.app.procstats.ProcessStats; 129 ProcessStats.STATE_PERSISTENT, ProcessStats.STATE_IMPORTANT_FOREGROUND, 130 ProcessStats.STATE_IMPORTANT_BACKGROUND, ProcessStats.STATE_BACKUP, 131 ProcessStats.STATE_HEAVY_WEIGHT, ProcessStats.STATE_SERVICE, 132 ProcessStats.STATE_SERVICE_RESTARTING, ProcessStats.STATE_RECEIVER, 133 ProcessStats.STATE_HOME 137 ProcessStats.STATE_TOP 141 ProcessStats.STATE_CACHED_ACTIVITY, ProcessStats.STATE_CACHED_ACTIVITY_CLIENT, 142 ProcessStats.STATE_CACHED_EMPTY
|
D | ProcStatsEntry.java | 29 import com.android.internal.app.procstats.ProcessStats; 60 ProcessStats.ProcessDataCollection tmpBgTotals, in ProcStatsEntry() 61 ProcessStats.ProcessDataCollection tmpRunTotals, boolean useUss) { in ProcStatsEntry() 122 public void evaluateTargetPackage(PackageManager pm, ProcessStats stats, in evaluateTargetPackage() 123 ProcessStats.ProcessDataCollection bgTotals, in evaluateTargetPackage() 124 ProcessStats.ProcessDataCollection runTotals, Comparator<ProcStatsEntry> compare, in evaluateTargetPackage() 145 LongSparseArray<ProcessStats.PackageState> vpkgs in evaluateTargetPackage() 148 ProcessStats.PackageState pkgState = vpkgs.valueAt(ivers); in evaluateTargetPackage() 326 ServiceState.SERVICE_RUN, ProcessStats.STATE_NOTHING, 0, 0); in Service()
|
D | ProcessStatsBase.java | 26 import com.android.internal.app.procstats.ProcessStats; 49 private static final long DURATION_QUANTUM = ProcessStats.COMMIT_PERIOD;
|
/packages/services/Car/watchdog/server/tests/ |
D | ProcPidStatTest.cpp | 47 std::string toString(const ProcessStats& stats) { in toString() 59 std::string toString(const std::vector<ProcessStats>& stats) { in toString() 74 bool isEqual(std::vector<ProcessStats>* lhs, std::vector<ProcessStats>* rhs) { in isEqual() 78 std::sort(lhs->begin(), lhs->end(), [&](const ProcessStats& l, const ProcessStats& r) -> bool { in isEqual() 81 std::sort(rhs->begin(), rhs->end(), [&](const ProcessStats& l, const ProcessStats& r) -> bool { in isEqual() 85 [&](const ProcessStats& l, const ProcessStats& r) -> bool { in isEqual() 129 std::vector<ProcessStats> expected = { in TEST() 258 std::vector<ProcessStats> expected = { in TEST() 333 std::vector<ProcessStats> expected = { in TEST() 562 std::vector<ProcessStats> expected = { in TEST()
|
D | IoPerfCollectionTest.cpp | 96 Result<std::vector<ProcessStats>> collect() override { in collect() 106 void push(const std::vector<ProcessStats>& entry) { mCache.push(entry); } in push() 110 std::queue<std::vector<ProcessStats>> mCache; 153 auto comp = [&](const ProcessIoPerfData::UidStats::ProcessStats& l, in isEqual() 154 const ProcessIoPerfData::UidStats::ProcessStats& r) -> bool { in isEqual()
|
/packages/services/Car/watchdog/server/src/ |
D | ProcPidStat.cpp | 118 Result<std::vector<ProcessStats>> ProcPidStat::collect() { in collect() 129 std::vector<ProcessStats> delta; in collect() 131 const ProcessStats& curStats = it.second; in collect() 140 ProcessStats deltaStats = curStats; in collect() 141 const ProcessStats& cachedStats = cachedIt->second; in collect() 158 Result<std::unordered_map<uint32_t, ProcessStats>> ProcPidStat::getProcessStatsLocked() const { in getProcessStatsLocked() 159 std::unordered_map<uint32_t, ProcessStats> processStats; in getProcessStatsLocked() 171 ProcessStats curStats; in getProcessStatsLocked() 270 Result<void> ProcPidStat::getPidStatusLocked(ProcessStats* processStats) const { in getPidStatusLocked()
|
D | ProcPidStat.h | 55 struct ProcessStats { struct 80 virtual android::base::Result<std::vector<ProcessStats>> collect(); argument 91 android::base::Result<std::unordered_map<uint32_t, ProcessStats>> getProcessStatsLocked() const; 94 android::base::Result<void> getPidStatusLocked(ProcessStats* processStats) const; 101 std::unordered_map<uint32_t, ProcessStats> mLastProcessStats GUARDED_BY(mMutex);
|
D | IoPerfCollection.h | 85 struct ProcessStats { struct 89 std::vector<ProcessStats> topNProcesses = {};
|
D | IoPerfCollection.cpp | 116 const std::vector<ProcessStats>& processStats, int topNStatsPerSubCategory) { in getUidProcessStats() 886 const Result<std::vector<ProcessStats>>& processStats = mProcPidStat->collect(); in collectProcessIoPerfDataLocked() 956 ProcessIoPerfData::UidStats::ProcessStats{pIt.comm, pIt.count}); in collectProcessIoPerfDataLocked() 985 ProcessIoPerfData::UidStats::ProcessStats{pIt.comm, pIt.count}); in collectProcessIoPerfDataLocked()
|