/aosp12/frameworks/base/core/java/android/util/ |
H A D | Rational.java | 128 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 D | AspectRatio.java | 49 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 D | ResolutionUtil.java | 293 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 D | utils.cpp | 41 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 D | utils.cpp | 41 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 D | utils.cpp | 41 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 D | utils.cpp | 41 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 D | utils.cpp | 41 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 D | utils.cpp | 41 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 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()
|
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A 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()
|
/aosp12/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
H A D | getopt_long.c | 104 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 D | utils.h | 35 float gcd(float a, float b);
|
/aosp12/hardware/qcom/display/msm8909w_3100/sdm/include/utils/ |
H A D | utils.h | 35 float gcd(float a, float b);
|
/aosp12/hardware/qcom/display/msm8998/sdm/include/utils/ |
H A D | utils.h | 35 float gcd(float a, float b);
|
/aosp12/hardware/qcom/sdm845/display/sdm/include/utils/ |
H A D | utils.h | 35 float gcd(float a, float b);
|
/aosp12/hardware/qcom/sm7250/display/sdm/include/utils/ |
H A D | utils.h | 37 float gcd(float a, float b);
|
/aosp12/hardware/qcom/sm8150/display/sdm/include/utils/ |
H A D | utils.h | 37 float gcd(float a, float b);
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | Utils.java | 134 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 D | AudioResamplerDyn.cpp | 317 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 D | reduce.rscript | 253 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 D | reduce.rscript | 255 static int gcd(int a, int b) { 267 *accum += gcd(a, b);
|
/aosp12/hardware/google/gchips/gralloc4/src/core/ |
H A D | mali_gralloc_bufferallocation.cpp | 396 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 D | mali_gralloc_bufferallocation.cpp | 383 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 D | auto-value-1.5.3.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/google/
com/ ... |