Home
last modified time | relevance | path

Searched refs:denominator (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/libs/binary_translation/tests/ndk_program_tests/
Ddiv_test.cc23 int denominator = 2; in TEST() local
24 div_t res = div(numerator, denominator); in TEST()
31 long denominator = 2; // NOLINT(runtime/int) in TEST() local
32 ldiv_t res = ldiv(numerator, denominator); in TEST()
39 long long denominator = 2; // NOLINT(runtime/int) in TEST() local
40 lldiv_t res = lldiv(numerator, denominator); in TEST()
47 intmax_t denominator = 2; in TEST() local
48 imaxdiv_t res = imaxdiv(numerator, denominator); in TEST()
/frameworks/base/core/java/android/util/
DRational.java109 public Rational(int numerator, int denominator) { in Rational() argument
111 if (denominator < 0) { in Rational()
113 denominator = -denominator; in Rational()
117 if (denominator == 0 && numerator > 0) { in Rational()
120 } else if (denominator == 0 && numerator < 0) { in Rational()
123 } else if (denominator == 0 && numerator == 0) { in Rational()
130 int gcd = gcd(numerator, denominator); in Rational()
133 mDenominator = denominator / gcd; in Rational()
314 public static int gcd(int numerator, int denominator) { in gcd() argument
323 int b = denominator; in gcd()
/frameworks/base/core/java/android/hardware/camera2/params/
DColorSpaceTransform.java143 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/native/libs/battery/
DLongArrayMultiStateCounter.cpp49 const uint64_t denominator) const { in add()
50 if (numerator != denominator) { in add()
53 (*value1)[i] += value2[i] * numerator / denominator; in add()
DMultiStateCounterTest.cpp35 const uint64_t denominator) const { in add()
36 if (numerator != denominator) { in add()
38 *value1 += value2 * numerator / denominator; in add()
/frameworks/base/libs/hwui/effects/
DStretchEffect.cpp251 float denominator = 1.f + (.3f * overscroll) + in reverseMapStart() local
253 return -(numerator / denominator); in reverseMapStart()
268 float denominator = (.7f * input * overscroll * overscroll) - in reverseMapEnd() local
271 return numerator / denominator; in reverseMapEnd()
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DIntegerRatio.h31 IntegerRatio(int32_t numerator, int32_t denominator) in IntegerRatio() argument
32 : mNumerator(numerator), mDenominator(denominator) {} in IntegerRatio()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java908 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/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DRational.java34 public Rational(long nominator, long denominator) { in Rational() argument
36 mDenominator = denominator; in Rational()
/frameworks/av/services/camera/libcameraservice/utils/
DExifUtils.cpp215 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 …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DLongArrayMultiStateCounterPerfTest.java129 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/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/
DTvPipBasicTest.kt74 infix fun Int.to(denominator: Int) = Rational(this, denominator) in <lambda>()
/frameworks/proto_logging/stats/atoms/art/
Dart_extension_atoms.proto107 // New metrics to support averages reported as sum (numerator) and count (denominator),
112 // denominator from ART_DATUM_GC_WORLD_STOP_TIME_AVG_MICROS
118 // denominator from ART_DATUM_GC_YOUNG_GENERATION_TRACING_THROUGHPUT_AVG_MB_PER_SEC
125 // denominator from ART_DATUM_GC_FULL_HEAP_TRACING_THROUGHPUT_AVG_MB_PER_SEC
149 // denominator from ART_DATUM_GC_WORLD_STOP_TIME_AVG_MICROS
155 // denominator from ART_DATUM_GC_YOUNG_GENERATION_TRACING_THROUGHPUT_AVG_MB_PER_SEC
162 // denominator from ART_DATUM_GC_FULL_HEAP_TRACING_THROUGHPUT_AVG_MB_PER_SEC
/frameworks/base/core/jni/
Dcom_android_internal_os_LongMultiStateCounter.cpp42 const uint64_t denominator) const { in add()
43 if (numerator != denominator) { in add()
45 *value1 += value2 * numerator / denominator; in add()
Dandroid_hardware_camera2_DngCreator.cpp1593 uint32_t denominator = 1000000000; in DngCreator_setup() local
1596 denominator >>= 1; in DngCreator_setup()
1597 if (denominator == 0) { in DngCreator_setup()
1605 uint32_t exposure[] = { static_cast<uint32_t>(exposureTime), denominator }; in DngCreator_setup()
1735 colorTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup()
1749 colorTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup()
1768 calibrationTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup()
1783 calibrationTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup()
1802 forwardTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup()
1817 forwardTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup()
[all …]
/frameworks/base/tests/JankBench/scripts/external/
Dstatistics.py230 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/
DMarshalQueryablePrimitive.java139 int denominator = buffer.getInt(); in unmarshalObject() local
140 return new Rational(numerator, denominator); in unmarshalObject()
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DLongArrayMultiStateCounter_host.java247 private void add(long[] counter, long[] delta, long numerator, long denominator) { in add() argument
248 if (numerator != denominator) { in add()
250 counter[i] += delta[i] * numerator / denominator; in add()
/frameworks/rs/script_api/include/
Drs_math.rsh479 * 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/base/services/core/java/com/android/server/broadcastradio/hal2/
DProgramInfoCache.java270 private static int roundUpFraction(int numerator, int denominator) { in roundUpFraction() argument
271 return (numerator / denominator) + (numerator % denominator > 0 ? 1 : 0); in roundUpFraction()
/frameworks/base/services/core/java/com/android/server/broadcastradio/aidl/
DProgramInfoCache.java303 private static int roundUpFraction(int numerator, int denominator) { in roundUpFraction() argument
304 return (numerator / denominator) + (numerator % denominator > 0 ? 1 : 0); in roundUpFraction()
/frameworks/av/camera/ndk/include/camera/
DNdkCameraMetadata.h86 int32_t denominator; member
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DRuimRecords.java414 for (int i = 0, denominator = 1; i < length; i++) { in decodeImsiDigits()
415 digits += denominator; in decodeImsiDigits()
416 if ((digits / denominator) % 10 == 0) { in decodeImsiDigits()
417 digits = digits - (10 * denominator); in decodeImsiDigits()
419 denominator *= 10; in decodeImsiDigits()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java492 private static Rational createIllegalRational(int numerator, int denominator) { in createIllegalRational() argument
493 Rational r = new Rational(numerator, denominator); in createIllegalRational()
495 mutateField(r, "mDenominator", denominator); in createIllegalRational()
/frameworks/base/media/java/android/media/
DExifInterface.java703 public final long denominator; field in ExifInterface.Rational
705 private Rational(long numerator, long denominator) { in Rational() argument
707 if (denominator == 0) { in Rational()
709 this.denominator = 1; in Rational()
713 this.denominator = denominator; in Rational()
718 return numerator + "/" + denominator; in toString()
722 return (double) numerator / denominator; in calculate()
809 buffer.putInt((int) value.denominator); in createURational()
824 buffer.putInt((int) value.denominator); in createSRational()
915 final long denominator = inputStream.readUnsignedInt(); in getValue() local
[all …]

12