/frameworks/base/core/java/android/util/ |
D | Rational.java | 101 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/ |
D | ColorSpaceTransform.java | 142 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/ |
D | TtsSpan.java | 897 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/ |
D | MarshalQueryablePrimitive.java | 140 int numerator = buffer.getInt(); in unmarshalObject() local 142 return new Rational(numerator, denominator); in unmarshalObject()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 207 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/ |
D | OggExtractor.cpp | 687 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/ |
D | RationalTest.java | 491 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/ |
D | android_hardware_camera2_DngCreator.cpp | 1234 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/ |
D | ProcessCpuTracker.java | 774 private void printRatio(PrintWriter pw, long numerator, long denominator) { 775 long thousands = (numerator*1000)/denominator;
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.cpp | 775 (float)exposureCompensationStep.data.r[0].numerator / in initialize()
|
/frameworks/base/api/ |
D | system-current.txt | 33007 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
|
D | current.txt | 30774 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
|