Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/core/java/android/util/
H A 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()
/aosp12/packages/apps/Camera2/src/com/android/camera/util/
H A DAspectRatio.java49 int gcd = BigInteger.valueOf(width).gcd(BigInteger.valueOf(height)).intValue(); in of() local
50 int simplifiedWidth = width / gcd; in of()
51 int simplifiedHeight = height / gcd; in of()
/aosp12/packages/apps/Camera2/src/com/android/camera/settings/
H A DResolutionUtil.java293 BigInteger gcd = width.gcd(height); in reduce() local
294 int numerator = Math.max(width.intValue(), height.intValue()) / gcd.intValue(); in reduce()
295 int denominator = Math.min(width.intValue(), height.intValue()) / gcd.intValue(); in reduce()
337 BigInteger gcd = width.gcd(height); in aspectRatioDenominator() local
338 int denominator = Math.min(width.intValue(), height.intValue()) / gcd.intValue(); in aspectRatioDenominator()
/aosp12/hardware/qcom/sm7250/display/sdm/libs/utils/
H A Dutils.cpp41 float gcd(float a, float b) { in gcd() function
56 return (a * b) / gcd(a, b); in lcm()
/aosp12/hardware/qcom/display/msm8909/sdm/libs/utils/
H A Dutils.cpp41 float gcd(float a, float b) { in gcd() function
56 return (a * b) / gcd(a, b); in lcm()
/aosp12/hardware/qcom/display/msm8909w_3100/sdm/libs/utils/
H A Dutils.cpp41 float gcd(float a, float b) { in gcd() function
56 return (a * b) / gcd(a, b); in lcm()
/aosp12/hardware/qcom/display/msm8998/sdm/libs/utils/
H A Dutils.cpp41 float gcd(float a, float b) { in gcd() function
56 return (a * b) / gcd(a, b); in lcm()
/aosp12/hardware/qcom/sdm845/display/sdm/libs/utils/
H A Dutils.cpp41 float gcd(float a, float b) { in gcd() function
56 return (a * b) / gcd(a, b); in lcm()
/aosp12/hardware/qcom/sm8150/display/sdm/libs/utils/
H A Dutils.cpp41 float gcd(float a, float b) { in gcd() function
56 return (a * b) / gcd(a, b); in lcm()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
H A DBackgroundScanScheduler.java471 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()
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A 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()
/aosp12/bionic/libc/upstream-freebsd/lib/libc/stdlib/
H A Dgetopt_long.c104 static int gcd(int, int);
135 gcd(int a, int b) in gcd() function
166 ncycle = gcd(nnonopts, nopts); in permute_args()
/aosp12/hardware/qcom/display/msm8909/sdm/include/utils/
H A Dutils.h35 float gcd(float a, float b);
/aosp12/hardware/qcom/display/msm8909w_3100/sdm/include/utils/
H A Dutils.h35 float gcd(float a, float b);
/aosp12/hardware/qcom/display/msm8998/sdm/include/utils/
H A Dutils.h35 float gcd(float a, float b);
/aosp12/hardware/qcom/sdm845/display/sdm/include/utils/
H A Dutils.h35 float gcd(float a, float b);
/aosp12/hardware/qcom/sm7250/display/sdm/include/utils/
H A Dutils.h37 float gcd(float a, float b);
/aosp12/hardware/qcom/sm8150/display/sdm/include/utils/
H A Dutils.h37 float gcd(float a, float b);
/aosp12/frameworks/base/media/java/android/media/
H A DUtils.java134 static int gcd(int a, int b) {
175 int common = gcd(num, den);
213 return (long)a * b / gcd(a, b);
/aosp12/frameworks/av/media/libaudioprocessing/
H A 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()
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Dreduce.rscript253 static int gcd(int a, int b) {
265 *accum += gcd(a, b);
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A Dreduce.rscript255 static int gcd(int a, int b) {
267 *accum += gcd(a, b);
/aosp12/hardware/google/gchips/gralloc4/src/core/
H A Dmali_gralloc_bufferallocation.cpp396 static uint32_t gcd(uint32_t a, uint32_t b) in gcd() function
425 return (a * b) / gcd(a, b); in lcm()
/aosp12/hardware/google/gchips/gralloc3/src/
H A Dmali_gralloc_bufferallocation.cpp383 static uint32_t gcd(uint32_t a, uint32_t b) in gcd() function
412 return (a * b) / gcd(a, b); in lcm()
/aosp12/packages/apps/TV/libs/m2/
H A Dauto-value-1.5.3.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...

12