/frameworks/base/libs/hwui/ |
H A D | FrameMetricsReporter.h | 53 void reportFrameMetrics(const int64_t* stats) { argument 55 mObservers[i]->notify(stats);
|
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);
|
/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 | WakelockPowerCalculator.java | 61 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, argument 63 long wakeTimeMillis = stats.getBatteryUptime(rawUptimeUs) / 1000; 65 + (stats.getScreenOnTime(rawRealtimeUs, statsType) / 1000);
|
H A D | BluetoothPowerCalculator.java | 67 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, argument 70 stats.getBluetoothControllerActivity();
|
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;
|
H A D | WifiPowerCalculator.java | 75 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, argument 77 final BatteryStats.ControllerActivityCounter counter = stats.getWifiControllerActivity();
|
H A D | WifiPowerEstimator.java | 88 public void calculateRemaining(BatterySipper app, BatteryStats stats, long rawRealtimeUs, argument 90 final long totalRunningTimeMs = stats.getGlobalWifiRunningTime(rawRealtimeUs, statsType)
|
/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/services/core/java/com/android/server/am/ |
H A D | BackupRecord.java | 31 final BatteryStatsImpl.Uid.Pkg.Serv stats; field in class:BackupRecord 41 stats = _agentStats;
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsXml.java | 78 public static void write(AtomicFile file, IntervalStats stats) throws IOException { argument 81 write(fos, stats); 116 static void write(OutputStream out, IntervalStats stats) throws IOException { argument 124 UsageStatsXmlV1.write(xml, stats);
|
H A D | UsageStatsXmlV1.java | 68 final UsageStats stats = statsOut.getOrCreateUsageStats(pkg); 71 stats.mLastTimeUsed = statsOut.beginTime + XmlUtils.readLongAttribute( 73 stats.mTotalTimeInForeground = XmlUtils.readLongAttribute(parser, TOTAL_TIME_ACTIVE_ATTR); 74 stats.mLastEvent = XmlUtils.readIntAttribute(parser, LAST_EVENT_ATTR); 127 private static void writeUsageStats(XmlSerializer xml, final IntervalStats stats, argument 133 usageStats.mLastTimeUsed - stats.beginTime); 142 private static void writeConfigStats(XmlSerializer xml, final IntervalStats stats, argument 148 configStats.mLastTimeActive - stats.beginTime); 162 private static void writeEvent(XmlSerializer xml, final IntervalStats stats, argument 167 XmlUtils.writeLongAttribute(xml, TIME_ATTR, event.mTimeStamp - stats 243 write(XmlSerializer xml, IntervalStats stats) argument [all...] |
/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/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 | 70 public UsageStats(UsageStats stats) { argument 71 mPackageName = stats.mPackageName; 72 mBeginTimeStamp = stats.mBeginTimeStamp; 73 mEndTimeStamp = stats.mEndTimeStamp; 74 mLastTimeUsed = stats.mLastTimeUsed; 75 mTotalTimeInForeground = stats.mTotalTimeInForeground; 76 mLaunchCount = stats.mLaunchCount; 77 mLastEvent = stats.mLastEvent; 166 UsageStats stats = new UsageStats(); 167 stats [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/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/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/com/android/internal/net/ |
H A D | NetworkStatsFactory.java | 57 /** Path to {@code /proc/net/xt_qtaguid/stats}. */ 81 mStatsXtUid = new File(procRoot, "net/xt_qtaguid/stats"); 90 * @throws IllegalStateException when problem parsing stats. 95 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6); 124 stats.addValues(entry); 128 throw new ProtocolException("problem parsing stats", e); 130 throw new ProtocolException("problem parsing stats", e); 135 return stats; 143 * @throws IllegalStateException when problem parsing stats. 151 final NetworkStats stats 343 nativeReadNetworkStatsDetail( NetworkStats stats, String path, int limitUid, String[] limitIfaces, int limitTag) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
H A D | NetworkStatsFactoryTest.java | 74 stageFile(R.raw.xt_qtaguid_typical, new File(mTestProc, "net/xt_qtaguid/stats")); 76 final NetworkStats stats = mFactory.readNetworkStatsDetail(); 77 assertEquals(70, stats.size()); 78 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); 79 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); 80 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); 81 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); 82 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); 100 stageFile(R.raw.xt_qtaguid_typical, new File(mTestProc, "net/xt_qtaguid/stats")); 102 final NetworkStats stats 158 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long txBytes) argument 166 assertStatsEntry(NetworkStats stats, String iface, int uid, int set, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets) argument [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | BatteryInfo.java | 125 BatteryStats stats, long elapsedRealtimeUs) { 126 return BatteryInfo.getBatteryInfo(context, batteryBroadcast, stats, elapsedRealtimeUs, 131 BatteryStats stats, long elapsedRealtimeUs, boolean shortString) { 133 info.mStats = stats; 139 final long drainTime = stats.computeBatteryTimeRemaining(elapsedRealtimeUs); 157 final long chargeTime = stats.computeChargeTimeRemaining(elapsedRealtimeUs); 205 private static void parse(BatteryStats stats, long remainingTimeUs, argument 219 if (stats.startIteratingHistoryLocked()) { 221 while (stats.getNextHistoryLocked(rec)) { 256 stats 124 getBatteryInfo(Context context, Intent batteryBroadcast, BatteryStats stats, long elapsedRealtimeUs) argument 130 getBatteryInfo(Context context, Intent batteryBroadcast, BatteryStats stats, long elapsedRealtimeUs, boolean shortString) argument [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | CompilerStats.java | 52 * Class to collect all stats pertaining to one package. 111 ipw.println("(No recorded stats)"); 134 public void setPackageStats(String packageName, PackageStats stats) { argument 136 packageStats.put(packageName, stats); 244 Log.e(PackageManagerService.TAG, "Error parsing compiler stats", e); 275 Log.e(PackageManagerService.TAG, "Failed to write compiler stats", e);
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
H A D | UsageStatsActivity.java | 87 Map<String, UsageStats> stats = mUsageStatsManager.queryAndAggregateUsageStats( 89 mAdapter.update(stats); 95 public void update(Map<String, UsageStats> stats) { argument 97 if (stats == null) { 101 mStats.addAll(stats.values());
|
/frameworks/native/libs/gui/ |
H A D | ISurfaceComposerClient.cpp | 172 FrameStats stats; local 173 status_t result = getLayerFrameStats(handle, &stats); 174 reply->write(stats);
|
/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...] |