Searched refs:rect (Results 1 - 25 of 50) 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...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DRedEyeCandidate.java30 public RedEyeCandidate(RectF rect, RectF bounds) { argument
31 mRect.set(rect);
43 public boolean intersect(RectF rect) { argument
44 return mRect.intersect(rect);
H A DImageFilterRedEye.java62 short[] rect = new short[4];
70 rect[0] = (short) r.left;
71 rect[1] = (short) r.top;
72 rect[2] = (short) r.width();
73 rect[3] = (short) r.height();
74 nativeApplyFilter(bitmap, w, h, rect);
H A DFilterRedEyeRepresentation.java36 public void addRect(RectF rect, RectF bounds) { argument
40 if (r.intersect(rect)) {
46 rect.union(r.mRect);
50 addCandidate(new RedEyeCandidate(rect, bounds));
/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/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...]
/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/filtershow/imageshow/
H A DEclipseControl.java219 RectF rect = new RectF(cx - rx, cy - ry, cx + rx, cy + ry);
224 paintOvallines(canvas, rect, paint, cx, cy, rx, ry);
228 paintOvallines(canvas, rect, paint, cx, cy, rx, ry);
232 Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) {
233 canvas.drawOval(rect, paint);
242 rect.left = cx - dx;
243 rect.top = cy - dy;
244 rect.right = cx + dx;
245 rect.bottom = cy + dy;
246 canvas.drawArc(rect,
231 paintOvallines( Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) argument
[all...]
H A DImageRedEye.java112 RectF rect = candidate.getRect();
114 originalToScreen.mapRect(drawRect, rect);
116 originalRotateToScreen.mapRect(fullRect, rect);
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DMoreContactUtils.java177 final Rect rect = new Rect();
178 rect.left = (int) (pos[0] * appScale + 0.5f);
179 rect.top = (int) (pos[1] * appScale + 0.5f);
180 rect.right = (int) ((pos[0] + view.getWidth()) * appScale + 0.5f);
181 rect.bottom = (int) ((pos[1] + view.getHeight()) * appScale + 0.5f);
182 return rect;
/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.java111 Rect rect = mLayout.getSlotRect(index, mTempRect);
113 ? (rect.left + rect.right - getWidth()) / 2
114 : (rect.top + rect.bottom - getHeight()) / 2;
119 Rect rect = mLayout.getSlotRect(index, mTempRect);
123 int slotBegin = WIDE ? rect.left : rect.top;
124 int slotEnd = WIDE ? rect.right : rect
435 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);
/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/Gallery2/jni_mosaic/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);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
H A DColorRectView.java163 RectF rect = new RectF();
164 rect.left = mBorder;
165 rect.right = mWidth - mBorder;
166 rect.top = mBorder;
167 rect.bottom = mHeight - mBorder;
169 canvas.drawRect(rect, mWheelPaint1);
170 canvas.drawRect(rect, mWheelPaint3);
171 canvas.drawRect(rect, mWheelPaint2);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DSearchDropTargetBar.java229 final Rect rect = new Rect();
230 rect.left = pos[0];
231 rect.top = pos[1];
232 rect.right = pos[0] + mQSBSearchBar.getWidth();
233 rect.bottom = pos[1] + mQSBSearchBar.getHeight();
234 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/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...]

Completed in 3269 milliseconds

12