Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 8 of 8) sorted by relevance

/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/
DPartyLightView.java102 private int getColor(float fraction, int colorStart, int colorEnd) { in getColor() argument
115 return (startA + (int)(fraction * (endA - startA))) << 24 | in getColor()
116 (startR + (int)(fraction * (endR - startR))) << 16 | in getColor()
117 (startG + (int)(fraction * (endG - startG))) << 8 | in getColor()
118 ((startB + (int)(fraction * (endB - startB)))); in getColor()
/development/samples/devbytes/animation/MultiPropertyAnimations/src/com/example/android/multipropertyanimations/
DMultiPropertyAnimations.java57 float fraction = animator.getAnimatedFraction(); in runValueAnimator()
58 view.setTranslationX(TX_START + fraction * (TX_END - TX_START)); in runValueAnimator()
59 view.setTranslationY(TY_START + fraction * (TY_END - TY_START)); in runValueAnimator()
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertionListView.java364 public Rect evaluate(float fraction, Rect startValue, Rect endValue) {
365 return new Rect(interpolate(startValue.left, endValue.left, fraction),
366 interpolate(startValue.top, endValue.top, fraction),
367 interpolate(startValue.right, endValue.right, fraction),
368 interpolate(startValue.bottom, endValue.bottom, fraction));
371 public int interpolate(int start, int end, float fraction) {
372 return (int)(start + fraction * (end - start));
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
DDynamicListView.java457 public Rect evaluate(float fraction, Rect startValue, Rect endValue) {
458 return new Rect(interpolate(startValue.left, endValue.left, fraction),
459 interpolate(startValue.top, endValue.top, fraction),
460 interpolate(startValue.right, endValue.right, fraction),
461 interpolate(startValue.bottom, endValue.bottom, fraction));
464 public int interpolate(int start, int end, float fraction) {
465 return (int)(start + fraction * (end - start));
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DCustomEvaluator.java86 public Object evaluate(float fraction, Object startValue, Object endValue) { in evaluate() argument
89 return new XYHolder(startXY.getX() + fraction * (endXY.getX() - startXY.getX()), in evaluate()
90 startXY.getY() + fraction * (endXY.getY() - startXY.getY())); in evaluate()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java239 float fraction = Math.abs(deltaX) / view.getWidth(); in setSwipePosition() local
242 view.setAlpha(1 - fraction); in setSwipePosition()
247 mCurrentAlpha = (1 - fraction); in setSwipePosition()
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt239 denominator - n. the divisor of a fraction
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv2637 …WOOtYSs2PsI6VxOom9Q@fakeemail.com,Add a test that inflates inset drawable using fraction b/37932441
4851 …ng,fake_GXODyrWJQQ29rUizEM8-6A@fakeemail.com,[unsafe-to-break] Mark during fraction-slash formation
5248 …arfbuzz_ng,fake_ct5KXNVPRP-7clpQace1Kg@fakeemail.com,[ot] Fix automatic fraction for RTL scripts (…
41308 …atform/libcore,fake_rCOYDGRdTQOyvniLWUcrhA@fakeemail.com,Fix setCurrency resetting fraction digits.
106965 …base,fake_5Jd0GwVRSsKXtPWk30gcjA@fakeemail.com,Fix menu visibility while updating dismiss fraction.
107093 …tform/frameworks/base,fake_q8GWOOtYSs2PsI6VxOom9Q@fakeemail.com,Support fraction type for inset* f…