Home
last modified time | relevance | path

Searched refs:mSamples (Results 1 – 11 of 11) sorted by relevance

/frameworks/native/libs/input/tests/
DInputEvent_test.cpp279 std::array<Sample, 3> mSamples{}; member in android::MotionEventTest
297 mSamples[0].pointerCoords[0].clear(); in SetUp()
298 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_X, 10); in SetUp()
299 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_Y, 11); in SetUp()
300 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, 12); in SetUp()
301 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_SIZE, 13); in SetUp()
302 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR, 14); in SetUp()
303 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR, 15); in SetUp()
304 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR, 16); in SetUp()
305 mSamples[0].pointerCoords[0].setAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR, 17); in SetUp()
[all …]
/frameworks/base/services/core/java/com/android/server/powerstats/
DIntervalRandomNoiseGenerator.java35 private final double[] mSamples = new double[DISTRIBUTION_SAMPLE_SIZE]; field in IntervalRandomNoiseGenerator
65 double sample = mSamples[stickyKey % DISTRIBUTION_SAMPLE_SIZE]; in addNoise()
72 mSamples[stickyKey % DISTRIBUTION_SAMPLE_SIZE] = sample; in addNoise()
81 Arrays.fill(mSamples, UNINITIALIZED); in refresh()
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/
DMediaTrackTranscoderBenchmark.cpp149 if (mSamples.size() == mSampleCount || in selectTrack()
150 (mSamples.size() >= targetBufferCount && info.flags & SAMPLE_FLAG_SYNC_SAMPLE)) { in selectTrack()
161 mSamples.emplace_back(std::move(buffer), info); in selectTrack()
166 mFirstPtsUs = mSamples[0].second.presentationTimeUs; in selectTrack()
167 mPtsDiff = mSamples[1].second.presentationTimeUs - mSamples[0].second.presentationTimeUs; in selectTrack()
193 *info = mSamples[mCurrentSampleIndex % mSamples.size()].second; in getSampleInfoForTrack()
204 auto& p = mSamples[mCurrentSampleIndex % mSamples.size()]; in readSampleDataForTrack()
224 std::vector<std::pair<std::unique_ptr<uint8_t[]>, MediaSampleInfo>> mSamples; member in MockSampleReader
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp478 auto it = info->mSamples.begin(); in releaseTrackSamples()
479 while (it != info->mSamples.end()) { in releaseTrackSamples()
483 it = info->mSamples.erase(it); in releaseTrackSamples()
513 if (err != OK && err != ERROR_END_OF_STREAM && info->mSamples.empty()) { in fetchAllTrackSamples()
517 if (info->mSamples.empty()) { in fetchAllTrackSamples()
525 auto it = info->mSamples.begin(); in fetchAllTrackSamples()
526 auto itMin = minInfo->mSamples.begin(); in fetchAllTrackSamples()
548 } else if (info->mFinalResult != OK || !info->mSamples.empty()) { in fetchTrackSamples()
583 info->mSamples.emplace_back(mbuf, timeUs); in fetchTrackSamples()
617 if (info == NULL || info->mSamples.empty()) { in advance()
[all …]
DMPEG4Writer.cpp2797 while (!chunk->mSamples.empty()) { in writeChunkToFile()
2798 List<MediaBuffer *>::iterator it = chunk->mSamples.begin(); in writeChunkToFile()
2820 chunk->mSamples.erase(it); in writeChunkToFile()
2822 chunk->mSamples.clear(); in writeChunkToFile()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/perf/
DLongStatsCollector.java69 private final int mSamples; field in LongStatsCollector.Stats
75 mSamples = samples; in Stats()
82 return mSamples; in getSampleCount()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java436 synchronized (watcher.mSamples) { in testTemperatureWatcherUpdateHeadroomThreshold()
445 synchronized (watcher.mSamples) { in testTemperatureWatcherUpdateHeadroomThreshold()
457 synchronized (watcher.mSamples) { in testTemperatureWatcherUpdateHeadroomThreshold()
490 synchronized (watcher.mSamples) { in testGetThermalHeadroomThresholdsOnDefaultHalResult()
505 synchronized (watcher.mSamples) { in testGetThermalHeadroomThresholdsOnDefaultHalResult()
545 watcher.mSamples.put("skin1", samples); in testTemperatureWatcherGetForecast()
590 synchronized (watcher.mSamples) { in isWatcherSamplesEmpty()
591 return watcher.mSamples.isEmpty(); in isWatcherSamplesEmpty()
/frameworks/base/services/core/java/com/android/server/power/
DThermalManagerService.java360 synchronized (mTemperatureWatcher.mSamples) { in onPullAtom()
577 synchronized (mTemperatureWatcher.mSamples) {
683 synchronized (mTemperatureWatcher.mSamples) { in dumpInternal()
1612 final ArrayMap<String, ArrayList<Sample>> mSamples = new ArrayMap<>(); field in ThermalManagerService.TemperatureWatcher
1629 synchronized (mSamples) { in updateThresholds()
1664 synchronized (mSamples) { in updateHeadroomThreshold()
1683 synchronized (mSamples) { in updateTemperature()
1692 mSamples.clear(); in updateTemperature()
1709 ArrayList<Sample> samples = mSamples.computeIfAbsent(temperature.getName(), in updateTemperature()
1768 synchronized (mSamples) { in getForecast()
[all …]
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaSampleReaderNDKTests.cpp97 mSamples.resize(mTrackCount); in SampleAccessTester()
126 mSamples[trackIndex].emplace_back(info.flags, info.presentationTimeUs, info.size, in readSamplesAsync()
156 std::vector<std::vector<Sample>>& getSamples() { return mSamples; } in getSamples()
162 std::vector<std::vector<Sample>> mSamples; member in android::SampleAccessTester
/frameworks/av/media/libstagefright/include/media/stagefright/
DMPEG4Writer.h167 List<MediaBuffer *> mSamples; // Sample data
173 : mTrack(track), mTimeStampUs(timeUs), mSamples(samples) {
DNuMediaExtractor.h132 std::list<Sample> mSamples; member