Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 353) 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/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DDistanceClassifier.java169 logDebug("Horizontal swipe distance: " + Math.abs(mDx)); in getPassedDistanceThreshold()
172 return Math.abs(mDx) >= mHorizontalSwipeThresholdPx; in getPassedDistanceThreshold()
175 logDebug("Vertical swipe distance: " + Math.abs(mDy)); in getPassedDistanceThreshold()
177 return Math.abs(mDy) >= mVerticalSwipeThresholdPx; in getPassedDistanceThreshold()
188 return Math.abs(dX) >= mHorizontalFlingThresholdPx; in getPassedFlingThreshold()
194 return Math.abs(dY) >= mVerticalFlingThresholdPx; in getPassedFlingThreshold()
DZigZagClassifier.java99 .abs(rotatedPoints.get(0).x - rotatedPoints.get(rotatedPoints.size() - 1).x); in isFalseTouch()
101 .abs(rotatedPoints.get(0).y - rotatedPoints.get(rotatedPoints.size() - 1).y); in isFalseTouch()
115 runningAbsDx += Math.abs(point.x - pX); in isFalseTouch()
116 runningAbsDy += Math.abs(point.y - pY); in isFalseTouch()
/frameworks/av/media/codecs/g711/decoder/
Dg711DecMlaw.cpp33 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; in DecodeMLaw() local
35 *out++ = (x < 0x80) ? -abs : abs; in DecodeMLaw()
/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/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/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/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/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/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.java114 int x = Math.min(Math.abs(left - (int) event.getX()), in distance()
115 Math.abs((int) event.getX() - right)); in distance()
116 int y = Math.min(Math.abs(top - (int) event.getY()), in distance()
117 Math.abs((int) event.getY() - bottom)); in distance()
/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/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.java194 float result = Math.abs(translation / viewSize); in getSwipeProgressForOffset()
322 if (Math.abs(delta) > mPagingTouchSlop in onInterceptTouchEvent()
323 && Math.abs(delta) > Math.abs(deltaPerpendicular)) { in onInterceptTouchEvent()
380 boolean animateLeft = (Math.abs(velocity) > getEscapeVelocity() && velocity < 0) || in dismissChild()
392 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild()
393 .abs(velocity)) in dismissChild()
500 float maxDistance = Math.abs(targetLeft - getTranslation(animView)); in snapChild()
606 float absDelta = Math.abs(delta); in onTouchEvent()
685 && Math.abs(translation) > SWIPED_FAR_ENOUGH_SIZE_FRACTION * getSize(mCurrView); in swipedFarEnough()
709 boolean ret = (Math.abs(velocity) > getEscapeVelocity()) in swipedFastEnough()
/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/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/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButton.java151 final int xDiff = Math.abs(x - mDownX); in onTouchEvent()
152 final int yDiff = Math.abs(y - mDownY); in onTouchEvent()
154 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()

12345678910>>...15