/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | AUtils.h | 25 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/ |
D | ParamsUtils.java | 139 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/ |
D | Utils.java | 174 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/ |
D | NetworkStatsUtils.java | 43 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/ |
D | Rational.java | 345 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/ |
D | AudioResamplerFirGen.h | 333 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/ |
D | mpeg4_h263_dec_fuzzer.cpp | 36 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/ |
D | statistics.py | 267 den = 10**-exp 270 den = 1 273 return (num, den)
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncReactor.cpp | 168 auto const allowance = period * allowancePercentRatio.num / allowancePercentRatio.den; in periodConfirmed()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Param.h | 1590 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/ |
D | C2InterfaceUtils.h | 328 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/ |
D | SpatializerPoseController.cpp | 92 constexpr auto kTicksPerSecond = Ticks::period::den;
|
/frameworks/av/media/libstagefright/codecs/on2/enc/ |
D | SoftVPXEncoder.cpp | 135 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 417 mCodecConfiguration->g_timebase.den = 1000000; in initEncoder()
|
/frameworks/av/services/audioflinger/ |
D | Tracks.cpp | 322 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/ |
D | BatteryStats.java | 3576 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()
|