Home
last modified time | relevance | path

Searched refs:numerator (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/java/android/util/
DRational.java101 public Rational(int numerator, int denominator) { in Rational() argument
104 numerator = -numerator; in Rational()
109 if (denominator == 0 && numerator > 0) { in Rational()
112 } else if (denominator == 0 && numerator < 0) { in Rational()
115 } else if (denominator == 0 && numerator == 0) { in Rational()
118 } else if (numerator == 0) { in Rational()
122 int gcd = gcd(numerator, denominator); in Rational()
124 mNumerator = numerator / gcd; in Rational()
306 public static int gcd(int numerator, int denominator) { in gcd() argument
314 int a = numerator; in gcd()
/frameworks/base/core/java/android/hardware/camera2/params/
DColorSpaceTransform.java142 int numerator = mElements[(row * COLUMNS + column) * RATIONAL_SIZE + OFFSET_NUMERATOR]; in getElement() local
145 return new Rational(numerator, denominator); in getElement()
170 int numerator = mElements[j + OFFSET_NUMERATOR]; in copyElements() local
173 destination[i + offset] = new Rational(numerator, denominator); in copyElements()
229 int numerator = mElements[j + OFFSET_NUMERATOR]; in equals() local
233 Rational r = new Rational(numerator, denominator); in equals()
280 int numerator = mElements[i + OFFSET_NUMERATOR]; in toShortString() local
282 sb.append(numerator); in toShortString()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java897 long numerator, in FractionBuilder() argument
901 setNumerator(numerator); in FractionBuilder()
931 public FractionBuilder setNumerator(long numerator) { in setNumerator() argument
932 return setNumerator(String.valueOf(numerator)); in setNumerator()
941 public FractionBuilder setNumerator(String numerator) { in setNumerator() argument
942 return setStringArgument(TtsSpan.ARG_NUMERATOR, numerator); in setNumerator()
1037 public MeasureBuilder setNumerator(long numerator) { in setNumerator() argument
1038 return setNumerator(String.valueOf(numerator)); in setNumerator()
1047 public MeasureBuilder setNumerator(String numerator) { in setNumerator() argument
1048 return setStringArgument(TtsSpan.ARG_NUMERATOR, numerator); in setNumerator()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryablePrimitive.java140 int numerator = buffer.getInt(); in unmarshalObject() local
142 return new Rational(numerator, denominator); in unmarshalObject()
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp207 uint32_t numerator(void) { return _n; } in numerator() function in Rational
209 void setNumerator(uint32_t numerator) { _n = numerator; } in setNumerator() argument
1142 scDim = HwcTestDim(selected.numerator(), scMin.height()); in scHScale()
1241 scDim = HwcTestDim(scMin.width(), selected.numerator()); in scVScale()
1374 if ((val.numerator() < nRange.lower()) in double2Rational()
1375 || (val.numerator() > nRange.upper())) { continue; } in double2Rational()
1381 val.setNumerator(val.numerator() + 1); in double2Rational()
1382 if (val.numerator() > nRange.upper()) { continue; } in double2Rational()
/frameworks/av/media/libstagefright/
DOggExtractor.cpp687 size_t numerator = mTableOfContents.size(); in buildTableOfContents() local
689 if (numerator > kMaxNumTOCEntries) { in buildTableOfContents()
690 size_t denom = numerator - kMaxNumTOCEntries; in buildTableOfContents()
695 if (accum >= numerator) { in buildTableOfContents()
697 accum -= numerator; in buildTableOfContents()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java491 private static Rational createIllegalRational(int numerator, int denominator) { in createIllegalRational() argument
492 Rational r = new Rational(numerator, denominator); in createIllegalRational()
493 mutateField(r, "mNumerator", numerator); in createIllegalRational()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1234 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_init()
1248 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_init()
1267 calibrationTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_init()
1282 calibrationTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_init()
1301 forwardTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_init()
1316 forwardTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_init()
1335 static_cast<uint32_t>(entry.data.r[i].numerator); in DngCreator_init()
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java774 private void printRatio(PrintWriter pw, long numerator, long denominator) {
775 long thousands = (numerator*1000)/denominator;
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp775 (float)exposureCompensationStep.data.r[0].numerator / in initialize()
/frameworks/base/api/
Dsystem-current.txt33007 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
Dcurrent.txt30774 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";