/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
H A D | DataIdleTest.java | 69 * Helper method that fetches all the network stats available and reports it 76 NetworkStats stats = mStatsService.getSummaryForAllUid(template, Long.MIN_VALUE, 78 reportStats(stats); 80 Log.w(LOG_TAG, "Failed to fetch network stats."); 85 * Print network data usage stats to instrumentation out 86 * @param stats {@link NetworkorStats} to print 88 void reportStats(NetworkStats stats) { argument 94 for (int i = 0; i < stats.size(); ++i) { 96 Entry statsEntry = stats.getValues(i, null);
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | BackupRecord.java | 31 final BatteryStatsImpl.Uid.Pkg.Serv stats; field in class:BackupRecord 41 stats = _agentStats;
|
H A D | ServiceRecord.java | 54 final BatteryStatsImpl.Uid.Pkg.Serv stats; field in class:ServiceRecord 276 this.stats = servStats;
|
/frameworks/base/tools/aapt/ |
H A D | FileFinder.cpp | 80 void SystemFileFinder::checkAndAddFile(String8 path, const struct stat* stats, argument 94 fileStore.add(path,stats->st_mtime);
|
/frameworks/base/core/java/android/content/ |
H A D | SyncResult.java | 91 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/tests/coretests/src/android/net/ |
H A D | NetworkStatsTest.java | 43 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...] |
H A D | NetworkStatsHistoryTest.java | 57 private NetworkStatsHistory stats; field in class:NetworkStatsHistoryTest 62 if (stats != null) { 63 assertConsistent(stats); 95 stats = new NetworkStatsHistory(BUCKET_SIZE); 98 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, 101 assertEquals(1, stats.size()); 102 assertValues(stats, 0, SECOND_IN_MILLIS, 1024L, 10L, 2048L, 20L, 2L); 107 stats = new NetworkStatsHistory(bucketDuration); 111 stats.recordData(recordStart, recordStart + bucketDuration, 114 assertEquals(2, stats 456 assertIndexBeforeAfter( NetworkStatsHistory stats, int before, int after, long time) argument 470 assertConsistent(NetworkStatsHistory stats) argument 481 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument 488 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument 495 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 506 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 512 assertValues(NetworkStatsHistory stats, long start, long end, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 71 stageFile(R.raw.xt_qtaguid_typical, new File(mTestProc, "net/xt_qtaguid/stats")); 73 final NetworkStats stats = mFactory.readNetworkStatsDetail(); 74 assertEquals(70, stats.size()); 75 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); 76 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); 77 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); 78 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); 79 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); 85 final NetworkStats stats = mFactory.readNetworkStatsSummary(); 86 assertEquals(6, stats 190 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument 198 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDebug.java | 45 * Controls the printing of compiled-sql-statement cache stats. 159 /** statement cache stats: hits/misses/cachesize */ 173 * return all pager and database stats for the current process. 177 PagerStats stats = new PagerStats(); 178 getPagerStats(stats); 179 stats.dbStats = SQLiteDatabase.getDbStats(); 180 return stats; 186 public static native void getPagerStats(PagerStats stats); argument
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
H A D | BandwidthTest.java | 89 * Ensure that downloading on wifi reports reasonable stats. 98 * Ensure that downloading on mobile reports reasonable stats. 110 * data usage stats to instrumentation out. 142 * Ensure that uploading on wifi reports reasonable stats. 151 * Ensure that uploading on wifi reports reasonable stats. 160 * Helper method that downloads a test file to upload. The stats reported to instrumentation out 161 * only include upload stats. 216 * the stats to instrumentation out. 261 NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1); 262 stats 301 AddStatsToResults(String label, NetworkStats stats, Bundle results) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkStats.java | 194 * Add new stats entry, copying from given {@link Entry}. The {@link Entry} 226 * Return specific stats entry. 308 * Find first stats index that matches the requested parameters. 321 * Find first stats index that matches the requested parameters, starting 350 public void spliceOperationsFrom(NetworkStats stats) { argument 352 final int j = stats.findIndex(IFACE_ALL, uid[i], set[i], tag[i]); 356 operations[i] = stats.operations[j]; 475 * @param clampNonMonotonic When non-monotonic stats are found, just clamp 536 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10); 553 stats [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | AppCacheTest.java | 549 public PackageStats stats; field in class:AppCacheTest.PackageStatsObserver 556 stats = pStats; 582 if(localLOGV) Log.i(TAG, "OBSERVER RET VALUES code="+observer.stats.codeSize+ 583 ", data="+observer.stats.dataSize+", cache="+observer.stats.cacheSize); 584 return observer.stats; 597 PackageStats stats = invokePMGetPackageSizeInfo(); 598 assertTrue(stats!=null); 600 if(localLOGV) Log.i(TAG, "code="+stats.codeSize+", data="+stats [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkStatsServiceTest.java | 277 // graceful shutdown system, which should trigger persist of stats, and 285 // talk with zombie service to assert stats have gone; and assert that 312 // after systemReady(), we should have historical stats loaded again 370 // verify identical stats, but spread across 4 buckets now 505 // now pretend two UIDs are uninstalled, which should migrate stats to 657 NetworkStats stats = mService.getSummaryForAllUid( 659 assertEquals(3, stats.size()); 660 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, 50L, 5L, 50L, 5L, 1); 661 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, 10L, 1L, 10L, 1L, 1); 662 assertValues(stats, IFACE_AL 868 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 879 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_Debug.cpp | 85 #define BINDER_STATS "/proc/binder/stats" 117 static void read_mapinfo(FILE *fp, stats_t* stats) argument 220 stats[whichHeap].pss += pss; 221 stats[whichHeap].privateDirty += private_dirty; 222 stats[whichHeap].sharedDirty += shared_dirty; 227 static void load_maps(int pid, stats_t* stats) argument 236 read_mapinfo(fp, stats); 243 stats_t stats[_NUM_HEAP]; local 244 memset(&stats, 0, sizeof(stats)); [all...] |
/frameworks/base/tools/localize/ |
H A D | localize.cpp | 297 vector<Stats> stats; local 389 stats.push_back(afterFilterStats); 406 // the stats 417 for (vector<Stats>::iterator it=stats.begin(); it!=stats.end(); it++) { 429 if (stats.size() > 1) {
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 82 // TODO: remove "tcp" from network methods, since we measure total stats. 554 boolean reset(BatteryStatsImpl stats, boolean detachIfReset) { argument 720 * A sequnce counter, incremented once for each update of the stats. 816 boolean reset(BatteryStatsImpl stats, boolean detachIfReset) { argument 817 super.reset(stats, detachIfReset); 910 void startRunningLocked(BatteryStatsImpl stats) { argument 912 mUpdateTime = stats.getBatteryRealtimeLocked( 917 refreshTimersLocked(stats, mTimerPool); 936 void stopRunningLocked(BatteryStatsImpl stats) { argument 945 refreshTimersLocked(stats, mTimerPoo 972 refreshTimersLocked(final BatteryStatsImpl stats, final ArrayList<StopwatchTimer> pool) argument 1003 reset(BatteryStatsImpl stats, boolean detachIfReset) argument [all...] |
/frameworks/base/services/audioflinger/ |
H A D | AudioFlinger.cpp | 1871 const CentralTendencyStatistics& stats = cpu.statistics(); local 1880 unsigned n = stats.n(); 1887 double mean = stats.mean(); 1888 double stddev = stats.stddev(); 1889 double minimum = stats.minimum(); 1890 double maximum = stats.maximum();
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | PackageManagerService.java | 5272 public MeasureParams(PackageStats stats, boolean success, IPackageStatsObserver observer) { argument 5274 mStats = stats; 7314 PackageStats stats = new PackageStats(packageName); 7318 success = getPackageSizeInfoLI(packageName, stats); 7322 msg.obj = new MeasureParams(stats, success, observer);
|