Searched refs:gcd (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/core/java/android/util/ |
D | Rational.java | 125 int gcd = gcd(numerator, denominator); in Rational() local 127 mNumerator = numerator / gcd; in Rational() 128 mDenominator = denominator / gcd; in Rational() 309 public static int gcd(int numerator, int denominator) { in gcd() method in Rational 540 if (gcd(mNumerator, mDenominator) > 1) { in readObject()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | BackgroundScanScheduler.java | 471 int gcd = schedule.buckets[0].period_ms; in createSchedule() local 473 gcd = Rational.gcd(schedule.buckets[b].period_ms, gcd); in createSchedule() 476 if (gcd < PERIOD_MIN_GCD_MS) { in createSchedule() 478 gcd = PERIOD_MIN_GCD_MS; in createSchedule() 481 schedule.base_period_ms = gcd; in createSchedule()
|
/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 | 118 static int gcd(int a, int b) { 159 int common = gcd(num, den); 197 return (long)a * b / gcd(a, b);
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerDyn.cpp | 318 static int gcd(int n, int m) in gcd() function 323 return gcd(m, n % m); in gcd() 493 int phases = mSampleRate / gcd(mSampleRate, inSampleRate); in setSampleRate()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | reduce.rs | 253 static int gcd(int a, int b) { 265 *accum += gcd(a, b);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | reduce.rs | 255 static int gcd(int a, int b) { 267 *accum += gcd(a, b);
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 42660 method public java.math.BigInteger gcd(java.math.BigInteger);
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 77451 Landroid/util/Rational;->gcd(II)I 111819 Ljava/math/BigInt;->gcd(Ljava/math/BigInt;Ljava/math/BigInt;)Ljava/math/BigInt;
|
/frameworks/base/api/ |
D | current.txt | 61669 method @NonNull public java.math.BigInteger gcd(@NonNull java.math.BigInteger);
|