/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/ |
D | NetworkIpProvisioningMetricsTest.java | 44 NetworkIpProvisioningReported mStats; in testIpProvisioningMetrics_setHostnameTransinfo() local 49 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo() 50 assertEquals(HostnameTransResult.HTR_DISABLE, mStats.getDhcpSession().getHtResult()); in testIpProvisioningMetrics_setHostnameTransinfo() 54 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo() 55 assertEquals(HostnameTransResult.HTR_FAILURE, mStats.getDhcpSession().getHtResult()); in testIpProvisioningMetrics_setHostnameTransinfo() 59 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_setHostnameTransinfo() 60 assertEquals(HostnameTransResult.HTR_SUCCESS, mStats.getDhcpSession().getHtResult()); in testIpProvisioningMetrics_setHostnameTransinfo() 65 final NetworkIpProvisioningReported mStats; in testIpProvisioningMetrics_addDhcpErrorCode() local 77 mStats = mMetrics.statsWrite(); in testIpProvisioningMetrics_addDhcpErrorCode() 78 assertEquals(DhcpErrorCode.ET_BOOTP_TOO_SHORT, mStats.getDhcpSession().getErrorCode(0)); in testIpProvisioningMetrics_addDhcpErrorCode() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ProcStatsData.java | 63 private ProcessStats mStats; field in ProcStatsData 84 mStats = sStatsXfer; in ProcStatsData() 93 sStatsXfer = mStats; in xferStats() 107 int factor = mStats.mMemFactor; in getMemState() 122 return mStats.mTimePeriodEndRealtime - mStats.mTimePeriodStartRealtime; in getElapsedTime() 141 if (mStats == null || forceLoad) { in refreshStats() 149 memTotalTime = DumpUtils.dumpSingleTime(null, null, mStats.mMemFactorDurations, in refreshStats() 150 mStats.mMemFactor, mStats.mStartTime, now); in refreshStats() 154 mStats.computeTotalMemoryUse(totalMem, now); in refreshStats() 179 proc.evaluateTargetPackage(mPm, mStats, bgTotals, runTotals, sEntryCompare, mUseUss); in createPkgMap() [all …]
|
D | RecentAppStatsMixin.java | 118 final List<UsageStats> mStats = mPowerManager.isPowerSaveMode() in loadDisplayableRecentApps() local 125 final int statCount = mStats.size(); in loadDisplayableRecentApps() 127 final UsageStats pkgStats = mStats.get(i); in loadDisplayableRecentApps()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsData.java | 63 private ProcessStats mStats; field in ProcStatsData 84 mStats = sStatsXfer; in ProcStatsData() 93 sStatsXfer = mStats; in xferStats() 107 int factor = mStats.mMemFactor; in getMemState() 122 return mStats.mTimePeriodEndRealtime - mStats.mTimePeriodStartRealtime; in getElapsedTime() 141 if (mStats == null || forceLoad) { in refreshStats() 149 memTotalTime = DumpUtils.dumpSingleTime(null, null, mStats.mMemFactorDurations, in refreshStats() 150 mStats.mMemFactor, mStats.mStartTime, now); in refreshStats() 154 mStats.computeTotalMemoryUse(totalMem, now); in refreshStats() 179 proc.evaluateTargetPackage(mPm, mStats, bgTotals, runTotals, sEntryCompare, mUseUss); in createPkgMap() [all …]
|
D | RecentAppStatsMixin.java | 118 final List<UsageStats> mStats = mPowerManager.isPowerSaveMode() in loadDisplayableRecentApps() local 125 final int statCount = mStats.size(); in loadDisplayableRecentApps() 127 final UsageStats pkgStats = mStats.get(i); in loadDisplayableRecentApps()
|
/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | IoStats.java | 53 private final List<IoStatsEntry> mStats; field in IoStats 57 mStats = stats; in IoStats() 62 mStats = in.createTypedArrayList(IoStatsEntry.CREATOR); in IoStats() 72 mStats = new ArrayList<>(); in IoStats() 74 mStats.add(new IoStatsEntry(statsArray.getJSONObject(i))); in IoStats() 80 dest.writeTypedList(mStats); in writeToParcel() 91 for (IoStatsEntry stat : mStats) { in writeToJson() 108 return mStats; in getStats() 113 return Objects.hash(mStats, mUptimeTimestamp); in hashCode()
|
/packages/modules/DnsResolver/ |
D | DnsStats.cpp | 168 ServerStatsMap& statsMap = mStats[protocol]; in setServers() 193 for (auto& [serverSockAddr, statsRecords] : mStats[record.protocol()]) { in addStats() 214 auto it = mStats.find(protocol); in getSortedServers() 215 if (it == mStats.end()) return {}; in getSortedServers() 235 if (mStats.find(protocol) != mStats.end()) { in getStats() 236 for (const auto& [_, statsRecords] : mStats.at(protocol)) { in getStats() 262 dumpStatsMap(mStats[PROTO_UDP]); in dump() 265 dumpStatsMap(mStats[PROTO_DOT]); in dump() 268 dumpStatsMap(mStats[PROTO_TCP]); in dump()
|
D | DnsStats.h | 133 std::map<Protocol, ServerStatsMap> mStats;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | AbstractContactsProvider.java | 119 protected final ProviderAccessStats mStats = new ProviderAccessStats(); field in AbstractContactsProvider 157 mStats.incrementInsertStats(callingUid, isInBatch()); in insert() 171 mStats.finishOperation(callingUid); in insert() 178 mStats.incrementDeleteStats(callingUid, isInBatch()); in delete() 192 mStats.finishOperation(callingUid); in delete() 199 mStats.incrementUpdateStats(callingUid, isInBatch()); in update() 213 mStats.finishOperation(callingUid); in update() 220 mStats.incrementBatchStats(callingUid); in bulkInsert() 244 mStats.finishOperation(callingUid); in bulkInsert() 252 mStats.incrementBatchStats(callingUid); in applyBatch() [all …]
|
D | CallLogProvider.java | 192 private final ProviderAccessStats mStats = new ProviderAccessStats(); field in CallLogProvider 271 mStats.incrementBatchStats(callingUid); in applyBatch() 277 mStats.finishOperation(callingUid); in applyBatch() 286 mStats.incrementBatchStats(callingUid); in bulkInsert() 292 mStats.finishOperation(callingUid); in bulkInsert() 302 mStats.incrementQueryStats(callingUid); in query() 306 mStats.finishOperation(callingUid); in query() 446 mStats.incrementInsertStats(callingUid, applyingBatch()); in insert() 450 mStats.finishOperation(callingUid); in insert() 459 mStats.incrementInsertStats(callingUid, applyingBatch()); in update() [all …]
|
D | ProfileProvider.java | 75 mStats.incrementQueryStats(callingUid); in query() 80 mStats.finishOperation(callingUid); in query()
|
D | ContactsProvider2.java | 5468 mStats.incrementQueryStats(callingUid); in query() 5476 mStats.finishOperation(callingUid); in query()
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | VolumeSizesLoader.java | 34 private final StorageStatsManager mStats; field in VolumeSizesLoader 41 mStats = stats; in VolumeSizesLoader() 57 long privateTotalBytes = mVolumeProvider.getTotalBytes(mStats, mVolume); in getVolumeSize() 58 long privateFreeBytes = mVolumeProvider.getFreeBytes(mStats, mVolume); in getVolumeSize()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | VolumeSizesLoader.java | 33 private StorageStatsManager mStats; field in VolumeSizesLoader 43 mStats = stats; in VolumeSizesLoader() 54 volumeSizes = getVolumeSize(mVolumeProvider, mStats, mVolume); in loadInBackground()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/ |
D | VolumeSizesLoader.java | 33 private StorageStatsManager mStats; field in VolumeSizesLoader 43 mStats = stats; in VolumeSizesLoader() 54 volumeSizes = getVolumeSize(mVolumeProvider, mStats, mVolume); in loadInBackground()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryInfoLoaderTest.java | 52 private BatteryStats mStats; field in BatteryInfoLoaderTest 63 when(mStats.computeBatteryTimeRemaining(anyLong())).thenReturn(TEST_TIME_REMAINING); in setUp() 64 doReturn(mStats).when(mHelper).getStats(); in setUp()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceController.java | 71 private List<UsageStats> mStats; field in RecentAppsPreferenceController 204 mStats = mUsageStatsManager.queryUsageStats( in reloadData() 212 final int statCount = mStats.size(); in getDisplayableRecentAppList() 214 final UsageStats pkgStats = mStats.get(i); in getDisplayableRecentAppList()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | AppMemoryPreferenceController.java | 48 private ProcStatsPackageEntry mStats; field in AppMemoryPreferenceController 84 mStats = entry; in onPostExecute() 126 mStatsManager.getMemInfo(), mStats, false); in handlePreferenceTreeClick() local
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppMemoryPreferenceController.java | 48 private ProcStatsPackageEntry mStats; field in AppMemoryPreferenceController 84 mStats = entry; in onPostExecute() 126 mStatsManager.getMemInfo(), mStats, false); in handlePreferenceTreeClick() local
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryInfo.java | 54 private BatteryStats mStats; field in BatteryInfo 128 parse(mStats, parserList); in bindHistory() 230 info.mStats = stats; in getBatteryInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryInfo.java | 52 private BatteryStats mStats; field in BatteryInfo 126 parse(mStats, parserList); in bindHistory() 227 info.mStats = stats; in getBatteryInfo()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 467 private final ProviderAccessStats mStats = new ProviderAccessStats(); field in CalendarProvider2 859 mStats.incrementQueryStats(callingUid); in query() 865 mStats.finishOperation(callingUid); in query() 2262 mStats.incrementBatchStats(callingUid); in bulkInsert() 2266 mStats.finishOperation(callingUid); in bulkInsert() 2276 mStats.incrementBatchStats(callingUid); in applyBatch() 2280 mStats.finishOperation(callingUid); in applyBatch() 2315 mStats.incrementInsertStats(callingUid, applyingBatch()); in insertInTransaction() 2319 mStats.finishOperation(callingUid); in insertInTransaction() 3305 mStats.incrementDeleteStats(callingUid, applyingBatch()); in deleteInTransaction() [all …]
|