Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java104 final BatteryStatsImpl mStats; field in BatteryStatsService
145 synchronized (mStats) { in handleMessage()
149 mStats.removeIsolatedUidLocked(mUidsToRemove.get(i)); in handleMessage()
159 synchronized (mStats) { in handleMessage()
160 mStats.writeAsyncLocked(); in handleMessage()
231 mStats = new BatteryStatsImpl(systemDir, handler, mHandler, this); in BatteryStatsService()
236 synchronized (mStats) { in publish()
237 mStats.setRadioScanningTimeoutLocked(mContext.getResources().getInteger( in publish()
240 mStats.setPowerProfileLocked(new PowerProfile(context)); in publish()
252 synchronized (mStats) { in initPowerManagement()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DStorageStatsSource.java115 private StorageStats mStats; field in StorageStatsSource.AppStorageStatsImpl
118 mStats = stats; in AppStorageStatsImpl()
122 return mStats.getCodeBytes(); in getCodeBytes()
126 return mStats.getDataBytes(); in getDataBytes()
130 return mStats.getCacheBytes(); in getCacheBytes()
134 return mStats.getCacheBytes() + mStats.getCodeBytes() + mStats.getDataBytes(); in getTotalBytes()
DApplicationsState.java102 final StorageStatsManager mStats; field in ApplicationsState
140 mStats = mContext.getSystemService(StorageStatsManager.class); in ApplicationsState()
344 final StorageStats stats = mStats.queryStatsForPackage( in requestSize()
1002 final StorageStats stats = mStats.queryStatsForPackage( in handleMessage()
/frameworks/base/core/tests/benchmarks/src/com/android/internal/net/
DNetworkStatsFactoryBenchmark.java26 private File mStats; field in NetworkStatsFactoryBenchmark
32 mStats = new File("/proc/net/xt_qtaguid/stats"); in setUp()
37 mStats = null; in tearDown()
42 NetworkStatsFactory.javaReadNetworkStatsDetail(mStats, NetworkStats.UID_ALL, in timeReadNetworkStatsDetailJava()
53 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL, in timeReadNetworkStatsDetailNative()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java85 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); field in NetworkStatsCollection
100 mStats.clear(); in reset()
150 for (int i = 0; i < mStats.size(); i++) { in getRelevantUids()
151 final Key key = mStats.keyAt(i); in getRelevantUids()
204 for (int i = 0; i < mStats.size(); i++) { in getHistory()
205 final Key key = mStats.keyAt(i); in getHistory()
208 final NetworkStatsHistory value = mStats.valueAt(i); in getHistory()
239 for (int i = 0; i < mStats.size(); i++) { in getSummary()
240 final Key key = mStats.keyAt(i); in getSummary()
244 final NetworkStatsHistory value = mStats.valueAt(i); in getSummary()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java78 private BatteryStats mStats; field in BatteryStatsHelper
249 mStats = null; in clearStats()
253 if (mStats == null) { in getStats()
256 return mStats; in getStats()
272 mStats = stats; in create()
277 mStats = sStatsXfer; in create()
286 sStatsXfer = mStats; in storeState()
364 if (mStats == null) { in refreshStats()
384 mMobileRadioPowerCalculator = new MobileRadioPowerCalculator(mPowerProfile, mStats); in refreshStats()
386 mMobileRadioPowerCalculator.reset(mStats); in refreshStats()
[all …]
DMobileRadioPowerCalculator.java28 private BatteryStats mStats; field in MobileRadioPowerCalculator
38 final long mobileRx = mStats.getNetworkActivityPackets(BatteryStats.NETWORK_MOBILE_RX_DATA, in getMobilePowerPerPacket()
40 final long mobileTx = mStats.getNetworkActivityPackets(BatteryStats.NETWORK_MOBILE_TX_DATA, in getMobilePowerPerPacket()
45 mStats.getMobileRadioActiveTime(rawRealtimeUs, statsType) / 1000; in getMobilePowerPerPacket()
58 mStats = stats; in MobileRadioPowerCalculator()
124 long radioActiveTimeMs = mStats.getMobileRadioActiveTime(rawRealtimeUs, statsType) / 1000; in calculateRemaining()
147 mStats = stats; in reset()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java136 private ArrayList<UsageStats> mStats = new ArrayList<>(); field in UsageStatsActivity.Adapter
139 mStats.clear(); in update()
144 mStats.addAll(stats.values()); in update()
145 Collections.sort(mStats, mComparator); in update()
151 return mStats.size(); in getCount()
156 return mStats.get(position); in getItem()
178 holder.packageName.setText(mStats.get(position).getPackageName()); in getView()
180 mStats.get(position).getTotalTimeInForeground())); in getView()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DStatsFilter.java47 private final float[] mStats = new float[2]; field in StatsFilter
85 quad.bottomRight().x, quad.bottomRight().y, mStats); in calcMeanAndStd()
87 Log.v(TAG, "Native calc stats: Mean = " + mStats[MEAN_INDEX] + ", Stdev = " in calcMeanAndStd()
88 + mStats[STDEV_INDEX]); in calcMeanAndStd()
105 outFrame.setValue(mStats[MEAN_INDEX]); in onProcess()
110 outFrameStdev.setValue(mStats[STDEV_INDEX]); in onProcess()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java63 private final HashMap<String, ProviderStats> mStats = new HashMap<>(); field in FusionEngine
74 mStats.put(GPS, new ProviderStats()); in FusionEngine()
75 mStats.put(NETWORK, new ProviderStats()); in FusionEngine()
130 ProviderStats stats = mStats.get(name); in enableProvider()
147 ProviderStats stats = mStats.get(name); in disableProvider()
290 s.append(" ").append(mStats.get(GPS)).append('\n'); in dump()
292 s.append(" ").append(mStats.get(NETWORK)).append('\n'); in dump()
/frameworks/base/services/core/java/com/android/server/storage/
DAppCollector.java53 private CompletableFuture<List<PackageStats>> mStats; field in AppCollector
80 if (mStats == null) { in getPackageStats()
81 mStats = new CompletableFuture<>(); in getPackageStats()
88 value = mStats.get(timeoutMillis, TimeUnit.MILLISECONDS); in getPackageStats()
147 mStats.complete(stats); in handleMessage()
/frameworks/base/tools/aapt/
DDirectoryWalker.h43 struct stat mStats; variable
81 stat(fullPath.string(),&mStats); in nextEntry()
86 return &mStats; in entryStats()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageMeasurement.java100 private final StorageStatsManager mStats; field in StorageMeasurement
108 mStats = mContext.getSystemService(StorageStatsManager.class); in StorageMeasurement()
162 details.totalSize = mStats.getTotalBytes(mVolume.fsUuid); in measureExactStorage()
163 details.availSize = mStats.getFreeBytes(mVolume.fsUuid); in measureExactStorage()
180 stats = mStats.queryExternalStatsForUser(mSharedVolume.fsUuid, in measureExactStorage()
207 stats = mStats.queryStatsForUser(mVolume.fsUuid, UserHandle.of(user.id)); in measureExactStorage()
/frameworks/base/tools/aapt/tests/
DMockDirectoryWalker.h57 mStats.st_ino = mPos; in nextEntry()
58 mStats.st_mtime = mData[mPos].second; in nextEntry()
67 return &mStats; in entryStats()
/frameworks/base/services/net/java/android/net/apf/
DApfFilter.java97 private final ApfStats mStats = new ApfStats(); field in ApfFilter.ReceiveThread
130 mStats.receivedRas++; in updateStats()
133 mStats.matchingRas++; in updateStats()
136 mStats.droppedRas++; in updateStats()
139 mStats.parseErrors++; in updateStats()
142 mStats.zeroLifetimeRas++; in updateStats()
145 mStats.matchingRas++; in updateStats()
146 mStats.programUpdates++; in updateStats()
149 mStats.programUpdates++; in updateStats()
157 mStats.durationMs = nowMs - mStart; in logStats()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoderBase.h51 return mStats; in getStats()
90 sp<AMessage> mStats; member
DNuPlayerDecoder.cpp109 mStats->setInt64("frames-total", mNumFramesTotal); in getStats()
110 mStats->setInt64("frames-dropped-input", mNumInputFramesDropped); in getStats()
111 mStats->setInt64("frames-dropped-output", mNumOutputFramesDropped); in getStats()
112 return mStats; in getStats()
358 mStats->setString("mime", mime.c_str()); in onConfigure()
359 mStats->setString("component-name", mComponentName.c_str()); in onConfigure()
365 mStats->setInt32("width", width); in onConfigure()
366 mStats->setInt32("height", height); in onConfigure()
766 mStats->setInt32("width", width); in handleOutputFormatChange()
767 mStats->setInt32("height", height); in handleOutputFormatChange()
DNuPlayerDecoderBase.cpp36 mStats(new AMessage), in DecoderBase()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java459 private final StatFs mStats; field in StorageStatsService.H
466 mStats = new StatFs(Environment.getDataDirectory().getAbsolutePath()); in H()
467 mPreviousBytes = mStats.getAvailableBytes(); in H()
468 mMinimumThresholdBytes = mStats.getTotalBytes() * MINIMUM_CHANGE_DELTA; in H()
482 long bytesDelta = Math.abs(mPreviousBytes - mStats.getAvailableBytes()); in handleMessage()
484 mPreviousBytes = mStats.getAvailableBytes(); in handleMessage()
504 mPreviousBytes = mStats.getAvailableBytes(); in handleMessage()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DBatteryInfo.java42 private BatteryStats mStats; field in BatteryInfo
86 parse(mStats, remainingTimeUs, parserList); in bindHistory()
133 info.mStats = stats; in getBatteryInfo()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationUsageStats.java76 private final Map<String, AggregatedStats> mStats = new HashMap<>(); field in NotificationUsageStats
282 AggregatedStats result = mStats.get(key); in getOrCreateAggregatedStatsLocked()
285 mStats.put(key, result); in getOrCreateAggregatedStatsLocked()
296 for (AggregatedStats as : mStats.values()) { in dumpJson()
318 for (AggregatedStats as : mStats.values()) { in dump()
324 pw.println(indent + "mStats.size(): " + mStats.size()); in dump()
336 for(String key: mStats.keySet()) { in emit()
337 if (mStats.get(key).mLastAccessTime < mLastEmitTime) { in emit()
342 mStats.remove(key); in emit()
/frameworks/base/core/java/com/android/internal/app/
DResolverComparator.java92 private final Map<String, UsageStats> mStats; field in ResolverComparator
169 mStats = mUsm.queryAndAggregateUsageStats(mSinceTime, mCurrentTime); in ResolverComparator()
209 final UsageStats pkStats = mStats.get(target.name.getPackageName()); in compute()
320 if (mStats != null) { in compare()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessState.java128 private final ProcessStats mStats; field in ProcessState
166 mStats = processStats; in ProcessState()
183 mStats = commonProcess.mStats; in ProcessState()
191 mDurations = new DurationsTable(commonProcess.mStats.mTableData); in ProcessState()
192 mPssTable = new PssTable(commonProcess.mStats.mTableData); in ProcessState()
556 SparseArray<PackageState> vpkg = mStats.mPackages.get(pkgName, mUid); in pullFixedProc()
587 proc = mStats.getProcessStateLocked(proc.mPackage, proc.mUid, proc.mVersion, in pullFixedProc()
594 SparseArray<PackageState> vpkg = mStats.mPackages.get(pkgList.keyAt(index), in pullFixedProc()
/frameworks/base/core/proto/android/service/
Dnetstats.proto81 // Corresponds to NetworkStatsCollection.mStats.