Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DRational.java122 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/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java486 int gcd = schedule.buckets[0].period_ms; in createSchedule() local
488 gcd = Rational.gcd(schedule.buckets[b].period_ms, gcd); in createSchedule()
491 if (gcd < PERIOD_MIN_GCD_MS) { in createSchedule()
493 gcd = PERIOD_MIN_GCD_MS; in createSchedule()
496 schedule.base_period_ms = gcd; in createSchedule()
/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.java109 static int gcd(int a, int b) {
150 int common = gcd(num, den);
188 return (long)a * b / gcd(a, b);
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dreduce.rs159 static int gcd(int a, int b) {
171 *accum += gcd(a, b);
/frameworks/av/services/audioflinger/
DAudioResamplerDyn.cpp251 static int gcd(int n, int m) in gcd() function
256 return gcd(m, n % m); in gcd()
361 int phases = mSampleRate / gcd(mSampleRate, inSampleRate); in setSampleRate()
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt42660 method public java.math.BigInteger gcd(java.math.BigInteger);
/frameworks/base/api/
Dcurrent.txt52075 method public java.math.BigInteger gcd(java.math.BigInteger);
Dtest-current.txt52155 method public java.math.BigInteger gcd(java.math.BigInteger);
Dsystem-current.txt55432 method public java.math.BigInteger gcd(java.math.BigInteger);