/frameworks/base/core/java/android/util/ |
D | Rational.java | 107 public Rational(int numerator, int denominator) { in Rational() argument 110 numerator = -numerator; in Rational() 115 if (denominator == 0 && numerator > 0) { in Rational() 118 } else if (denominator == 0 && numerator < 0) { in Rational() 121 } else if (denominator == 0 && numerator == 0) { in Rational() 124 } else if (numerator == 0) { in Rational() 128 int gcd = gcd(numerator, denominator); in Rational() 130 mNumerator = numerator / gcd; in Rational() 312 public static int gcd(int numerator, int denominator) { in gcd() argument 320 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/native/libs/battery/ |
D | LongArrayMultiStateCounter.cpp | 48 const std::vector<uint64_t>& value2, const uint64_t numerator, in add() argument 50 if (numerator != denominator) { in add() 53 (*value1)[i] += value2[i] * numerator / denominator; in add()
|
D | MultiStateCounterTest.cpp | 34 void DoubleMultiStateCounter::add(double* value1, const double& value2, const uint64_t numerator, in add() argument 36 if (numerator != denominator) { in add() 38 *value1 += value2 * numerator / denominator; in add()
|
D | MultiStateCounter.h | 105 void add(T* value1, const T& value2, const uint64_t numerator,
|
/frameworks/av/media/libaaudio/src/flowgraph/resampler/ |
D | IntegerRatio.h | 31 IntegerRatio(int32_t numerator, int32_t denominator) in IntegerRatio() argument 32 : mNumerator(numerator), mDenominator(denominator) {} in IntegerRatio()
|
/frameworks/base/libs/hwui/effects/ |
D | StretchEffect.cpp | 249 float numerator = (-input * overscroll * overscroll) - in reverseMapStart() local 253 return -(numerator / denominator); in reverseMapStart() 265 float numerator = (.3f * overscroll * overscroll) - in reverseMapEnd() local 271 return numerator / denominator; in reverseMapEnd()
|
/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/av/services/camera/libcameraservice/utils/ |
D | ExifUtils.cpp | 214 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 …]
|
D | TagMonitor.cpp | 375 int32_t numerator = *(int32_t*)(data_ptr + index); in getEventDataString() local 377 returnStr.appendFormat("(%d / %d) ", numerator, denominator); in getEventDataString()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | LongArrayMultiStateCounterPerfTest.java | 129 private void add(long[] counter, long[] delta, long numerator, long denominator) { in add() argument 130 if (numerator != denominator) { in add() 132 counter[i] += delta[i] * numerator / denominator; in add()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_LongMultiStateCounter.cpp | 41 void LongMultiStateCounter::add(int64_t *value1, const int64_t &value2, const uint64_t numerator, in add() argument 43 if (numerator != denominator) { in add() 45 *value1 += value2 * numerator / denominator; in add()
|
D | android_hardware_camera2_DngCreator.cpp | 1732 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup() 1746 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup() 1765 calibrationTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup() 1780 calibrationTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup() 1799 forwardTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup() 1814 forwardTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup() 1833 static_cast<uint32_t>(entry.data.r[i].numerator); in DngCreator_setup()
|
/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/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | ProgramInfoCache.java | 230 private static int roundUpFraction(int numerator, int denominator) { in roundUpFraction() argument 231 return (numerator / denominator) + (numerator % denominator > 0 ? 1 : 0); in roundUpFraction()
|
/frameworks/av/camera/ndk/include/camera/ |
D | NdkCameraMetadata.h | 85 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/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 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/ |
D | statistics.py | 230 return (x.numerator, x.denominator) 289 return T(value.numerator)/T(value.denominator)
|
/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/media/java/android/media/ |
D | ExifInterface.java | 701 public final long numerator; field in ExifInterface.Rational 704 private Rational(long numerator, long denominator) { in Rational() argument 707 this.numerator = 0; in Rational() 711 this.numerator = numerator; in Rational() 717 return numerator + "/" + denominator; in toString() 721 return (double) numerator / denominator; in calculate() 807 buffer.putInt((int) value.numerator); in createURational() 822 buffer.putInt((int) value.numerator); in createSRational() 913 final long numerator = inputStream.readUnsignedInt(); in getValue() local 915 values[i] = new Rational(numerator, denominator); in getValue() [all …]
|
/frameworks/av/media/extractors/ogg/ |
D | OggExtractor.cpp | 989 size_t numerator = mTableOfContents.size(); in buildTableOfContents() local 991 if (numerator > kMaxNumTOCEntries) { in buildTableOfContents() 992 size_t denom = numerator - kMaxNumTOCEntries; in buildTableOfContents() 997 if (accum >= numerator) { in buildTableOfContents() 999 accum -= numerator; in buildTableOfContents()
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 598 float numerator = Sx2y*Sxx - Sxy*Sxx2; in solveUnweightedLeastSquaresDeg2() local 599 float a = numerator / denominator; in solveUnweightedLeastSquaresDeg2() 602 numerator = Sxy*Sx2x2 - Sx2y*Sxx2; in solveUnweightedLeastSquaresDeg2() 603 float b = numerator / denominator; in solveUnweightedLeastSquaresDeg2()
|
/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/base/core/java/com/android/internal/os/ |
D | ProcessCpuTracker.java | 886 private void printRatio(PrintWriter pw, long numerator, long denominator) { 887 long thousands = (numerator*1000)/denominator;
|