Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DRational.java105 public Rational(int numerator, int denominator) { in Rational() argument
108 numerator = -numerator; in Rational()
113 if (denominator == 0 && numerator > 0) { in Rational()
116 } else if (denominator == 0 && numerator < 0) { in Rational()
119 } else if (denominator == 0 && numerator == 0) { in Rational()
122 } else if (numerator == 0) { in Rational()
126 int gcd = gcd(numerator, denominator); in Rational()
128 mNumerator = numerator / gcd; in Rational()
310 public static int gcd(int numerator, int denominator) { in gcd() argument
318 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.java907 long numerator, in FractionBuilder() argument
911 setNumerator(numerator); in FractionBuilder()
941 public FractionBuilder setNumerator(long numerator) { in setNumerator() argument
942 return setNumerator(String.valueOf(numerator)); in setNumerator()
951 public FractionBuilder setNumerator(String numerator) { in setNumerator() argument
952 return setStringArgument(TtsSpan.ARG_NUMERATOR, numerator); in setNumerator()
1047 public MeasureBuilder setNumerator(long numerator) { in setNumerator() argument
1048 return setNumerator(String.valueOf(numerator)); in setNumerator()
1057 public MeasureBuilder setNumerator(String numerator) { in setNumerator() argument
1058 return setStringArgument(TtsSpan.ARG_NUMERATOR, numerator); in setNumerator()
/frameworks/av/services/camera/libcameraservice/utils/
DExifUtils.cpp214 virtual bool setRational(ExifIfd ifd, ExifTag tag, uint32_t numerator,
217 virtual bool setSRational(ExifIfd ifd, ExifTag tag, int32_t numerator,
254 #define SET_RATIONAL(ifd, tag, numerator, denominator) \ argument
256 if (setRational(ifd, tag, numerator, denominator, #tag) == false) \
260 #define SET_SRATIONAL(ifd, tag, numerator, denominator) \ argument
262 if (setSRational(ifd, tag, numerator, denominator, #tag) == false) \
459 uint32_t numerator = static_cast<uint32_t>(std::round(focal_length * kRationalPrecision)); in setFocalLength() local
460 SET_RATIONAL(EXIF_IFD_EXIF, EXIF_TAG_FOCAL_LENGTH, numerator, kRationalPrecision); in setFocalLength()
669 uint32_t numerator, denominator; in setSubjectDistance() local
673 numerator = static_cast<uint32_t>(std::round(focusDistance * kRationalPrecision)); in setSubjectDistance()
[all …]
DTagMonitor.cpp302 int32_t numerator = *(int32_t*)(data_ptr + index); in printData() local
305 numerator, denominator); in printData()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryablePrimitive.java138 int numerator = buffer.getInt(); in unmarshalObject() local
140 return new Rational(numerator, denominator); in unmarshalObject()
/frameworks/rs/script_api/include/
Drs_math.rsh479 * Returns the inverse tangent of (numerator / denominator), in radians.
484 * numerator: Numerator.
488 atan2(float numerator, float denominator);
491 atan2(float2 numerator, float2 denominator);
494 atan2(float3 numerator, float3 denominator);
497 atan2(float4 numerator, float4 denominator);
501 atan2(half numerator, half denominator);
506 atan2(half2 numerator, half2 denominator);
511 atan2(half3 numerator, half3 denominator);
516 atan2(half4 numerator, half4 denominator);
[all …]
/frameworks/av/camera/ndk/include/camera/
DNdkCameraMetadata.h83 int32_t numerator; member
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp206 uint32_t numerator(void) { return _n; } in numerator() function in Rational
208 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/base/tests/JankBench/scripts/external/
Dstatistics.py230 return (x.numerator, x.denominator)
289 return T(value.numerator)/T(value.denominator)
/frameworks/base/media/java/android/media/
DExifInterface.java580 public final long numerator; field in ExifInterface.Rational
583 private Rational(long numerator, long denominator) { in Rational() argument
586 this.numerator = 0; in Rational()
590 this.numerator = numerator; in Rational()
596 return numerator + "/" + denominator; in toString()
600 return (double) numerator / denominator; in calculate()
686 buffer.putInt((int) value.numerator); in createURational()
701 buffer.putInt((int) value.numerator); in createSRational()
792 final long numerator = inputStream.readUnsignedInt(); in getValue() local
794 values[i] = new Rational(numerator, denominator); in getValue()
[all …]
/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/av/media/extractors/ogg/
DOggExtractor.cpp988 size_t numerator = mTableOfContents.size(); in buildTableOfContents() local
990 if (numerator > kMaxNumTOCEntries) { in buildTableOfContents()
991 size_t denom = numerator - kMaxNumTOCEntries; in buildTableOfContents()
996 if (accum >= numerator) { in buildTableOfContents()
998 accum -= numerator; in buildTableOfContents()
/frameworks/native/libs/input/
DVelocityTracker.cpp613 float numerator = Sx2y*Sxx - Sxy*Sxx2; in solveUnweightedLeastSquaresDeg2() local
614 float a = numerator / denominator; in solveUnweightedLeastSquaresDeg2()
617 numerator = Sxy*Sx2x2 - Sx2y*Sxx2; in solveUnweightedLeastSquaresDeg2()
618 float b = numerator / denominator; in solveUnweightedLeastSquaresDeg2()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1663 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1677 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1696 calibrationTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1711 calibrationTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1730 forwardTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1745 forwardTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1764 static_cast<uint32_t>(entry.data.r[i].numerator); in DngCreator_setup()
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java823 private void printRatio(PrintWriter pw, long numerator, long denominator) {
824 long thousands = (numerator*1000)/denominator;
/frameworks/rs/script_api/
Drs_math.spec355 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians.
380 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians, divided by pi.
1037 Returns the remainder of (numerator / denominator), where the quotient is rounded towards zero.
2004 Returns the approximate inverse tangent of <code>(numerator / denominator)</code>, in radians.
2031 Returns the approximate inverse tangent of <code>(numerator / denominator)</code>,
2887 Returns the remainder of (numerator / denominator), where the quotient is rounded towards
2915 Returns the quotient and the remainder of (numerator / denominator).
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp814 (float)exposureCompensationStep.data.r[0].numerator / in initialize()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30774 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
/frameworks/base/non-updatable-api/
Dcurrent.txt48394 field public static final String ARG_NUMERATOR = "android.arg.numerator";
/frameworks/base/api/
Dcurrent.txt48538 field public static final String ARG_NUMERATOR = "android.arg.numerator";
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt35894 Landroid/media/ExifInterface$Rational;->numerator:J