Searched refs:rect (Results 1 - 25 of 42) sorted by relevance

12

/packages/apps/Gallery2/jni/filters/
H A Dredeye.c25 short* rect = (*env)->GetShortArrayElements(env, vrect,0); local
27 filterRedEye(rgb,rgb,width,height,rect);
29 (*env)->ReleaseShortArrayElements(env, vrect, rect, 0);
H A DredEyeMath.c34 short *rect) {
35 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3];
55 short *rect) {
56 int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[
33 findPossible(unsigned char *src, unsigned char *mask, int iw, int ih, short *rect) argument
54 findReds(unsigned char *src, unsigned char *mask, int iw, int ih, short *rect) argument
71 dialateMaskIfRed(unsigned char *src, int iw, int ih, unsigned char *mask, unsigned char *out, short *rect) argument
110 filterRedEye(unsigned char *src, unsigned char *dest, int iw, int ih, short *rect) argument
[all...]
H A Dfilters.h50 extern void filterRedEye(unsigned char *src, unsigned char *dest, int iw, int ih, short *rect);
/packages/apps/Settings/src/com/android/settings/widget/
H A DPieChartView.java161 final RectF rect = new RectF(0, 0, width, height);
163 rectSide.set(rect);
168 mPathOutline.addOval(rect, Direction.CW);
181 slice.path.moveTo(rect.centerX(), rect.centerY());
182 slice.path.arcTo(rect, startAngle, sweepAngle);
183 slice.path.lineTo(rect.centerX(), rect.centerY());
193 slice.pathSide.moveTo(rect.centerX(), rect
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailPhotoSetter.java75 // rect is the bounds (in pixels) of the photo view in screen coordinates
76 final Rect rect = new Rect();
77 rect.left = (int) (pos[0] * appScale + 0.5f);
78 rect.top = (int) (pos[1] * appScale + 0.5f);
79 rect.right = (int) ((pos[0] + v.getWidth()) * appScale + 0.5f);
80 rect.bottom = (int) ((pos[1] + v.getHeight()) * appScale + 0.5f);
87 photoUri, mPhotoBitmap, mPhotoBytes, rect, delta, mContactData.isUserProfile(),
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterRedEye.java49 short [] rect = new short[]{
53 nativeApplyFilter(bitmap, w, h, rect);
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DImageViewTouchBase.java251 * @param rect The input/output rectangle
253 public void mapRect(RectF rect) { argument
254 mSuppMatrix.mapRect(rect);
483 final RectF rect = new RectF(0, 0, mBitmapDisplayed.getWidth(),
486 m.mapRect(rect);
488 final float height = rect.height();
489 final float width = rect.width();
495 deltaY = (viewHeight - height) / 2 - rect.top;
496 } else if (rect.top > 0) {
497 deltaY = -rect
[all...]
H A DHorizontalScrollView.java1285 * If rect is off screen, scroll just enough to get it (or at least the
1288 * @param rect The rectangle.
1292 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1293 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1310 * @param rect The rect.
1313 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1322 // leave room for left fading edge as long as rect isn't at very left
1323 if (rect.left > 0) {
1327 // leave room for right fading edge as long as rect is
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DInputView.java63 final Rect rect = mInputViewRect;
64 this.getGlobalVisibleRect(rect);
65 final int x = (int)me.getX() + rect.left;
66 final int y = (int)me.getY() + rect.top;
/packages/apps/Gallery/src/com/android/camera/
H A DActionMenuButton.java76 final RectF rect = mRect;
80 rect.set(left + layout.getLineLeft(0) - PADDING_H,
85 canvas.drawRoundRect(rect, CORNER_RADIUS, CORNER_RADIUS, mPaint);
H A DImageViewTouchBase.java193 RectF rect = new RectF(0, 0,
197 m.mapRect(rect);
199 float height = rect.height();
200 float width = rect.width();
207 deltaY = (viewHeight - height) / 2 - rect.top;
208 } else if (rect.top > 0) {
209 deltaY = -rect.top;
210 } else if (rect.bottom < viewHeight) {
211 deltaY = getHeight() - rect.bottom;
218 deltaX = (viewWidth - width) / 2 - rect
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DFace.java30 public Face(String name, String personId, String rect) { argument
33 Utils.assertTrue(mName != null && mPersonId != null && rect != null);
34 StringTokenizer tokenizer = new StringTokenizer(rect);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DCropImage.java112 public static final String KEY_CROPPED_RECT = "cropped-rect";
279 Rect rect = new Rect(
284 result.putExtra(KEY_CROPPED_RECT, rect);
292 cropped = getCroppedImage(rect);
298 if (cropped == null) cropped = getCroppedImage(rect);
304 if (cropped == null) cropped = getCroppedImage(rect);
310 if (cropped == null) cropped = getCroppedImage(rect);
631 private Bitmap getCroppedImage(Rect rect) { argument
632 Utils.assertTrue(rect.width() > 0 && rect
737 rotateRectangle( Rect rect, int width, int height, int rotation) argument
769 drawInTiles(Canvas canvas, BitmapRegionDecoder decoder, Rect rect, Rect dest, int sample) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPaper.java68 public float[] getTransform(Rect rect, float scrollX) { argument
71 float screenX = rect.centerX() - scrollX;
84 Matrix.translateM(mMatrix, 0, mMatrix, 0, rect.centerX(), rect.centerY(), 0);
86 Matrix.translateM(mMatrix, 0, mMatrix, 0, -rect.width() / 2, -rect.height() / 2, 0);
H A DSlotView.java110 Rect rect = mLayout.getSlotRect(index, mTempRect);
112 ? (rect.left + rect.right - getWidth()) / 2
113 : (rect.top + rect.bottom - getHeight()) / 2;
118 Rect rect = mLayout.getSlotRect(index, mTempRect);
122 int slotBegin = WIDE ? rect.left : rect.top;
123 int slotEnd = WIDE ? rect.right : rect
434 getSlotRect(int index, Rect rect) argument
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DBlend.h107 int DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation);
108 void ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, int site_idx);
109 void ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx);
H A DBlend.cpp163 // Compute clipping for this frame's rect
165 // Clip global rect using this frame's rect
375 int width, int height, YUVinfo &imgMos, MosaicRect &rect,
382 m_pMosaicYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
383 m_pMosaicUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
384 m_pMosaicVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect
374 DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation) argument
800 ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, int site_idx) argument
870 ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx) argument
[all...]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DBlend.h107 int DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation);
108 void ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, int site_idx);
109 void ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx);
125 void RoundingCroppingSizeToMultipleOf8(MosaicRect& rect);
H A DBlend.cpp163 // Compute clipping for this frame's rect
165 // Clip global rect using this frame's rect
375 int width, int height, YUVinfo &imgMos, MosaicRect &rect,
382 m_pMosaicYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
383 m_pMosaicUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect.Height(),BORDER);
384 m_pMosaicVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC,(unsigned short)rect.Width(),(unsigned short)rect
374 DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation) argument
810 RoundingCroppingSizeToMultipleOf8(MosaicRect &rect) argument
820 ComputeMask(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, int site_idx) argument
890 ProcessPyramidForThisFrame(CSite *csite, BlendRect &vcrect, BlendRect &brect, MosaicRect &rect, YUVinfo &imgMos, double trs[3][3], int site_idx) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DSearchDropTargetBar.java230 final Rect rect = new Rect();
231 rect.left = pos[0];
232 rect.top = pos[1];
233 rect.right = pos[0] + mQSBSearchBar.getWidth();
234 rect.bottom = pos[1] + mQSBSearchBar.getHeight();
235 return rect;
/packages/apps/Browser/src/com/android/browser/view/
H A DScrollerView.java1489 * If rect is off screen, scroll just enough to get it (or at least the
1492 * @param rect The rectangle.
1496 private boolean scrollToChildRect(Rect rect, boolean immediate) { argument
1497 final int delta = computeScrollDeltaToGetChildRectOnScreen(rect);
1522 * @param rect The rect.
1525 protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) { argument
1527 return computeScrollDeltaToGetChildRectOnScreenHorizontal(rect);
1529 return computeScrollDeltaToGetChildRectOnScreenVertical(rect);
1533 private int computeScrollDeltaToGetChildRectOnScreenVertical(Rect rect) { argument
1591 computeScrollDeltaToGetChildRectOnScreenHorizontal(Rect rect) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DContactsUtils.java305 final Rect rect = new Rect();
306 rect.left = (int) (pos[0] * appScale + 0.5f);
307 rect.top = (int) (pos[1] * appScale + 0.5f);
308 rect.right = (int) ((pos[0] + view.getWidth()) * appScale + 0.5f);
309 rect.bottom = (int) ((pos[1] + view.getHeight()) * appScale + 0.5f);
310 return rect;
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
H A DPolarClockWallpaper.java493 final RectF rect = mRect;
494 rect.set(-size, -size, size, size);
509 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
514 rect.set(-size, -size, size, size);
523 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
527 rect.set(-size, -size, size, size);
536 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
540 rect.set(-size, -size, size, size);
550 c.drawArc(rect, 0.0f, angle * 360.0f, false, paint);
554 rect
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java564 public static void dumpRect(RectF rect, String msg) { argument
565 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top
566 + "," + rect.right + "," + rect.bottom + ")");
569 public static void rectFToRect(RectF rectF, Rect rect) { argument
570 rect.left = Math.round(rectF.left);
571 rect.top = Math.round(rectF.top);
572 rect.right = Math.round(rectF.right);
573 rect
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java629 public static void dumpRect(RectF rect, String msg) { argument
630 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top
631 + "," + rect.right + "," + rect.bottom + ")");
634 public static void rectFToRect(RectF rectF, Rect rect) { argument
635 rect.left = Math.round(rectF.left);
636 rect.top = Math.round(rectF.top);
637 rect.right = Math.round(rectF.right);
638 rect
[all...]

Completed in 2225 milliseconds

12