/packages/apps/Gallery2/jni/filters/ |
H A D | redeye.c | 25 short* rect = (*env)->GetShortArrayElements(env, vrect,0); local 27 filterRedEye(rgb,rgb,width,height,rect); 29 (*env)->ReleaseShortArrayElements(env, vrect, rect, 0);
|
H A D | redEyeMath.c | 34 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 D | RedEyeCandidate.java | 30 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 D | ImageFilterRedEye.java | 62 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 D | FilterRedEyeRepresentation.java | 50 public void addRect(RectF rect, RectF bounds) { argument 54 if (r.intersect(rect)) { 60 rect.union(r.mRect); 64 addCandidate(new RedEyeCandidate(rect, bounds));
|
H A D | FilterGradRepresentation.java | 188 public int addBand(Rect rect) { argument 189 mBands.add(0, mCurrentBand = new Band(rect.centerX(), rect.centerY())); 193 double addDelta = ADD_MIN_DIST * Math.max(rect.width(), rect.height()); 228 if (mCurrentBand.yPos1 > rect.bottom) { 229 mCurrentBand.yPos1 = (int) (rect.top + addDelta); 231 if (mCurrentBand.xPos1 > rect.right) { 232 mCurrentBand.xPos1 = (int) (rect.left + addDelta);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | WindowLocationUtil.java | 95 public static void getLocationsInWindow(View view, RectF rect) { argument 96 sTmpFloat4[0] = rect.left; 97 sTmpFloat4[1] = rect.top; 98 sTmpFloat4[2] = rect.right; 99 sTmpFloat4[3] = rect.bottom; 101 rect.left = sTmpFloat4[0]; 102 rect.top = sTmpFloat4[1]; 103 rect.right = sTmpFloat4[2]; 104 rect.bottom = sTmpFloat4[3];
|
H A D | TransitionImage.java | 50 * - {@link #setUnclippedRect(RectF)} bounds of original bitmap without clipping, the rect 109 public void setRect(Rect rect) { argument 110 mRect.set(rect); 141 public void setUnclippedRect(RectF rect) { argument 142 mUnclippedRect.set(rect); 149 public void setClippedRect(RectF rect) { argument 150 mClippedRect.set(rect); 224 Rect rect = null; 227 rect = Rect.unflattenFromString(bitmapRectStr); 229 if (rect 347 getOptimizedRect(Rect rect) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
H A D | ContactDetailPhotoSetter.java | 74 // rect is the bounds (in pixels) of the photo view in screen coordinates 75 final Rect rect = new Rect(); 76 rect.left = (int) (pos[0] * appScale + 0.5f); 77 rect.top = (int) (pos[1] * appScale + 0.5f); 78 rect.right = (int) ((pos[0] + v.getWidth()) * appScale + 0.5f); 79 rect.bottom = (int) ((pos[1] + v.getHeight()) * appScale + 0.5f); 86 photoUri, mPhotoBitmap, mPhotoBytes, rect, delta, mContactData.isUserProfile(),
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ActionMenuButton.java | 76 final RectF rect = mRect; 80 rect.set(left + layout.getLineLeft(0) - PADDING_H, 85 canvas.drawRoundRect(rect, CORNER_RADIUS, CORNER_RADIUS, mPaint);
|
H A D | ImageViewTouchBase.java | 193 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 D | Face.java | 30 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 D | EclipseControl.java | 231 RectF rect = new RectF(cx - rx, cy - ry, cx + rx, cy + ry); 236 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); 240 paintOvallines(canvas, rect, paint, cx, cy, rx, ry); 244 Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) { 245 canvas.drawOval(rect, paint); 254 rect.left = cx - dx; 255 rect.top = cy - dy; 256 rect.right = cx + dx; 257 rect.bottom = cy + dy; 258 canvas.drawArc(rect, 243 paintOvallines( Canvas canvas, RectF rect, Paint paint, float cx, float cy, float rx, float ry) argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
H A D | MoreContactUtils.java | 177 final Rect rect = new Rect(); 178 rect.left = pos[0]; 179 rect.top = pos[1]; 180 rect.right = pos[0] + view.getWidth(); 181 rect.bottom = pos[1] + view.getHeight(); 182 return rect;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | Paper.java | 68 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 D | SlotView.java | 111 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 D | Blend.h | 107 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 D | Blend.h | 107 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/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | FrameLayoutWithShadows.java | 133 private Rect rect = new Rect(); field in class:FrameLayoutWithShadows 247 rect.set(drawable.getBounds()); 248 rectf.set(rect); 258 rect.left = (int) (rectf.left + 0.5f); 259 rect.top = (int) (rectf.top + 0.5f); 260 rect.right = (int) (rectf.right + 0.5f); 261 rect.bottom = (int) (rectf.bottom + 0.5f); 265 rect.left = view.getPaddingLeft() - shadow.getPaddingLeft(); 266 rect.top = view.getPaddingTop() - shadow.getPaddingTop(); 267 rect [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
H A D | ColorRectView.java | 163 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | InputView.java | 70 final Rect rect = mInputViewRect; 71 getGlobalVisibleRect(rect); 73 final int x = (int)me.getX(index) + rect.left; 74 final int y = (int)me.getY(index) + rect.top; 100 final Rect rect = mInputViewRect; 101 getGlobalVisibleRect(rect); 103 final int x = (int)me.getX(index) + rect.left; 104 final int y = (int)me.getY(index) + rect.top;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | SearchDropTargetBar.java | 227 final Rect rect = new Rect(); 228 rect.left = pos[0]; 229 rect.top = pos[1]; 230 rect.right = pos[0] + mQSBSearchBar.getWidth(); 231 rect.bottom = pos[1] + mQSBSearchBar.getHeight(); 232 return rect;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | SearchDropTargetBar.java | 235 final Rect rect = new Rect(); 236 rect.left = pos[0]; 237 rect.top = pos[1]; 238 rect.right = pos[0] + mQSBSearchBar.getWidth(); 239 rect.bottom = pos[1] + mQSBSearchBar.getHeight(); 240 return rect;
|
/packages/apps/Browser/src/com/android/browser/view/ |
H A D | ScrollerView.java | 1489 * 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/Camera2/src/com/android/camera/ |
H A D | CaptureLayoutHelper.java | 32 * things are set, the layout of bottom bar and preview rect will be calculated 58 * rect, as well as whether bottom bar should be overlaid on top of preview. 62 * This specifies the rect of preview on screen. 66 * This specifies the rect where bottom bar should be laid out in. 101 * Updates bottom bar rect and preview rect. This gets called whenever 113 * Returns the rect that bottom bar should be laid out in. If not enough info 114 * has been provided to calculate this, return an empty rect. Note that the rect 130 * Returns the rect tha 369 round(RectF rect) argument [all...] |