Home
last modified time | relevance | path

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

12345678910>>...18

/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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
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()
/frameworks/base/services/tests/displayservicetests/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/
DTapClassifier.java51 if (Math.abs(event.getX() - downX) >= mTouchSlop) { in isTap()
53 + Math.abs(event.getX() - downX) in isTap()
57 } else if (Math.abs(event.getY() - downY) >= mTouchSlop) { in isTap()
59 + Math.abs(event.getY() - downY) in isTap()
DDoubleTapClassifier.java91 if (Math.abs(firstFinalEvent.getX() - secondFinalEvent.getX()) >= mDoubleTapSlop) { in isDoubleTap()
93 .append(Math.abs(firstFinalEvent.getX() - secondFinalEvent.getX())) in isDoubleTap()
99 if (Math.abs(firstFinalEvent.getY() - secondFinalEvent.getY()) >= mDoubleTapSlop) { in isDoubleTap()
101 .append(Math.abs(firstFinalEvent.getY() - secondFinalEvent.getY())) in isDoubleTap()
DDistanceClassifier.java195 logDebug("Horizontal swipe distance: " + Math.abs(distanceVectors.mDx)); in getPassedDistanceThreshold()
198 return Math.abs(distanceVectors.mDx) >= mHorizontalSwipeThresholdPx; in getPassedDistanceThreshold()
201 logDebug("Vertical swipe distance: " + Math.abs(distanceVectors.mDy)); in getPassedDistanceThreshold()
203 return Math.abs(distanceVectors.mDy) >= mVerticalSwipeThresholdPx; in getPassedDistanceThreshold()
216 return Math.abs(dX) >= mHorizontalFlingThresholdPx; in getPassedFlingThreshold()
222 return Math.abs(dY) >= mVerticalFlingThresholdPx; in getPassedFlingThreshold()
/frameworks/av/media/module/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/tests/src/com/android/systemui/media/controls/ui/
DMediaViewControllerTest.kt191 verify(controlWidgetState).alpha = floatThat { kotlin.math.abs(it - 0.5F) < delta } in <lambda>()
192 verify(detailWidgetState).alpha = floatThat { kotlin.math.abs(it - 1.0F) < delta } in <lambda>()
194 verify(controlWidgetState).alpha = floatThat { kotlin.math.abs(it - 1.0F) < delta } in <lambda>()
195 verify(detailWidgetState, times(2)).alpha = floatThat { kotlin.math.abs(it - 1.0F) < delta } in <lambda>()
222 verify(mediaContainerWidgetState).alpha = floatThat { kotlin.math.abs(it - 0.5F) < delta } in <lambda>()
224 verify(mediaContainerWidgetState).alpha = floatThat { kotlin.math.abs(it - 1.0F) < delta } in <lambda>()
228 verify(mediaTitleWidgetState).alpha = floatThat { kotlin.math.abs(it - 0.5F) < delta } in <lambda>()
229 verify(mediaSubTitleWidgetState).alpha = floatThat { kotlin.math.abs(it - 0.5F) < delta } in <lambda>()
231 verify(mediaTitleWidgetState).alpha = floatThat { kotlin.math.abs(it - 1.0F) < delta } in <lambda>()
232 verify(mediaSubTitleWidgetState).alpha = floatThat { kotlin.math.abs(it - 1.0F) < delta } in <lambda>()
/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/base/core/java/com/android/internal/graphics/cam/
DCam.java168 float rAF = (float) Math.pow(frame.getFl() * Math.abs(rD) / 100.0, 0.42); in fromIntInFrame()
169 float gAF = (float) Math.pow(frame.getFl() * Math.abs(gD) / 100.0, 0.42); in fromIntInFrame()
170 float bAF = (float) Math.pow(frame.getFl() * Math.abs(bD) / 100.0, 0.42); in fromIntInFrame()
309 float rCBase = (float) Math.max(0, (27.13 * Math.abs(rA)) / (400.0 - Math.abs(rA))); in viewed()
312 float gCBase = (float) Math.max(0, (27.13 * Math.abs(gA)) / (400.0 - Math.abs(gA))); in viewed()
315 float bCBase = (float) Math.max(0, (27.13 * Math.abs(bA)) / (400.0 - Math.abs(bA))); in viewed()
413 while (Math.abs(low - high) >= CHROMA_SEARCH_ENDPOINT) { in getInt()
469 while (Math.abs(low - high) > LIGHTNESS_SEARCH_ENDPOINT) { in findCamByJ()
478 float dL = Math.abs(lstar - clippedLstar); in findCamByJ()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButton.java79 final int xDiff = Math.abs(x - mDownX); in onTouchEvent()
80 final int yDiff = Math.abs(y - mDownY); in onTouchEvent()
82 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
/frameworks/native/services/inputflinger/reader/mapper/
DSensorInputMapper.cpp130 for (int32_t abs = ABS_X; abs <= ABS_MAX; abs++) { in reconfigure() local
132 if (!(getAbsAxisUsage(abs, getDeviceContext().getDeviceClasses()) in reconfigure()
137 getAbsoluteAxisInfo(abs, &rawAxisInfo); in reconfigure()
145 auto ret = getDeviceContext().mapSensor(abs); in reconfigure()
150 parseSensorConfiguration(sensorType, abs, sensorDataIndex, axis); in reconfigure()
152 mAxes.insert({abs, axis}); in reconfigure()
322 int32_t abs = sensor.dataVec[i]; in flushSensor() local
323 auto itAxis = mAxes.find(abs); in flushSensor()
384 int32_t abs = sensor.dataVec[i]; in sync() local
385 auto it = mAxes.find(abs); in sync()
/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/av/media/libstagefright/
DVideoRenderQualityTracker.cpp411 abs(contentFrameDurationUs - desiredFrameDurationUs) < in resetIfDiscontinuity()
585 if (abs(errorUs) < c.judderErrorToleranceUs) { in computePreviousJudderScore()
593 if (abs(previousErrorUs) >= c.judderErrorToleranceUs) { in computePreviousJudderScore()
594 errorUs = abs(errorUs) + abs(errorUs + previousErrorUs); in computePreviousJudderScore()
598 if (abs(errorUs) < contentFrameDurationUs[1] / 4) { in computePreviousJudderScore()
602 return abs(errorUs) / 1000; // error in millis to keep numbers small in computePreviousJudderScore()
710 if (abs(durationUs[0] - durationUs[1]) > c.frameRateDetectionToleranceUs || in detectFrameRate()
711 abs(durationUs[0] - durationUs[2]) > c.frameRateDetectionToleranceUs) { in detectFrameRate()
726 if (abs(durationUs[0] - durationUs[2]) > c.frameRateDetectionToleranceUs || in is32pulldown()
727 abs(durationUs[1] - durationUs[3]) > c.frameRateDetectionToleranceUs || in is32pulldown()
[all …]
/frameworks/native/libs/gui/tests/
DGLTest.cpp27 static int abs(int value) { in abs() function
182 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
185 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
191 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
197 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
214 if (abs(r1.left - r2.left) > tolerance) { in assertRectEq()
217 if (abs(r1.top - r2.top) > tolerance) { in assertRectEq()
223 if (abs(r1.right - r2.right) > tolerance) { in assertRectEq()
229 if (abs(r1.bottom - r2.bottom) > tolerance) { in assertRectEq()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/
DFlingAnimationUtils.java108 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
122 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
136 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
198 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance)); in getProperties()
199 float diff = Math.abs(endValue - currValue); in getProperties()
200 float velAbs = Math.abs(velocity); in getProperties()
295 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f)); in getDismissingProperties()
296 float diff = Math.abs(endValue - currValue); in getDismissingProperties()
297 float velAbs = Math.abs(velocity); in getDismissingProperties()
/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.cpp160 EXPECT_TRUE(all(lessThan(abs(r - float3{0.8912f, 0.4962f, 0.1164f}), float3{1e-4f}))); in TEST_F()
165 EXPECT_TRUE(all(lessThan(abs(r - float3{0.70226f, 0.2757f, 0.1036f}), float3{1e-4f}))); in TEST_F()
174 EXPECT_TRUE(all(lessThan(abs(r - float3{0.8912f, 0.4962f, 0.1164f}), float3{1e-4f}))); in TEST_F()
178 EXPECT_TRUE(all(lessThan(abs(r - float3{1.0f, 1.0f, 0.5290f}), float3{1e-4f}))); in TEST_F()
182 EXPECT_TRUE(all(lessThan(abs(r - float3{1.0f, 1.0f, 1.0f}), float3{1e-4f}))); in TEST_F()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipPinchResizingAlgorithm.java85 return Math.signum(angle) * Math.max(0, (Math.abs(dampedRotate(angle)) - ANGLE_THRESHOLD)); in constrainRotationAngle()
96 f = f / (Math.abs(f)) * (overRotateInfluenceCurve(Math.abs(f))); in dampedRotate()
99 if (Math.abs(f) >= 1) { in dampedRotate()
100 f /= Math.abs(f); in dampedRotate()
/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.java230 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onPointerUp()
231 final float dY = Math.abs(y - mPreviousGesturePoint[pointerIndex].y); in onPointerUp()
269 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onMove()
270 final float dY = Math.abs(y - mPreviousGesturePoint[pointerIndex].y); in onMove()
273 Math.abs(x - mBase[pointerIndex].x), in onMove()
274 Math.abs(y - mBase[pointerIndex].y)); in onMove()
337 final float dX = Math.abs(x - mPreviousGesturePoint[pointerIndex].x); in onUp()
338 final float dY = Math.abs(y - mPreviousGesturePoint[pointerIndex].y); in onUp()
413 if (Math.abs(dX) > Math.abs(dY)) { in toDirection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailClipper.java71 innerR = Math.abs(x); in updateCircularClip()
72 innerR = Math.min(innerR, Math.abs(y)); in updateCircularClip()
73 innerR = Math.min(innerR, Math.abs(w)); in updateCircularClip()
74 innerR = Math.min(innerR, Math.abs(h)); in updateCircularClip()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java133 delta += Math.abs(deltaR); in assertImageSimilar()
134 delta += Math.abs(deltaG); in assertImageSimilar()
135 delta += Math.abs(deltaB); in assertImageSimilar()
147 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { in assertImageSimilar()
151 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) { in assertImageSimilar()

12345678910>>...18