Home
last modified time | relevance | path

Searched refs:den (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/include/media/stagefright/foundation/
DAUtils.h25 inline static const T divRound(const T &nom, const T &den) { in divRound() argument
26 if ((nom >= 0) ^ (den >= 0)) { in divRound()
27 return (nom - den / 2) / den; in divRound()
29 return (nom + den / 2) / den; in divRound()
35 inline static const T divUp(const T &nom, const T &den) { in divUp() argument
36 if (den < 0) { in divUp()
37 return (nom < 0 ? nom + den + 1 : nom) / den; in divUp()
39 return (nom < 0 ? nom : nom + den - 1) / den; in divUp()
45 inline static const T align(const T &nom, const U &den) { in align() argument
46 return (nom + (T)(den - 1)) & (T)~(den - 1); in align()
/frameworks/base/media/java/android/media/
DUtils.java149 private static Rational scaleRatio(Rational ratio, int num, int den) {
150 int common = gcd(num, den);
152 den /= common;
155 (int)(ratio.getDenominator() * (double)den)); // saturate to int
158 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) {
159 if (num == den) {
163 scaleRatio(range.getLower(), num, den),
164 scaleRatio(range.getUpper(), num, den));
173 static int divUp(int num, int den) {
174 return (num + den - 1) / den;
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DParamsUtils.java139 int den = RATIONAL_DENOMINATOR; in createRational() local
142 numF = value * den; in createRational()
144 if ((numF > Integer.MIN_VALUE && numF < Integer.MAX_VALUE) || (den == 1)) { in createRational()
148 den /= 10; in createRational()
157 return new Rational(num, den); in createRational()
/frameworks/base/core/java/android/util/
DRational.java339 double den = mDenominator; in doubleValue() local
341 return num / den; in doubleValue()
356 float den = mDenominator; in floatValue() local
358 return num / den; in floatValue()
/frameworks/av/services/audioflinger/
DAudioResamplerFirGen.h333 double den = Poly4(-0.34598737196e8, 0.23852643181e6,
335 return num / den;
348 double den = Poly3(0.103150763823e2, -0.14181687413e2,
350 return exp(x) * sqrt(y) * num / den;
375 static inline double I0SqrRat(double x2, double num, double den) {
380 I0Term<6>::value, x2) * num / den; // e < 1.6e-7
388 den *= Poly4(-0.34598737196e8, 0.23852643181e6,
390 return num / den;
/frameworks/av/media/libstagefright/codecs/on2/enc/
DSoftVPXEncoder.cpp158 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
/frameworks/base/core/java/android/os/
DBatteryStats.java2529 public final String formatRatioLocked(long num, long den) { in formatRatioLocked() argument
2530 if (den == 0L) { in formatRatioLocked()
2533 float perc = ((float)num) / ((float)den) * 100; in formatRatioLocked()
/frameworks/base/docs/html-intl/intl/es/about/versions/nougat/
Dandroid-7.0.jd95 permitidas de tu actividad y evitar así que los usuarios den a la actividad un
/frameworks/base/core/res/assets/webkit/
Dhyph_en_US.dic1124 1den