Home
last modified time | relevance | path

Searched refs:pow (Results 1 – 25 of 42) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DSmoothingUtils.java63 final int pow = i + j; in get3DParameters() local
65 m0[i][j] += (float) Math.pow(xs[k], pow); in get3DParameters()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java97 * Math.pow(Math.abs(velocity), 1.0 / (DECELERATED_FACTOR - 1))); in fling()
110 f = 1 - (float) Math.pow(f, DECELERATED_FACTOR); in computeScrollOffset()
139 Math.pow(1 - progress, DECELERATED_FACTOR - 1) / mDuration; in getV()
/packages/apps/Dialer/java/com/android/dialer/common/backoff/
DExponentialBaseCalculator.java89 double b0n = Math.pow(b0, n); in getBaseImpl()
99 double b1n = Math.pow(b1, n); in getBaseImpl()
/packages/services/Car/tools/emulator/
Ddiagnostic_builder.py44 bitValue = pow(2,bitIdx)
49 bitValue = pow(2,bitIdx)
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dplatformtest.cpp83 TEST_F(Platform, pow) { in TEST_F() argument
86 sum += pow(10.0, i & 255); in TEST_F()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.kt69 import kotlin.math.pow in <lambda>()
609 val inCircle = (x / r.toDouble()).pow(2.0) + (y / r.toDouble()).pow(2.0) <= 1.0 in <lambda>()
DStopwatchFragment.java634 final boolean inCircle = Math.pow(x / r, 2.0) + Math.pow(y / r, 2.0) <= 1.0;
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java499 private static float weight(float x0, float y0, float x1, float y1, float pow) { in weight() argument
504 return (float) (WEIGHT_EFFICIENT / Math.pow(d, pow)); in weight()
DLogAccelerateInterpolator.java18 return (float) -Math.pow(base, -t) + 1 + (drift * t); in computeLog()
DLogDecelerateInterpolator.java19 return (float) -Math.pow(base, -t) + 1 + (drift * t); in computeLog()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java1184 final float alpha = 1.0f - (float) Math.min(Math.pow(ratio, 1.5f) * 2f, 1f); in updatePhotoTintAndDropShadow()
1185 final float tint = (float) Math.min(Math.pow(ratio, 1.5f) * 3f, 1f); in updatePhotoTintAndDropShadow()
1204 / (1 - Math.pow(1 - DESIRED_INTERMEDIATE_LETTER_TILE_ALPHA, 1/TILE_EXPONENT))); in updatePhotoTintAndDropShadow()
1207 float colorAlpha = 1 - (float) Math.pow(linearBeforeIntermediate, TILE_EXPONENT); in updatePhotoTintAndDropShadow()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java314 float a = (float) Math.pow(1f-t, 3f); in randFromCurve()
315 float b = (float) Math.pow(1f-t, 2f) * t; in randFromCurve()
316 float c = (1f-t) * (float) Math.pow(t, 2f); in randFromCurve()
317 float d = (float) Math.pow(t, 3f); in randFromCurve()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMediaView.java268 double shutterSpeed = Math.pow(2, -1 * speed); in formatShutterSpeed()
272 int approximateSpeedDenom = (int) Math.pow(2, speed) + 1; in formatShutterSpeed()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities.h227 if(x>=0.0) return(pow(x,1.0/3.0)); in db_CubRoot()
228 else return(-pow(-x,1.0/3.0)); in db_CubRoot()
/packages/apps/Gallery2/jni/filters/
Dcontrast.c46 float m = (float)pow(2, bright/100.); in JNIFUNCF()
Dedge.c96 float ret = 1.0f - exp (- alpha * pow(mag, beta)); in JNIFUNCF()
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DRelevanceUtils.java224 return Math.pow(DECAY_FACTOR, value); in powF()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DFips186_2Prf.java51 BigInteger exp_b = new BigInteger("2").pow(SEED_LEN_BYTES * 8); in getRandom()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DViewAutoScroller.java126 return (float) Math.pow(ratio, 10); in smoothOutOfBoundsRatio()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DColorChecker.java119 return Math.pow(((component + 0.055) / 1.055), 2.4); in convert8BitToLuminanceComponent()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DHistoryEvaluator.java78 float factor = (float) Math.pow(HISTORY_FACTOR, (time - lastUpdate) / INTERVAL); in decayValue()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/util/
DByteUtils.java121 ThreadLocalRandom.current().nextInt((int) Math.pow(10, length))); in generateRandomNumberString()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DFormattedStringModel.kt107 valueCache = SparseArray(Math.pow(10.0, length.toDouble()).toInt()) in getFormattedNumber()
DFormattedStringModel.java114 valueCache = new SparseArray<>((int) Math.pow(10, length)); in getFormattedNumber()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownMethod.java321 Math.pow(downEvent.getX() - puckCenterX, 2) + Math.pow(downEvent.getY() - puckCenterY, 2); in shouldUseFalsing()
322 return distSq >= Math.pow(radius, 2); in shouldUseFalsing()

12