/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsHistoryTest.java | 55 private NetworkStatsHistory stats; field in NetworkStatsHistoryTest 60 if (stats != null) { in tearDown() 61 assertConsistent(stats); in tearDown() 93 stats = new NetworkStatsHistory(BUCKET_SIZE); in testRecordSingleBucket() 96 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordSingleBucket() 99 assertEquals(1, stats.size()); in testRecordSingleBucket() 100 assertValues(stats, 0, SECOND_IN_MILLIS, 1024L, 10L, 2048L, 20L, 2L); in testRecordSingleBucket() 105 stats = new NetworkStatsHistory(bucketDuration); in testRecordEqualBuckets() 109 stats.recordData(recordStart, recordStart + bucketDuration, in testRecordEqualBuckets() 112 assertEquals(2, stats.size()); in testRecordEqualBuckets() [all …]
|
D | NetworkStatsTest.java | 43 final NetworkStats stats = new NetworkStats(TEST_START, 3) in testFindIndex() local 48 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE)); in testFindIndex() 49 assertEquals(2, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE)); in testFindIndex() 50 assertEquals(0, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE)); in testFindIndex() 51 assertEquals(-1, stats.findIndex(TEST_IFACE, 6, SET_DEFAULT, TAG_NONE)); in testFindIndex() 55 final NetworkStats stats = new NetworkStats(TEST_START, 3) in testFindIndexHinted() local 64 for (int hint = 0; hint < stats.size(); hint++) { in testFindIndexHinted() 65 assertEquals(0, stats.findIndexHinted(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, hint)); in testFindIndexHinted() 66 assertEquals(1, stats.findIndexHinted(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, hint)); in testFindIndexHinted() 67 assertEquals(2, stats.findIndexHinted(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, hint)); in testFindIndexHinted() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 75 final NetworkStats stats = mFactory.readNetworkStatsDetail(); in testNetworkStatsDetail() local 76 assertEquals(70, stats.size()); in testNetworkStatsDetail() 77 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); in testNetworkStatsDetail() 78 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); in testNetworkStatsDetail() 79 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); in testNetworkStatsDetail() 80 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); in testNetworkStatsDetail() 81 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); in testNetworkStatsDetail() 101 final NetworkStats stats = mFactory.readNetworkStatsDetail(); in testNetworkStatsWithSet() local 102 assertEquals(70, stats.size()); in testNetworkStatsWithSet() 103 … assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 578L, 227423L, 676L); in testNetworkStatsWithSet() [all …]
|
/frameworks/base/core/java/android/content/ |
D | SyncResult.java | 91 public final SyncStats stats; field in SyncResult 135 this.stats = new SyncStats(); in SyncResult() 147 stats = new SyncStats(parcel); in SyncResult() 166 return stats.numParseExceptions > 0 in hasHardError() 167 || stats.numConflictDetectedExceptions > 0 in hasHardError() 168 || stats.numAuthExceptions > 0 in hasHardError() 187 return syncAlreadyInProgress || stats.numIoExceptions > 0; in hasSoftError() 199 return ((stats.numDeletes > 0) && !tooManyDeletions) in madeSomeProgress() 200 || stats.numInserts > 0 in madeSomeProgress() 201 || stats.numUpdates > 0; in madeSomeProgress() [all …]
|
D | SyncManager.java | 1398 for (AccountSyncStats stats: sortedAccounts) { in dumpRecentHistory() 1399 elapsedTime = stats.elapsedTime; in dumpRecentHistory() 1400 times = stats.times; in dumpRecentHistory() 1407 pw.printf(accountFormat, stats.name, timesStr, timeStr); in dumpRecentHistory() 1775 syncResult.stats.numIoExceptions++; in handleMessage() 2320 syncOperation.authority, syncResult.stats.numDeletes, 2356 if (syncResult.stats.numAuthExceptions > 0) 2358 if (syncResult.stats.numIoExceptions > 0) 2360 if (syncResult.stats.numParseExceptions > 0) 2362 if (syncResult.stats.numConflictDetectedExceptions > 0)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | LoadAverageService.java | 182 final Stats stats = mStats; in onDraw() local 183 final int userTime = stats.getLastUserTime(); in onDraw() 184 final int systemTime = stats.getLastSystemTime(); in onDraw() 185 final int iowaitTime = stats.getLastIoWaitTime(); in onDraw() 186 final int irqTime = stats.getLastIrqTime(); in onDraw() 187 final int softIrqTime = stats.getLastSoftIrqTime(); in onDraw() 188 final int idleTime = stats.getLastIdleTime(); in onDraw() 216 canvas.drawText(stats.mLoadText, RIGHT-mPaddingRight-stats.mLoadWidth-1, in onDraw() 218 canvas.drawText(stats.mLoadText, RIGHT-mPaddingRight-stats.mLoadWidth-1, in onDraw() 220 canvas.drawText(stats.mLoadText, RIGHT-mPaddingRight-stats.mLoadWidth+1, in onDraw() [all …]
|
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusionEngine.java | 132 ProviderStats stats = mStats.get(name); in enableProvider() local 134 if (!stats.requested) { in enableProvider() 135 stats.requestTime = SystemClock.elapsedRealtime(); in enableProvider() 136 stats.requested = true; in enableProvider() 137 stats.minTime = minTime; in enableProvider() 139 } else if (stats.minTime != minTime) { in enableProvider() 140 stats.minTime = minTime; in enableProvider() 146 ProviderStats stats = mStats.get(name); in disableProvider() local 148 if (stats.requested) { in disableProvider() 149 stats.requested = false; in disableProvider() [all …]
|
/frameworks/base/core/jni/ |
D | android_os_Debug.cpp | 120 static void read_mapinfo(FILE *fp, stats_t* stats) in read_mapinfo() argument 223 stats[whichHeap].pss += pss; in read_mapinfo() 224 stats[whichHeap].privateDirty += private_dirty; in read_mapinfo() 225 stats[whichHeap].sharedDirty += shared_dirty; in read_mapinfo() 230 static void load_maps(int pid, stats_t* stats) in load_maps() argument 239 read_mapinfo(fp, stats); in load_maps() 246 stats_t stats[_NUM_HEAP]; in android_os_Debug_getDirtyPagesPid() local 247 memset(&stats, 0, sizeof(stats)); in android_os_Debug_getDirtyPagesPid() 249 load_maps(pid, stats); in android_os_Debug_getDirtyPagesPid() 252 stats[HEAP_UNKNOWN].pss += stats[i].pss; in android_os_Debug_getDirtyPagesPid() [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 75 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6); in readNetworkStatsSummaryDev() local 104 stats.addValues(entry); in readNetworkStatsSummaryDev() 117 return stats; in readNetworkStatsSummaryDev() 133 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6); in readNetworkStatsSummaryXt() 153 stats.addValues(entry); in readNetworkStatsSummaryXt() 166 return stats; in readNetworkStatsSummaryXt() 182 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 24); in readNetworkStatsDetail() local 212 stats.addValues(entry); in readNetworkStatsDetail() 228 return stats; in readNetworkStatsDetail()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDebug.java | 32 private static native void nativeGetPagerStats(PagerStats stats); in nativeGetPagerStats() argument 151 PagerStats stats = new PagerStats(); in getDatabaseInfo() local 152 nativeGetPagerStats(stats); in getDatabaseInfo() 153 stats.dbStats = SQLiteDatabase.getDbStats(); in getDatabaseInfo() 154 return stats; in getDatabaseInfo()
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 79 final NetworkStats stats = session.getSummaryForAllUid( in fetchStats() local 81 reportStats(stats); in fetchStats() 93 void reportStats(NetworkStats stats) { in reportStats() argument 99 for (int i = 0; i < stats.size(); ++i) { in reportStats() 101 Entry statsEntry = stats.getValues(i, null); in reportStats()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkStatsServiceTest.java | 658 NetworkStats stats = mSession.getSummaryForAllUid( in testSummaryForAllUid() local 660 assertEquals(3, stats.size()); in testSummaryForAllUid() 661 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, 50L, 5L, 50L, 5L, 1); in testSummaryForAllUid() 662 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, 0xF00D, 10L, 1L, 10L, 1L, 1); in testSummaryForAllUid() 663 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, 2048L, 16L, 1024L, 8L, 0); in testSummaryForAllUid() 667 stats = mSession.getSummaryForAllUid( in testSummaryForAllUid() 669 assertEquals(1, stats.size()); in testSummaryForAllUid() 670 assertValues(stats, IFACE_ALL, UID_BLUE, SET_DEFAULT, TAG_NONE, 1024L, 8L, 512L, 4L, 0); in testSummaryForAllUid() 729 final NetworkStats stats = mSession.getSummaryForAllUid( in testForegroundBackground() local 731 assertEquals(4, stats.size()); in testForegroundBackground() [all …]
|
D | NetworkPolicyManagerServiceTest.java | 562 NetworkStats stats = null; in testNetworkPolicyAppliedCycleLastMonth() local 591 stats = new NetworkStats(getElapsedRealtime(), 1) in testNetworkPolicyAppliedCycleLastMonth() 594 .andReturn(stats.getTotalBytes()).atLeastOnce(); in testNetworkPolicyAppliedCycleLastMonth() 638 NetworkStats stats = null; in testOverWarningLimitNotification() local 650 stats = new NetworkStats(getElapsedRealtime(), 1) in testOverWarningLimitNotification() 657 .andReturn(stats.getTotalBytes()).atLeastOnce(); in testOverWarningLimitNotification() 674 stats = new NetworkStats(getElapsedRealtime(), 1) in testOverWarningLimitNotification() 681 .andReturn(stats.getTotalBytes()).atLeastOnce(); in testOverWarningLimitNotification() 699 stats = new NetworkStats(getElapsedRealtime(), 1) in testOverWarningLimitNotification() 705 .andReturn(stats.getTotalBytes()).atLeastOnce(); in testOverWarningLimitNotification() [all …]
|
D | ThrottleServiceTest.java | 295 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1); in expectGetInterfaceCounter() local 296 stats.addValues(TEST_IFACE, UID_ALL, SET_DEFAULT, TAG_NONE, rx, 0L, tx, 0L, 0); in expectGetInterfaceCounter() 298 expect(mMockNMService.getNetworkStatsSummaryDev()).andReturn(stats).atLeastOnce(); in expectGetInterfaceCounter()
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 365 public void spliceOperationsFrom(NetworkStats stats) { in spliceOperationsFrom() argument 367 final int j = stats.findIndex(iface[i], uid[i], set[i], tag[i]); in spliceOperationsFrom() 371 operations[i] = stats.operations[j]; in spliceOperationsFrom() 558 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10); in groupedByIface() local 575 stats.combineValues(entry); in groupedByIface() 578 return stats; in groupedByIface() 586 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10); in groupedByUid() local 603 stats.combineValues(entry); in groupedByUid() 606 return stats; in groupedByUid() 614 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10); in withoutUids() local [all …]
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 264 NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1); in fetchDataFromProc() local 265 stats.addValues(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT, in fetchDataFromProc() 267 return stats; in fetchDataFromProc() 306 public void AddStatsToResults(String label, NetworkStats stats, Bundle results){ in AddStatsToResults() argument 313 for (int i = 0; i < stats.size(); ++i) { in AddStatsToResults() 314 Entry statsEntry = stats.getValues(i, null); in AddStatsToResults()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppCacheTest.java | 550 public PackageStats stats; field in AppCacheTest.PackageStatsObserver 557 stats = pStats; in onGetStatsCompleted() 583 if(localLOGV) Log.i(TAG, "OBSERVER RET VALUES code="+observer.stats.codeSize+ in invokePMGetPackageSizeInfo() 584 ", data="+observer.stats.dataSize+", cache="+observer.stats.cacheSize); in invokePMGetPackageSizeInfo() 585 return observer.stats; in invokePMGetPackageSizeInfo() 598 PackageStats stats = invokePMGetPackageSizeInfo(); in testGetPackageSizeInfo() local 599 assertTrue(stats!=null); in testGetPackageSizeInfo() 601 if(localLOGV) Log.i(TAG, "code="+stats.codeSize+", data="+stats.dataSize+ in testGetPackageSizeInfo() 602 ", cache="+stats.cacheSize); in testGetPackageSizeInfo()
|
/frameworks/base/services/java/com/android/server/am/ |
D | BackupRecord.java | 31 final BatteryStatsImpl.Uid.Pkg.Serv stats; field in BackupRecord 41 stats = _agentStats; in BackupRecord()
|
D | ActiveServices.java | 248 synchronized (r.stats.getBatteryStats()) { in startServiceLocked() 249 r.stats.startRunningLocked(); in startServiceLocked() 259 synchronized (service.stats.getBatteryStats()) { in stopServiceLocked() 260 service.stats.stopRunningLocked(); in stopServiceLocked() 355 synchronized (r.stats.getBatteryStats()) { in stopServiceTokenLocked() 356 r.stats.stopRunningLocked(); in stopServiceTokenLocked() 748 BatteryStatsImpl stats = mAm.mBatteryStatsService.getActiveStatistics(); in retrieveServiceLocked() local 749 synchronized (stats) { in retrieveServiceLocked() 750 ss = stats.getServiceStatsLocked( in retrieveServiceLocked() 1095 synchronized (r.stats.getBatteryStats()) { in realStartServiceLocked() [all …]
|
/frameworks/base/tools/aapt/ |
D | FileFinder.cpp | 80 void SystemFileFinder::checkAndAddFile(String8 path, const struct stat* stats, in checkAndAddFile() argument 94 fileStore.add(path,stats->st_mtime); in checkAndAddFile()
|
D | FileFinder.h | 75 static void checkAndAddFile(String8 path, const struct stat* stats,
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ProcessStats.java | 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.workingThreads.add(tstats); 646 Collections.sort(stats.workingThreads, sLoadComparator);
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 105 NetworkStats stats = TrafficStats.stopDataProfiling(null); in runTest() local 106 NetworkStats.Entry entry = stats.getTotal(null); in runTest()
|
/frameworks/base/core/java/android/webkit/ |
D | EventLogTags.logtags | 5 # browser stats for diary study
|
/frameworks/base/services/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 166 final NetworkStats stats = new NetworkStats(end - start, 24); in getSummary() local 171 if (start == end) return stats; in getSummary() 190 stats.combineValues(entry); in getSummary() 195 return stats; in getSummary()
|