Home
last modified time | relevance | path

Searched refs:Stats (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportStats.java31 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/backup/src/com/android/server/backup/transport/
DTransportStatsTest.java27 import com.android.server.backup.transport.TransportStats.Stats;
54 Stats stats = mTransportStats.getStatsForTransport(mTransportComponent1); in testRegisterConnectionTime()
67 Stats stats = mTransportStats.getStatsForTransport(mTransportComponent1); in testRegisterConnectionTime_whenHasAlreadyOneSample()
79 Stats stats = mTransportStats.getStatsForTransport(mTransportComponent1); in testGetStatsForTransport()
91 Stats stats1 = mTransportStats.getStatsForTransport(mTransportComponent1); in testMerge()
92 Stats stats2 = mTransportStats.getStatsForTransport(mTransportComponent2); in testMerge()
94 Stats stats = Stats.merge(stats1, stats2); in testMerge()
/frameworks/base/services/core/jni/
Dcom_android_server_net_NetworkStatsService.cpp36 using android::bpf::Stats;
57 static uint64_t getStatsType(struct Stats* stats, StatsType type) { in getStatsType()
76 static int parseIfaceStats(const char* iface, struct Stats* stats) { in parseIfaceStats()
120 static int parseUidStats(const uint32_t uid, struct Stats* stats) { in parseUidStats()
153 struct Stats stats; in getTotalStat()
154 memset(&stats, 0, sizeof(Stats)); in getTotalStat()
178 struct Stats stats; in getIfaceStat()
179 memset(&stats, 0, sizeof(Stats)); in getIfaceStat()
197 struct Stats stats; in getUidStat()
198 memset(&stats, 0, sizeof(Stats)); in getUidStat()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatementResult.java19 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()
DLongStatsCollector.java41 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/
DProcessCpuTracker.java170 private final ArrayList<Stats> mProcStats = new ArrayList<Stats>();
171 private final ArrayList<Stats> mWorkingProcs = new ArrayList<Stats>();
178 boolean needed(Stats stats); in needed()
181 public static class Stats { class in ProcessCpuTracker
187 final ArrayList<Stats> threadStats;
188 final ArrayList<Stats> workingThreads;
246 Stats(int _pid, int parentPid, boolean includeThreads) { in Stats() method in ProcessCpuTracker.Stats
255 threadStats = new ArrayList<Stats>(); in Stats()
256 workingThreads = new ArrayList<Stats>(); in Stats()
285 private final static Comparator<Stats> sLoadComparator = new Comparator<Stats>() {
[all …]
/frameworks/base/cmds/incident_helper/tests/
DCpuFreqParser_test.cpp60 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/
DCpuFreqParser.cpp69 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/
DSyncStatusInfo.java47 public static class Stats { class in SyncStatusInfo
60 public void copyTo(Stats to) { in copyTo()
118 public final Stats totalStats = new Stats();
119 public final Stats todayStats = new Stats();
120 public final Stats yesterdayStats = new Stats();
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DStats.java23 public class Stats { class
28 public Stats(List<Long> values) { in Stats() method in Stats
DManualBenchmarkState.java84 private Stats mStats;
120 mStats = new Stats(mResults); in keepRunning()
DBenchmarkState.java81 private Stats mStats;
143 mStats = new Stats(mResults); in startNextTestRun()
/frameworks/base/core/proto/android/os/
Dcpufreq.proto31 message Stats { message
44 repeated Stats cpu_freqs = 2;
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_benchmarks.cpp145 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 __anon1caffe9a0111::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/
DAppStateTracker.java168 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 …]
/frameworks/base/core/proto/android/service/
Dprocstats.proto82 // Stats for each process.
85 // Stats for each package.
267 // Stats for each process running with the package loaded in to it.
270 // Stats for each of the package's services.
273 // Stats for each association with the package.
/frameworks/native/libs/graphicsenv/include/graphicsenv/
DGraphicsEnv.h46 enum Stats { enum
103 void setTargetStats(const Stats stats, const uint64_t value = 0);
DIGpuService.h45 const GraphicsEnv::Stats stats, const uint64_t value = 0) = 0;
/frameworks/av/media/bufferpool/1.0/
DAccessorImpl.h99 struct Stats { struct
120 Stats() in Stats() argument
/frameworks/base/core/java/android/os/
DServiceManager.java94 interface Stats { interface in ServiceManager
265 final int time = (int) sStatLogger.logDurationStat(Stats.GET_SERVICE, start); in rawGetService()
/frameworks/native/services/gpuservice/gpustats/
DGpuStats.h42 const GraphicsEnv::Stats stats, const uint64_t value);
DGpuStats.cpp130 const uint64_t driverVersionCode, const GraphicsEnv::Stats stats, in insertTargetStats()
142 case GraphicsEnv::Stats::CPU_VULKAN_IN_USE: in insertTargetStats()
/frameworks/base/services/core/java/com/android/server/am/
DOWNERS26 # Battery Stats
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/
Dtimestats.proto42 // Stats per display configuration.
46 // Stats per layer. Apps could have multiple layers.
/frameworks/native/services/gpuservice/
DGpuService.h54 const GraphicsEnv::Stats stats, const uint64_t value) override;

12