/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 2661 ACodec::BufferStats stats; local 2662 stats.mEmptyBufferTimeUs = ALooper::GetNowUs(); 2663 stats.mFillBufferDoneTimeUs = -1ll; 2664 mCodec->mBufferStats.add(timeUs, stats); 2767 ACodec::BufferStats *stats = &mCodec->mBufferStats.editValueAt(index); local 2768 stats->mFillBufferDoneTimeUs = ALooper::GetNowUs(); 2772 stats->mFillBufferDoneTimeUs - stats->mEmptyBufferTimeUs); 2775 stats = NULL;
|
/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/java/android/database/sqlite/ |
H A D | SQLiteDebug.java | 32 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 D | NetworkStats.java | 208 * Add new stats entry, copying from given {@link Entry}. The {@link Entry} 240 * Return specific stats entry. 322 * Find first stats index that matches the requested parameters. 335 * Find first stats index that matches the requested parameters, starting 364 public void spliceOperationsFrom(NetworkStats stats) { argument 366 final int j = stats.findIndex(iface[i], uid[i], set[i], tag[i]); 370 operations[i] = stats.operations[j]; 557 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10); 574 stats.combineValues(entry); 577 return stats; [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 84 // TODO: remove "tcp" from network methods, since we measure total stats. 568 boolean reset(BatteryStatsImpl stats, boolean detachIfReset) { argument 734 * A sequnce counter, incremented once for each update of the stats. 830 boolean reset(BatteryStatsImpl stats, boolean detachIfReset) { argument 831 super.reset(stats, detachIfReset); 924 void startRunningLocked(BatteryStatsImpl stats) { argument 926 mUpdateTime = stats.getBatteryRealtimeLocked( 931 refreshTimersLocked(stats, mTimerPool); 950 void stopRunningLocked(BatteryStatsImpl stats) { argument 959 refreshTimersLocked(stats, mTimerPoo 986 refreshTimersLocked(final BatteryStatsImpl stats, final ArrayList<StopwatchTimer> pool) argument 1017 reset(BatteryStatsImpl stats, boolean detachIfReset) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_Debug.cpp | 88 #define BINDER_STATS "/proc/binder/stats" 120 static void read_mapinfo(FILE *fp, stats_t* stats) argument 223 stats[whichHeap].pss += pss; 224 stats[whichHeap].privateDirty += private_dirty; 225 stats[whichHeap].sharedDirty += shared_dirty; 230 static void load_maps(int pid, stats_t* stats) argument 239 read_mapinfo(fp, stats); 246 stats_t stats[_NUM_HEAP]; local 247 memset(&stats, 0, sizeof(stats)); [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
H A D | BandwidthTest.java | 89 * 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/coretests/src/android/content/pm/ |
H A D | AppCacheTest.java | 550 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 D | NetworkStatsHistoryTest.java | 55 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 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...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 73 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/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 | 57 final BatteryStatsImpl.Uid.Pkg.Serv stats; field in class:ServiceRecord 287 this.stats = servStats;
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | PackageManagerService.java | 6109 public MeasureParams(PackageStats stats, IPackageStatsObserver observer) { argument 6110 super(new UserHandle(stats.userHandle)); 6112 mStats = stats; 8572 PackageStats stats = new PackageStats(packageName, userHandle); 8579 msg.obj = new MeasureParams(stats, observer);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkStatsServiceTest.java | 284 // graceful shutdown system, which should trigger persist of stats, and 312 // after systemReady(), we should have historical stats loaded again 372 // verify identical stats, but spread across 4 buckets now 507 // now pretend two UIDs are uninstalled, which should migrate stats to 658 NetworkStats stats = mSession.getSummaryForAllUid( 660 assertEquals(3, stats.size()); 661 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, 50L, 5L, 50L, 5L, 1); 662 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, 10L, 1L, 10L, 1L, 1); 663 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, 2048L, 16L, 1024L, 8L, 0); 667 stats 972 assertValues(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument 995 assertValues(NetworkStatsHistory stats, long start, long end, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument [all...] |
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
H A D | DataIdleTest.java | 70 * Helper method that fetches all the network stats available and reports it 79 final NetworkStats stats = session.getSummaryForAllUid( 81 reportStats(stats); 83 Log.w(LOG_TAG, "Failed to fetch network stats."); 90 * Print network data usage stats to instrumentation out 91 * @param stats {@link NetworkorStats} to print 93 void reportStats(NetworkStats stats) { argument 99 for (int i = 0; i < stats.size(); ++i) { 101 Entry statsEntry = stats.getValues(i, null);
|
/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);
|