Home
last modified time | relevance | path

Searched refs:mRecords (Results 1 – 5 of 5) sorted by relevance

/hardware/google/pixel/power-libperfmgr/aidl/tests/
DSessionRecordsTest.cpp36 mRecords = std::make_shared<SessionRecords>(kMaxNumOfRecords, kJankCheckTimeFactor); in SetUp()
59 std::shared_ptr<SessionRecords> mRecords; member in aidl::google::hardware::power::impl::pixel::SessionRecordsTest
63 ASSERT_EQ(0, mRecords->getNumOfRecords()); in TEST_F()
64 ASSERT_FALSE(mRecords->getMaxDuration().has_value()); in TEST_F()
65 ASSERT_FALSE(mRecords->getAvgDuration().has_value()); in TEST_F()
66 ASSERT_EQ(0, mRecords->getNumOfMissedCycles()); in TEST_F()
70 mRecords->addReportedDurations(fakeWorkDurations({3, 4, 3, 2}), MS_TO_NS(3)); in TEST_F()
71 ASSERT_EQ(4, mRecords->getNumOfRecords()); in TEST_F()
72 ASSERT_EQ(MS_TO_US(4), mRecords->getMaxDuration().value()); in TEST_F()
73 ASSERT_EQ(MS_TO_US(3), mRecords->getAvgDuration().value()); in TEST_F()
[all …]
/hardware/google/pixel/power-libperfmgr/aidl/
DSessionRecords.cpp32 mRecords.resize(maxNumOfRecords); in SessionRecords()
44 mSumOfDurationsUs -= mRecords[indexOfRecordToRemove].totalDurationUs; in addReportedDurations()
45 if (mRecords[indexOfRecordToRemove].isMissedCycle) { in addReportedDurations()
71 mRecords[mLatestRecordIndex] = CycleRecord{startIntervalUs, totalDurationUs, cycleMissed}; in addReportedDurations()
80 (mRecords[mRecordsIndQueue.back()].totalDurationUs <= totalDurationUs)) { in addReportedDurations()
94 return mRecords[mRecordsIndQueue.front()].totalDurationUs; in getMaxDuration()
120 return (mRecords[ind1].startIntervalUs >= cycleDurationThresholdUs) && in isLowFrameRate()
121 (mRecords[ind2].startIntervalUs >= cycleDurationThresholdUs) && in isLowFrameRate()
122 (mRecords[ind3].startIntervalUs >= cycleDurationThresholdUs); in isLowFrameRate()
DSessionRecords.h57 std::vector<CycleRecord> mRecords; variable
/hardware/google/pixel/vibrator/common/
DHardwareBase.h94 Records mRecords{RECORDS_SIZE};
177 mRecords.emplace_back(std::make_unique<Record<T>>(func, value, stream)); in record()
178 mRecords.pop_front(); in record()
DHardwareBase.cpp63 for (auto &r : mRecords) { in debug()