/frameworks/base/core/tests/coretests/src/android/net/ |
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.size()) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ThrottleServiceTest.java | 101 // provide stats without policy, verify not throttled 116 // provide stats under limits, and verify not throttled 131 // provide stats over limits, and verify throttled 146 // provide stats right under 201MB limit, verify not throttled 173 // provide stats under limit, verify not throttled 184 // provide same stats, but verify that modified policy will throttle 207 // provide stats over limit, verify throttle kicks in 219 // provide slightly updated stats, but verify throttle is removed 234 // test is currently no-op, just exercises stats apis 295 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1) local [all...] |
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( local 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 = mSession.getSummaryForAllUid 729 final NetworkStats stats = mSession.getSummaryForAllUid( local 852 final NetworkStats stats = mSession.getSummaryForNetwork(template, start, end); local 871 final NetworkStats stats = mSession.getSummaryForAllUid( local [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
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); local 265 stats.addValues(NetworkStats.IFACE_ALL, uid, NetworkStats.SET_DEFAULT [all...] |
/bionic/libc/kernel/common/linux/nfsd/ |
xdr.h | 135 struct kstatfs stats; member in struct:nfsd_statfsres
|
/bionic/libc/kernel/common/linux/sunrpc/ |
clnt.h | 26 #include <linux/sunrpc/stats.h> 91 struct rpc_stat * stats; member in struct:rpc_program
|
/development/ndk/platforms/android-3/include/linux/nfsd/ |
xdr.h | 124 struct kstatfs stats; member in struct:nfsd_statfsres
|
/development/ndk/platforms/android-3/include/linux/sunrpc/ |
clnt.h | 19 #include <linux/sunrpc/stats.h> 79 struct rpc_stat * stats; member in struct:rpc_program
|
/external/chromium/chrome/browser/renderer_host/ |
web_cache_manager.cc | 84 RendererInfo* stats = &(stats_[renderer_id]); local 85 memset(stats, 0, sizeof(*stats)); 86 stats->access = Time::Now(); 105 return; // We might see stats for a renderer that has been destroyed. 123 const WebCache::UsageStats& stats) { 126 return; // We might see stats for a renderer that has been destroyed. 128 // Record the updated stats. 129 entry->second.capacity = stats.capacity; 130 entry->second.deadSize = stats.deadSize [all...] |
/external/chromium/net/disk_cache/ |
stats.cc | 5 #include "net/disk_cache/stats.h" 20 int data_sizes[disk_cache::Stats::kDataSizesLength]; 21 int64 counters[disk_cache::Stats::MAX_COUNTER]; 41 // WARNING: Add new stats only at the end, or change LoadStats(). 65 COMPILE_ASSERT(arraysize(kCounterNames) == disk_cache::Stats::MAX_COUNTER, 72 bool LoadStats(BackendImpl* backend, Addr address, OnDiskStats* stats) { 79 memset(stats, 0, sizeof(*stats)); 80 if (!file->Read(stats, sizeof(*stats), offset) 126 OnDiskStats stats; local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/model/ |
PerformanceResultsElement.java | 270 final int stats = kind & IPerformancesConstants.STATUS_STATISTICS_MASK; local 271 if (stats > 0) { 273 switch (stats) {
|
/external/guava/guava/src/com/google/common/cache/ |
AbstractCache.java | 110 public CacheStats stats() { method in class:AbstractCache 137 * Cache#stats}. This is solely intended for consumption by {@code Cache} implementors.
|
/external/kernel-headers/original/linux/nfsd/ |
xdr.h | 119 struct kstatfs stats; member in struct:nfsd_statfsres
|
/external/kernel-headers/original/linux/sunrpc/ |
clnt.h | 16 #include <linux/sunrpc/stats.h> 85 struct rpc_stat * stats; /* statistics */ member in struct:rpc_program
|
/external/llvm/lib/MC/ |
MCExpr.cpp | 26 namespace stats { namespace in namespace:__anon9032 460 ++stats::MCExprEvaluate;
|
/external/llvm/lib/Transforms/Instrumentation/ |
ThreadSanitizer.cpp | 49 static cl::opt<bool> ClPrintStats("tsan-print-stats", 50 cl::desc("Print ThreadSanitizer instrumentation stats"), cl::Hidden); 54 // Stats counters for ThreadSanitizer instrumentation. 90 // Stats are modified w/o synchronization. 91 ThreadSanitizerStats stats; member in struct:__anon9312::ThreadSanitizer 114 memset(&stats, 0, sizeof(stats)); 146 << ": wr " << stats.NumInstrumentedWrites 147 << "; rd " << stats.NumInstrumentedReads 148 << "; vt " << stats.NumInstrumentedVtableWrite [all...] |
/external/quake/quake/src/QW/server/ |
sv_send.c | 514 Performs a delta update of the stats array. This should only be performed 521 int stats[MAX_CL_STATS]; local 525 memset (stats, 0, sizeof(stats)); 527 // if we are a spectator and we are tracking a player, we get his stats 532 stats[STAT_HEALTH] = ent->v.health; 533 stats[STAT_WEAPON] = SV_ModelIndex(PR_GetString(ent->v.weaponmodel)); 534 stats[STAT_AMMO] = ent->v.currentammo; 535 stats[STAT_ARMOR] = ent->v.armorvalue; 536 stats[STAT_SHELLS] = ent->v.ammo_shells [all...] |
/external/v8/tools/ |
gc-nvp-trace-processor.py | 316 def stats(out, prefix, trace, field): function in function:process_trace 365 stats(out, 'Total in GC', trace, 'pause') 366 stats(out, 'Scavenge', scavenges, 'pause') 367 stats(out, 'MarkSweep', marksweeps, 'pause') 368 stats(out, 'Mark', filter(lambda r: r['mark'] != 0, trace), 'mark') 369 stats(out, 'Sweep', filter(lambda r: r['sweep'] != 0, trace), 'sweep') 370 stats(out,
|
/external/yaffs2/yaffs2/utils/ |
mkyaffsimage.c | 404 struct stat stats; local 410 lstat(full_name,&stats); 412 if(S_ISLNK(stats.st_mode) || 413 S_ISREG(stats.st_mode) || 414 S_ISDIR(stats.st_mode) || 415 S_ISFIFO(stats.st_mode) || 416 S_ISBLK(stats.st_mode) || 417 S_ISCHR(stats.st_mode) || 418 S_ISSOCK(stats.st_mode)) 427 if((equivalentObj = find_obj_in_list(stats.st_dev, stats.st_ino)) > 0 531 struct stat stats; local [all...] |
/packages/apps/Settings/src/com/android/settings/ |
UsageStats.java | 118 PkgUsageStats[] stats; local 120 stats = mUsageStatsService.getAllPkgUsageStats(); 122 Log.e(TAG, "Failed initializing usage stats service"); 125 if (stats == null) { 128 for (PkgUsageStats ps : stats) { 190 Log.w(TAG, "No usage stats info for package:" + position);
|
/packages/experimental/procstatlog/ |
procstatlog.c | 49 // /proc/binder/stats - per line: "/proc/binder/stats:BC_REPLY" 54 // /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state 105 struct data *stats, int stats_count) { 143 struct data *data = &stats[num++]; 160 static int read_proc_yaffs(struct data *stats, int stats_count) { 193 struct data *data = &stats[num++]; 285 struct data *stats = malloc((stats_count + 1) * sizeof(struct data)); local 286 struct data *next = stats; 295 struct data *end = stats + stats_count [all...] |
/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/nfsd/ |
xdr.h | 124 struct kstatfs stats; member in struct:nfsd_statfsres
|
/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/sunrpc/ |
clnt.h | 19 #include <linux/sunrpc/stats.h> 79 struct rpc_stat * stats; member in struct:rpc_program
|
/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/nfsd/ |
xdr.h | 124 struct kstatfs stats; member in struct:nfsd_statfsres
|
/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/sunrpc/ |
clnt.h | 19 #include <linux/sunrpc/stats.h> 79 struct rpc_stat * stats; member in struct:rpc_program
|