/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/Camera2/src/com/android/camera/util/ |
H A D | DebugBoundsRenderer.java | 32 public static void drawBounds(Canvas canvas, Paint paint, float size, Rect rect) { argument 33 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect.bottom); 40 public static void drawBounds(Canvas canvas, Paint paint, float size, RectF rect) { argument 41 drawBounds(canvas, paint, size, rect.left, rect.top, rect.right, rect [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
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 | 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 | 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 | TransitionImageView.java | 133 // get src clip rect relative to the view 137 // get src rect relative to the view 168 // get dst clip rect relative to the view 171 // get dst clip rect before scaling 182 // get dst rect relative to the view 187 // get dst clip rect before scaling 239 // rounding to integer will cause a shaking effect if the target unclip rect is much 293 public void setExcludeClipRect(RectF rect) { argument 297 mExcludeRect.set(rect); 298 // get rect relativ [all...] |
H A D | TransitionImage.java | 50 * - {@link #setUnclippedRect(RectF)} bounds of original bitmap without clipping, the rect 108 public void setRect(Rect rect) { argument 109 mRect.set(rect); 140 public void setUnclippedRect(RectF rect) { argument 141 mUnclippedRect.set(rect); 148 public void setClippedRect(RectF rect) { argument 149 mClippedRect.set(rect); 220 Rect rect = null; 223 rect = Rect.unflattenFromString(bitmapRectStr); 225 if (rect 343 getOptimizedRect(Rect rect) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
H A D | CameraCoordinateTransformer.java | 88 // Map camera driver coordinates to preview rect coordinates 106 private boolean hasNonZeroArea(RectF rect) { argument 107 return rect.width() != 0 && rect.height() != 0;
|
/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/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...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | ZoomView.java | 66 // rect. 87 // of the image rect is at (0, 0) 95 // Calculate the mapping (i.e. transform) between current low res rect 96 // and full res image rect, and apply the mapping on current visible rect 230 * If the given rect is smaller than viewport on x or y axis, center rect within 232 * the bounds of the rect. 234 public static RectF adjustToFitInBounds(RectF rect, int viewportWidth, int viewportHeight) { argument 236 RectF newRect = new RectF(rect); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PhotoFallbackEffect.java | 68 public void addEntry(Path path, Rect rect, RawTexture texture) { argument 69 mList.add(new Entry(path, rect, texture));
|
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);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | AppWidgetResizeFrame.java | 343 public static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) { argument 344 if (rect == null) { 345 rect = new Rect(); 366 rect.set(portWidth, landHeight, landWidth, portHeight); 367 return rect;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | FrameLayoutWithShadows.java | 133 private final 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/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/Launcher2/src/com/android/launcher2/ |
H A D | AppWidgetResizeFrame.java | 347 static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) { argument 348 if (rect == null) { 349 rect = new Rect(); 370 rect.set(portWidth, landHeight, landWidth, portHeight); 371 return rect;
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | UrlInputView.java | 312 public boolean requestRectangleOnScreen(Rect rect, boolean immediate) { argument
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | FocusOverlayManager.java | 322 ((Area) mFocusArea.get(0)).rect); 337 ((Area) mMeteringArea.get(0)).rect); 515 int x, int y, int previewWidth, int previewHeight, Rect rect) { 523 Util.rectFToRect(rectF, rect); 514 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
|
H A D | Util.java | 628 public static void dumpRect(RectF rect, String msg) { argument 629 Log.v(TAG, msg + "=(" + rect.left + "," + rect.top 630 + "," + rect.right + "," + rect.bottom + ")"); 633 public static void rectFToRect(RectF rectF, Rect rect) { argument 634 rect.left = Math.round(rectF.left); 635 rect.top = Math.round(rectF.top); 636 rect.right = Math.round(rectF.right); 637 rect [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | FocusManager.java | 271 mFocusArea.get(0).rect); 273 mMeteringArea.get(0).rect); 448 int x, int y, int previewWidth, int previewHeight, Rect rect) { 456 Util.rectFToRect(rectF, rect); 447 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
|
H A D | Util.java | 564 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/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...] |