Home
last modified time | relevance | path

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

123

/frameworks/av/media/tests/benchmark/src/native/muxer/
DMuxer.cpp27 if (!mStats) mStats = new Stats(); in initMuxer()
29 int64_t sTime = mStats->getCurTime(); in initMuxer()
45 int64_t eTime = mStats->getCurTime(); in initMuxer()
46 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in initMuxer()
47 mStats->setInitTime(timeTaken); in initMuxer()
57 int64_t sTime = mStats->getCurTime(); in deInitMuxer()
60 int64_t eTime = mStats->getCurTime(); in deInitMuxer()
61 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in deInitMuxer()
62 mStats->setDeInitTime(timeTaken); in deInitMuxer()
66 if (mStats) mStats->reset(); in resetMuxer()
[all …]
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/services/core/java/com/android/server/am/
DBatteryStatsService.java192 final BatteryStatsImpl mStats; field in BatteryStatsService
430 mStats = new BatteryStatsImpl(mBatteryStatsConfig, Clock.SYSTEM_CLOCK, mMonotonicClock, in BatteryStatsService()
433 mWorker = new BatteryExternalStatsWorker(context, mStats); in BatteryStatsService()
434 mStats.setExternalStatsSyncLocked(mWorker); in BatteryStatsService()
435 mStats.setRadioScanningTimeoutLocked(mContext.getResources().getInteger( in BatteryStatsService()
438 mStats.startTrackingSystemServerCpuTime(); in BatteryStatsService()
446 new PowerStatsAggregator(mAggregatedPowerStatsConfig, mStats.getHistory())); in BatteryStatsService()
450 mStats.saveBatteryUsageStatsOnReset(mBatteryUsageStatsProvider, mPowerStatsStore); in BatteryStatsService()
467 return new PowerStatsScheduler(mStats::schedulePowerStatsSampleCollection, in createPowerStatsScheduler()
469 mStats.getHistory()), aggregatedPowerStatsSpanDuration, in createPowerStatsScheduler()
[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 …]
DEncoder.java42 private Stats mStats; field in Encoder
70 mStats = new Stats(); in Encoder()
94 public Stats getStats() { return mStats; }; in getStats()
208 long sTime = mStats.getCurTime(); in encode()
237 mStats.addInputTime(); in encode()
249 mStats.addOutputTime(); in encode()
273 long eTime = mStats.getCurTime(); in encode()
274 mStats.setInitTime(mStats.getTimeDiff(sTime, eTime)); in encode()
275 mStats.setStartTime(); in encode()
295 mStats.addInputTime(); in encode()
[all …]
DDecoder.java45 private Stats mStats; field in Decoder
69 public Decoder() { mStats = new Stats(); } in Decoder()
70 public Stats getStats() { return mStats; }; in getStats()
164 long sTime = mStats.getCurTime(); in decode()
179 mStats.addInputTime(); in decode()
190 mStats.addOutputTime(); in decode()
220 long eTime = mStats.getCurTime(); in decode()
221 mStats.setInitTime(mStats.getTimeDiff(sTime, eTime)); in decode()
222 mStats.setStartTime(); in decode()
243 mStats.addInputTime(); in decode()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsAggregator.java36 private AggregatedPowerStats mStats; field in PowerStatsAggregator
70 if (mStats == null) { in aggregatePowerStats()
71 mStats = new AggregatedPowerStats(mAggregatedPowerStatsConfig); in aggregatePowerStats()
74 start(mStats, startTimeMs); in aggregatePowerStats()
86 mStats.addClockUpdate(item.time, item.currentTime); in aggregatePowerStats()
93 mStats.addClockUpdate(item.time, item.currentTime); in aggregatePowerStats()
103 mStats.setDeviceState(AggregatedPowerStatsConfig.STATE_POWER, batteryState, in aggregatePowerStats()
113 mStats.setDeviceState(AggregatedPowerStatsConfig.STATE_SCREEN, screenState, in aggregatePowerStats()
124 mStats.noteStateChange(item); in aggregatePowerStats()
132 mStats.setUidState(item.processStateChange.uid, in aggregatePowerStats()
[all …]
DBatteryExternalStatsWorker.java102 private final BatteryStatsImpl mStats; field in BatteryExternalStatsWorker
201 mStats = stats; in BatteryExternalStatsWorker()
209 synchronized (mStats) { in systemServicesReady()
210 voltageMv = mStats.getBatteryVoltageMvLocked(); in systemServicesReady()
245 synchronized (mStats) { in systemServicesReady()
246 mStats.initEnergyConsumerStatsLocked(supportedStdBuckets, customBucketNames); in systemServicesReady()
283 scheduleRunnable(() -> mStats.postBatteryNeedsCpuUpdateMsg()); in scheduleCpuSyncDueToWakelockChange()
342 synchronized (mStats) { in scheduleCleanupDueToRemovedUser()
343 mStats.clearRemovedUserUidsLocked(userId); in scheduleCleanupDueToRemovedUser()
350 synchronized (mStats) { in scheduleCleanupDueToRemovedUser()
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DExtensionSessionStatsAggregator.java43 private final CameraExtensionSessionStats mStats; field in ExtensionSessionStatsAggregator
49 mStats = new CameraExtensionSessionStats(); in ExtensionSessionStatsAggregator()
50 mStats.key = ""; in ExtensionSessionStatsAggregator()
51 mStats.cameraId = cameraId; in ExtensionSessionStatsAggregator()
52 mStats.isAdvanced = isAdvanced; in ExtensionSessionStatsAggregator()
68 mStats.clientName = clientName; in setClientName()
85 mStats.captureFormat = format; in setCaptureFormat()
103 mStats.type = extensionType; in setExtensionType()
123 Log.v(TAG, "Committing: " + prettyPrintStats(mStats)); in commit()
125 mStats.key = CameraManager.reportExtensionSessionStats(mStats); in commit()
[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/base/services/core/java/com/android/server/
DLooperStatsService.java64 private final LooperStats mStats; field in LooperStatsService
72 this.mStats = stats; in LooperStatsService()
110 pw.println(DateFormat.format("yyyy-MM-dd HH:mm:ss", mStats.getStartTimeMillis())); in dump()
112 pw.println(mStats.getBatteryTimeMillis()); in dump()
113 final List<LooperStats.ExportedEntry> entries = mStats.getEntries(); in dump()
163 mStats.reset(); in setEnabled()
164 mStats.setAddDebugEntries(enabled); in setEnabled()
165 Looper.setObserver(enabled ? mStats : null); in setEnabled()
172 mStats.reset(); in setTrackScreenInteractive()
178 mStats.setIgnoreBatteryStatus(ignore); in setIgnoreBatteryStatus()
[all …]
/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/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.cpp72 int64_t sTime = mStats->getCurTime(); in createCodec2Component()
86 int64_t eTime = mStats->getCurTime(); in createCodec2Component()
87 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in createCodec2Component()
88 mStats->setInitTime(timeTaken); in createCodec2Component()
141 mStats->setStartTime(); in encodeFrames()
149 mStats->addInputTime(); in encodeFrames()
221 mStats->addFrameSize(frameSize); in encodeFrames()
246 int64_t sTime = mStats->getCurTime(); in deInitCodec()
250 int64_t eTime = mStats->getCurTime(); in deInitCodec()
251 int64_t timeTaken = mStats->getTimeDiff(sTime, eTime); in deInitCodec()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DCpuPowerStatsProcessorTest.java82 private MockPowerComponentAggregatedPowerStats mStats; field in CpuPowerStatsProcessorTest
96 mStats = new MockPowerComponentAggregatedPowerStats(mConfig, false); in powerProfileModel()
97 mStats.setDeviceStats( in powerProfileModel()
104 mStats.setDeviceStats( in powerProfileModel()
111 mStats.setDeviceStats( in powerProfileModel()
118 mStats.setUidStats(24, in powerProfileModel()
121 mStats.setUidStats(42, in powerProfileModel()
124 mStats.setUidStats(42, in powerProfileModel()
127 mStats.setUidStats(42, in powerProfileModel()
131 mProcessor.finish(mStats, 10_000); in powerProfileModel()
[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/module/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.java47 private final float[] mStats; field in AmbientBrightnessDayStats
91 mStats = stats; in AmbientBrightnessDayStats()
105 return mStats; in getStats()
121 mStats = source.createFloatArray(); in AmbientBrightnessDayStats()
151 other.mBucketBoundaries) && Arrays.equals(mStats, other.mStats); in equals()
160 result = result * prime + Arrays.hashCode(mStats); in hashCode()
175 statsString.append(mStats[i]); in toString()
192 dest.writeFloatArray(mStats); in writeToParcel()
206 mStats[bucketIndex] += durationSec; in log()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DStorageStatsSource.java122 private StorageStats mStats; field in StorageStatsSource.AppStorageStatsImpl
125 mStats = stats; in AppStorageStatsImpl()
129 return mStats.getAppBytes(); in getCodeBytes()
133 return mStats.getDataBytes(); in getDataBytes()
137 return mStats.getCacheBytes(); in getCacheBytes()
141 return mStats.getAppBytes() + mStats.getDataBytes(); in getTotalBytes()
/frameworks/av/media/module/bufferpool/2.0/
DAccessorImpl.cpp269 mBufferPool.mStats.onBufferFetched(); in fetch()
345 this, mStats.mBuffersCached, mStats.mSizeCached >> 20, in ~BufferPool()
346 mStats.mBuffersInUse, percentage(mStats.mBuffersInUse, mStats.mBuffersCached), in ~BufferPool()
347 mStats.mTotalAllocations, percentage(mStats.mTotalRecycles, mStats.mTotalAllocations), in ~BufferPool()
348 mStats.mTotalTransfers, in ~BufferPool()
349 percentage(mStats.mTotalTransfers - mStats.mTotalFetches, mStats.mTotalTransfers)); in ~BufferPool()
479 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
482 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
483 mStats.onBufferEvicted(iter->second->mAllocSize); in handleReleaseBuffer()
521 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;

123