Home
last modified time | relevance | path

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

12

/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DDefaultCardStreamAnimator.java78 float deltaXAbs = Math.abs(deltaX); in getSwipeInAnimator()
81 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeInAnimator()
102 float deltaXAbs = Math.abs(deltaX); in getSwipeOutAnimator()
105 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeOutAnimator()
DCardLayout.java76 mSwiping = Math.abs(mDownX - event.getX()) > mTouchSlop; in onInterceptTouchEvent()
DCardStreamLinearLayout.java110 float deltaXAbs = Math.abs(deltaX);
279 float absDeltaX = Math.abs(deltaX); in isSwiping()
300 float deltaXAbs = Math.abs(deltaX); in swipeView()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java280 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()
281 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
283 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
291 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
293 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
DSensorTest.java90 if (Math.abs(diff[i]) > 0) {
111 boolean gestX = Math.abs(x) > 3;
112 boolean gestY = Math.abs(y) > 3;
DFingerPaint.java101 float dx = Math.abs(x - mX); in touch_move()
102 float dy = Math.abs(y - mY); in touch_move()
DWindowSurface.java167 int dist = Math.abs(mBrightLine-index); in makeGreen()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DCameraFragment.java300 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()
302 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
304 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
312 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
314 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/ndk/platforms/android-3/include/linux/
Dinput.h61 #define EVIOCGABS(abs) _IOR('E', 0x40 + abs, struct input_absinfo) argument
62 #define EVIOCSABS(abs) _IOW('E', 0xc0 + abs, struct input_absinfo) argument
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DListViewItemAnimations.java123 float deltaXAbs = Math.abs(deltaX);
148 float deltaXAbs = Math.abs(deltaX);
239 float fraction = Math.abs(deltaX) / view.getWidth(); in setSwipePosition()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java99 float deltaXAbs = Math.abs(deltaX);
119 float deltaXAbs = Math.abs(deltaX);
/development/ndk/platforms/android-L/include/
Dstdlib.h82 extern int abs(int) __pure2;
/development/ndk/platforms/android-9/include/
Dstdlib.h86 static __inline__ int abs(int __n) { in abs() function
/development/ndk/platforms/android-8/include/
Dstdlib.h86 static __inline__ int abs(int __n) { in abs() function
/development/ndk/platforms/android-3/include/
Dstdlib.h85 static __inline__ int abs(int __n) { in abs() function
/development/ndk/platforms/android-L/include/linux/
Dinput.h85 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) argument
86 #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) argument
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
DCardView.java163 int duration = MAX_FLIP_DURATION - Math.abs(velocity) / VELOCITY_TO_DURATION_CONSTANT; in flipHorizontally()
222 params.leftMargin = (int)(params.leftMargin + ((Math.abs(getRotationY()) % 360) / 180) *
DCardFlip.java173 boolean xGreaterThanY = Math.abs(velocityX) > Math.abs(velocityY); in rotateCardView()
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/
DGridLayoutManagerActivity.java46 return 1 + (Math.abs(item.hashCode()) % mLayoutManager.getSpanCount());
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayoutActivity.java384 factor = Math.abs((float)(mTranslation) / (float)(mFoldLayout.getHeight())); in onScroll()
402 factor = Math.abs(((float)mTranslation) / ((float) mFoldLayout.getWidth())); in onScroll()
/development/samples/browseable/JumpingJack/Wearable/src/com.example.android.wearable.jumpingjack/
DMainActivity.java164 if ((Math.abs(xValue) > GRAVITY_THRESHOLD)) { in detectJump()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DHdrViewfinderActivity.java337 Math.abs(candidateAspect - TARGET_ASPECT) < ASPECT_TOLERANCE; in configureSurfaces()
339 Math.abs(outputAspect - TARGET_ASPECT) < ASPECT_TOLERANCE; in configureSurfaces()

12