Searched refs:gcd (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/java/android/util/ |
D | Rational.java | 122 int gcd = gcd(numerator, denominator); in Rational() local 124 mNumerator = numerator / gcd; in Rational() 125 mDenominator = denominator / gcd; in Rational() 306 public static int gcd(int numerator, int denominator) { in gcd() method in Rational 537 if (gcd(mNumerator, mDenominator) > 1) { in readObject()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | RationalTest.java | 50 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/ |
D | Utils.java | 111 static int gcd(int a, int b) { 152 int common = gcd(num, den); 190 return (long)a * b / gcd(a, b);
|
/frameworks/av/services/audioflinger/ |
D | AudioResamplerDyn.cpp | 251 static int gcd(int n, int m) in gcd() function 256 return gcd(m, n % m); in gcd() 362 int phases = mSampleRate / gcd(mSampleRate, inSampleRate); in setSampleRate()
|
/frameworks/base/api/ |
D | current.txt | 42452 method public java.math.BigInteger gcd(java.math.BigInteger);
|