Searched refs:abs (Results 76 - 100 of 133) sorted by relevance

123456

/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DRSTestCore.java228 if (Math.abs(dy) <= 2) {
/frameworks/volley/tests/src/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java160 long diff = Math.abs(expected - value);
/frameworks/native/libs/gui/tests/
H A DSurfaceTexture_test.cpp211 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
214 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
220 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
226 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
245 if (abs(r1.left - r2.left) > tolerance) {
248 if (abs(r1.top - r2.top) > tolerance) {
254 if (abs(r1.right - r2.right) > tolerance) {
260 if (abs(r1.bottom - r2.bottom) > tolerance) {
375 static int abs(int value) { function in namespace:android
/frameworks/base/core/java/android/view/
H A DFocusFinder.java488 return Math.abs(
494 return Math.abs(
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java870 if (Math.abs(stride) < width) {
871 throw new IllegalArgumentException("abs(stride) must be >= width");
1305 * bounds of the bitmap, or if abs(stride) < width.
1366 if (Math.abs(stride) < width) {
1367 throw new IllegalArgumentException("abs(stride) must be >= width");
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialPickerLayout.java634 float dY = Math.abs(eventY - mDownY);
635 float dX = Math.abs(eventX - mDownX);
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c520 deltaRate = -abs(deltaRate);
523 deltaRate = abs(deltaRate);
H A Dplaybq.cpp520 deltaRate = -abs(deltaRate);
523 deltaRate = abs(deltaRate);
/frameworks/base/core/java/android/net/http/
H A DRequestHandle.java432 Integer.MAX_VALUE : Math.abs(nextInt);
/frameworks/base/core/java/android/text/format/
H A DTime.java696 int offset = (int)Math.abs(gmtoff);
/frameworks/base/core/java/com/android/internal/util/
H A DTypedProperties.java314 double absValue = Math.abs(value);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DWindowOrientationListener.java481 if (Math.abs(tiltAngle) > MAX_TILT) {
/frameworks/base/services/java/com/android/server/accessibility/
H A DTouchExplorer.java485 Math.abs(mVelocityTracker.getXVelocity(pointerId)),
486 Math.abs(mVelocityTracker.getYVelocity(pointerId)));
786 final float dX = Math.abs(x - mPreviousX);
787 final float dY = Math.abs(y - mPreviousY);
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DAutomaticActivity.java199 if (Math.abs(t.getAverage()) > ERROR_DISPLAY_THRESHOLD) {
/frameworks/base/core/java/android/widget/
H A DAbsListView.java2005 result += Math.abs((int) ((float) mScrollY / getHeight() * mItemCount * 100));
3157 final int distance = Math.abs(deltaY);
3211 Math.abs(rawDeltaY) > mTouchSlop) {
3252 if (Math.abs(mOverscrollDistance) == Math.abs(mScrollY)) {
3679 if (Math.abs(initialVelocity) > mMinimumVelocity &&
3716 if (Math.abs(initialVelocity) > mMinimumVelocity) {
4078 if (Math.abs(yvel) >= mMinimumVelocity
4560 final int absScroll = Math.abs(scrollBy);
4730 final float modifier = Math.min(Math.abs(screenTravelCoun
[all...]
H A DNumberPicker.java785 if (Math.abs(overshootAdjustment) > mSelectorElementHeight / 2) {
869 int deltaDownY = (int) Math.abs(currentMoveY - mLastDownEventY);
888 if (Math.abs(initialVelocity) > mMinimumFlingVelocity) {
893 int deltaMoveY = (int) Math.abs(eventY - mLastDownEventY);
2027 if (Math.abs(deltaY) > mSelectorElementHeight / 2) {
H A DHorizontalScrollView.java473 final int xDiff = (int) Math.abs(x - mLastMotionX);
580 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) {
638 if ((Math.abs(initialVelocity) > mMinimumVelocity)) {
H A DScrollView.java503 final int yDiff = Math.abs(y - mLastMotionY);
616 if (!mIsBeingDragged && Math.abs(deltaY) > mTouchSlop) {
674 if ((Math.abs(initialVelocity) > mMinimumVelocity)) {
H A DStackView.java652 if ((int) Math.abs(deltaY) > mTouchSlop && mSwipeGestureType == GESTURE_NONE) {
1054 float duration = invert ? d / Math.abs(velocity) :
1055 (maxd - d) / Math.abs(velocity);
H A DAbsSeekBar.java382 if (Math.abs(x - mTouchDownX) > mScaledTouchSlop) {
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java252 Math.abs(dx) < mVC.getScaledTouchSlop()
258 Math.abs(dy) < mVC.getScaledTouchSlop()
848 value = Math.abs(value);
/frameworks/base/media/java/android/media/
H A DRemoteControlClient.java670 if (Math.abs(estPos - actPos) > POSITION_DRIFT_MAX_MS) {
1753 if (Math.abs(speed) <= 1.0f) {
1756 return Math.max((long)(POSITION_REFRESH_PERIOD_PLAYING_MS / Math.abs(speed)),
/frameworks/base/core/java/android/text/
H A DLayout.java1063 float bestdist = Math.abs(getPrimaryHorizontal(best) - horiz);
1090 float dist = Math.abs(getPrimaryHorizontal(low) - horiz);
1094 float other = Math.abs(getPrimaryHorizontal(aft) - horiz);
1108 float dist = Math.abs(getPrimaryHorizontal(here) - horiz);
1116 float dist = Math.abs(getPrimaryHorizontal(max) - horiz);
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DFileRotatorTest.java340 currentTime += Math.abs(random.nextLong()) % DAY_IN_MILLIS;
/frameworks/rs/driver/runtime/
H A Drs_cl.c729 * abs
731 extern uint32_t __attribute__((overloadable)) abs(int32_t v) { function
736 extern uint16_t __attribute__((overloadable)) abs(int16_t v) { function
741 extern uint8_t __attribute__((overloadable)) abs(int8_t v) { function
770 UIN_FUNC_IN(abs)

Completed in 857 milliseconds

123456