/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86RelocationFunctions.h | 15 DECL_X86_32_APPLY_RELOC_FUNC(abs) \ 32 { &abs, 1, "R_386_32", 32 }, \ 51 { &abs, 20, "R_386_16", 16 }, \ 53 { &abs, 22, "R_386_8", 8 }, \ 82 DECL_X86_64_APPLY_RELOC_FUNC(abs) \ 91 { &abs, 1, "R_X86_64_64", 64 }, \ 100 { &abs, 10, "R_X86_64_32", 32 }, \ 102 { &abs, 12, "R_X86_64_16", 16 }, \ 104 { &abs, 14, "R_X86_64_8", 8 }, \
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | FlingAnimationUtils.java | 77 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 91 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 135 * Math.sqrt(Math.abs(endValue - currValue) / maxDistance)); in getProperties() 136 float diff = Math.abs(endValue - currValue); in getProperties() 137 float velAbs = Math.abs(velocity); in getProperties() 203 * Math.pow(Math.abs(endValue - currValue) / maxDistance, 0.5f)); in getDismissingProperties() 204 float diff = Math.abs(endValue - currValue); in getDismissingProperties() 205 float velAbs = Math.abs(velocity); in getDismissingProperties()
|
/frameworks/base/core/res/res/raw/ |
D | color_fade_frag.frag | 19 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/native/libs/gui/tests/ |
D | GLTest.cpp | 25 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/support/v7/recyclerview/src/android/support/v7/widget/ |
D | ScrollbarHelper.java | 46 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarViewTaskSwitchHelper.java | 71 int xDiff = Math.abs(x - mTouchDownX); in onInterceptTouchEvent() 72 int yDiff = Math.abs(y - mTouchDownY); in onInterceptTouchEvent() 94 float absVelX = Math.abs(velocityX); in onFling() 95 float absVelY = Math.abs(velocityY); in onFling()
|
D | KeyguardAffordanceHelper.java | 149 && Math.abs(w) > Math.abs(y - mInitialTouchY) in onTouchEvent() 291 snapBack |= Math.abs(vel) > mMinFlingVelocity && velIsInWrongDirection; in flingWithCurrentVelocity() 297 return Math.abs(mTranslation) < Math.abs(mTranslationOnDown) + getMinTranslationAmount(); in isBelowFalsingThreshold() 336 float absTranslation = Math.abs(translation); 337 if (absTranslation > Math.abs(mTranslationOnDown) + getMinTranslationAmount() ||
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | errorCalculator.rs | 37 error += abs(idealPixel.x - givenPixel.x); 38 error += abs(idealPixel.y - givenPixel.y); 39 error += abs(idealPixel.z - givenPixel.z); 40 error += abs(idealPixel.w - givenPixel.w);
|
D | ErrorCalculator.java | 159 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor)); in calcError() 160 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor)); in calcError() 161 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor)); in calcError() 162 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in calcError()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | SwipeHelper.java | 200 if (Math.abs(delta) > mPagingTouchSlop) { in onInterceptTouchEvent() 234 (int) (Math.abs(newPos - getTranslation(view)) * in dismissChild() 235 1000f / Math.abs(velocity))); in dismissChild() 325 if (Math.abs(amount) >= size) { in setSwipeAmount() 359 Math.abs(translation) > 0.6 * getSize(mCurrView); in endSwipe() 360 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) && in endSwipe() 361 (Math.abs(velocity) > Math.abs(perpendicularVelocity)) && in endSwipe()
|
/frameworks/base/core/java/android/transition/ |
D | SidePropagation.java | 137 distance = right - viewX + Math.abs(epicenterY - viewY); in distance() 140 distance = bottom - viewY + Math.abs(epicenterX - viewX); in distance() 143 distance = viewX - left + Math.abs(epicenterY - viewY); in distance() 146 distance = viewY - top + Math.abs(epicenterX - viewX); in distance()
|
D | ArcMotion.java | 206 ey = startY + mMinimumHorizontalTangent * Math.abs(endX - startX) / 2; in getPath() 208 ex = startX + mMinimumVerticalTangent * Math.abs(endY - startY) / 2; in getPath() 225 if (Math.abs(deltaX) < Math.abs(deltaY)) { in getPath()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ImageUtils.java | 116 return Math.abs(r - g) < TOLERANCE in isGrayscale() 117 && Math.abs(r - b) < TOLERANCE in isGrayscale() 118 && Math.abs(g - b) < TOLERANCE; in isGrayscale()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | StraightenFilter.java | 135 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/ |
D | AArch64RelocationFunctions.h | 15 DECL_AARCH64_APPLY_RELOC_FUNC(abs) \ 29 ValueType(0x101, MappedType(&abs, "R_AARCH64_ABS64", 64)), \ 30 ValueType(0x102, MappedType(&abs, "R_AARCH64_ABS32", 32)), \ 31 ValueType(0x103, MappedType(&abs, "R_AARCH64_ABS16", 16)), \
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 606 final int absDx = Math.abs(dx); in computeSettleDuration() 607 final int absDy = Math.abs(dy); in computeSettleDuration() 608 final int absXVel = Math.abs(xvel); in computeSettleDuration() 609 final int absYVel = Math.abs(yvel); in computeSettleDuration() 631 final float distanceRatio = Math.min(1f, (float) Math.abs(delta) / width); in computeAxisDuration() 636 velocity = Math.abs(velocity); in computeAxisDuration() 638 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); in computeAxisDuration() 640 final float range = (float) Math.abs(delta) / motionRange; in computeAxisDuration() 657 final int absValue = Math.abs(value); in clampMag() 674 final float absValue = Math.abs(value); in clampMag() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | OverScroller.java | 617 if (Math.abs(tx - alpha) < 1E-5) break; 629 if (Math.abs(dy - alpha) < 1E-5) break; 669 final float x = Math.abs((float) newDistance / oldDistance); in adjustDuration() 743 mOver = Math.abs(delta); in startSpringback() 784 return Math.log(INFLEXION * Math.abs(velocity) / (mFlingFriction * mPhysicalCoeff)); in getSplineDeceleration() 803 final float distanceToApex = velocity * velocity / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve() 804 final float distanceToEdge = Math.abs(end - start); in fitOnBounceCurve() 806 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve() 833 if (totalDistance > Math.abs(overDistance)) { in startAfterEdge() 854 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 268 if (Math.abs(delta) > mPagingTouchSlop) { in onInterceptTouchEvent() 331 (int) (Math.abs(newPos - getTranslation(animView)) * 1000f / Math in dismissChild() 332 .abs(velocity)) in dismissChild() 417 float absDelta = Math.abs(delta); in onTouchEvent() 448 Math.abs(getTranslation(mCurrAnimView)) > 0.4 * getSize(mCurrAnimView); in onTouchEvent() 449 boolean childSwipedFastEnough = (Math.abs(velocity) > escapeVelocity) && in onTouchEvent() 450 (Math.abs(velocity) > Math.abs(perpendicularVelocity)) && in onTouchEvent()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | CheckLongPressHelper.java | 63 boolean xMoved = Math.abs(mDownX - x) > mScaledTouchSlop; in onMove() 64 boolean yMoved = Math.abs(mDownY - y) > mScaledTouchSlop; in onMove()
|
/frameworks/base/telephony/java/android/telephony/ |
D | JapanesePhoneNumberFormatter.java | 199 int dashPos2 = rootIndex + (Math.abs(value) % 10); in format() 203 int dashPos1 = rootIndex + (Math.abs(value) / 10); in format()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureStroke.java | 139 float dx = Math.abs(x - mX); in makePath() 140 float dy = Math.abs(y - mY); in makePath() 188 float dx = Math.abs(x - mX); in toPath() 189 float dy = Math.abs(y - mY); in toPath()
|
/frameworks/av/include/media/stagefright/foundation/ |
D | AUtils.h | 50 inline static T abs(const T &a) { in abs() function 67 T err = abs(val) % period; in periodicError()
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
D | ImageUtils.java | 140 delta += Math.abs(deltaR); in assertImageSimilar() 141 delta += Math.abs(deltaG); in assertImageSimilar() 142 delta += Math.abs(deltaB); in assertImageSimilar() 154 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { in assertImageSimilar() 158 } else if (Math.abs(goldenImage.getHeight() - image.getHeight()) >= 2) { in assertImageSimilar()
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | GeocoderTest.java | 47 assertFalse(Math.abs(addr.getLatitude() - 37.4240385) > 0.1); in testGeocoder() 61 assertFalse(Math.abs(addr.getLatitude() - 37.77916) > 0.1); in testGeocoder()
|
/frameworks/base/test-runner/src/android/test/ |
D | ViewAsserts.java | 161 assertEquals("views are not right aligned", Math.abs(firstRight - secondRight), margin); in assertRightAligned() 198 assertEquals("views are not left aligned", Math.abs(firstLeft - secondLeft), margin); in assertLeftAligned() 235 assertEquals("views are not bottom aligned", Math.abs(firstBottom - secondBottom), margin); in assertBottomAligned() 272 assertEquals("views are not top aligned", Math.abs(firstTop - secondTop), margin); in assertTopAligned()
|