Home
last modified time | relevance | path

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

12345678910>>...12

/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.java71 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
85 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
129 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance)); in getProperties()
130 float diff = Math.abs(endValue - currValue); in getProperties()
131 float velAbs = Math.abs(velocity); in getProperties()
197 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f)); in getDismissingProperties()
198 float diff = Math.abs(endValue - currValue); in getDismissingProperties()
199 float velAbs = Math.abs(velocity); in getDismissingProperties()
/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/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/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/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.java65 return (Math.abs(velocityY) > minFlingVelocity || Math.abs(velocityX) > minFlingVelocity) in onFling()
210 final int time = calculateTimeForDeceleration(Math.max(Math.abs(dx), Math.abs(dy))); in createSnapScroller()
/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/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/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()
DArcMotion.java204 ey = startY + mMinimumHorizontalTangent * Math.abs(endX - startX) / 2; in getPath()
206 ex = startX + mMinimumVerticalTangent * Math.abs(endY - startY) / 2; in getPath()
224 if ((Math.abs(deltaX) < Math.abs(deltaY))) { in getPath()
/frameworks/support/core-ui/java/android/support/v4/widget/
DViewDragHelper.java609 final int absDx = Math.abs(dx); in computeSettleDuration()
610 final int absDy = Math.abs(dy); in computeSettleDuration()
611 final int absXVel = Math.abs(xvel); in computeSettleDuration()
612 final int absYVel = Math.abs(yvel); in computeSettleDuration()
634 final float distanceRatio = Math.min(1f, (float) Math.abs(delta) / width); in computeAxisDuration()
639 velocity = Math.abs(velocity); in computeAxisDuration()
641 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in computeAxisDuration()
643 final float range = (float) Math.abs(delta) / motionRange; in computeAxisDuration()
660 final int absValue = Math.abs(value); in clampMag()
677 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/statusbar/phone/
DNavigationBarGestureHelper.java118 int xDiff = Math.abs(x - mTouchDownX); in onInterceptTouchEvent()
119 int yDiff = Math.abs(y - mTouchDownY); in onInterceptTouchEvent()
190 int xDiff = Math.abs(x - mTouchDownX); in handleDragActionMoveEvent()
191 int yDiff = Math.abs(y - mTouchDownY); in handleDragActionMoveEvent()
281 float absVelX = Math.abs(velocityX); in onFling()
282 float absVelY = Math.abs(velocityY); in onFling()
DPanelView.java306 if (Math.abs(h) > mTouchSlop in onTouchEvent()
307 && (Math.abs(h) > Math.abs(x - mInitialTouchX) in onTouchEvent()
358 return Math.abs(yDiff) >= Math.abs(xDiff); in isDirectionUpwards()
376 || Math.abs(x - mInitialTouchX) > mTouchSlop in endMotionEvent()
377 || Math.abs(y - mInitialTouchY) > mTouchSlop in endMotionEvent()
397 int heightDp = (int) Math.abs((y - mInitialTouchY) / displayDensity); in endMotionEvent()
398 int velocityDp = (int) Math.abs(vel / displayDensity); in endMotionEvent()
516 float hAbs = Math.abs(h); in onInterceptTouchEvent()
518 && hAbs > Math.abs(x - mInitialTouchX)) { in onInterceptTouchEvent()
591 if (Math.abs(vectorVel) < mFlingAnimationUtils.getMinVelocityPxPerSecond()) { in flingExpands()
/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.java614 if (Math.abs(tx - alpha) < 1E-5) break;
626 if (Math.abs(dy - alpha) < 1E-5) break;
666 final float x = Math.abs((float) newDistance / oldDistance); in adjustDuration()
740 mOver = Math.abs(delta); in startSpringback()
781 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff)); in getSplineDeceleration()
802 final float distanceToApex = velocitySquared / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve()
803 final float distanceToEdge = Math.abs(end - start); in fitOnBounceCurve()
805 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve()
832 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge()
855 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java800 final int dx = Math.abs(centerX - (other.getLeft() + other.getRight()) / 2); in findSwapTargets()
801 final int dy = Math.abs(centerY - (other.getTop() + other.getBottom()) / 2); in findSwapTargets()
834 if (Math.abs(y - viewHolder.itemView.getTop()) < viewHolder.itemView.getHeight() * threshold in moveIfNecessary()
835 && Math.abs(x - viewHolder.itemView.getLeft()) in moveIfNecessary()
927 final float absDx = Math.abs(dx); in findSwipedView()
928 final float absDy = Math.abs(dy); in findSwipedView()
979 final float absDx = Math.abs(dx); in checkSelectForSwipe()
980 final float absDy = Math.abs(dy); in checkSelectForSwipe()
1173 if (Math.abs(mDx) > Math.abs(mDy)) { in swipeIfNecessary()
1214 final float absXVelocity = Math.abs(xVelocity); in checkHorizontalSwipe()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java185 float result = Math.abs(translation / viewSize); in getSwipeProgressForOffset()
300 if (Math.abs(delta) > mPagingTouchSlop in onInterceptTouchEvent()
301 && Math.abs(delta) > Math.abs(deltaPerpendicular)) { in onInterceptTouchEvent()
368 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
369 .abs(velocity)) in dismissChild()
553 float absDelta = Math.abs(delta);
623 return DISMISS_IF_SWIPED_FAR_ENOUGH && Math.abs(translation) > 0.4 * getSize(mCurrView);
641 boolean ret = (Math.abs(velocity) > getEscapeVelocity())
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java119 return Math.abs(r - g) < TOLERANCE in isGrayscale()
120 && Math.abs(r - b) < TOLERANCE in isGrayscale()
121 && Math.abs(g - b) < TOLERANCE; in isGrayscale()
/frameworks/base/core/java/android/gesture/
DGestureStroke.java138 float dx = Math.abs(x - mX); in makePath()
139 float dy = Math.abs(y - mY); in makePath()
187 float dx = Math.abs(x - mX); in toPath()
188 float dy = Math.abs(y - mY); in toPath()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtils.java224 int varianceAlpha = Math.abs(sourceAlpha - expectedAlpha); in areColorsTheSameWithTolerance()
225 int varianceRed = Math.abs(sourceRed - expectedRed); in areColorsTheSameWithTolerance()
226 int varianceGreen = Math.abs(sourceGreen - expectedGreen); in areColorsTheSameWithTolerance()
227 int varianceBlue = Math.abs(sourceBlue - expectedBlue); in areColorsTheSameWithTolerance()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DImageUtils.java144 delta += Math.abs(deltaR); in assertImageSimilar()
145 delta += Math.abs(deltaG); in assertImageSimilar()
146 delta += Math.abs(deltaB); in assertImageSimilar()
158 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { in assertImageSimilar()
162 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) { in assertImageSimilar()

12345678910>>...12