/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86RelocationFunctions.h | 18 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/ |
D | OverScroll.java | 48 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()
|
D | SwipeDetector.java | 91 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/ |
D | AmbientSensorTest.java | 82 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/ |
D | SingleTapClassifier.java | 58 if (Math.abs(event.getX() - downX) >= mTouchSlop) { in isTap() 60 + Math.abs(event.getX() - downX) in isTap() 64 } else if (Math.abs(event.getY() - downY) >= mTouchSlop) { in isTap() 66 + Math.abs(event.getY() - downY) in isTap()
|
D | DoubleTapClassifier.java | 91 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()
|
D | DistanceClassifier.java | 192 logDebug("Horizontal swipe distance: " + Math.abs(distanceVectors.mDx)); in getPassedDistanceThreshold() 195 return Math.abs(distanceVectors.mDx) >= mHorizontalSwipeThresholdPx; in getPassedDistanceThreshold() 198 logDebug("Vertical swipe distance: " + Math.abs(distanceVectors.mDy)); in getPassedDistanceThreshold() 200 return Math.abs(distanceVectors.mDy) >= mVerticalSwipeThresholdPx; in getPassedDistanceThreshold() 213 return Math.abs(dX) >= mHorizontalFlingThresholdPx; in getPassedFlingThreshold() 219 return Math.abs(dY) >= mVerticalFlingThresholdPx; in getPassedFlingThreshold()
|
/frameworks/av/media/codecs/g711/decoder/ |
D | g711DecMlaw.cpp | 33 int32_t abs = (0x80l << exponent) + step * mantissa + step / 2 - 4 * 33; in DecodeMLaw() local 35 *out++ = (x < 0x80) ? -abs : abs; in DecodeMLaw()
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | RenderPatchAnimation.java | 80 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/ |
D | Cam.java | 168 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() 406 while (Math.abs(low - high) >= CHROMA_SEARCH_ENDPOINT) { in getInt() 462 while (Math.abs(low - high) > LIGHTNESS_SEARCH_ENDPOINT) { in findCamByJ() 471 float dL = Math.abs(lstar - clippedLstar); in findCamByJ()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | SensorInputMapper.cpp | 133 for (int32_t abs = ABS_X; abs <= ABS_MAX; abs++) { in configure() local 135 if (!(getAbsAxisUsage(abs, getDeviceContext().getDeviceClasses()) in configure() 140 getAbsoluteAxisInfo(abs, &rawAxisInfo); in configure() 148 auto ret = getDeviceContext().mapSensor(abs); in configure() 153 parseSensorConfiguration(sensorType, abs, sensorDataIndex, axis); in configure() 155 mAxes.insert({abs, axis}); in configure() 324 int32_t abs = sensor.dataVec[i]; in flushSensor() local 325 auto itAxis = mAxes.find(abs); in flushSensor() 385 int32_t abs = sensor.dataVec[i]; in sync() local 386 auto it = mAxes.find(abs); in sync()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollbarHelper.java | 47 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/native/libs/gui/tests/ |
D | GLTest.cpp | 27 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/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
D | FlingAnimationUtils.java | 108 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 122 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 166 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance)); in getProperties() 167 float diff = Math.abs(endValue - currValue); in getProperties() 168 float velAbs = Math.abs(velocity); in getProperties() 263 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f)); in getDismissingProperties() 264 float diff = Math.abs(endValue - currValue); in getDismissingProperties() 265 float velAbs = Math.abs(velocity); in getDismissingProperties()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | EmergencyButton.java | 84 final int xDiff = Math.abs(x - mDownX); in onTouchEvent() 85 final int yDiff = Math.abs(y - mDownY); in onTouchEvent() 87 if (Math.abs(yDiff) > touchSlop || Math.abs(xDiff) > touchSlop) { in onTouchEvent()
|
/frameworks/native/libs/ui/tests/ |
D | colorspace_test.cpp | 157 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/ |
D | ArcMotion.java | 221 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()
|
D | SidePropagation.java | 136 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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipPinchResizingAlgorithm.java | 85 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/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | errorCalculator.rscript | 41 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/ |
D | MultiFingerSwipe.java | 230 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()
|
D | Swipe.java | 157 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDetailClipper.java | 60 innerR = Math.abs(x); in updateCircularClip() 61 innerR = Math.min(innerR, Math.abs(y)); in updateCircularClip() 62 innerR = Math.min(innerR, Math.abs(w)); in updateCircularClip() 63 innerR = Math.min(innerR, Math.abs(h)); in updateCircularClip()
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64RelocationFunctions.h | 18 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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipSnapAlgorithm.java | 144 final int fromLeft = Math.abs(leftEdge - movementBounds.left); in snapRectToClosestEdge() 145 final int fromTop = Math.abs(stackBounds.top - movementBounds.top); in snapRectToClosestEdge() 146 final int fromRight = Math.abs(movementBounds.right - leftEdge); in snapRectToClosestEdge() 147 final int fromBottom = Math.abs(movementBounds.bottom - stackBounds.top); in snapRectToClosestEdge()
|