Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java93 final BatteryStatsImpl mStats; field in BatteryStatsService
191 mStats = new BatteryStatsImpl(systemDir, handler, this, in BatteryStatsService()
193 mWorker = new BatteryExternalStatsWorker(context, mStats); in BatteryStatsService()
194 mStats.setExternalStatsSyncLocked(mWorker); in BatteryStatsService()
195 mStats.setRadioScanningTimeoutLocked(mContext.getResources().getInteger( in BatteryStatsService()
197 mStats.setPowerProfileLocked(new PowerProfile(context)); in BatteryStatsService()
206 mStats.systemServicesReady(mContext); in systemServicesReady()
212 return mStats.getWifiIfaces().clone(); in getWifiIfaces()
217 return mStats.getMobileIfaces().clone(); in getMobileIfaces()
251 synchronized (mStats) { in initPowerManagement()
[all …]
DBatteryExternalStatsWorker.java87 private final BatteryStatsImpl mStats; field in BatteryExternalStatsWorker
139 mStats = stats; in BatteryExternalStatsWorker()
161 synchronized (mStats) { in scheduleReadProcStateCpuTimes()
162 if (!mStats.trackPerProcStateCpuTimes()) { in scheduleReadProcStateCpuTimes()
170 mStats, onBattery, onBatteryScreenOff).recycleOnUse(), in scheduleReadProcStateCpuTimes()
180 synchronized (mStats) { in scheduleCopyFromAllUidsCpuTimes()
181 if (!mStats.trackPerProcStateCpuTimes()) { in scheduleCopyFromAllUidsCpuTimes()
189 mStats, onBattery, onBatteryScreenOff).recycleOnUse()); in scheduleCopyFromAllUidsCpuTimes()
214 scheduleRunnable(() -> mStats.postBatteryNeedsCpuUpdateMsg()); in scheduleCpuSyncDueToWakelockChange()
371 mStats.copyFromAllUidsCpuTimes();
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DMuxer.java28 private Stats mStats; field in Muxer
41 mStats = new Stats(); in setUpMuxer()
42 long sTime = mStats.getCurTime(); in setUpMuxer()
46 long eTime = mStats.getCurTime(); in setUpMuxer()
47 long timeTaken = mStats.getTimeDiff(sTime, eTime); in setUpMuxer()
48 mStats.setInitTime(timeTaken); in setUpMuxer()
66 mStats.setStartTime(); in mux()
71 mStats.addOutputTime(); in mux()
72 mStats.addFrameSize(inputBufferInfo.get(sampleCount).size); in mux()
85 long sTime = mStats.getCurTime(); in deInitMuxer()
[all …]
DExtractor.java34 private Stats mStats; field in Extractor
40 mStats = new Stats(); in Extractor()
51 long sTime = mStats.getCurTime(); in setUpExtractor()
54 long eTime = mStats.getCurTime(); in setUpExtractor()
55 long timeTaken = mStats.getTimeDiff(sTime, eTime); in setUpExtractor()
56 mStats.setInitTime(timeTaken); in setUpExtractor()
133 long sTime = mStats.getCurTime(); in deinitExtractor()
135 long eTime = mStats.getCurTime(); in deinitExtractor()
136 long timeTaken = mStats.getTimeDiff(sTime, eTime); in deinitExtractor()
137 mStats.setDeInitTime(timeTaken); in deinitExtractor()
[all …]
DDecoder.java39 private Stats mStats; field in Decoder
51 public Decoder() { mStats = new Stats(); } in Decoder()
112 long sTime = mStats.getCurTime(); in decode()
123 mStats.addInputTime(); in decode()
134 mStats.addOutputTime(); in decode()
164 long eTime = mStats.getCurTime(); in decode()
165 mStats.setInitTime(mStats.getTimeDiff(sTime, eTime)); in decode()
166 mStats.setStartTime(); in decode()
187 mStats.addInputTime(); in decode()
207 mStats.addOutputTime(); in decode()
[all …]
DEncoder.java42 private Stats mStats; field in Encoder
60 mStats = new Stats(); in Encoder()
123 long sTime = mStats.getCurTime(); in encode()
156 mStats.addInputTime(); in encode()
168 mStats.addOutputTime(); in encode()
192 long eTime = mStats.getCurTime(); in encode()
193 mStats.setInitTime(mStats.getTimeDiff(sTime, eTime)); in encode()
194 mStats.setStartTime(); in encode()
214 mStats.addInputTime(); in encode()
231 mStats.addOutputTime(); in encode()
[all …]
/frameworks/av/media/tests/benchmark/src/native/extractor/
DExtractor.cpp25 mStats = new Stats(); in initExtractor()
30 int64_t sTime = mStats->getCurTime(); in initExtractor()
37 int64_t eTime = mStats->getCurTime(); in initExtractor()
38 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in initExtractor()
39 mStats->setInitTime(timeTaken); in initExtractor()
55 mStats->addFrameSize(frameInfo.size); in getCSDSample()
66 mStats->addFrameSize(frameInfo.size); in getFrameSample()
97 mStats->setStartTime(); in extract()
101 mStats->addOutputTime(); in extract()
116 mStats->dumpStatistics(operation, inputReference, mDurationUs, componentName, "", statsFile); in dumpStatistics()
[all …]
DExtractor.h30 mStats(nullptr), in Extractor()
35 if (mStats) delete mStats; in ~Extractor() local
61 Stats *mStats; variable
/frameworks/av/media/tests/benchmark/src/native/decoder/
DC2Decoder.cpp55 int64_t sTime = mStats->getCurTime(); in createCodec2Component()
69 int64_t eTime = mStats->getCurTime(); in createCodec2Component()
70 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in createCodec2Component()
71 mStats->setInitTime(timeTaken); in createCodec2Component()
79 mStats->setStartTime(); in decodeFrames()
88 mStats->addInputTime(); in decodeFrames()
126 mStats->addFrameSize(size); in decodeFrames()
150 int64_t sTime = mStats->getCurTime(); in deInitCodec()
154 int64_t eTime = mStats->getCurTime(); in deInitCodec()
155 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in deInitCodec()
[all …]
DDecoder.cpp87 mStats->addFrameSize(bytesRead); in onInputAvailable()
164 int64_t sTime = mStats->getCurTime(); in decode()
177 int64_t eTime = mStats->getCurTime(); in decode()
178 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in decode()
179 mStats->setInitTime(timeTaken); in decode()
181 mStats->setStartTime(); in decode()
192 mStats->addInputTime(); in decode()
205 mStats->addOutputTime(); in decode()
238 int64_t sTime = mStats->getCurTime(); in deInitCodec()
241 int64_t eTime = mStats->getCurTime(); in deInitCodec()
[all …]
/frameworks/base/services/core/java/com/android/server/
DLooperStatsService.java63 private final LooperStats mStats; field in LooperStatsService
70 this.mStats = stats; in LooperStatsService()
105 pw.println(DateFormat.format("yyyy-MM-dd HH:mm:ss", mStats.getStartTimeMillis())); in dump()
107 pw.println(mStats.getBatteryTimeMillis()); in dump()
108 final List<LooperStats.ExportedEntry> entries = mStats.getEntries(); in dump()
158 mStats.reset(); in setEnabled()
159 mStats.setAddDebugEntries(enabled); in setEnabled()
160 Looper.setObserver(enabled ? mStats : null); in setEnabled()
167 mStats.reset(); in setTrackScreenInteractive()
173 mStats.setSamplingInterval(samplingInterval); in setSamplingInterval()
[all …]
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp128 mStats->addFrameSize(bufferInfo->size); in onOutputAvailable()
169 int64_t sTime = mStats->getCurTime(); in deInitCodec()
172 int64_t eTime = mStats->getCurTime(); in deInitCodec()
173 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in deInitCodec()
174 mStats->setDeInitTime(timeTaken); in deInitCodec()
178 if (mStats) mStats->reset(); in resetEncoder()
188 mStats->dumpStatistics(operation, inputReference, durationUs, componentName, mode, statsFile); in dumpStatistics()
221 int64_t sTime = mStats->getCurTime(); in encode()
224 int64_t eTime = mStats->getCurTime(); in encode()
225 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in encode()
[all …]
DC2Encoder.cpp70 int64_t sTime = mStats->getCurTime(); in createCodec2Component()
84 int64_t eTime = mStats->getCurTime(); in createCodec2Component()
85 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in createCodec2Component()
86 mStats->setInitTime(timeTaken); in createCodec2Component()
139 mStats->setStartTime(); in encodeFrames()
147 mStats->addInputTime(); in encodeFrames()
219 mStats->addFrameSize(frameSize); in encodeFrames()
245 int64_t sTime = mStats->getCurTime(); in deInitCodec()
249 int64_t eTime = mStats->getCurTime(); in deInitCodec()
250 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in deInitCodec()
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DFrameTimingStats.java62 private final long[] mStats; field in FrameTimingStats
65 mStats = Arrays.copyOf(stats, Index.FRAME_STATS_COUNT); in FrameTimingStats()
69 mStats = new long[Index.FRAME_STATS_COUNT]; in FrameTimingStats()
74 for (int i = 0; i < mStats.length; i++) { in update()
75 mStats[i] = inputStream.readLong(); in update()
80 return mStats[index]; in get()
84 return mStats; in data()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DLooperStatsPerfTest.java45 private LooperStats mStats; field in LooperStatsPerfTest
52 mStats = new LooperStats(1, DISTINCT_MESSAGE_COUNT - 1); in setUp()
54 mStats.setDeviceState(mDeviceState.getReadonlyClient()); in setUp()
70 mStats.setSamplingInterval(1); in timeHundredPercentSampling()
76 mStats.setSamplingInterval(100); in timeOnePercentSampling()
91 Object token = mStats.messageDispatchStarting(); in runScenario()
92 mStats.messageDispatched(token, mMessages[i]); in runScenario()
/frameworks/av/media/bufferpool/1.0/
DAccessorImpl.cpp221 mBufferPool.mStats.onBufferFetched(); in fetch()
257 this, mStats.mBuffersCached, mStats.mSizeCached >> 20, in ~BufferPool()
258 mStats.mBuffersInUse, percentage(mStats.mBuffersInUse, mStats.mBuffersCached), in ~BufferPool()
259 mStats.mTotalAllocations, percentage(mStats.mTotalRecycles, mStats.mTotalAllocations), in ~BufferPool()
260 mStats.mTotalTransfers, in ~BufferPool()
261 percentage(mStats.mTotalTransfers - mStats.mTotalFetches, mStats.mTotalTransfers)); in ~BufferPool()
284 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
320 mStats.onBufferSent(); in handleTransferTo()
334 mStats.onBufferSent(); in handleTransferFrom()
366 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleTransferResult()
[all …]
/frameworks/base/core/java/android/hardware/display/
DAmbientBrightnessDayStats.java49 private final float[] mStats; field in AmbientBrightnessDayStats
93 mStats = stats; in AmbientBrightnessDayStats()
107 return mStats; in getStats()
123 mStats = source.createFloatArray(); in AmbientBrightnessDayStats()
153 other.mBucketBoundaries) && Arrays.equals(mStats, other.mStats); in equals()
162 result = result * prime + Arrays.hashCode(mStats); in hashCode()
177 statsString.append(mStats[i]); in toString()
194 dest.writeFloatArray(mStats); in writeToParcel()
208 mStats[bucketIndex] += durationSec; in log()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DStorageStatsSource.java116 private StorageStats mStats; field in StorageStatsSource.AppStorageStatsImpl
119 mStats = stats; in AppStorageStatsImpl()
123 return mStats.getCodeBytes(); in getCodeBytes()
127 return mStats.getDataBytes(); in getDataBytes()
131 return mStats.getCacheBytes(); in getCacheBytes()
135 return mStats.getAppBytes() + mStats.getDataBytes(); in getTotalBytes()
/frameworks/av/media/tests/benchmark/src/native/muxer/
DMuxer.h36 Muxer() : mFormat(nullptr), mMuxer(nullptr), mStats(nullptr) { mExtractor = new Extractor(); } in Muxer()
39 if (mStats) delete mStats; in ~Muxer() local
43 Stats *getStats() { return mStats; } in getStats()
60 Stats *mStats; variable
/frameworks/base/tests/benchmarks/src/com/android/server/net/
DNetworkStatsFactoryBenchmark.java27 private File mStats; field in NetworkStatsFactoryBenchmark
33 mStats = new File("/proc/net/xt_qtaguid/stats"); in setUp()
38 mStats = null; in tearDown()
43 NetworkStatsFactory.javaReadNetworkStatsDetail(mStats, NetworkStats.UID_ALL, in timeReadNetworkStatsDetailJava()
54 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL, in timeReadNetworkStatsDetailNative()
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.cpp251 mBufferPool.mStats.onBufferFetched(); in fetch()
327 this, mStats.mBuffersCached, mStats.mSizeCached >> 20, in ~BufferPool()
328 mStats.mBuffersInUse, percentage(mStats.mBuffersInUse, mStats.mBuffersCached), in ~BufferPool()
329 mStats.mTotalAllocations, percentage(mStats.mTotalRecycles, mStats.mTotalAllocations), in ~BufferPool()
330 mStats.mTotalTransfers, in ~BufferPool()
331 percentage(mStats.mTotalTransfers - mStats.mTotalFetches, mStats.mTotalTransfers)); in ~BufferPool()
461 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
464 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
465 mStats.onBufferEvicted(iter->second->mAllocSize); in handleReleaseBuffer()
503 mStats.onBufferSent(); in handleTransferTo()
[all …]
/frameworks/av/media/tests/benchmark/src/native/common/
DBenchmarkCommon.h76 CallBackHandle() : mSawError(false), mIsDone(false), mStats(nullptr) { in CallBackHandle()
77 mStats = new Stats(); in CallBackHandle()
82 if (mStats) delete mStats; in ~CallBackHandle() local
107 Stats *getStats() { return mStats; } in getStats()
117 Stats *mStats;
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java81 private BatteryStats mStats; field in BatteryStatsHelper
263 mStats = null; in clearStats()
268 if (mStats == null) { in getStats()
271 return mStats; in getStats()
288 mStats = stats; in create()
294 mStats = sStatsXfer; in create()
304 sStatsXfer = mStats; in storeState()
390 if (mStats == null) { in refreshStats()
410 mMobileRadioPowerCalculator = new MobileRadioPowerCalculator(mPowerProfile, mStats); in refreshStats()
412 mMobileRadioPowerCalculator.reset(mStats); in refreshStats()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java97 private ArrayMap<Key, NetworkStatsHistory> mStats = new ArrayMap<>(); field in NetworkStatsCollection
116 mStats.clear(); in reset()
224 for (int i = 0; i < mStats.size(); i++) { in getRelevantUids()
225 final Key key = mStats.keyAt(i); in getRelevantUids()
292 for (int i = 0; i < mStats.size(); i++) { in getHistory()
293 final Key key = mStats.keyAt(i); in getHistory()
296 final NetworkStatsHistory value = mStats.valueAt(i); in getHistory()
367 for (int i = 0; i < mStats.size(); i++) { in getSummary()
368 final Key key = mStats.keyAt(i); in getSummary()
372 final NetworkStatsHistory value = mStats.valueAt(i); in getSummary()
[all …]
/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()

123