Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAUtils.h25 inline static const T divRound(const T &num, const T &den) { in divRound() argument
26 if ((num >= 0) ^ (den >= 0)) { in divRound()
27 return (num - den / 2) / den; in divRound()
29 return (num + den / 2) / den; in divRound()
35 inline static const T divUp(const T &num, const T &den) { in divUp() argument
36 if (den < 0) { in divUp()
37 return (num < 0 ? num + den + 1 : num) / den; in divUp()
39 return (num < 0 ? num : num + den - 1) / den; in divUp()
45 inline static const T align(const T &num, const U &den) { in align() argument
46 return (num + (T)(den - 1)) & (T)~(den - 1); in align()
/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/media/java/android/media/
DUtils.java174 private static Rational scaleRatio(Rational ratio, int num, int den) {
175 int common = gcd(num, den);
177 den /= common;
180 (int)(ratio.getDenominator() * (double)den)); // saturate to int
183 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) {
184 if (num == den) {
188 scaleRatio(range.getLower(), num, den),
189 scaleRatio(range.getUpper(), num, den));
198 static int divUp(int num, int den) {
199 return (num + den - 1) / den;
[all …]
/frameworks/libs/net/common/framework/com/android/net/module/util/
DNetworkStatsUtils.java43 public static long multiplySafeByRational(long value, long num, long den) { in multiplySafeByRational() argument
44 if (den == 0) { in multiplySafeByRational()
61 return (long) (((double) num / den) * value); in multiplySafeByRational()
64 return r / den; in multiplySafeByRational()
/frameworks/base/core/java/android/util/
DRational.java345 double den = mDenominator; in doubleValue() local
347 return num / den; in doubleValue()
362 float den = mDenominator; in floatValue() local
364 return num / den; in floatValue()
/frameworks/av/media/libaudioprocessing/
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/codecs/m4v_h263/fuzzer/
Dmpeg4_h263_dec_fuzzer.cpp36 inline static const T align(const T &num, const U &den) { in align() argument
37 return (num + (T)(den - 1)) & (T) ~(den - 1); in align()
/frameworks/base/tests/JankBench/scripts/external/
Dstatistics.py267 den = 10**-exp
270 den = 1
273 return (num, den)
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.cpp168 auto const allowance = period * allowancePercentRatio.num / allowancePercentRatio.den; in periodConfirmed()
/frameworks/av/media/codec2/core/include/
DC2Param.h1590 C2FieldSupportedValues(T min, T max, T num, T den) :
1592 range{min, max, (T)0, num, den} { }
1595 C2FieldSupportedValues(T min, T max, T step, T num, T den)
1597 range{min, max, step, num, den} { }
/frameworks/av/media/codec2/vndk/include/util/
DC2InterfaceUtils.h328 constexpr C2_HIDE C2SupportedRange(T min, T max, T step, T num, T den)
329 : _mMin(min), _mMax(max), _mStep(step), _mNum(num), _mDenom(den) { }
/frameworks/av/services/audiopolicy/service/
DSpatializerPoseController.cpp92 constexpr auto kTicksPerSecond = Ticks::period::den;
/frameworks/av/media/libstagefright/codecs/on2/enc/
DSoftVPXEncoder.cpp135 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp417 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
/frameworks/av/services/audioflinger/
DTracks.cpp322 mPeerTimeout.tv_sec = timeout.count() / std::nano::den; in setPeerTimeout()
323 mPeerTimeout.tv_nsec = timeout.count() % std::nano::den; in setPeerTimeout()
/frameworks/base/core/java/android/os/
DBatteryStats.java3576 public final String formatRatioLocked(long num, long den) { in formatRatioLocked() argument
3577 if (den == 0L) { in formatRatioLocked()
3580 float perc = ((float)num) / ((float)den) * 100; in formatRatioLocked()