Home
last modified time | relevance | path

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

/hardware/google/graphics/common/libhwc2.1/libvrr/
DUtils.h57 struct Fraction { struct
61 Fraction(T num = 0, T denom = 1) : mNum(num), mDen(denom) { in mNum() argument
70 bool operator<(const Fraction<T>& other) const { return mNum * other.mDen < other.mNum * mDen; } argument
72 bool operator==(const Fraction<T>& other) const {
78 int64_t freqToDurationNs(Fraction<T> freq) { in freqToDurationNs()
/hardware/google/graphics/common/libhwc2.1/libvrr/RefreshRateCalculator/
DPeriodRefreshRateCalculator.cpp65 ++mStatistics[Fraction<int>(mVsyncRate, numVsync)]; in onPresentInternal()
94 Fraction<int> majorRefreshRate; in onMeasure()
DPeriodRefreshRateCalculator.h70 std::map<Fraction<int>, int> mStatistics;
/hardware/google/graphics/common/libhwc2.1/libvrr/Power/
DDisplayStateResidencyProvider.h50 static const std::set<Fraction<int>> kFpsMappingTable;
DDisplayStateResidencyProvider.cpp26 const std::set<Fraction<int>> DisplayStateResidencyProvider::kFpsMappingTable =
111 Fraction fps(teFrequency, displayPresentProfile.mNumVsync); in mapStatistics()