/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 | 907 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/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryablePrimitive.java | 138 int numerator = buffer.getInt(); in unmarshalObject() local 140 return new Rational(numerator, denominator); in unmarshalObject()
|
/frameworks/av/camera/include/camera/ndk/ |
D | NdkCameraMetadata.h | 81 int32_t numerator; member
|
/frameworks/rs/script_api/include/ |
D | rs_math.rsh | 479 * 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/base/media/java/android/media/ |
D | ExifInterface.java | 552 public final long numerator; field in ExifInterface.Rational 555 private Rational(long numerator, long denominator) { in Rational() argument 558 this.numerator = 0; in Rational() 562 this.numerator = numerator; in Rational() 568 return numerator + "/" + denominator; in toString() 572 return (double) numerator / denominator; in calculate() 650 buffer.putInt((int) value.numerator); in createURational() 665 buffer.putInt((int) value.numerator); in createSRational() 756 final long numerator = inputStream.readUnsignedInt(); in getValue() local 758 values[i] = new Rational(numerator, denominator); in getValue() [all …]
|
/frameworks/support/exifinterface/src/android/support/media/ |
D | ExifInterface.java | 517 public final long numerator; field in ExifInterface.Rational 520 private Rational(long numerator, long denominator) { in Rational() argument 523 this.numerator = 0; in Rational() 527 this.numerator = numerator; in Rational() 533 return numerator + "/" + denominator; in toString() 537 return (double) numerator / denominator; in calculate() 615 buffer.putInt((int) value.numerator); in createURational() 630 buffer.putInt((int) value.numerator); in createSRational() 721 final long numerator = inputStream.readUnsignedInt(); in getValue() local 723 values[i] = new Rational(numerator, denominator); in getValue() [all …]
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 206 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/av/services/camera/libcameraservice/utils/ |
D | TagMonitor.cpp | 280 int32_t numerator = *(int32_t*)(data_ptr + index); in printData() local 283 numerator, denominator); in printData()
|
/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/av/media/libstagefright/ |
D | OggExtractor.cpp | 893 size_t numerator = mTableOfContents.size(); in buildTableOfContents() local 895 if (numerator > kMaxNumTOCEntries) { in buildTableOfContents() 896 size_t denom = numerator - kMaxNumTOCEntries; in buildTableOfContents() 901 if (accum >= numerator) { in buildTableOfContents() 903 accum -= numerator; in buildTableOfContents()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 1478 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup() 1492 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup() 1511 calibrationTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup() 1526 calibrationTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup() 1545 forwardTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup() 1560 forwardTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup() 1579 static_cast<uint32_t>(entry.data.r[i].numerator); in DngCreator_setup()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ProcessCpuTracker.java | 805 private void printRatio(PrintWriter pw, long numerator, long denominator) { 806 long thousands = (numerator*1000)/denominator;
|
/frameworks/rs/script_api/ |
D | rs_math.spec | 355 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/ |
D | Parameters.cpp | 797 (float)exposureCompensationStep.data.r[0].numerator / in initialize()
|
/frameworks/data-binding/prebuilds/1.0-rc0/ |
D | databinding-studio-bundle.jar | META-INF/
META-INF/MANIFEST.MF
android/
android/databinding/
android/ ... |
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 30774 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
|
/frameworks/base/api/ |
D | current.txt | 42261 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
|
D | system-current.txt | 45798 field public static final java.lang.String ARG_NUMERATOR = "android.arg.numerator";
|