Searched refs:mRecords (Results 1 – 5 of 5) sorted by relevance
/hardware/google/pixel/power-libperfmgr/aidl/tests/ |
D | SessionRecordsTest.cpp | 36 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/ |
D | SessionRecords.cpp | 32 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()
|
D | SessionRecords.h | 57 std::vector<CycleRecord> mRecords; variable
|
/hardware/google/pixel/vibrator/common/ |
D | HardwareBase.h | 94 Records mRecords{RECORDS_SIZE}; 177 mRecords.emplace_back(std::make_unique<Record<T>>(func, value, stream)); in record() 178 mRecords.pop_front(); in record()
|
D | HardwareBase.cpp | 63 for (auto &r : mRecords) { in debug()
|