Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 364) 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/qs/touch/
DOverScroll.java48 f = f / (Math.abs(f)) * (overScrollInfluenceCurve(Math.abs(f))); in dampedScroll()
51 if (Math.abs(f) >= 1) { in dampedScroll()
52 f /= Math.abs(f); in dampedScroll()
DSwipeDetector.java91 return Math.abs(ev.getX(pointerIndex) - downPos.x);
104 return Math.abs(ev.getY(pointerIndex) - downPos.y);
199 > Math.abs(mDisplacement)) { in shouldScrollStart()
310 mListener.onDragEnd(mVelocity, Math.abs(mVelocity) > RELEASE_VELOCITY_PX_MS); in reportDragEnd()
323 if (Math.abs(mVelocity) < 0.001f) { in computeVelocity()
348 float velocityDivisor = Math.max(2f, Math.abs(0.5f * velocity)); in calculateDuration()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientSensorTest.java82 AmbientBrightnessSensor abs = DisplayWhiteBalanceFactory.createBrightnessSensor( in testAmbientBrightnessSensorCallback_NoCallbacks() local
85 abs.setCallbacks(null); in testAmbientBrightnessSensorCallback_NoCallbacks()
86 abs.setEnabled(true); in testAmbientBrightnessSensorCallback_NoCallbacks()
102 AmbientBrightnessSensor abs = DisplayWhiteBalanceFactory.createBrightnessSensor( in testAmbientBrightnessSensorCallback_CallbacksCalled() local
107 abs.setCallbacks(new AmbientBrightnessSensor.Callbacks() { in testAmbientBrightnessSensorCallback_CallbacksCalled()
115 abs.setEnabled(true); in testAmbientBrightnessSensorCallback_CallbacksCalled()
135 AmbientColorTemperatureSensor abs = DisplayWhiteBalanceFactory.createColorTemperatureSensor( in testAmbientColorTemperatureSensorCallback_CallbacksCalled() local
140 abs.setCallbacks(new AmbientColorTemperatureSensor.Callbacks() { in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
148 abs.setEnabled(true); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DRenderPatchAnimation.java80 mDirX = Math.abs(mDirX);
82 mDirX = -Math.abs(mDirX);
85 mDirY = Math.abs(mDirY);
87 mDirY = -Math.abs(mDirY);
/frameworks/native/libs/gui/tests/
DGLTest.cpp27 static int abs(int value) { in abs() function
190 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
193 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
199 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
205 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
222 if (abs(r1.left - r2.left) > tolerance) { in assertRectEq()
225 if (abs(r1.top - r2.top) > tolerance) { in assertRectEq()
231 if (abs(r1.right - r2.right) > tolerance) { in assertRectEq()
237 if (abs(r1.bottom - r2.bottom) > tolerance) { in assertRectEq()
/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/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DDistanceClassifier.java178 logDebug("Horizontal swipe distance: " + Math.abs(distanceVectors.mDx)); in getPassedDistanceThreshold()
181 return Math.abs(distanceVectors.mDx) >= mHorizontalSwipeThresholdPx; in getPassedDistanceThreshold()
184 logDebug("Vertical swipe distance: " + Math.abs(distanceVectors.mDy)); in getPassedDistanceThreshold()
186 return Math.abs(distanceVectors.mDy) >= mVerticalSwipeThresholdPx; in getPassedDistanceThreshold()
199 return Math.abs(dX) >= mHorizontalFlingThresholdPx; in getPassedFlingThreshold()
205 return Math.abs(dY) >= mVerticalFlingThresholdPx; in getPassedFlingThreshold()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java111 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
125 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
169 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance)); in getProperties()
170 float diff = Math.abs(endValue - currValue); in getProperties()
171 float velAbs = Math.abs(velocity); in getProperties()
266 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f)); in getDismissingProperties()
267 float diff = Math.abs(endValue - currValue); in getDismissingProperties()
268 float velAbs = Math.abs(velocity); in getDismissingProperties()
/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/core/java/android/transition/
DArcMotion.java221 ey = dy + (Math.abs(deltaX) * 0.5f * mMinimumHorizontalTangent); in getPath()
223 ex = dx + (Math.abs(deltaY) * 0.5f * mMinimumVerticalTangent); in getPath()
225 } else if ((Math.abs(deltaX) < Math.abs(deltaY))) { in getPath()
231 float eDistY = Math.abs(h2 / (2 * deltaY)); in getPath()
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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDoubleTapHelper.java143 return Math.abs(event.getX() - mDownX) < mTouchSlop in isWithinTouchSlop()
144 && Math.abs(event.getY() - mDownY) < mTouchSlop; in isWithinTouchSlop()
153 return Math.abs(event.getX() - mActivationX) < mDoubleTapSlop in isWithinDoubleTapSlop()
154 && Math.abs(event.getY() - mActivationY) < mDoubleTapSlop; in isWithinDoubleTapSlop()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DerrorCalculator.rscript41 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/services/accessibility/java/com/android/server/accessibility/gestures/
DSwipe.java157 final float dX = Math.abs(x - mPreviousGestureX); in onMove()
158 final float dY = Math.abs(y - mPreviousGestureY); in onMove()
159 final double moveDelta = Math.hypot(Math.abs(x - mBaseX), Math.abs(y - mBaseY)); in onMove()
219 final float dX = Math.abs(x - mPreviousGestureX); in onUp()
220 final float dY = Math.abs(y - mPreviousGestureY); in onUp()
368 if (Math.abs(dX) > Math.abs(dY)) { in toDirection()
DMultiFingerSwipe.java243 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onPointerUp()
244 final float dY = Math.abs(y - mPreviousGesturePoint[pointerIndex].y); in onPointerUp()
282 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onMove()
283 final float dY = Math.abs(y - mPreviousGesturePoint[pointerIndex].y); in onMove()
286 Math.abs(x - mBase[pointerIndex].x), in onMove()
287 Math.abs(y - mBase[pointerIndex].y)); in onMove()
373 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onUp()
374 final float dY = Math.abs(y - mPreviousGesturePoint[pointerIndex].y); in onUp()
467 if (Math.abs(dX) > Math.abs(dY)) { in toDirection()
/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/base/packages/SystemUI/src/com/android/systemui/classifier/
DDirectionEvaluator.java22 boolean vertical = Math.abs(yDiff) >= Math.abs(xDiff); in evaluate()
/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/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/ml/nn/runtime/test/generated/spec_V1_2/
Dabs.example.cpp7 namespace generated_tests::abs { namespace
54 namespace generated_tests::abs { namespace
101 namespace generated_tests::abs { namespace
/frameworks/base/core/java/android/widget/
DOverScroller.java624 if (Math.abs(tx - alpha) < 1E-5) break;
636 if (Math.abs(dy - alpha) < 1E-5) break;
676 final float x = Math.abs((float) newDistance / oldDistance); in adjustDuration()
750 mOver = Math.abs(delta); in startSpringback()
791 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff)); in getSplineDeceleration()
812 final float distanceToApex = velocitySquared / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve()
813 final float distanceToEdge = Math.abs(end - start); in fitOnBounceCurve()
815 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve()
842 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge()
865 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java213 float result = Math.abs(translation / viewSize); in getSwipeProgressForOffset()
325 if (Math.abs(delta) > pagingTouchSlop in onInterceptTouchEvent()
326 && Math.abs(delta) > Math.abs(deltaPerpendicular)) { in onInterceptTouchEvent()
388 boolean animateLeft = (Math.abs(velocity) > getEscapeVelocity() && velocity < 0) || in dismissChild()
400 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
401 .abs(velocity)) in dismissChild()
508 float maxDistance = Math.abs(targetLeft - getTranslation(animView)); in snapChild()
614 float absDelta = Math.abs(delta); in onTouchEvent()
693 && Math.abs(translation) > SWIPED_FAR_ENOUGH_SIZE_FRACTION * getSize(mCurrView); in swipedFarEnough()
717 boolean ret = (Math.abs(velocity) > getEscapeVelocity()) in swipedFastEnough()
/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 …]
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateConfigs.cpp80 return std::abs(lhs->fps - contentFramerate) < in getRefreshRateForContent()
81 std::abs(rhs->fps - contentFramerate); in getRefreshRateForContent()
90 if (std::abs(std::round(ratio) - ratio) > MARGIN) { in getRefreshRateForContent()
94 if (std::abs(std::round(ratio) - ratio) <= MARGIN) { in getRefreshRateForContent()
109 std::abs(displayFramesRem - displayPeriod) <= MARGIN_FOR_PERIOD_CALCULATION) { in getDisplayFrames()
279 auto diff = std::abs(displayFramesRem - (displayPeriod - displayFramesRem)); in getBestRefreshRate()
573 const auto frameRatesEqual = [](float a, float b) { return std::abs(a - b) <= 0.01f; }; in constructKnownFrameRates()
592 const auto distance1 = std::abs(frameRate - *lowerBound); in findClosestKnownFrameRate()
593 const auto distance2 = std::abs(frameRate - *std::prev(lowerBound)); in findClosestKnownFrameRate()

12345678910>>...15