/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 35 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 154 struct Stats stats; local 169 struct Stats stats; local 179 struct Stats stats; local [all...] |
H A D | android_os_Debug.cpp | 139 #define BINDER_STATS "/proc/binder/stats" 220 static void read_mapinfo(FILE *fp, stats_t* stats, bool* foundSwapPss) argument 412 stats[whichHeap].pss += pss; 413 stats[whichHeap].swappablePss += swappable_pss; 414 stats[whichHeap].privateDirty += private_dirty; 415 stats[whichHeap].sharedDirty += shared_dirty; 416 stats[whichHeap].privateClean += private_clean; 417 stats[whichHeap].sharedClean += shared_clean; 418 stats[whichHeap].swappedOut += swapped_out; 419 stats[whichHea 434 load_maps(int pid, stats_t* stats, bool* foundSwapPss) argument 449 stats_t stats[_NUM_HEAP]; local [all...] |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 99 static int readNetworkStatsDetail(JNIEnv* env, jclass clazz, jobject stats, argument 229 bool grow = size > env->GetIntField(stats, gNetworkStatsClassInfo.capacity); 231 ScopedLocalRef<jobjectArray> iface(env, get_string_array(env, stats, 234 ScopedIntArrayRW uid(env, get_int_array(env, stats, 237 ScopedIntArrayRW set(env, get_int_array(env, stats, 240 ScopedIntArrayRW tag(env, get_int_array(env, stats, 243 ScopedIntArrayRW metered(env, get_int_array(env, stats, 246 ScopedIntArrayRW roaming(env, get_int_array(env, stats, 249 ScopedLongArrayRW rxBytes(env, get_long_array(env, stats, 252 ScopedLongArrayRW rxPackets(env, get_long_array(env, stats, [all...] |
/frameworks/base/core/java/android/app/usage/ |
H A D | ConfigurationStats.java | 64 public ConfigurationStats(ConfigurationStats stats) { argument 65 mConfiguration = stats.mConfiguration; 66 mBeginTimeStamp = stats.mBeginTimeStamp; 67 mEndTimeStamp = stats.mEndTimeStamp; 68 mLastTimeActive = stats.mLastTimeActive; 69 mTotalTimeActive = stats.mTotalTimeActive; 70 mActivationCount = stats.mActivationCount; 144 ConfigurationStats stats = new ConfigurationStats(); 146 stats.mConfiguration = Configuration.CREATOR.createFromParcel(source); 148 stats [all...] |
H A D | UsageStats.java | 77 public UsageStats(UsageStats stats) { argument 78 mPackageName = stats.mPackageName; 79 mBeginTimeStamp = stats.mBeginTimeStamp; 80 mEndTimeStamp = stats.mEndTimeStamp; 81 mLastTimeUsed = stats.mLastTimeUsed; 82 mTotalTimeInForeground = stats.mTotalTimeInForeground; 83 mLaunchCount = stats.mLaunchCount; 84 mLastEvent = stats.mLastEvent; 85 mChooserCounts = stats.mChooserCounts; 220 UsageStats stats [all...] |
/frameworks/base/tests/net/java/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 77 final NetworkStats stats = parseDetailedStats(R.raw.xt_qtaguid_typical); 79 assertEquals(70, stats.size()); 80 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); 81 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); 82 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); 83 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); 84 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); 102 final NetworkStats stats = parseDetailedStats(R.raw.xt_qtaguid_typical); 103 assertEquals(70, stats.size()); 104 assertStatsEntry(stats, "rmnet 229 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument 241 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument [all...] |
/frameworks/base/tests/net/java/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 488 assertIndexBeforeAfter( NetworkStatsHistory stats, int before, int after, long time) argument 502 assertConsistent(NetworkStatsHistory stats) argument 513 assertValues( NetworkStatsHistory stats, int index, long rxBytes, long txBytes) argument 520 assertValues( NetworkStatsHistory stats, long start, long end, long rxBytes, long txBytes) argument 527 assertValues(NetworkStatsHistory stats, int index, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 538 assertFullValues(NetworkStatsHistory stats, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument 544 assertValues(NetworkStatsHistory stats, long start, long end, long activeTime, long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) argument [all...] |
/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; 204 return ((stats.numDeletes > 0) && !tooManyDeletions) 205 || stats.numInserts > 0 206 || stats [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiConnectionStatistics.java | 28 * Wifi Connection Statistics: gather various stats regarding WiFi connections, 64 WifiNetworkConnectionStatistics stats; 68 stats = untrustedNetworkHistory.get(SSID); 69 if (stats != null){ 70 stats.numConnection = connection + stats.numConnection; 71 stats.numUsage = usage + stats.numUsage; 74 stats = new WifiNetworkConnectionStatistics(connection, usage); 76 if (stats ! [all...] |
H A D | WifiLinkLayerStats.java | 196 WifiLinkLayerStats stats = new WifiLinkLayerStats(); 197 stats.SSID = in.readString(); 198 stats.BSSID = in.readString(); 199 stats.on_time = in.readInt(); 200 stats.tx_time = in.readInt(); 201 stats.tx_time_per_level = in.createIntArray(); 202 stats.rx_time = in.readInt(); 203 stats.on_time_scan = in.readInt(); 204 return stats;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
H A D | StorageManagerVolumeProvider.java | 53 public long getTotalBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException { argument 54 return stats.getTotalBytes(volume.getFsUuid()); 58 public long getFreeBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException { argument 59 return stats.getFreeBytes(volume.getFsUuid());
|
H A D | StorageVolumeProvider.java | 50 long getTotalBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException; argument 57 long getFreeBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException; argument
|
H A D | PrivateStorageInfo.java | 43 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); 50 privateTotalBytes += sm.getTotalBytes(stats, info); 51 privateFreeBytes += sm.getFreeBytes(stats, info); 62 final StorageStatsManager stats = context.getSystemService(StorageStatsManager.class); 64 return stats.getTotalBytes(info.getFsUuid());
|
H A D | StorageMeasurement.java | 178 final ExternalStorageStats stats; 180 stats = mStats.queryExternalStatsForUser(mSharedVolume.fsUuid, 187 addValue(details.usersSize, user.id, stats.getTotalBytes()); 190 mediaMap.put(Environment.DIRECTORY_MUSIC, stats.getAudioBytes()); 191 mediaMap.put(Environment.DIRECTORY_MOVIES, stats.getVideoBytes()); 192 mediaMap.put(Environment.DIRECTORY_PICTURES, stats.getImageBytes()); 194 final long miscBytes = stats.getTotalBytes() - stats.getAudioBytes() 195 - stats.getVideoBytes() - 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/services/tests/servicestests/src/com/android/server/location/ |
H A D | LocationRequestStatisticsTest.java | 39 PackageStatistics stats = mStatistics.statistics.values().iterator().next(); 40 verifyStatisticsTimes(stats); 41 assertEquals(INTERVAL1, stats.getFastestIntervalMs()); 42 assertEquals(INTERVAL1, stats.getSlowestIntervalMs()); 43 assertTrue(stats.isActive()); 58 PackageStatistics stats = mStatistics.statistics.values().iterator().next(); 59 verifyStatisticsTimes(stats); 60 assertEquals(INTERVAL1, stats.getFastestIntervalMs()); 61 assertEquals(INTERVAL1, stats.getSlowestIntervalMs()); 62 assertTrue(stats 168 verifyStatisticsTimes(PackageStatistics stats) argument [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
H A D | NetworkStatsFactory.java | 55 // Used for correct stats accounting on clatd interfaces. 62 /** Path to {@code /proc/net/xt_qtaguid/stats}. */ 87 mStatsXtUid = new File(procRoot, "net/xt_qtaguid/stats"); 96 * @throws IllegalStateException when problem parsing stats. 101 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6); 130 stats.addValues(entry); 134 throw new ProtocolException("problem parsing stats", e); 139 return stats; 147 * @throws IllegalStateException when problem parsing stats. 155 final NetworkStats stats 350 nativeReadNetworkStatsDetail( NetworkStats stats, String path, int limitUid, String[] limitIfaces, int limitTag) argument [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
H A D | StorageStatsSource.java | 86 * @param stats The stats to copy to wrap. 88 public ExternalStorageStats(android.app.usage.ExternalStorageStats stats) { argument 89 totalBytes = stats.getTotalBytes(); 90 audioBytes = stats.getAudioBytes(); 91 videoBytes = stats.getVideoBytes(); 92 imageBytes = stats.getImageBytes(); 93 appBytes = stats.getAppBytes(); 117 public AppStorageStatsImpl(StorageStats stats) { argument 118 mStats = stats; [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationRequestStatistics.java | 29 PackageStatistics stats = statistics.get(key); 30 if (stats == null) { 31 stats = new PackageStatistics(); 32 statistics.put(key, stats); 34 stats.startRequesting(intervalMs); 45 PackageStatistics stats = statistics.get(key); 46 if (stats != null) { 47 stats.stopRequesting();
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | PowerCalculator.java | 27 * @param u The recorded stats for the app. 30 * @param statsType The type of stats. Can be {@link BatteryStats#STATS_CURRENT}, 40 * @param stats The BatteryStats object from which to retrieve data. 43 * @param statsType The type of stats. Can be {@link BatteryStats#STATS_CURRENT}, 47 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, argument
|
H A D | MobileRadioPowerCalculator.java | 52 public MobileRadioPowerCalculator(PowerProfile profile, BatteryStats stats) { argument 58 mStats = stats; 96 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, argument 102 long strengthTimeMs = stats.getPhoneSignalStrengthTime(i, rawRealtimeUs, statsType) 116 final long scanningTimeMs = stats.getPhoneSignalScanningTime(rawRealtimeUs, statsType) 135 app.mobileActiveCount = stats.getMobileRadioActiveUnknownCount(statsType); 145 public void reset(BatteryStats stats) { argument 147 mStats = stats;
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsXmlV1.java | 79 final UsageStats stats = statsOut.getOrCreateUsageStats(pkg); 82 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( 84 stats.mTotalTimeInForeground = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); 85 stats.mLastEvent = XmlUtils.readIntAttribute(parser, LAST_EVENT_ATTR); 97 loadChooserCounts(parser, stats, action); 184 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, argument 190 usageStats.mLastTimeUsed - stats.beginTime); 234 private static void writeConfigStats(XmlSerializer xml, final IntervalStats stats, argument 240 configStats.mLastTimeActive - stats.beginTime); 254 private static void writeEvent(XmlSerializer xml, final IntervalStats stats, argument 336 write(XmlSerializer xml, IntervalStats stats) argument [all...] |
H A D | UsageStatsDatabase.java | 85 * Initialize any directories required and index what stats are available. 122 boolean checkin(IntervalStats stats); argument 155 IntervalStats stats = new IntervalStats(); 157 UsageStatsXml.read(files.valueAt(i), stats); 158 if (!checkinAction.checkin(stats)) { 167 // We have successfully checked-in the stats, so rename the files so that they 284 Slog.i(TAG, "Deleting all usage stats files"); 344 * Get the latest stats that exist for this interval type. 359 IntervalStats stats = new IntervalStats(); 360 UsageStatsXml.read(f, stats); 386 combine(IntervalStats stats, boolean mutable, List<T> accumulatedResult) argument 585 putUsageStats(int intervalType, IntervalStats stats) argument 752 sanitizeIntervalStatsForBackup(IntervalStats stats) argument 759 serializeIntervalStats(IntervalStats stats) argument [all...] |
H A D | UserUsageStatsService.java | 108 Slog.w(TAG, mLogPrefix + "Some stats have no latest available"); 114 // generate new stats for each bucket. 180 for (IntervalStats stats : mCurrentStats) { 182 stats.updateConfigurationStats(newFullConfig, event.mTimeStamp); 184 stats.updateChooserCounts(event.mPackage, event.mContentType, event.mAction); 188 stats.updateChooserCounts(event.mPackage, annotation, event.mAction); 192 stats.update(event.mPackage, event.mTimeStamp, event.mEventType); 202 public void combine(IntervalStats stats, boolean mutable, 205 accResult.addAll(stats.packageStats.values()); 209 final int statCount = stats 507 printIntervalStats(IndentingPrintWriter pw, IntervalStats stats, boolean prettyDates) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | GpuMemoryTracker.cpp | 94 const TypeStats& stats = gObjectStats[type]; local 96 stream << " is using " << SizePrinter{stats.totalSize}; 97 stream << ", count = " << stats.count; 115 const TypeStats& stats = gObjectStats[type]; local 116 ATRACE_INT(buf, stats.totalSize); 118 ATRACE_INT(buf, stats.count);
|