Home
last modified time | relevance | path

Searched refs:gcd (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/util/
DRational.java128 int gcd = gcd(numerator, denominator); in Rational() local
130 mNumerator = numerator / gcd; in Rational()
131 mDenominator = denominator / gcd; in Rational()
312 public static int gcd(int numerator, int denominator) { in gcd() method in Rational
543 if (gcd(mNumerator, mDenominator) > 1) { in readObject()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java50 assertEquals(1, Rational.gcd(1, 2)); in testGcd()
51 assertEquals(1, Rational.gcd(2, 3)); in testGcd()
52 assertEquals(78, Rational.gcd(5*78, 7*78)); in testGcd()
53 assertEquals(1, Rational.gcd(-1, 2)); in testGcd()
54 assertEquals(1, Rational.gcd(-2, 3)); in testGcd()
/frameworks/base/media/java/android/media/
DUtils.java134 static int gcd(int a, int b) {
175 int common = gcd(num, den);
213 return (long)a * b / gcd(a, b);
/frameworks/av/media/libaudioprocessing/
DAudioResamplerDyn.cpp317 static int gcd(int n, int m) in gcd() function
322 return gcd(m, n % m); in gcd()
492 int phases = mSampleRate / gcd(mSampleRate, inSampleRate); in setSampleRate()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dreduce.rscript253 static int gcd(int a, int b) {
265 *accum += gcd(a, b);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dreduce.rscript255 static int gcd(int a, int b) {
267 *accum += gcd(a, b);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt42660 method public java.math.BigInteger gcd(java.math.BigInteger);
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt61566 Landroid/util/Rational;->gcd(II)I