Searched refs:stats (Results 1 - 25 of 34) sorted by path

12

/frameworks/av/media/libstagefright/
H A DACodec.cpp2913 ACodec::BufferStats stats; local
2914 stats.mEmptyBufferTimeUs = ALooper::GetNowUs();
2915 stats.mFillBufferDoneTimeUs = -1ll;
2916 mCodec->mBufferStats.add(timeUs, stats);
3019 ACodec::BufferStats *stats = &mCodec->mBufferStats.editValueAt(index); local
3020 stats->mFillBufferDoneTimeUs = ALooper::GetNowUs();
3024 stats->mFillBufferDoneTimeUs - stats->mEmptyBufferTimeUs);
3027 stats = NULL;
/frameworks/base/core/java/android/app/
H A DActivityThread.java936 SQLiteDebug.PagerStats stats = SQLiteDebug.getDatabaseInfo();
1003 pw.print(stats.memoryUsed / 1024); pw.print(',');
1004 pw.print(stats.memoryUsed / 1024); pw.print(',');
1005 pw.print(stats.pageCacheOverflow / 1024); pw.print(',');
1006 pw.print(stats.largestMemAlloc / 1024);
1007 for (int i = 0; i < stats.dbStats.size(); i++) {
1008 DbStats dbStats = stats.dbStats.get(i);
1071 printRow(pw, ONE_COUNT_COLUMN, "MEMORY_USED:", stats.memoryUsed / 1024);
1073 stats.pageCacheOverflow / 1024, "MALLOC_SIZE:", stats
[all...]
/frameworks/base/core/java/android/content/
H A DSyncResult.java91 public final SyncStats stats; field in class:SyncResult
135 this.stats = new SyncStats();
147 stats = new SyncStats(parcel);
166 return stats.numParseExceptions > 0
167 || stats.numConflictDetectedExceptions > 0
168 || stats.numAuthExceptions > 0
187 return syncAlreadyInProgress || stats.numIoExceptions > 0;
199 return ((stats.numDeletes > 0) && !tooManyDeletions)
200 || stats.numInserts > 0
201 || stats
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDebug.java32 private static native void nativeGetPagerStats(PagerStats stats); argument
133 /** statement cache stats: hits/misses/cachesize */
147 * return all pager and database stats for the current process.
151 PagerStats stats = new PagerStats();
152 nativeGetPagerStats(stats);
153 stats.dbStats = SQLiteDatabase.getDbStats();
154 return stats;
/frameworks/base/core/java/android/net/
H A DNetworkStats.java221 * Add new stats entry, copying from given {@link Entry}. The {@link Entry}
253 * Return specific stats entry.
335 * Find first stats index that matches the requested parameters.
348 * Find first stats index that matches the requested parameters, starting
377 public void spliceOperationsFrom(NetworkStats stats) { argument
379 final int j = stats.findIndex(iface[i], uid[i], set[i], tag[i]);
383 operations[i] = stats.operations[j];
570 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
587 stats.combineValues(entry);
590 return stats;
[all...]
/frameworks/base/core/java/com/android/internal/net/
H A DNetworkStatsFactory.java52 /** Path to {@code /proc/net/xt_qtaguid/stats}. */
63 mStatsXtUid = new File(procRoot, "net/xt_qtaguid/stats");
72 * @throws IllegalStateException when problem parsing stats.
77 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6);
106 stats.addValues(entry);
110 throw new ProtocolException("problem parsing stats", e);
112 throw new ProtocolException("problem parsing stats", e);
117 return stats;
125 * @throws IllegalStateException when problem parsing stats.
133 final NetworkStats stats
266 nativeReadNetworkStatsDetail( NetworkStats stats, String path, int limitUid) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java80 // TODO: remove "tcp" from network methods, since we measure total stats.
560 boolean reset(BatteryStatsImpl stats, boolean detachIfReset) { argument
726 * A sequence counter, incremented once for each update of the stats.
822 boolean reset(BatteryStatsImpl stats, boolean detachIfReset) { argument
823 super.reset(stats, detachIfReset);
938 public void addDuration(BatteryStatsImpl stats, long durationMillis) { argument
949 public void abortLastDuration(BatteryStatsImpl stats) { argument
969 boolean reset(BatteryStatsImpl stats, boolean detachIfReset) { argument
973 super.reset(stats, !stillActive && detachIfReset);
1051 void startRunningLocked(BatteryStatsImpl stats) { argument
1077 stopRunningLocked(BatteryStatsImpl stats) argument
1113 refreshTimersLocked(final BatteryStatsImpl stats, final ArrayList<StopwatchTimer> pool) argument
1144 reset(BatteryStatsImpl stats, boolean detachIfReset) argument
[all...]
H A DProcessStats.java565 String file = readFile("/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state", '\0');
634 Stats stats = mProcStats.get(i);
635 if (stats.working) {
636 mWorkingProcs.add(stats);
637 if (stats.threadStats != null && stats.threadStats.size() > 1) {
638 stats.workingThreads.clear();
639 final int M = stats.threadStats.size();
641 Stats tstats = stats.threadStats.get(j);
643 stats
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp35 static const char* QTAGUID_UID_STATS = "/proc/net/xt_qtaguid/stats";
58 static uint64_t getStatsType(struct Stats* stats, StatsType type) { argument
61 return stats->rxBytes;
63 return stats->rxPackets;
65 return stats->txBytes;
67 return stats->txPackets;
69 return stats->tcpRxPackets;
71 return stats->tcpTxPackets;
77 static int parseIfaceStats(const char* iface, struct Stats* stats) { argument
98 stats
121 parseUidStats(const uint32_t uid, struct Stats* stats) argument
152 struct Stats stats; local
167 struct Stats stats; local
177 struct Stats stats; local
[all...]
H A Dandroid_os_Debug.cpp89 #define BINDER_STATS "/proc/binder/stats"
121 static void read_mapinfo(FILE *fp, stats_t* stats) argument
228 stats[whichHeap].pss += pss;
229 stats[whichHeap].privateDirty += private_dirty;
230 stats[whichHeap].sharedDirty += shared_dirty;
235 static void load_maps(int pid, stats_t* stats) argument
244 read_mapinfo(fp, stats);
251 stats_t stats[_NUM_HEAP]; local
252 memset(&stats, 0, sizeof(stats));
[all...]
H A Dcom_android_internal_net_NetworkStatsFactory.cpp64 static int readNetworkStatsDetail(JNIEnv* env, jclass clazz, jobject stats, argument
135 env->SetIntField(stats, gNetworkStatsClassInfo.size, size);
136 env->SetObjectField(stats, gNetworkStatsClassInfo.iface, iface.get());
137 env->SetObjectField(stats, gNetworkStatsClassInfo.uid, uid.getJavaArray());
138 env->SetObjectField(stats, gNetworkStatsClassInfo.set, set.getJavaArray());
139 env->SetObjectField(stats, gNetworkStatsClassInfo.tag, tag.getJavaArray());
140 env->SetObjectField(stats, gNetworkStatsClassInfo.rxBytes, rxBytes.getJavaArray());
141 env->SetObjectField(stats, gNetworkStatsClassInfo.rxPackets, rxPackets.getJavaArray());
142 env->SetObjectField(stats, gNetworkStatsClassInfo.txBytes, txBytes.getJavaArray());
143 env->SetObjectField(stats, gNetworkStatsClassInf
[all...]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DBandwidthTest.java89 * Ensure that downloading on wifi reports reasonable stats.
99 * Ensure that downloading on mobile reports reasonable stats.
111 * data usage stats to instrumentation out.
143 * Ensure that uploading on wifi reports reasonable stats.
153 * Ensure that uploading on wifi reports reasonable stats.
162 * Helper method that downloads a test file to upload. The stats reported to instrumentation out
163 * only include upload stats.
219 * the stats to instrumentation out.
264 NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1);
265 stats
306 AddStatsToResults(String label, NetworkStats stats, Bundle results) argument
[all...]
/frameworks/base/core/tests/benchmarks/src/com/android/internal/net/
H A DNetworkStatsFactoryBenchmark.java29 // TODO: consider staging stats file with different number of rows
33 mStats = new File("/proc/net/xt_qtaguid/stats");
49 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 0);
51 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DAppCacheTest.java550 public PackageStats stats; field in class:AppCacheTest.PackageStatsObserver
557 stats = pStats;
583 if(localLOGV) Log.i(TAG, "OBSERVER RET VALUES code="+observer.stats.codeSize+
584 ", data="+observer.stats.dataSize+", cache="+observer.stats.cacheSize);
585 return observer.stats;
598 PackageStats stats = invokePMGetPackageSizeInfo();
599 assertTrue(stats!=null);
601 if(localLOGV) Log.i(TAG, "code="+stats.codeSize+", data="+stats
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkStatsHistoryTest.java55 private NetworkStatsHistory stats; field in class:NetworkStatsHistoryTest
60 if (stats != null) {
61 assertConsistent(stats);
93 stats = new NetworkStatsHistory(BUCKET_SIZE);
96 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS,
99 assertEquals(1, stats.size());
100 assertValues(stats, 0, SECOND_IN_MILLIS, 1024L, 10L, 2048L, 20L, 2L);
105 stats = new NetworkStatsHistory(bucketDuration);
109 stats.recordData(recordStart, recordStart + bucketDuration,
112 assertEquals(2, stats
454 assertIndexBeforeAfter( NetworkStatsHistory stats, int before, int after, long time) argument
468 assertConsistent(NetworkStatsHistory stats) argument
479 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument
486 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument
493 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
504 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
510 assertValues(NetworkStatsHistory stats, long start, long end, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
H A DNetworkStatsTest.java43 final NetworkStats stats = new NetworkStats(TEST_START, 3)
48 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE));
49 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE));
50 assertEquals(0, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE));
51 assertEquals(-1, stats.findIndex(TEST_IFACE, 6, SET_DEFAULT, TAG_NONE));
55 final NetworkStats stats = new NetworkStats(TEST_START, 3)
64 for (int hint = 0; hint < stats.size(); hint++) {
65 assertEquals(0, stats.findIndexHinted(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, hint));
66 assertEquals(1, stats.findIndexHinted(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, hint));
67 assertEquals(2, stats
313 assertValues(NetworkStats stats, int index, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java73 stageFile(R.raw.xt_qtaguid_typical, new File(mTestProc, "net/xt_qtaguid/stats"));
75 final NetworkStats stats = mFactory.readNetworkStatsDetail();
76 assertEquals(70, stats.size());
77 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L);
78 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L);
79 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L);
80 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L);
81 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L);
99 stageFile(R.raw.xt_qtaguid_typical, new File(mTestProc, "net/xt_qtaguid/stats"));
101 final NetworkStats stats
157 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument
165 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
[all...]
/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java105 NetworkStats stats = TrafficStats.stopDataProfiling(null);
106 NetworkStats.Entry entry = stats.getTotal(null);
109 Log.w(TAG, "Failed to collect bandwidth stats");
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
H A DFusionEngine.java132 ProviderStats stats = mStats.get(name);
134 if (!stats.requested) {
135 stats.requestTime = SystemClock.elapsedRealtime();
136 stats.requested = true;
137 stats.minTime = minTime;
139 } else if (stats.minTime != minTime) {
140 stats.minTime = minTime;
146 ProviderStats stats = mStats.get(name);
148 if (stats.requested) {
149 stats
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DLoadAverageService.java182 final Stats stats = mStats;
183 final int userTime = stats.getLastUserTime();
184 final int systemTime = stats.getLastSystemTime();
185 final int iowaitTime = stats.getLastIoWaitTime();
186 final int irqTime = stats.getLastIrqTime();
187 final int softIrqTime = stats.getLastSoftIrqTime();
188 final int idleTime = stats.getLastIdleTime();
216 canvas.drawText(stats.mLoadText, RIGHT-mPaddingRight-stats.mLoadWidth-1,
218 canvas.drawText(stats
[all...]
/frameworks/base/services/java/com/android/server/
H A DNetworkManagementService.java1294 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1);
1299 stats.combineValues(getNetworkStatsTethering(ifaceIn, ifaceOut));
1302 return stats;
1333 "problem parsing tethering stats for " + ifaceIn + " " + ifaceOut + ": " + e);
/frameworks/base/services/java/com/android/server/am/
H A DActiveServices.java248 synchronized (r.stats.getBatteryStats()) {
249 r.stats.startRunningLocked();
259 synchronized (service.stats.getBatteryStats()) {
260 service.stats.stopRunningLocked();
355 synchronized (r.stats.getBatteryStats()) {
356 r.stats.stopRunningLocked();
748 BatteryStatsImpl stats = mAm.mBatteryStatsService.getActiveStatistics();
749 synchronized (stats) {
750 ss = stats.getServiceStatsLocked(
1095 synchronized (r.stats
[all...]
H A DActivityManagerService.java205 static final long BATTERY_STATS_TIME = 30*60*1000; // write battery stats every 30 minutes.
844 * Used to collect process stats when showing not responding dialog.
1700 Slog.e(TAG, "Unexpected exception collecting process stats", e);
1854 // When plugging in, update the CPU stats first before changing
3068 BatteryStatsImpl stats = mBatteryStatsService.getActiveStatistics();
3069 synchronized (stats) {
3070 stats.noteProcessDiedLocked(app.info.uid, pid);
3219 ProcessStats.Stats stats = processStats.getWorkingStats(i);
3220 if (lastPids.indexOfKey(stats.pid) >= 0) {
3224 Process.sendSignal(stats
[all...]
H A DBackupRecord.java31 final BatteryStatsImpl.Uid.Pkg.Serv stats; field in class:BackupRecord
41 stats = _agentStats;
H A DServiceRecord.java60 final BatteryStatsImpl.Uid.Pkg.Serv stats; field in class:ServiceRecord
290 this.stats = servStats;

Completed in 2743 milliseconds

12