/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Folder.java | 811 // the folders bounds. 816 Rect bounds = new Rect(); 817 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds); 822 int left = Math.min(Math.max(bounds.left, centeredLeft), 823 bounds.left + bounds.width() - width); 824 int top = Math.min(Math.max(bounds.top, centeredTop), 825 bounds.top + bounds.height() - height); 826 // If the folder doesn't fit within the bounds, cente [all...] |
/packages/apps/Gallery2/src/com/android/photos/drawables/ |
H A D | AutoThumbnailDrawable.java | 94 protected void onBoundsChange(Rect bounds) { argument 95 super.onBoundsChange(bounds); 97 mBounds.set(bounds);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Folder.java | 1010 // the folders bounds. 1015 Rect bounds = new Rect(); 1016 parent.getDescendantRectRelativeToSelf(boundingLayout, bounds); 1021 int left = Math.min(Math.max(bounds.left, centeredLeft), 1022 bounds.left + bounds.width() - width); 1023 int top = Math.min(Math.max(bounds.top, centeredTop), 1024 bounds.top + bounds.height() - height); 1028 } else if (width >= bounds [all...] |
H A D | DeviceProfile.java | 530 /** Returns the search bar bounds in the current orientation */ 534 /** Returns the search bar bounds in the specified orientation */ 536 Rect bounds = new Rect(); 540 bounds.set(availableWidthPx - searchBarSpaceHeightPx, edgeMarginPx, 543 bounds.set(0, edgeMarginPx, searchBarSpaceHeightPx, 557 bounds.set(edgeMarginPx + gap, getSearchBarTopOffset(), 561 bounds.set(desiredWorkspaceLeftRightMarginPx - defaultWidgetPadding.left, 567 return bounds; 570 /** Returns the bounds of the workspace page indicators. */
|
H A D | Workspace.java | 1987 Rect bounds = new Rect(); 1988 d.copyBounds(bounds); 1989 if (bounds.width() == 0 || bounds.height() == 0) { 1990 bounds.set(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight()); 1992 bounds.offsetTo(0, 0); 1996 bounds.inset(inset, inset); 1998 return bounds; 2013 Rect bounds = getDrawableBounds(d); 2014 bmpWidth = bounds [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
H A D | WallpaperCropActivity.java | 315 final Point bounds = cropTask.getImageBounds(); 318 updateWallpaperDimensions(bounds.x, bounds.y); 604 // Find crop bounds (scaled to original image size) 609 Point bounds = getImageBounds(); 617 if (bounds == null) { 618 Log.w(LOGTAG, "cannot get bounds for image"); 623 float[] rotatedBounds = new float[] { bounds.x, bounds.y }; 630 mCropBounds.offset(bounds [all...] |
H A D | WallpaperPickerActivity.java | 805 Point bounds = cropTask.getImageBounds(); 806 if (bounds == null || bounds.x == 0 || bounds.y == 0) { 812 float[] rotatedBounds = new float[] { bounds.x, bounds.y };
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
H A D | ProcessingService.java | 108 Rect bounds, Rect destination, 117 request.setBounds(bounds); 119 passedPreset.setPartialRendering(true, bounds); 107 postFullresRenderingRequest(ImagePreset preset, float scaleFactor, Rect bounds, Rect destination, RenderingRequestCaller caller) argument
|
H A D | ImagePreset.java | 603 public void setPartialRendering(boolean partialRendering, Rect bounds) { argument 605 mPartialRenderingBounds = bounds;
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartNetworkSeriesView.java | 246 final RectF bounds = new RectF(); 247 mPathFill.computeBounds(bounds, true); 248 Log.d(TAG, "onLayout() rendered with bounds=" + bounds.toString() + " and totalData="
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | PhotoSelectionActivity.java | 85 /** Source bounds of the image that was clicked on. */ 195 // Wait until the layout pass to show the photo, so that the source bounds will match up. 211 // pull out the bounds of the backdrop 212 final Rect bounds = new Rect(); 213 enclosingView.getDrawingRect(bounds); 214 final int boundsWidth = bounds.width(); 215 final int boundsHeight = bounds.height() - heightOffset; 261 * @param photoBounds The pixel bounds of the current photo.
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 206 * Gets the bounds given by x, y, width, and height as well as the internal 208 * It only considers the lower-left and upper-right corners as the bounds. 210 * @param bounds The output bounds to write to. 216 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument
|
H A D | GLES20Canvas.java | 993 public void getBounds(Rect bounds, int x, int y, int width, int height) { argument 998 bounds.left = Math.round(mTempMatrix[MATRIX_SIZE]); 999 bounds.right = Math.round(mTempMatrix[MATRIX_SIZE + 4]); 1000 bounds.top = Math.round(mTempMatrix[MATRIX_SIZE + 1]); 1001 bounds.bottom = Math.round(mTempMatrix[MATRIX_SIZE + 5]); 1002 bounds.sort();
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | GLView.java | 187 public Rect bounds() { method in class:GLView 404 * Gets the bounds of the given descendant that relative to this view. 412 Rect bounds = view.mBounds; 413 xoffset += bounds.left; 414 yoffset += bounds.top;
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 204 * Gets the bounds given by x, y, width, and height as well as the internal 206 * It only considers the lower-left and upper-right corners as the bounds. 208 * @param bounds The output bounds to write to. 214 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument
|
H A D | GLES20Canvas.java | 993 public void getBounds(Rect bounds, int x, int y, int width, int height) { argument 998 bounds.left = Math.round(mTempMatrix[MATRIX_SIZE]); 999 bounds.right = Math.round(mTempMatrix[MATRIX_SIZE + 4]); 1000 bounds.top = Math.round(mTempMatrix[MATRIX_SIZE + 1]); 1001 bounds.bottom = Math.round(mTempMatrix[MATRIX_SIZE + 5]); 1002 bounds.sort();
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | MasterImage.java | 673 RectF bounds = new RectF(0, 0, 676 screenToOriginal.mapRect(bounds); 678 bounds.roundOut(rBounds);
|
H A D | ImageShow.java | 572 Rect bounds = new Rect(); 575 paint.getTextBounds(mOriginalText, 0, mOriginalText.length(), bounds); 580 mImageBounds.top + bounds.height() + mOriginalTextMargin, paint); 585 mImageBounds.top + bounds.height() + mOriginalTextMargin, paint);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardView.java | 364 final Rect bounds = background.getBounds(); 365 if (bgWidth != bounds.right || bgHeight != bounds.bottom) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ContactListItemView.java | 460 // Determine the vertical bounds by laying out the header first. 645 public void adjustListItemSelectionBounds(Rect bounds) { argument 647 bounds.top += mBoundsWithoutHeader.top; 648 bounds.bottom = bounds.top + mBoundsWithoutHeader.height(); 649 bounds.left = mBoundsWithoutHeader.left; 650 bounds.right = mBoundsWithoutHeader.right;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | TextFieldsEditorView.java | 309 * Populates the bound rectangle with the bounds of the last editor field inside this view. 311 public void acquireEditorBounds(Rect bounds) { argument 316 bounds.set(editText.getLeft(), editText.getTop(), editText.getRight(),
|
/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/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | AlbumPage.java | 125 Rect bounds = mSlotView.bounds(); 126 rect.offset(bounds.left - mSlotView.getScrollX(), 127 bounds.top - mSlotView.getScrollY());
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | SuggestionStripLayoutHelper.java | 190 final Rect bounds = new Rect(); 191 paint.getTextBounds(MORE_SUGGESTIONS_HINT, 0, MORE_SUGGESTIONS_HINT.length(), bounds); 192 final int width = Math.round(bounds.width() + 0.5f); 193 final int height = Math.round(bounds.height() + 0.5f);
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | PanoramaModule.java | 882 Rect bounds = getBounds(); 883 int cx = bounds.centerX(); 884 int cy = bounds.centerY();
|