Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/frameworks/compile/mclinker/lib/Target/X86/
DX86RelocationFunctions.h18 DECL_X86_32_APPLY_RELOC_FUNC(abs) \
34 { &abs, 1, "R_386_32", 32 }, \
53 { &abs, 20, "R_386_16", 16 }, \
55 { &abs, 22, "R_386_8", 8 }, \
85 DECL_X86_64_APPLY_RELOC_FUNC(abs) \
94 { &abs, 1, "R_X86_64_64", 64 }, \
103 { &abs, 10, "R_X86_64_32", 32 }, \
105 { &abs, 12, "R_X86_64_16", 16 }, \
107 { &abs, 14, "R_X86_64_8", 8 }, \
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java107 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
121 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
165 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance)); in getProperties()
166 float diff = Math.abs(endValue - currValue); in getProperties()
167 float velAbs = Math.abs(velocity); in getProperties()
251 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f)); in getDismissingProperties()
252 float diff = Math.abs(endValue - currValue); in getDismissingProperties()
253 float velAbs = Math.abs(velocity); in getDismissingProperties()
/frameworks/base/core/res/res/raw/
Dcolor_fade_frag.frag19 float h = abs((q.w - q.y) / (6.0 * c + e) + q.z);
21 float s = c / (1.0 - abs(2.0 * l - 1.0) + e);
28 vec3 p = abs(h - vec3(3.0, 2.0, 4.0));
32 float c = (1.0 - abs(2.0 * hsl.z - 1.0)) * hsl.y;
/frameworks/native/libs/gui/tests/
DGLTest.cpp25 static int abs(int value) { in abs() function
188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
220 if (abs(r1.left - r2.left) > tolerance) { in assertRectEq()
223 if (abs(r1.top - r2.top) > tolerance) { in assertRectEq()
229 if (abs(r1.right - r2.right) > tolerance) { in assertRectEq()
235 if (abs(r1.bottom - r2.bottom) > tolerance) { in assertRectEq()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DScrollbarHelper.java46 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) in computeScrollOffset()
48 final int itemRange = Math.abs(lm.getPosition(startChild) in computeScrollOffset()
68 return Math.abs(lm.getPosition(startChild) - lm.getPosition(endChild)) + 1; in computeScrollExtent()
92 final int laidOutRange = Math.abs(lm.getPosition(startChild) in computeScrollRange()
DSnapHelper.java76 return (Math.abs(velocityY) > minFlingVelocity || Math.abs(velocityX) > minFlingVelocity) in onFling()
240 final int time = calculateTimeForDeceleration(Math.max(Math.abs(dx), Math.abs(dy))); in createSnapScroller()
/frameworks/base/core/java/com/android/internal/widget/
DScrollbarHelper.java47 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) in computeScrollOffset()
49 final int itemRange = Math.abs(lm.getPosition(startChild) in computeScrollOffset()
69 return Math.abs(lm.getPosition(startChild) - lm.getPosition(endChild)) + 1; in computeScrollExtent()
93 final int laidOutRange = Math.abs(lm.getPosition(startChild) in computeScrollRange()
/frameworks/base/services/core/java/com/android/server/am/
DLaunchingTaskPositioner.java281 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE in closeLeftTopCorner()
282 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeLeftTopCorner()
286 return Math.abs(first.right - second.right) < BOUNDS_CONFLICT_MIN_DISTANCE in closeRightTopCorner()
287 && Math.abs(first.top - second.top) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeRightTopCorner()
291 return Math.abs(first.left - second.left) < BOUNDS_CONFLICT_MIN_DISTANCE in closeLeftBottomCorner()
292 && Math.abs(first.bottom - second.bottom) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeLeftBottomCorner()
296 return Math.abs(first.right - second.right) < BOUNDS_CONFLICT_MIN_DISTANCE in closeRightBottomCorner()
297 && Math.abs(first.bottom - second.bottom) < BOUNDS_CONFLICT_MIN_DISTANCE; in closeRightBottomCorner()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DerrorCalculator.rs41 error += abs(idealPixel.x - givenPixel.x);
42 error += abs(idealPixel.y - givenPixel.y);
43 error += abs(idealPixel.z - givenPixel.z);
44 error += abs(idealPixel.w - givenPixel.w);
/frameworks/native/libs/ui/tests/
Dcolorspace_test.cpp157 EXPECT_TRUE(all(lessThan(abs(r - float3{0.8912f, 0.4962f, 0.1164f}), float3{1e-4f}))); in TEST_F()
162 EXPECT_TRUE(all(lessThan(abs(r - float3{0.70226f, 0.2757f, 0.1036f}), float3{1e-4f}))); in TEST_F()
171 EXPECT_TRUE(all(lessThan(abs(r - float3{0.8912f, 0.4962f, 0.1164f}), float3{1e-4f}))); in TEST_F()
175 EXPECT_TRUE(all(lessThan(abs(r - float3{1.0f, 1.0f, 0.5290f}), float3{1e-4f}))); in TEST_F()
179 EXPECT_TRUE(all(lessThan(abs(r - float3{1.0f, 1.0f, 1.0f}), float3{1e-4f}))); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDoubleTapHelper.java141 return Math.abs(event.getX() - mDownX) < mTouchSlop in isWithinTouchSlop()
142 && Math.abs(event.getY() - mDownY) < mTouchSlop; in isWithinTouchSlop()
151 return Math.abs(event.getX() - mActivationX) < mDoubleTapSlop in isWithinDoubleTapSlop()
152 && Math.abs(event.getY() - mActivationY) < mDoubleTapSlop; in isWithinDoubleTapSlop()
DNearestTouchFrame.java109 int x = Math.min(Math.abs(left - (int) event.getX()), in distance()
110 Math.abs((int) event.getX() - right)); in distance()
111 int y = Math.min(Math.abs(top - (int) event.getY()), in distance()
112 Math.abs((int) event.getY() - bottom)); in distance()
DNavigationBarGestureHelper.java124 int xDiff = Math.abs(x - mTouchDownX); in onInterceptTouchEvent()
125 int yDiff = Math.abs(y - mTouchDownY); in onInterceptTouchEvent()
196 int xDiff = Math.abs(x - mTouchDownX); in handleDragActionMoveEvent()
197 int yDiff = Math.abs(y - mTouchDownY); in handleDragActionMoveEvent()
287 float absVelX = Math.abs(velocityX); in onFling()
288 float absVelY = Math.abs(velocityY); in onFling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailClipper.java47 innerR = Math.abs(x); in animateCircularClip()
48 innerR = Math.min(innerR, Math.abs(y)); in animateCircularClip()
49 innerR = Math.min(innerR, Math.abs(w)); in animateCircularClip()
50 innerR = Math.min(innerR, Math.abs(h)); in animateCircularClip()
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtils.java85 int varianceAlpha = Math.abs(sourceAlpha - expectedAlpha); in assertAllPixelsOfColor()
86 int varianceRed = Math.abs(sourceRed - expectedRed); in assertAllPixelsOfColor()
87 int varianceGreen = Math.abs(sourceGreen - expectedGreen); in assertAllPixelsOfColor()
88 int varianceBlue = Math.abs(sourceBlue - expectedBlue); in assertAllPixelsOfColor()
/frameworks/support/wear/src/android/support/wear/widget/
DCurvingLayoutCallback.java77 float mYScrollProgress = (verticalAnchor + Math.abs(minCenter)) / range; in onLayoutFinished()
82 Math.abs(mPathPoints[1] - mCurveBottom) < EPSILON in onLayoutFinished()
85 Math.abs(mPathPoints[1] - mCurveTop) < EPSILON in onLayoutFinished()
91 mPathPoints[0] = (Math.abs(verticalAnchor) * mLineGradient); in onLayoutFinished()
/frameworks/base/core/java/android/transition/
DSidePropagation.java136 distance = right - viewX + Math.abs(epicenterY - viewY); in distance()
139 distance = bottom - viewY + Math.abs(epicenterX - viewX); in distance()
142 distance = viewX - left + Math.abs(epicenterY - viewY); in distance()
145 distance = viewY - top + Math.abs(epicenterX - viewX); in distance()
/frameworks/support/transition/src/android/support/transition/
DSidePropagation.java138 distance = right - viewX + Math.abs(epicenterY - viewY); in distance()
141 distance = bottom - viewY + Math.abs(epicenterX - viewX); in distance()
144 distance = viewX - left + Math.abs(epicenterY - viewY); in distance()
147 distance = viewY - top + Math.abs(epicenterX - viewX); in distance()
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
DPathInterpolatorCompat.java20 import static java.lang.Math.abs;
157 if (abs(mX[0]) > EPSILON || abs(mY[0]) > EPSILON || abs(mX[numPoints - 1] - 1) > EPSILON in initPath()
158 || abs(mY[numPoints - 1] - 1) > EPSILON) { in initPath()
/frameworks/support/core-ui/java/android/support/v4/widget/
DViewDragHelper.java608 final int absDx = Math.abs(dx); in computeSettleDuration()
609 final int absDy = Math.abs(dy); in computeSettleDuration()
610 final int absXVel = Math.abs(xvel); in computeSettleDuration()
611 final int absYVel = Math.abs(yvel); in computeSettleDuration()
633 final float distanceRatio = Math.min(1f, (float) Math.abs(delta) / width); in computeAxisDuration()
638 velocity = Math.abs(velocity); in computeAxisDuration()
640 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in computeAxisDuration()
642 final float range = (float) Math.abs(delta) / motionRange; in computeAxisDuration()
659 final int absValue = Math.abs(value); in clampMag()
676 final float absValue = Math.abs(value); in clampMag()
[all …]
/frameworks/compile/mclinker/lib/Target/AArch64/
DAArch64RelocationFunctions.h18 DECL_AARCH64_APPLY_RELOC_FUNC(abs) \
34 …ValueType(0x101, MappedType(&abs, "R_AARCH64_ABS64", 64)), /* NO…
35 …ValueType(0x102, MappedType(&abs, "R_AARCH64_ABS32", 32)), /* NO…
36 …ValueType(0x103, MappedType(&abs, "R_AARCH64_ABS16", 16)), /* NO…
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DStraightenFilter.java135 float maxWidth = (float) Math.max(Math.abs(p0.x), Math.abs(p1.x)); in updateParameters()
136 float maxHeight = (float) Math.max(Math.abs(p0.y), Math.abs(p1.y)); in updateParameters()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DDirectionEvaluator.java22 boolean vertical = Math.abs(yDiff) >= Math.abs(xDiff); in evaluate()
/frameworks/base/core/java/android/widget/
DOverScroller.java616 if (Math.abs(tx - alpha) < 1E-5) break;
628 if (Math.abs(dy - alpha) < 1E-5) break;
668 final float x = Math.abs((float) newDistance / oldDistance); in adjustDuration()
742 mOver = Math.abs(delta); in startSpringback()
783 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff)); in getSplineDeceleration()
804 final float distanceToApex = velocitySquared / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve()
805 final float distanceToEdge = Math.abs(end - start); in fitOnBounceCurve()
807 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve()
834 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge()
857 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java794 final int dx = Math.abs(centerX - (other.getLeft() + other.getRight()) / 2); in findSwapTargets()
795 final int dy = Math.abs(centerY - (other.getTop() + other.getBottom()) / 2); in findSwapTargets()
828 if (Math.abs(y - viewHolder.itemView.getTop()) < viewHolder.itemView.getHeight() * threshold in moveIfNecessary()
829 && Math.abs(x - viewHolder.itemView.getLeft()) in moveIfNecessary()
921 final float absDx = Math.abs(dx); in findSwipedView()
922 final float absDy = Math.abs(dy); in findSwipedView()
973 final float absDx = Math.abs(dx); in checkSelectForSwipe()
974 final float absDy = Math.abs(dy); in checkSelectForSwipe()
1167 if (Math.abs(mDx) > Math.abs(mDy)) { in swipeIfNecessary()
1206 final float absXVelocity = Math.abs(xVelocity); in checkHorizontalSwipe()
[all …]

12345678910>>...15