Home
last modified time | relevance | path

Searched refs:numerator (Results 1 – 21 of 21) 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/media/jni/
Dandroid_media_ExifInterface.cpp181 if (image_data.exposure_time.numerator != 0 in getRawAttributes()
184 (double)image_data.exposure_time.numerator in getRawAttributes()
196 if (image_data.fnumber.numerator != 0 in getRawAttributes()
199 (double)image_data.fnumber.numerator in getRawAttributes()
204 if (image_data.focal_length.numerator != 0 in getRawAttributes()
210 image_data.focal_length.numerator, in getRawAttributes()
222 image_data.gps.latitude[0].numerator, in getRawAttributes()
224 image_data.gps.latitude[1].numerator, in getRawAttributes()
226 image_data.gps.latitude[2].numerator, in getRawAttributes()
244 image_data.gps.longitude[0].numerator, in getRawAttributes()
[all …]
/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/base/media/java/android/media/
DExifInterface.java415 public final long numerator; field in ExifInterface.Rational
418 private Rational(long numerator, long denominator) { in Rational() argument
421 this.numerator = 0; in Rational()
425 this.numerator = numerator; in Rational()
431 return numerator + "/" + denominator; in toString()
435 return (double) numerator / denominator; in calculate()
513 buffer.putInt((int) value.numerator); in createURational()
528 buffer.putInt((int) value.numerator); in createSRational()
619 final long numerator = inputStream.readUnsignedInt(); in getValue() local
621 values[i] = new Rational(numerator, denominator); in getValue()
[all …]
/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/scriptc/
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/include/camera/ndk/
DNdkCameraMetadata.h79 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
1140 scDim = HwcTestDim(selected.numerator(), scMin.height()); in scHScale()
1239 scDim = HwcTestDim(scMin.width(), selected.numerator()); in scVScale()
1372 if ((val.numerator() < nRange.lower()) in double2Rational()
1373 || (val.numerator() > nRange.upper())) { continue; } in double2Rational()
1379 val.setNumerator(val.numerator() + 1); in double2Rational()
1380 if (val.numerator() > nRange.upper()) { continue; } in double2Rational()
/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/libstagefright/
DOggExtractor.cpp879 size_t numerator = mTableOfContents.size(); in buildTableOfContents() local
881 if (numerator > kMaxNumTOCEntries) { in buildTableOfContents()
882 size_t denom = numerator - kMaxNumTOCEntries; in buildTableOfContents()
887 if (accum >= numerator) { in buildTableOfContents()
889 accum -= numerator; in buildTableOfContents()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1460 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1474 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1493 calibrationTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1508 calibrationTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1527 forwardTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1542 forwardTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1561 static_cast<uint32_t>(entry.data.r[i].numerator); in DngCreator_setup()
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Drs_math.jd1707 <td>float atan2(float numerator, float denominator);
1712 …t2</a> atan2(<a href='rs_value_types.html#android_rs:float2'>float2</a> numerator, <a href='rs_val…
1717 …t3</a> atan2(<a href='rs_value_types.html#android_rs:float3'>float3</a> numerator, <a href='rs_val…
1722 …t4</a> atan2(<a href='rs_value_types.html#android_rs:float4'>float4</a> numerator, <a href='rs_val…
1730 <tr><th>numerator</th><td>Numerator.</td></tr>
1735 <p> Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians.
1752 <td>float atan2pi(float numerator, float denominator);
1757 …</a> atan2pi(<a href='rs_value_types.html#android_rs:float2'>float2</a> numerator, <a href='rs_val…
1762 …</a> atan2pi(<a href='rs_value_types.html#android_rs:float3'>float3</a> numerator, <a href='rs_val…
1767 …</a> atan2pi(<a href='rs_value_types.html#android_rs:float4'>float4</a> numerator, <a href='rs_val…
[all …]
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java787 private void printRatio(PrintWriter pw, long numerator, long denominator) {
788 long thousands = (numerator*1000)/denominator;
/frameworks/rs/api/
Drs_math.spec341 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians.
366 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians, divided by pi.
1023 Returns the remainder of (numerator / denominator), where the quotient is rounded towards zero.
1990 Returns the approximate inverse tangent of <code>(numerator / denominator)</code>, in radians.
2017 Returns the approximate inverse tangent of <code>(numerator / denominator)</code>,
2873 Returns the remainder of (numerator / denominator), where the quotient is rounded towards
2901 Returns the quotient and the remainder of (numerator / denominator).
/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp790 (float)exposureCompensationStep.data.r[0].numerator / in initialize()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30774 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
/frameworks/base/api/
Dcurrent.txt39400 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
Dtest-current.txt39479 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
Dsystem-current.txt42400 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";