/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportStats.java | 31 private final Map<ComponentName, Stats> mTransportStats = new HashMap<>(); 35 Stats stats = mTransportStats.get(transportComponent); in registerConnectionTime() 37 stats = new Stats(); in registerConnectionTime() 46 public Stats getStatsForTransport(ComponentName transportComponent) { in getStatsForTransport() 48 Stats stats = mTransportStats.get(transportComponent); in getStatsForTransport() 52 return new Stats(stats); in getStatsForTransport() 58 Optional<Stats> aggregatedStats = in dump() 59 mTransportStats.values().stream().reduce(Stats::merge); in dump() 66 Stats stats = mTransportStats.get(transportComponent); in dump() 74 private static void dumpStats(PrintWriter pw, String prefix, Stats stats) { in dumpStats() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/backup/transport/ |
D | TransportStatsTest.java | 27 import com.android.server.backup.transport.TransportStats.Stats; 58 Stats stats = mTransportStats.getStatsForTransport(mTransportComponent1); in testRegisterConnectionTime() 71 Stats stats = mTransportStats.getStatsForTransport(mTransportComponent1); in testRegisterConnectionTime_whenHasAlreadyOneSample() 83 Stats stats = mTransportStats.getStatsForTransport(mTransportComponent1); in testGetStatsForTransport() 95 Stats stats1 = mTransportStats.getStatsForTransport(mTransportComponent1); in testMerge() 96 Stats stats2 = mTransportStats.getStatsForTransport(mTransportComponent2); in testMerge() 98 Stats stats = Stats.merge(stats1, stats2); in testMerge()
|
/frameworks/support/content/src/androidTest/java/androidx/contentpager/content/ |
D | ContentPagerTest.java | 114 extras.getInt(ContentPager.Stats.EXTRA_PROVIDER_PAGED)); in testRelaysProviderPagedResults() 117 extras.getInt(ContentPager.Stats.EXTRA_RESOLVED_QUERIES)); in testRelaysProviderPagedResults() 120 extras.getInt(ContentPager.Stats.EXTRA_TOTAL_QUERIES)); in testRelaysProviderPagedResults() 169 extras.getInt(ContentPager.Stats.EXTRA_PROVIDER_PAGED)); in testLimitsPagedResultsToWindowSize() 172 extras.getInt(ContentPager.Stats.EXTRA_RESOLVED_QUERIES)); in testLimitsPagedResultsToWindowSize() 175 extras.getInt(ContentPager.Stats.EXTRA_TOTAL_QUERIES)); in testLimitsPagedResultsToWindowSize() 209 extras.getInt(ContentPager.Stats.EXTRA_COMPAT_PAGED)); in testAdaptsUnpagedToPaged() 212 extras.getInt(ContentPager.Stats.EXTRA_RESOLVED_QUERIES)); in testAdaptsUnpagedToPaged() 215 extras.getInt(ContentPager.Stats.EXTRA_TOTAL_QUERIES)); in testAdaptsUnpagedToPaged() 249 extras.getInt(ContentPager.Stats.EXTRA_COMPAT_PAGED)); in testCachesUnpagedCursor() [all …]
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | TimedStatementResult.java | 19 import com.android.layoutlib.bridge.intensive.util.perf.LongStatsCollector.Stats; 32 private final Stats mTimeStats; 33 private final Stats mMemoryStats; 37 Stats timeStats, in TimedStatementResult() 38 Stats memoryStats) { in TimedStatementResult()
|
D | LongStatsCollector.java | 41 public Stats getStats() { in getStats() 58 return new Stats(mAllValues.size(), mMin, mMax, median); in getStats() 68 public static class Stats { class in LongStatsCollector 74 private Stats(int samples, long min, long max, double median) { in Stats() method in LongStatsCollector.Stats
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ProcessCpuTracker.java | 174 private final ArrayList<Stats> mProcStats = new ArrayList<Stats>(); 175 private final ArrayList<Stats> mWorkingProcs = new ArrayList<Stats>(); 184 boolean needed(Stats stats); in needed() 187 public static class Stats { class in ProcessCpuTracker 193 final ArrayList<Stats> threadStats; 194 final ArrayList<Stats> workingThreads; 248 Stats(int _pid, int parentPid, boolean includeThreads) { in Stats() method in ProcessCpuTracker.Stats 256 threadStats = new ArrayList<Stats>(); in Stats() 257 workingThreads = new ArrayList<Stats>(); in Stats() 277 private final static Comparator<Stats> sLoadComparator = new Comparator<Stats>() { [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_net_NetworkStatsService.cpp | 36 using android::bpf::Stats; 58 static uint64_t getStatsType(struct Stats* stats, StatsType type) { in getStatsType() 77 static int parseIfaceStats(const char* iface, struct Stats* stats) { in parseIfaceStats() 121 static int parseUidStats(const uint32_t uid, struct Stats* stats) { in parseUidStats() 154 struct Stats stats; in getTotalStat() 155 memset(&stats, 0, sizeof(Stats)); in getTotalStat() 179 struct Stats stats; in getIfaceStat() 180 memset(&stats, 0, sizeof(Stats)); in getIfaceStat() 198 struct Stats stats; in getUidStat() 199 memset(&stats, 0, sizeof(Stats)); in getUidStat()
|
/frameworks/base/cmds/incident_helper/tests/ |
D | CpuFreqParser_test.cpp | 60 CpuFreqProto::Stats::TimeInState* state; in TEST_F() 62 CpuFreqProto::Stats* cpu0 = expected.add_cpu_freqs(); in TEST_F() 74 CpuFreqProto::Stats* cpu1 = expected.add_cpu_freqs(); in TEST_F() 86 CpuFreqProto::Stats* cpu2 = expected.add_cpu_freqs(); in TEST_F() 101 CpuFreqProto::Stats* cpu3 = expected.add_cpu_freqs(); in TEST_F()
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
D | CpuFreqParser.cpp | 69 proto.write(CpuFreqProto::Stats::CPU_NAME, header[i+1]); in Parse() 71 uint64_t stateToken = proto.start(CpuFreqProto::Stats::TIMES); in Parse() 72 proto.write(CpuFreqProto::Stats::TimeInState::STATE_KHZ, it->first); in Parse() 73 proto.write(CpuFreqProto::Stats::TimeInState::TIME_JIFFY, it->second); in Parse()
|
/frameworks/base/core/java/android/content/ |
D | SyncStatusInfo.java | 45 public static class Stats { class in SyncStatusInfo 58 public void copyTo(Stats to) { in copyTo() 116 public final Stats totalStats = new Stats(); 117 public final Stats todayStats = new Stats(); 118 public final Stats yesterdayStats = new Stats();
|
/frameworks/support/content/src/main/java/androidx/contentpager/content/ |
D | ContentPager.java | 206 private final Stats mStats = new Stats(); 322 mStats.increment(Stats.EXTRA_TOTAL_QUERIES); in loadContentInBackground() 340 mStats.increment(Stats.EXTRA_RESOLVED_QUERIES); in loadContentInBackground() 365 mStats.increment(Stats.EXTRA_COMPAT_PAGED); in createPagedCursor() 432 mStats.increment(Stats.EXTRA_PROVIDER_PAGED); in processProviderPagedCursor() 651 static final class Stats { class in ContentPager
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | Stats.java | 23 public class Stats { class 28 public Stats(List<Long> values) { in Stats() method in Stats
|
D | ManualBenchmarkState.java | 84 private Stats mStats; 120 mStats = new Stats(mResults); in keepRunning()
|
D | BenchmarkState.java | 80 private Stats mStats; 142 mStats = new Stats(mResults); in startNextTestRun()
|
/frameworks/base/core/proto/android/os/ |
D | cpufreq.proto | 31 message Stats { message 44 repeated Stats cpu_freqs = 2;
|
/frameworks/native/libs/vr/libpdx_default_transport/ |
D | pdx_benchmarks.cpp | 145 Stats, enumerator 153 PDX_REMOTE_METHOD(Stats, BenchmarkOps::Stats, 229 ProgramOptions.opcode = BenchmarkOps::Stats; in ParseOpcodeOption() 331 case BenchmarkOps::Stats: { in HandleMessage() 341 RemoteMethodReturn<BenchmarkRPC::Stats>( in HandleMessage() 342 message, BenchmarkRPC::Stats::Return{receive_time_ns, GetClockNs(), in HandleMessage() 450 int Stats(std::tuple<uint64_t, uint64_t, SchedStats>* stats_out) { in Stats() function in __anon473f29b10111::BenchmarkClient 454 auto status = InvokeRemoteMethodInPlace<BenchmarkRPC::Stats>(stats_out); in Stats() 724 case BenchmarkOps::Stats: { in ClientCommand() 726 const int ret = client->Stats(&stats); in ClientCommand()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 168 interface Stats { interface in AppStateTracker 830 mStatLogger.logDurationStat(Stats.UID_ACTIVE_STATE_CHANGED, start); in handleMessage() 837 mStatLogger.logDurationStat(Stats.UID_FG_STATE_CHANGED, start); in handleMessage() 844 mStatLogger.logDurationStat(Stats.RUN_ANY_CHANGED, start); in handleMessage() 851 mStatLogger.logDurationStat(Stats.ALL_UNWHITELISTED, start); in handleMessage() 858 mStatLogger.logDurationStat(Stats.ALL_WHITELIST_CHANGED, start); in handleMessage() 865 mStatLogger.logDurationStat(Stats.TEMP_WHITELIST_CHANGED, start); in handleMessage() 872 mStatLogger.logDurationStat(Stats.EXEMPT_CHANGED, start); in handleMessage() 879 mStatLogger.logDurationStat(Stats.FORCE_ALL_CHANGED, start); in handleMessage() 895 Stats.FORCE_APP_STANDBY_FEATURE_FLAG_CHANGED, start); in handleMessage() [all …]
|
D | AlarmManagerService.java | 243 interface Stats { interface in AlarmManagerService 887 mStatLogger.logDurationStat(Stats.REBATCH_ALL_ALARMS, start); in rebatchAllAlarmsLocked() 924 mStatLogger.logDurationStat(Stats.REORDER_ALARMS_FOR_STANDBY, start); in reorderAlarmsBasedOnStandbyBuckets()
|
/frameworks/base/core/java/android/os/ |
D | ServiceManager.java | 91 interface Stats { interface in ServiceManager 255 final int time = (int) sStatLogger.logDurationStat(Stats.GET_SERVICE, start); in rawGetService()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutService.java | 349 interface Stats { interface in ShortcutService 624 logDurationStat(Stats.ASYNC_PRELOAD_USER_DELAY, start); in handleUnlockUser() 1320 logDurationStat(Stats.CLEANUP_DANGLING_BITMAPS, start); in cleanupDanglingBitmapDirectoriesLocked() 1494 logDurationStat(Stats.RESOURCE_NAME_LOOKUP, start); in fixUpShortcutResourceNamesAndValues() 2286 logDurationStat(Stats.LAUNCHER_PERMISSION_CHECK, start); in hasShortcutHostPermission() 2368 logDurationStat(Stats.GET_DEFAULT_HOME, startGetHomeActivitiesAsUser); in getDefaultLauncher() 2422 logDurationStat(Stats.GET_DEFAULT_LAUNCHER, start); in getDefaultLauncher() 2971 logDurationStat(Stats.CHECK_PACKAGE_CHANGES, start); in checkPackageChanges() 3133 (getSignatures ? Stats.GET_PACKAGE_INFO_WITH_SIG : Stats.GET_PACKAGE_INFO), in injectPackageInfoWithUninstalled() 3165 logDurationStat(Stats.GET_APPLICATION_INFO, start); in injectApplicationInfoWithUninstalled() [all …]
|
D | ShortcutPackage.java | 38 import com.android.server.pm.ShortcutService.Stats; 735 s.logDurationStat(Stats.PACKAGE_UPDATE_CHECK, start); in rescanPackageIfNeeded()
|
/frameworks/base/core/proto/android/service/ |
D | procstats.proto | 78 // Stats for each process.
|
/frameworks/native/opengl/tools/glgen2/registry/ |
D | genheaders.py | 575 p = pstats.Stats('profile.txt')
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 564 interface Stats { interface in NetworkPolicyManagerService 1664 mStatLogger.logDurationStat(Stats.UPDATE_NETWORK_ENABLED, startTime); in updateNetworkEnabledNL() 4791 mStatLogger.logDurationStat(Stats.IS_UID_NETWORKING_BLOCKED, startTime); in isUidNetworkingBlocked() 4876 mStatLogger.logDurationStat(Stats.IS_UID_NETWORKING_BLOCKED, startTime); in isUidNetworkingBlocked()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 2626 final List<ProcessCpuTracker.Stats> stats; 3364 ProcessCpuTracker.Stats st = mProcessCpuTracker.getStats(i); in updateCpuStatsNow() 6138 ProcessCpuTracker.Stats stats = processCpuTracker.getWorkingStats(i); in dumpStackTraces() 18830 ArrayList<ProcessCpuTracker.Stats> nativeProcs in dumpApplicationMemoryUsage() 18831 = new ArrayList<ProcessCpuTracker.Stats>(); in dumpApplicationMemoryUsage() 18841 ProcessCpuTracker.Stats st = mProcessCpuTracker.getStats(i); in dumpApplicationMemoryUsage() 18853 final ProcessCpuTracker.Stats r = nativeProcs.get(i); in dumpApplicationMemoryUsage() 19057 ProcessCpuTracker.Stats st = mProcessCpuTracker.getStats(i); in dumpApplicationMemoryUsage() 19326 ArrayList<ProcessCpuTracker.Stats> nativeProcs in dumpApplicationMemoryUsage() 19327 = new ArrayList<ProcessCpuTracker.Stats>(); in dumpApplicationMemoryUsage() [all …]
|