Home
last modified time | relevance | path

Searched refs:mStats (Results 1 – 24 of 24) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkIpProvisioningMetricsTest.java44 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/evs/manager/1.1/stats/
DCameraUsageStats.cpp76 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 …]
DCameraUsageStats.h142 mStats({}) {} in CameraUsageStats()
155 CameraUsageStatsRecord mStats GUARDED_BY(mMutex);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DProcStatsData.java63 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 …]
DRecentAppStatsMixin.java118 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/
DProcStatsData.java63 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 …]
DRecentAppStatsMixin.java118 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/
DIoStats.java53 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/
DDnsStats.cpp126 ServerStatsMap& statsMap = mStats[protocol]; in setServers()
150 for (auto& [serverSockAddr, statsRecords] : mStats[record.protocol()]) { in addStats()
166 if (mStats.find(protocol) != mStats.end()) { in getStats()
167 for (const auto& [_, statsRecords] : mStats.at(protocol)) { in getStats()
190 dumpStatsMap(mStats[PROTO_UDP]); in dump()
193 dumpStatsMap(mStats[PROTO_DOT]); in dump()
196 dumpStatsMap(mStats[PROTO_TCP]); in dump()
DDnsStats.h112 std::map<Protocol, ServerStatsMap> mStats;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java119 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 …]
DCallLogProvider.java192 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()
447 mStats.incrementInsertStats(callingUid, applyingBatch()); in insert()
451 mStats.finishOperation(callingUid); in insert()
460 mStats.incrementInsertStats(callingUid, applyingBatch()); in update()
[all …]
DProfileProvider.java75 mStats.incrementQueryStats(callingUid); in query()
80 mStats.finishOperation(callingUid); in query()
DContactsProvider2.java5382 mStats.incrementQueryStats(callingUid); in query()
5390 mStats.finishOperation(callingUid); in query()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DVolumeSizesLoader.java34 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/
DVolumeSizesLoader.java33 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/
DVolumeSizesLoader.java33 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/
DBatteryInfoLoaderTest.java52 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/
DRecentAppsPreferenceController.java71 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/apps/Settings/src/com/android/settings/applications/appinfo/
DAppMemoryPreferenceController.java48 private ProcStatsPackageEntry mStats; field in AppMemoryPreferenceController
84 mStats = entry; in onPostExecute()
126 mStatsManager.getMemInfo(), mStats, false); in handlePreferenceTreeClick() local
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppMemoryPreferenceController.java48 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/
DBatteryInfo.java54 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/
DBatteryInfo.java52 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/
DCalendarProvider2.java468 private final ProviderAccessStats mStats = new ProviderAccessStats(); field in CalendarProvider2
861 mStats.incrementQueryStats(callingUid); in query()
867 mStats.finishOperation(callingUid); in query()
2264 mStats.incrementBatchStats(callingUid); in bulkInsert()
2268 mStats.finishOperation(callingUid); in bulkInsert()
2278 mStats.incrementBatchStats(callingUid); in applyBatch()
2282 mStats.finishOperation(callingUid); in applyBatch()
2317 mStats.incrementInsertStats(callingUid, applyingBatch()); in insertInTransaction()
2321 mStats.finishOperation(callingUid); in insertInTransaction()
3307 mStats.incrementDeleteStats(callingUid, applyingBatch()); in deleteInTransaction()
[all …]