/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/cpp/evs/manager/1.1/stats/ |
D | CameraUsageStats.cpp | 76 if (mStats.framesFirstRoundtripLatency == 0) { in updateFrameStatsOnReturn() 77 mStats.framesFirstRoundtripLatency = roundtrip; in updateFrameStatsOnReturn() 86 mStats.framesReceived += n; in framesReceived() 93 mStats.framesReceived += bufs.size(); in framesReceived() 101 mStats.framesReturned += n; in framesReturned() 108 mStats.framesReturned += bufs.size(); in framesReturned() 116 mStats.framesIgnored += n; in framesIgnored() 122 mStats.framesSkippedToSync += n; in framesSkippedToSync() 128 ++mStats.erroneousEventsCount; in eventsReceived() 134 if (n > mStats.peakClientsCount) { in updateNumClients() [all …]
|
D | CameraUsageStats.h | 142 mStats({}) {} in CameraUsageStats() 155 CameraUsageStatsRecord mStats GUARDED_BY(mMutex);
|
/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 | 177 ServerStatsMap& statsMap = mStats[protocol]; in setServers() 202 for (auto& [serverSockAddr, statsRecords] : mStats[record.protocol()]) { in addStats() 224 auto it = mStats.find(protocol); in getSortedServers() 225 if (it == mStats.end()) return {}; in getSortedServers() 259 if (mStats.find(protocol) != mStats.end()) { in getStats() 260 for (const auto& [_, statsRecords] : mStats.at(protocol)) { in getStats() 286 dumpStatsMap(mStats[PROTO_UDP]); in dump() 289 dumpStatsMap(mStats[PROTO_DOT]); in dump() 292 dumpStatsMap(mStats[PROTO_TCP]); in dump()
|
D | DnsStats.h | 136 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 | 270 private final ProviderAccessStats mStats = new ProviderAccessStats(); field in CallLogProvider 349 mStats.incrementBatchStats(callingUid); in applyBatch() 355 mStats.finishOperation(callingUid); in applyBatch() 364 mStats.incrementBatchStats(callingUid); in bulkInsert() 370 mStats.finishOperation(callingUid); in bulkInsert() 380 mStats.incrementQueryStats(callingUid); in query() 384 mStats.finishOperation(callingUid); in query() 537 mStats.incrementInsertStats(callingUid, applyingBatch()); in insert() 541 mStats.finishOperation(callingUid); in insert() 550 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 | 5471 mStats.incrementQueryStats(callingUid); in queryInternal() 5479 mStats.finishOperation(callingUid); in queryInternal()
|
/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/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceController.java | 71 private List<UsageStats> mStats; field in RecentAppsPreferenceController 210 mStats = mUsageStatsManager.queryUsageStats( in reloadData() 218 final int statCount = mStats.size(); in getDisplayableRecentAppList() 220 final UsageStats pkgStats = mStats.get(i); in getDisplayableRecentAppList()
|
/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/services/Iwlan/src/com/google/android/iwlan/ |
D | ErrorPolicyManager.java | 1042 @VisibleForTesting Map<String, Map<String, Long>> mStats = new HashMap<>(); field in ErrorPolicyManager.ErrorStats 1054 if (mStats.size() >= APN_COUNT_MAX || mStatCount >= ERROR_COUNT_MAX) { in update() 1057 if (!mStats.containsKey(apn)) { in update() 1058 mStats.put(apn, new HashMap<String, Long>()); in update() 1060 Map<String, Long> errorMap = mStats.get(apn); in update() 1067 mStats.put(apn, errorMap); in update() 1073 mStats = new HashMap<String, Map<String, Long>>(); in reset() 1082 for (Map.Entry<String, Map<String, Long>> entry : mStats.entrySet()) { in toString()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 179 private final SparseArray<ForwardedStats> mStats = new SparseArray<>(); field in BpfCoordinator 936 if (mStats.size() == 0) { in dump() 988 for (int i = 0; i < mStats.size(); i++) { in dumpStats() 989 final int upstreamIfindex = mStats.keyAt(i); in dumpStats() 990 final ForwardedStats stats = mStats.get(upstreamIfindex); in dumpStats() 1709 mStats.remove(upstreamIfindex); in maybeClearLimit() 1812 final ForwardedStats base = mStats.get(ifIndex); in updateQuotaAndStatsFromSnapshot() 1817 mStats.put(ifIndex, curr); in updateQuotaAndStatsFromSnapshot()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | RecentAppsItemManager.java | 120 List<UsageStats> mStats = mUsageStatsManager.queryUsageStats( in loadDisplayableRecentApps() local 125 for (UsageStats pkgStats : mStats) { in loadDisplayableRecentApps()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 479 private final ProviderAccessStats mStats = new ProviderAccessStats(); field in CalendarProvider2 876 mStats.incrementQueryStats(callingUid); in query() 882 mStats.finishOperation(callingUid); in query() 2286 mStats.incrementBatchStats(callingUid); in bulkInsert() 2290 mStats.finishOperation(callingUid); in bulkInsert() 2300 mStats.incrementBatchStats(callingUid); in applyBatch() 2304 mStats.finishOperation(callingUid); in applyBatch() 2339 mStats.incrementInsertStats(callingUid, applyingBatch()); in insertInTransaction() 2343 mStats.finishOperation(callingUid); in insertInTransaction() 3329 mStats.incrementDeleteStats(callingUid, applyingBatch()); in deleteInTransaction() [all …]
|
/packages/services/Iwlan/test/com/google/android/iwlan/ |
D | ErrorPolicyManagerTest.java | 687 Map<String, Long> apn1Stats = mErrorPolicyManager.getErrorStats().mStats.get(apn1); in testErrorStats() 688 Map<String, Long> apn2Stats = mErrorPolicyManager.getErrorStats().mStats.get(apn2); in testErrorStats()
|