Searched refs:bounds (Results 1 - 17 of 17) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/
H A DCropFilter.java33 private RectF bounds; field in class:CropFilter
38 public void setCropBounds(RectF bounds) { argument
39 this.bounds = bounds;
45 dst.changeDimension(Math.round(bounds.width() * src.width()),
46 Math.round(bounds.height() * src.height()));
49 effect.setParameter("xorigin", Math.round(bounds.left * src.width()));
50 effect.setParameter("yorigin", Math.round(bounds.top * src.height()));
58 out.writeParcelable(bounds, 0);
63 bounds
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
H A DCropAction.java55 RectF bounds = new RectF(DEFAULT_CROP, DEFAULT_CROP, 1 - DEFAULT_CROP, 1 - DEFAULT_CROP);
56 cropView.setCropBounds(bounds);
57 filter.setCropBounds(bounds);
H A DCropView.java31 * A view that tracks touch motions and adjusts crop bounds accordingly.
36 * Listener of crop bounds.
89 * Sets cropped bounds; modifies the bounds if it's smaller than the allowed dimensions.
91 public void setCropBounds(RectF bounds) { argument
93 if (bounds.width() * getPhotoWidth() < MIN_CROP_WIDTH_HEIGHT) {
94 bounds.set(0, bounds.top, 1, bounds.bottom);
96 if (bounds
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
H A DBitmapUtils.java107 Rect bounds = new Rect();
116 bounds.right = options.outWidth;
117 bounds.bottom = options.outHeight;
124 return bounds;
146 * Decodes bitmap (maybe immutable) that keeps aspect-ratio and spans most within the bounds.
154 Rect bounds = getBitmapBounds(uri);
155 int sampleSize = Math.max(bounds.width() / width, bounds.height() / height);
157 Math.max(bounds.width() / height, bounds
[all...]
/packages/apps/Camera/src/com/android/camera/ui/
H A DRotateImageView.java96 Rect bounds = drawable.getBounds();
97 int w = bounds.right - bounds.left;
98 int h = bounds.bottom - bounds.top;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DLatinKeyboard.java205 private static int getTextWidth(Paint paint, String text, float textSize, Rect bounds) { argument
207 paint.getTextBounds(text, 0, text.length(), bounds);
208 return bounds.width();
214 final Rect bounds = new Rect();
218 int textWidth = getTextWidth(paint, language, origTextSize, bounds);
222 textWidth = getTextWidth(paint, language, textSize, bounds);
230 textWidth = getTextWidth(paint, language, origTextSize, bounds);
240 textWidth = getTextWidth(paint, language, origTextSize, bounds);
H A DKeyboardView.java531 final Rect bounds = background.getBounds();
532 if (bgWidth != bounds.right || bgHeight != bounds.bottom) {
/packages/apps/Launcher2/src/com/android/launcher2/
H A DFolder.java797 Rect bounds = new Rect();
798 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds);
801 int left = Math.min(Math.max(bounds.left, centeredLeft),
802 bounds.left + bounds.width() - width);
803 int top = Math.min(Math.max(bounds.top, centeredTop),
804 bounds.top + bounds.height() - height);
805 // If the folder doesn't fit within the bounds, center it about the desired bounds
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLView.java178 public Rect bounds() { method in class:GLView
371 * Gets the bounds of the given descendant that relative to this view.
379 Rect bounds = view.mBounds;
380 xoffset += bounds.left;
381 yoffset += bounds.top;
H A DScrollBarView.java108 Rect b = bounds();
H A DPhotoView.java191 RectF bounds = mPositionController.getImageBounds();
192 int left = Math.round(bounds.left);
193 int right = Math.round(bounds.right);
367 RectF bounds = mPositionController.getImageBounds();
368 int left = Math.round(bounds.left);
369 int right = Math.round(bounds.right);
512 RectF bounds = controller.getImageBounds();
513 int left = Math.round(bounds.left);
514 int right = Math.round(bounds.right);
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartNetworkSeriesView.java243 final RectF bounds = new RectF();
244 mPathFill.computeBounds(bounds, true);
245 Log.d(TAG, "onLayout() rendered with bounds=" + bounds.toString() + " and totalData="
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DTextFieldsEditorView.java279 * Populates the bound rectangle with the bounds of the last editor field inside this view.
281 public void acquireEditorBounds(Rect bounds) { argument
286 bounds.set(editText.getLeft(), editText.getTop(), editText.getRight(),
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactListItemView.java481 // Determine the vertical bounds by laying out the header first.
675 public void adjustListItemSelectionBounds(Rect bounds) { argument
676 bounds.top += mBoundsWithoutHeader.top;
677 bounds.bottom = bounds.top + mBoundsWithoutHeader.height();
678 bounds.left += mSelectionBoundsMarginLeft;
679 bounds.right -= mSelectionBoundsMarginRight;
1323 * Specifies left and right margin for selection bounds. See also
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLViewTest.java87 Rect b = view.bounds();
97 b = view.bounds();
/packages/experimental/DreamTheater/src/com/android/dreamtheater/
H A DBouncyDroid.java417 RectF bounds = new RectF(x-r, y-r, x+r, y+r);
418 canvas.drawOval(bounds, pt);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSuggestionsView.java240 final Rect bounds = new Rect();
241 paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, MORE_SUGGESTIONS_HINT.length(), bounds);
242 final int width = Math.round(bounds.width() + 0.5f);
243 final int height = Math.round(bounds.height() + 0.5f);

Completed in 4777 milliseconds