/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 314 final Point bounds = cropTask.getImageBounds(); 596 // Find crop bounds (scaled to original image size) 601 Point bounds = getImageBounds(); 609 if (bounds == null) { 610 Log.w(LOGTAG, "cannot get bounds for image"); 615 float[] rotatedBounds = new float[] { bounds.x, bounds.y }; 622 mCropBounds.offset(bounds.x/2, bounds.y/2); 681 scaleDownSampleSize = bounds [all...] |
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
H A D | DrawableWrapperDonut.java | 92 protected void onBoundsChange(Rect bounds) { argument 94 mDrawable.setBounds(bounds);
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | CursorAnchorInfoTest.java | 100 final RectF bounds = MANY_BOUNDS[i]; 102 builder.addCharacterBounds(i, bounds.left, bounds.top, bounds.right, bounds.bottom,
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Paint_Delegate.java | 647 RectF bounds = delegate.measureText(text, start, end - start + 1, null, 0, bidiFlags); 648 float res = bounds.right - bounds.left; 983 RectF bounds = delegate.measureText(text, index, count, advances, advancesIndex, bidiFlags); 984 return bounds.right - bounds.left; 1036 String text, int start, int end, int bidiFlags, Rect bounds) { 1038 end - start, bidiFlags, bounds); 1043 char[] text, int index, int count, int bidiFlags, Rect bounds) { 1054 delegate.measureText(text, index, count, null, 0, bidiFlags).roundOut(bounds); 1035 nGetStringBounds(long nativePaint, long native_typeface, String text, int start, int end, int bidiFlags, Rect bounds) argument 1042 nGetCharArrayBounds(long nativePaint, long native_typeface, char[] text, int index, int count, int bidiFlags, Rect bounds) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | View.java | 459 * its current bounds. 491 * <li>If in the course of processing the event, the view's bounds may need 1730 * lie outside of this view's bounds. 3313 * Current clip bounds. to which all drawing of this view are constrained. 3394 * visible edges of this view its bounds. 5184 final Rect bounds = mScrollCache.mScrollBarBounds; 5185 getVerticalScrollBarBounds(bounds); 5186 if (bounds.contains((int)x, (int)y)) { 5191 final Rect bounds = mScrollCache.mScrollBarBounds; 5192 getHorizontalScrollBarBounds(bounds); 14700 getHorizontalScrollBarBounds(Rect bounds) argument 14715 getVerticalScrollBarBounds(Rect bounds) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DockedStackDividerController.java | 149 int getSmallestWidthDpForBounds(Rect bounds) { argument 152 // If the bounds are fullscreen, return the value of the fullscreen configuration 153 if (bounds == null || (bounds.left == 0 && bounds.top == 0 154 && bounds.right == di.logicalWidth && bounds.bottom == di.logicalHeight)) { 164 mTmpRect.set(bounds);
|
/frameworks/base/core/java/android/widget/ |
H A D | PopupWindow.java | 435 * Sets the bounds used as the epicenter of the enter and exit transitions. 438 * the direction of travel. For popup windows, the anchor view bounds are 444 * @param bounds the epicenter bounds relative to the anchor view, or 449 public void setEpicenterBounds(Rect bounds) { argument 450 mEpicenterBounds = bounds; 805 * <p>Allows the popup window to extend beyond the bounds of the screen. By default the 1867 * Returns the window-relative epicenter bounds to be used by enter and 1873 * @return the window-relative epicenter bounds to be used by enter and 1887 final Rect bounds [all...] |
H A D | ImageView.java | 235 // updates the matrix, which is dependent on the bounds 242 * can be applied. In theory we could get the drawable's bounds 269 * True when ImageView is adjusting its bounds 272 * @return whether to adjust the bounds of this view 284 * Set this to true if you want the ImageView to adjust its bounds 288 * adjustViewBounds will allow the drawable to shrink the view bounds, but not grow 293 * @param adjustViewBounds Whether to adjust the bounds of this view 332 * the image within the bounds. 370 * the image within the bounds. 669 * Options for scaling the bounds o [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternView.java | 1379 // Compute bounds for this object 1380 final Rect bounds = getBoundsForVirtualView(virtualViewId); 1381 if (DEBUG_A11Y) Log.v(TAG, "bounds:" + bounds.toString()); 1382 node.setBoundsInParent(bounds); 1433 final Rect bounds = mTempRect; 1441 bounds.left = (int) (centerX - cellwidth); 1442 bounds.right = (int) (centerX + cellwidth); 1443 bounds.top = (int) (centerY - cellheight); 1444 bounds [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 288 * not null, set rect to the bounds of the path. If the path does not 291 * @param rect If not null, returns the bounds of the path if it specifies 300 * Compute the bounds of the control points of the path, and write the 301 * answer into bounds. If the path contains 0 or 1 points, the bounds is 304 * @param bounds Returns the computed bounds of the path's control points. 308 public void computeBounds(RectF bounds, boolean exact) { argument 309 native_computeBounds(mNativePath, bounds); 445 * @param oval The bounds o 814 native_computeBounds(long nPath, RectF bounds) argument [all...] |
H A D | Paint.java | 1394 * metrics, and also increases top and bottom bounds to provide more space. 2193 * <p>The shaping bounds limit the amount of context available 2195 * These bounds typically reflect changes in bidi level or font 2260 * the bounds of the metric span enclosing the cursor in the direction of 2300 * the bounds of the metric span enclosing the cursor in the direction of 2347 * the bounds of the metric span enclosing the cursor in the direction of 2423 * Return in bounds (allocated by the caller) the smallest rectangle that 2426 * @param text String to measure and return its bounds 2429 * @param bounds Returns the unioned bounds o 2432 getTextBounds(String text, int start, int end, Rect bounds) argument 2452 getTextBounds(char[] text, int index, int count, Rect bounds) argument 2696 nGetStringBounds(long nativePaint, long typefacePtr, String text, int start, int end, int bidiFlags, Rect bounds) argument 2698 nGetCharArrayBounds(long nativePaint, long typefacePtr, char[] text, int index, int count, int bidiFlags, Rect bounds) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | BakedOpDispatcher.cpp | 38 static void storeTexturedRect(TextureVertex* vertices, const Rect& bounds, const Rect& texCoord) { argument 39 vertices[0] = { bounds.left, bounds.top, texCoord.left, texCoord.top }; 40 vertices[1] = { bounds.right, bounds.top, texCoord.right, texCoord.top }; 41 vertices[2] = { bounds.left, bounds.bottom, texCoord.left, texCoord.bottom }; 42 vertices[3] = { bounds.right, bounds.bottom, texCoord.right, texCoord.bottom }; 65 // calculate unclipped bounds, sinc 391 SkRect bounds = op.unmappedBounds.toSkRect(); local [all...] |
H A D | LayerRenderer.cpp | 438 Rect bounds; local 439 bounds.set(0.0f, 0.0f, bitmap->width(), bitmap->height()); 440 renderer.drawTextureLayer(layer, bounds);
|
H A D | Snapshot.h | 204 void setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, 256 * bounds and is passed to subsequent snapshots.
|
H A D | SkiaCanvas.cpp | 345 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local 346 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags)); 468 // if we can't invert the CTM, we can't return local clip bounds 484 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local 485 return mCanvas->quickReject(bounds); 746 SkRect bounds = SkRect::MakeLTRB(dstLeft, dstTop, dstRight, dstBottom); local 747 NinePatch::Draw(mCanvas, bounds, bitmap, chunk, paint, nullptr);
|
/frameworks/support/v4/java/android/support/v4/view/accessibility/ |
H A D | AccessibilityNodeInfoCompat.java | 520 public void setBoundsInParent(Object info, Rect bounds); argument 522 public void setBoundsInScreen(Object info, Rect bounds); argument 835 public void setBoundsInParent(Object info, Rect bounds) { argument 840 public void setBoundsInScreen(Object info, Rect bounds) { argument 1396 public void setBoundsInParent(Object info, Rect bounds) { argument 1397 AccessibilityNodeInfoCompatIcs.setBoundsInParent(info, bounds); 1401 public void setBoundsInScreen(Object info, Rect bounds) { argument 1402 AccessibilityNodeInfoCompatIcs.setBoundsInScreen(info, bounds); 2738 * Gets the node bounds in parent coordinates. 2740 * @param outBounds The output node bounds 2757 setBoundsInParent(Rect bounds) argument 2781 setBoundsInScreen(Rect bounds) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.h | 168 inline Rect bounds() const { return getBounds(); } function in class:android::DisplayDevice
|
/frameworks/support/design/base/android/support/design/widget/ |
H A D | CircularBorderDrawable.java | 96 // We need to inset the oval bounds by half the border width. This is because stroke draws 153 protected void onBoundsChange(Rect bounds) { argument
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityManager.java | 550 /** Returns true if the task bounds should persist across power cycles. */ 600 * are laid out differently as they are allowed to extend past the display bounds 646 * Returns true if the stack should be resized to match the bounds specified by 733 * that the resize doesn't need to preserve the window, and can be skipped if bounds 748 * that the resize should be performed even if the bounds appears unchanged. 770 * even if the bounds is unchanged. Usually used to force a resizing when a drag action 1333 * The bounds of the task. 1336 public Rect bounds; field in class:ActivityManager.RecentTaskInfo 1387 if (bounds != null) { 1389 bounds 2372 public Rect bounds = new Rect(); field in class:ActivityManager.StackInfo [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | LayerDrawable.java | 616 final Rect bounds = childDrawable.mDrawable.getBounds(); 617 drawable.setBounds(bounds); 920 * Specifies how layer padding should affect the bounds of subsequent 1511 protected void onBoundsChange(Rect bounds) { argument 1512 updateLayerBounds(bounds); 1515 private void updateLayerBounds(Rect bounds) { argument 1518 updateLayerBoundsInternal(bounds); 1524 private void updateLayerBoundsInternal(Rect bounds) { argument 1556 container.set(bounds.left + insetL + paddingL, bounds [all...] |
H A D | InsetDrawable.java | 42 * the View's actual bounds. 210 protected void onBoundsChange(Rect bounds) { argument 212 r.set(bounds); 219 // Apply inset bounds to the wrapped drawable.
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityWindowInfo.java | 268 * Gets the bounds of this window in the screen. 270 * @param outBounds The out window bounds. 277 * Sets the bounds of this window in the screen. 279 * @param bounds The out window bounds. 283 public void setBoundsInScreen(Rect bounds) { argument 284 mBoundsInScreen.set(bounds); 534 builder.append(", bounds=").append(mBoundsInScreen);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
H A D | Utilities.java | 67 public void set(Drawable object, Rect bounds) { 68 object.setBounds(bounds);
|
/frameworks/native/libs/gui/ |
H A D | Surface.cpp | 403 if (mConnectedToCpu || mDirtyRegion.bounds() == Rect::INVALID_RECT) { 1111 err = src->lock(GRALLOC_USAGE_SW_READ_OFTEN, reg.bounds(), 1116 err = dst->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, reg.bounds(), 1182 const Rect bounds(backBuffer->width, backBuffer->height); 1187 newDirtyRegion.andSelf(bounds); 1189 newDirtyRegion.set(bounds); 1207 newDirtyRegion.set(bounds); 1234 newDirtyRegion.bounds(), &vaddr, fenceFd);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
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();
|