/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/ |
H A D | CropFilter.java | 33 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 D | CropAction.java | 55 RectF bounds = new RectF(DEFAULT_CROP, DEFAULT_CROP, 1 - DEFAULT_CROP, 1 - DEFAULT_CROP); 56 cropView.setCropBounds(bounds); 57 filter.setCropBounds(bounds);
|
H A D | CropView.java | 31 * 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 D | BitmapUtils.java | 107 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 D | RotateImageView.java | 96 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 D | LatinKeyboard.java | 205 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 D | KeyboardView.java | 531 final Rect bounds = background.getBounds(); 532 if (bgWidth != bounds.right || bgHeight != bounds.bottom) {
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Folder.java | 797 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 D | GLView.java | 178 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 D | ScrollBarView.java | 108 Rect b = bounds();
|
H A D | PhotoView.java | 320 RectF bounds = mPositionController.getImageBounds(); 321 int left = Math.round(bounds.left); 322 int right = Math.round(bounds.right); 452 RectF bounds = controller.getImageBounds(); 453 int left = Math.round(bounds.left); 454 int right = Math.round(bounds.right);
|
/packages/experimental/UiAutomation/service/src/com/android/testing/uiautomation/ |
H A D | AccessibilityNodeInfoHelper.java | 75 Rect bounds = new Rect(); 76 node.getBoundsInScreen(bounds); 77 serializer.attribute("", "bounds", bounds.toShortString());
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartNetworkSeriesView.java | 243 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 D | TextFieldsEditorView.java | 279 * 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 D | ContactListItemView.java | 481 // 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 D | GLViewTest.java | 87 Rect b = view.bounds(); 97 b = view.bounds();
|
/packages/experimental/DreamTheater/src/com/android/dreamtheater/ |
H A D | BouncyDroid.java | 417 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 D | SuggestionsView.java | 240 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);
|