Home
last modified time | relevance | path

Searched refs:mNumerator (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/util/
DRational.java84 private final int mNumerator; field in Rational
118 mNumerator = 1; // +Inf in Rational()
121 mNumerator = -1; // -Inf in Rational()
124 mNumerator = 0; // NaN in Rational()
127 mNumerator = 0; in Rational()
132 mNumerator = numerator / gcd; in Rational()
144 return mNumerator; in getNumerator()
169 return mDenominator == 0 && mNumerator == 0; in isNaN()
181 return mNumerator != 0 && mDenominator == 0; in isInfinite()
206 return isFinite() && mNumerator == 0; in isZero()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DRational.java25 private final long mNumerator; field in Rational
35 mNumerator = nominator; in Rational()
43 mNumerator = r.mNumerator; in Rational()
51 return mNumerator; in getNumerator()
66 return mNumerator / (double) mDenominator; in toDouble()
79 return mNumerator == data.mNumerator && mDenominator == data.mDenominator; in equals()
86 return mNumerator + "/" + mDenominator; in toString()
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DIntegerRatio.cpp30 if (mNumerator < prime || mDenominator < prime) { in reduce()
36 int top = mNumerator / prime; in reduce()
40 && (top * prime == mNumerator) // divided evenly? in reduce()
42 mNumerator = top; in reduce()
DIntegerRatio.h32 : mNumerator(numerator), mDenominator(denominator) {} in IntegerRatio()
40 return mNumerator; in getNumerator()
48 int32_t mNumerator;
DMultiChannelResampler.h228 mIntegerPhase += mNumerator; in advanceRead()
262 int32_t mNumerator = 0; variable
DMultiChannelResampler.cpp41 mNumerator = ratio.getNumerator(); in MultiChannelResampler()