/frameworks/base/core/java/android/util/ |
D | Rational.java | 105 public Rational(int numerator, int denominator) { in Rational() argument 107 if (denominator < 0) { in Rational() 109 denominator = -denominator; 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() 126 int gcd = gcd(numerator, denominator); in Rational() 129 mDenominator = denominator / gcd; in Rational() 310 public static int gcd(int numerator, int denominator) { in gcd() argument 319 int b = denominator; in gcd()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | ColorSpaceTransform.java | 143 int denominator = mElements[(row * COLUMNS + column) * RATIONAL_SIZE + OFFSET_DENOMINATOR]; in getElement() local 145 return new Rational(numerator, denominator); in getElement() 171 int denominator = mElements[j + OFFSET_DENOMINATOR]; in copyElements() local 173 destination[i + offset] = new Rational(numerator, denominator); in copyElements() 230 int denominator = mElements[j + OFFSET_DENOMINATOR]; in equals() local 233 Rational r = new Rational(numerator, denominator); in equals() 281 int denominator = mElements[i + OFFSET_DENOMINATOR]; in toShortString() local 284 sb.append(denominator); in toShortString()
|
/frameworks/base/core/java/android/text/style/ |
D | TtsSpan.java | 908 long denominator) { in FractionBuilder() argument 912 setDenominator(denominator); in FractionBuilder() 961 public FractionBuilder setDenominator(long denominator) { in setDenominator() argument 962 return setDenominator(String.valueOf(denominator)); in setDenominator() 971 public FractionBuilder setDenominator(String denominator) { in setDenominator() argument 972 return setStringArgument(TtsSpan.ARG_DENOMINATOR, denominator); in setDenominator() 1067 public MeasureBuilder setDenominator(long denominator) { in setDenominator() argument 1068 return setDenominator(String.valueOf(denominator)); in setDenominator() 1077 public MeasureBuilder setDenominator(String denominator) { in setDenominator() argument 1078 return setStringArgument(TtsSpan.ARG_DENOMINATOR, denominator); in setDenominator()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | ExifUtils.cpp | 215 uint32_t denominator, const std::string& msg); 218 int32_t denominator, const std::string& msg); 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) \ 669 uint32_t numerator, denominator; in setSubjectDistance() local 674 denominator = kRationalPrecision; in setSubjectDistance() 685 denominator = 1; in setSubjectDistance() 688 SET_RATIONAL(EXIF_IFD_EXIF, EXIF_TAG_SUBJECT_DISTANCE, numerator, denominator); in setSubjectDistance() [all …]
|
D | TagMonitor.cpp | 303 int32_t denominator = *(int32_t*)(data_ptr + index + 4); in printData() local 305 numerator, denominator); in printData()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | Rational.java | 34 public Rational(long nominator, long denominator) { in Rational() argument 36 mDenominator = denominator; in Rational()
|
/frameworks/base/tests/JankBench/scripts/external/ |
D | statistics.py | 230 return (x.numerator, x.denominator) 282 if issubclass(T, int) and value.denominator != 1: 289 return T(value.numerator)/T(value.denominator)
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryablePrimitive.java | 139 int denominator = buffer.getInt(); in unmarshalObject() local 140 return new Rational(numerator, denominator); in unmarshalObject()
|
/frameworks/rs/script_api/include/ |
D | rs_math.rsh | 479 * Returns the inverse tangent of (numerator / denominator), in radians. 485 * denominator: Denominator. Can be 0. 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/ |
D | NdkCameraMetadata.h | 84 int32_t denominator; member
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 581 public final long denominator; field in ExifInterface.Rational 583 private Rational(long numerator, long denominator) { in Rational() argument 585 if (denominator == 0) { in Rational() 587 this.denominator = 1; in Rational() 591 this.denominator = denominator; in Rational() 596 return numerator + "/" + denominator; in toString() 600 return (double) numerator / denominator; in calculate() 687 buffer.putInt((int) value.denominator); in createURational() 702 buffer.putInt((int) value.denominator); in createSRational() 793 final long denominator = inputStream.readUnsignedInt(); in getValue() local [all …]
|
/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() 494 mutateField(r, "mDenominator", denominator); in createIllegalRational()
|
/frameworks/base/core/jni/ |
D | android_hardware_camera2_DngCreator.cpp | 1522 uint32_t denominator = 1000000000; in DngCreator_setup() local 1525 denominator >>= 1; in DngCreator_setup() 1526 if (denominator == 0) { in DngCreator_setup() 1534 uint32_t exposure[] = { static_cast<uint32_t>(exposureTime), denominator }; in DngCreator_setup() 1664 colorTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup() 1678 colorTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup() 1697 calibrationTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup() 1712 calibrationTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup() 1731 forwardTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup() 1746 forwardTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup() [all …]
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 607 float denominator = Sxx*Sx2x2 - Sxx2*Sxx2; in solveUnweightedLeastSquaresDeg2() local 608 if (denominator == 0) { in solveUnweightedLeastSquaresDeg2() 614 float a = numerator / denominator; in solveUnweightedLeastSquaresDeg2() 618 float b = numerator / denominator; in solveUnweightedLeastSquaresDeg2()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ProcessCpuTracker.java | 823 private void printRatio(PrintWriter pw, long numerator, long denominator) { 824 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/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 207 uint32_t denominator(void) { return _d; } in denominator() function in Rational 1143 dfDim = HwcTestDim(selected.denominator(), dfMin.height()); in scHScale() 1242 dfDim = HwcTestDim(dfMin.width(), selected.denominator()); in scVScale()
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | Parameters.cpp | 815 exposureCompensationStep.data.r[0].denominator); in initialize()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 30760 field public static final java.lang.String ARG_DENOMINATOR = "android.arg.denominator";
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 48380 field public static final String ARG_DENOMINATOR = "android.arg.denominator";
|
/frameworks/base/api/ |
D | current.txt | 48524 field public static final String ARG_DENOMINATOR = "android.arg.denominator";
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 35893 Landroid/media/ExifInterface$Rational;->denominator:J
|