/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | ExtendedBitmapDrawable.java | 109 Rect bounds = mOpts.placeholder.getBounds(); 110 if (bounds.width() != 0) { 111 placeholderWidth = bounds.width(); 115 if (bounds.height() != 0) { 116 placeholderHeight = bounds.height(); 272 final Rect bounds = getBounds(); 273 if (bounds.isEmpty()) { 320 protected void onBoundsChange(Rect bounds) { argument 321 super.onBoundsChange(bounds); 322 if (mPlaceholder != null) mPlaceholder.setBounds(bounds); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ExpandableListView.java | 173 * indicator bounds 414 // the left & right bounds 521 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument 534 divider.setBounds(bounds); 543 super.drawDivider(canvas, bounds, flatListPosition); 1162 * Sets the drawing bounds for the child indicator. For either, you can 1164 * indicator's bounds. 1167 * @param left The left position (relative to the left bounds of this View) 1169 * @param right The right position (relative to the left bounds of this 1179 * Sets the relative drawing bounds fo [all...] |
H A D | ListPopupWindow.java | 108 * Optional anchor-relative bounds to be used as the transition epicenter. 109 * When {@code null}, the anchor bounds are used as the epicenter. 462 * Specifies the anchor-relative bounds of the popup's transition 465 * @param bounds anchor-relative bounds 468 public void setEpicenterBounds(Rect bounds) { argument 469 mEpicenterBounds = bounds; 1041 * outside of its bounds will open the popup window. Lifting will select the
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 104 const SkRect& bounds = obj->getBounds(); local 105 GraphicsJNI::rect_to_jrectf(bounds, env, jbounds);
|
/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...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 276 /** Get the gravity used to position/stretch the bitmap within its bounds. 284 /** Set the gravity used to position/stretch the bitmap within its bounds. 475 protected void onBoundsChange(Rect bounds) { argument 481 updateMirrorMatrix(bounds.right - bounds.left); 579 final Rect bounds = getBounds(); 582 bounds, mDstRect, layoutDirection); 584 final int left = mDstRect.left - bounds.left; 585 final int top = mDstRect.top - bounds.top; 586 final int right = bounds [all...] |
H A D | Drawable.java | 189 * Draw in its bounds (set via setBounds) respecting optional effects such 210 // first invalidate the previous bounds 222 public void setBounds(@NonNull Rect bounds) { argument 223 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); 227 * Return a copy of the drawable's bounds in the specified Rect (allocated 228 * by the caller). The bounds specify where this will draw when its draw() 231 * @param bounds Rec 234 copyBounds(@onNull Rect bounds) argument 970 onBoundsChange(Rect bounds) argument [all...] |
H A D | RippleDrawable.java | 88 * may extend outside of the Drawable bounds. 113 /** Current ripple effect bounds, used to constrain ripple effects. */ 116 /** Current drawing bounds, used to compute dirty region. */ 119 /** Current dirty bounds, union of current and previous drawing bounds. */ 165 /** Whether bounds are being overridden. */ 298 protected void onBoundsChange(Rect bounds) { argument 299 super.onBoundsChange(bounds); 302 mHotspotBounds.set(bounds); 352 // bounds the [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 | DisplayListCanvas.cpp | 180 Rect bounds = mState.getLocalClipBounds(); local 181 *outRect = SkRect::MakeLTRB(bounds.left, bounds.top, bounds.right, bounds.bottom); 190 SkRect bounds = path.getBounds(); local 191 return mState.quickRejectConservative(bounds.fLeft, bounds.fTop, bounds.fRight, bounds 338 SkRect bounds; local [all...] |
H A D | FontRenderer.cpp | 78 // Note: don't pass dirty bounds here, so user must manage passing dirty bounds to renderer 579 Rect bounds; local 580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions); 583 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * intRadius; 584 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * intRadius; 605 int penX = intRadius - bounds.left; 606 int penY = intRadius - bounds 630 initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor) argument 656 renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions, Rect* bounds, TextDrawFunctor* functor, bool forceFinish) argument 674 renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, TextDrawFunctor* functor) argument [all...] |
H A D | FrameBuilder.cpp | 145 // #1 - content (local bounds are at (0,0), will be translated and clipped to backdrop) 154 // Usually the contents bounds should be mContentDrawBounds - however - we will 156 // If there is no content bounds we ignore the layering as stated above and start with 2. 158 // Backdrop bounds in render target space 161 // Bounds that content will fill in render target space (note content node bounds may be bigger) 241 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer 269 Rect bounds; local 270 properties.getRevealClip().getBounds(&bounds); 272 bounds, properties.getRevealClip().getRadius()); 559 * for paint's style on the bounds bein [all...] |
H A D | RecordingCanvas.cpp | 132 // determine clipped bounds relative to previous viewport. 149 // Map visible bounds back to layer space, and intersect with parameter bounds 159 // layerBounds is in original bounds space, but clipped by current recording clip 230 SkRect bounds = path.getBounds(); local 231 return mState.quickRejectConservative(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); 254 SkRect bounds; local [all...] |
H A D | RenderNode.cpp | 495 // changes in isRenderable or, in the future, bounds 603 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer 642 Rect bounds; local 643 mProperties.getRevealClip().getBounds(&bounds); 644 renderer.setClippingRoundRect(handler.allocator(), bounds, mProperties.getRevealClip().getRadius());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | TaskStack.java | 348 Rect bounds = dockAreaOverlay.getBounds(); 349 int x = bounds.left + (bounds.width() - mHintTextBounds.x) / 2; 350 int y = bounds.top + (bounds.height() + mHintTextBounds.y) / 2; 354 canvas.rotate(-90f, bounds.centerX(), bounds.centerY()); 364 * Creates a new bounds and alpha animation. 366 public void startAnimation(Rect bounds, int areaAlpha, int hintAlpha, int duration, argument 399 if (bounds ! [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityStarter.java | 1341 // Launch ResolverActivity in the source task, so that it stays in the task bounds 1567 null /* bounds */, mLaunchFlags, mOptions); 1768 mTargetStack = computeStackFocus(mStartActivity, false, null /* bounds */, mLaunchFlags, 1827 private ActivityStack computeStackFocus(ActivityRecord r, boolean newTask, Rect bounds, argument 1890 bounds != null ? FREEFORM_WORKSPACE_STACK_ID :
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AccessibilityController.java | 538 // Update accounted bounds 738 public void setBounds(Region bounds) { argument 740 if (mBounds.equals(bounds)) { 743 mBounds.set(bounds); 746 Slog.i(LOG_TAG, "ViewportWindow set bounds: " + bounds); 1045 // Compute the bounds in the screen. 1100 // Compute the bounds in the screen. 1194 // Got the bounds.
|
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);
|
H A D | Task.java | 49 // Return value from {@link setBounds} indicating no change was made to the Task bounds. 51 // Return value from {@link setBounds} indicating the position of the Task bounds changed. 53 // Return value from {@link setBounds} indicating the size of the Task bounds changed. 84 // For comparison with DisplayContent bounds. 98 Task(int taskId, TaskStack stack, int userId, WindowManagerService service, Rect bounds, argument 104 setBounds(bounds, config); 169 void positionTaskInStack(TaskStack stack, int position, Rect bounds, Configuration config) { argument 177 resizeLocked(bounds, config, false /* force */); 209 /** Set the task bounds. Passing in null sets the bounds t 210 setBounds(Rect bounds, Configuration config) argument 303 resizeLocked(Rect bounds, Configuration configuration, boolean forced) argument 381 scrollLocked(Rect bounds) argument [all...] |
H A D | TaskStack.java | 58 /** Minimum size of an adjusted stack bounds relative to original stack bounds. Used to 78 /** For comparison with DisplayContent bounds. */ 85 /** Stack bounds adjusted to screen content area (taking into account IM windows, etc.) */ 89 * Fully adjusted IME bounds. These are different from {@link #mAdjustedBounds} because they 127 // If this is true, we are in the bounds animating mode. 131 // while resizing in the bounds animating mode. 134 // Temporary storage for the new bounds that should be used after the configuration change. 135 // Will be cleared once the client retrieves the new bounds via getBoundsForNewConfiguration(). 168 * Set the bounds o 214 isFullscreenBounds(Rect bounds) argument 228 setAdjustedBounds(Rect bounds) argument 269 setBounds(Rect bounds) argument 350 updateDisplayInfo(Rect bounds) argument 1203 getDockSide(Rect bounds) argument 1215 getDockSideUnchecked(Rect bounds, Rect displayRect, int orientation) argument 1284 setSize(Rect bounds) argument 1297 setPinnedStackSize(Rect bounds, Rect tempTaskBounds) argument 1367 getFullScreenBounds(Rect bounds) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 207 /*package*/ static void native_computeBounds(long nPath, RectF bounds) { argument 213 pathDelegate.fillBounds(bounds); 622 * Fills the given {@link RectF} with the path bounds. 623 * @param bounds the RectF to be filled. 625 public void fillBounds(RectF bounds) { argument 627 bounds.left = (float)rect.getMinX(); 628 bounds.right = (float)rect.getMaxX(); 629 bounds.top = (float)rect.getMinY(); 630 bounds.bottom = (float)rect.getMaxY();
|
/frameworks/rs/ |
H A D | rsFont.cpp | 139 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) { argument 147 if (bounds->bottom < nPenY) { 148 bounds->bottom = nPenY; 150 if (bounds->left > nPenX) { 151 bounds->left = nPenX; 153 if (bounds->right < nPenX + width) { 154 bounds->right = nPenX + width; 156 if (bounds->top > nPenY - height) { 157 bounds->top = nPenY - height; 163 RenderMode mode, Rect *bounds, 161 renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t start, int32_t numGlyphs, RenderMode mode, Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 745 renderText(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t startIndex, int32_t numGlyphs, Font::RenderMode mode, Font::Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 783 measureText(const char *text, uint32_t len, Font::Rect *bounds) argument [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | MaterialProgressDrawable.java | 227 final Rect bounds = getBounds(); 229 c.rotate(mRotation, bounds.exactCenterX(), bounds.exactCenterY()); 230 mRing.draw(c, bounds); 528 public void draw(Canvas c, Rect bounds) { argument 530 arcBounds.set(bounds); 540 drawTriangle(c, startAngle, sweepAngle, bounds); 545 c.drawCircle(bounds.exactCenterX(), bounds.exactCenterY(), bounds 550 drawTriangle(Canvas c, float startAngle, float sweepAngle, Rect bounds) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ListPopupWindow.java | 143 * Optional anchor-relative bounds to be used as the transition epicenter. 144 * When {@code null}, the anchor bounds are used as the epicenter. 501 * Specifies the anchor-relative bounds of the popup's transition 504 * @param bounds anchor-relative bounds 507 public void setEpicenterBounds(Rect bounds) { argument 508 mEpicenterBounds = bounds; 1086 * outside of its bounds will open the popup window. Lifting will select the
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
H A D | Am.java | 314 " and supplying temporary different task bounds indicated by\n" + 323 " bounds of the pinned stack.\n" + 340 "am task resize: makes sure <TASK_ID> is in a stack with the specified bounds.\n" + 342 " has the specified bounds.\n" + 1830 final Rect bounds = getBounds(); 1831 if (bounds == null) { 1832 System.err.println("Error: invalid input bounds"); 1835 resizeStack(stackId, bounds, 0); 1841 final Rect bounds; 1843 bounds 1854 resizeStackUnchecked(int stackId, Rect bounds, int delayMs, boolean animate) argument 1878 resizeStack(int stackId, Rect bounds, int delayMs) argument 2019 setBoundsSide(Rect bounds, String side, int value) argument 2095 taskResize(int taskId, Rect bounds, int delay_ms, boolean pretendUserResize) argument [all...] |