Searched refs:fraction (Results 1 – 7 of 7) sorted by relevance
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/ |
D | PartyLightView.java | 102 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/ |
D | MultiPropertyAnimations.java | 57 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/ |
D | InsertionListView.java | 364 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/ |
D | DynamicListView.java | 457 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/ |
D | CustomEvaluator.java | 86 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/ |
D | ListViewItemAnimations.java | 239 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/ |
D | definitions.txt | 239 denominator - n. the divisor of a fraction
|