Searched refs:bounds (Results 201 - 225 of 295) sorted by relevance

1234567891011>>

/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java293 /** Get the gravity used to position/stretch the bitmap within its bounds.
301 /** Set the gravity used to position/stretch the bitmap within its bounds.
484 protected void onBoundsChange(Rect bounds) { argument
612 final Rect bounds = getBounds();
615 bounds, mDstRect, layoutDirection);
617 final int left = mDstRect.left - bounds.left;
618 final int top = mDstRect.top - bounds.top;
619 final int right = bounds.right - mDstRect.right;
620 final int bottom = bounds.bottom - mDstRect.bottom;
645 // since only they are guaranteed to fill their bounds
[all...]
H A DLayerDrawable.java622 final Rect bounds = childDrawable.mDrawable.getBounds();
623 drawable.setBounds(bounds);
926 * Specifies how layer padding should affect the bounds of subsequent
1528 protected void onBoundsChange(Rect bounds) { argument
1529 updateLayerBounds(bounds);
1532 private void updateLayerBounds(Rect bounds) { argument
1535 updateLayerBoundsInternal(bounds);
1541 private void updateLayerBoundsInternal(Rect bounds) { argument
1573 container.set(bounds.left + insetL + paddingL, bounds
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDockedStackDividerController.java154 int getSmallestWidthDpForBounds(Rect bounds) { argument
164 mTmpRect.set(bounds);
195 * Get the current docked side. Determined by its location of {@param bounds} within
199 * @param bounds bounds of the docked task to get which side is docked
200 * @param displayRect bounds of the display that contains the docked task
204 int getDockSide(Rect bounds, Rect displayRect, int orientation) { argument
207 final int diff = (displayRect.bottom - bounds.bottom) - (bounds.top - displayRect.top);
216 final int diff = (displayRect.right - bounds
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java1455 // Compute bounds for this object
1456 final Rect bounds = getBoundsForVirtualView(virtualViewId);
1457 if (DEBUG_A11Y) Log.v(TAG, "bounds:" + bounds.toString());
1458 node.setBoundsInParent(bounds);
1509 final Rect bounds = mTempRect;
1517 bounds.left = (int) (centerX - cellwidth);
1518 bounds.right = (int) (centerX + cellwidth);
1519 bounds.top = (int) (centerY - cellheight);
1520 bounds
[all...]
/frameworks/base/core/java/android/view/autofill/
H A DAutofillManager.java420 * @param virtualBounds The bounds of the virtual decendant of the anchor.
724 * parent view uses {@code bounds} to draw the virtual view inside its Canvas,
725 * the absolute bounds could be calculated by:
730 * Rect absBounds = new Rect(bounds.left + offset[0],
731 * bounds.top + offset[1],
732 * bounds.right + offset[0], bounds.bottom + offset[1]);
920 * parent, non-virtual view uses {@code bounds} to draw the virtual view inside its Canvas,
921 * the absolute bounds could be calculated by:
926 * Rect absBounds = new Rect(bounds
939 notifyViewEntered(View view, int virtualId, Rect bounds, int flags) argument
956 notifyViewEnteredLocked(View view, int virtualId, Rect bounds, int flags) argument
1503 startSessionLocked(@onNull AutofillId id, @NonNull Rect bounds, @NonNull AutofillValue value, int flags) argument
1579 updateSessionLocked(AutofillId id, Rect bounds, AutofillValue value, int action, int flags) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPath.java301 * not null, set rect to the bounds of the path. If the path does not
304 * @param rect If not null, returns the bounds of the path if it specifies
313 * Compute the bounds of the control points of the path, and write the
314 * answer into bounds. If the path contains 0 or 1 points, the bounds is
317 * @param bounds Returns the computed bounds of the path's control points.
321 public void computeBounds(RectF bounds, boolean exact) { argument
322 nComputeBounds(mNativePath, bounds);
458 * @param oval The bounds o
824 nComputeBounds(long nPath, RectF bounds) argument
[all...]
H A DPaint.java1469 * metrics, and also increases top and bottom bounds to provide more space.
2371 * <p>The shaping bounds limit the amount of context available
2373 * These bounds typically reflect changes in bidi level or font
2436 * the bounds of the metric span enclosing the cursor in the direction of
2476 * the bounds of the metric span enclosing the cursor in the direction of
2523 * the bounds of the metric span enclosing the cursor in the direction of
2595 * Return in bounds (allocated by the caller) the smallest rectangle that
2598 * @param text string to measure and return its bounds
2601 * @param bounds returns the unioned bounds o
2603 getTextBounds(String text, int start, int end, Rect bounds) argument
2623 getTextBounds(CharSequence text, int start, int end, Rect bounds) argument
2645 getTextBounds(char[] text, int index, int count, Rect bounds) argument
2868 nGetStringBounds(long nativePaint, String text, int start, int end, int bidiFlags, Rect bounds) argument
2870 nGetCharArrayBounds(long nativePaint, char[] text, int index, int count, int bidiFlags, Rect bounds) argument
[all...]
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp310 void Bitmap::getBounds(SkRect* bounds) const {
311 SkASSERT(bounds);
312 bounds->set(0, 0, SkIntToScalar(width()), SkIntToScalar(height()));
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DGarbageMonitor.java254 final Rect bounds = getBounds();
255 canvas.translate(bounds.left + 8 * dp, bounds.top + 5 * dp);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DDropDownListView.java595 final Rect bounds = mSelectorRect;
596 final float x = bounds.exactCenterX();
597 final float y = bounds.exactCenterY();
/frameworks/base/libs/hwui/
H A DSnapshot.h174 void setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, float radius,
H A DSkiaCanvas.cpp199 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local
200 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags));
370 // if we can't invert the CTM, we can't return local clip bounds
386 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local
387 return mCanvas->quickReject(bounds);
752 SkRect bounds = local
756 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(paintCopy, count, &bounds);
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp127 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight()); local
128 if (properties.getClipToBounds() && layerCanvas->quickReject(bounds)) {
132 ATRACE_FORMAT("drawLayer [%s] %.1f x %.1f", layerNode->getName(), bounds.width(),
133 bounds.height());
378 // #1 - content (local bounds are at (0,0), will be translated and clipped to backdrop)
390 // Usually the contents bounds should be mContentDrawBounds - however - we will
392 // If there is no content bounds we ignore the layering as stated above and start with 2.
394 // Backdrop bounds in render target space
397 // Bounds that content will fill in render target space (note content node bounds may be
/frameworks/minikin/include/minikin/
H A DMinikinFont.h133 virtual void GetBounds(MinikinRect* bounds, uint32_t glyph_id, const MinikinPaint& paint,
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
H A DUtilities.java68 public void set(Drawable object, Rect bounds) {
69 object.setBounds(bounds);
/frameworks/base/core/java/android/widget/
H A DImageView.java271 // updates the matrix, which is dependent on the bounds
278 * can be applied. In theory we could get the drawable's bounds
305 * True when ImageView is adjusting its bounds
308 * @return whether to adjust the bounds of this view
320 * Set this to true if you want the ImageView to adjust its bounds
324 * adjustViewBounds will allow the drawable to shrink the view bounds, but not grow
329 * @param adjustViewBounds Whether to adjust the bounds of this view
368 * the image within the bounds.
406 * the image within the bounds.
746 * Options for scaling the bounds o
[all...]
H A DPopupWindow.java455 * Sets the bounds used as the epicenter of the enter and exit transitions.
458 * the direction of travel. For popup windows, the anchor view bounds are
464 * @param bounds the epicenter bounds relative to the anchor view, or
469 public void setEpicenterBounds(Rect bounds) { argument
470 mEpicenterBounds = bounds;
825 * <p>Allows the popup window to extend beyond the bounds of the screen. By default the
1942 * Returns the window-relative epicenter bounds to be used by enter and
1948 * @return the window-relative epicenter bounds to be used by enter and
1964 final Rect bounds
[all...]
H A DExpandableListView.java173 * 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...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java993 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();
/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DAutofillManagerService.java878 Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags,
898 autofillId, bounds, value, hasCallback, componentName, compatMode,
1053 public void updateSession(int sessionId, AutofillId autoFillId, Rect bounds, argument
1058 service.updateSessionLocked(sessionId, getCallingUid(), autoFillId, bounds,
1068 AutofillId autoFillId, Rect bounds, AutofillValue value, int userId,
1076 bounds, value, action, flags);
1082 return startSession(activityToken, appCallback, autoFillId, bounds, value, userId,
877 startSession(IBinder activityToken, IBinder appCallback, AutofillId autofillId, Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags, ComponentName componentName, boolean compatMode) argument
1067 updateOrRestartSession(IBinder activityToken, IBinder appCallback, AutofillId autoFillId, Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags, ComponentName componentName, int sessionId, int action, boolean compatMode) argument
/frameworks/base/core/java/android/view/
H A DView.java473 * its current bounds.
505 * <li>If in the course of processing the event, the view's bounds may need
2244 * lie outside of this view's bounds.
4001 * Current clip bounds. to which all drawing of this view are constrained.
4083 * visible edges of this view its bounds.
6152 final Rect bounds = mScrollCache.mScrollBarBounds;
6154 getVerticalScrollBarBounds(bounds, touchBounds);
6158 final int thumbLength = ScrollBarUtils.getThumbLength(bounds.height(), bounds.width(),
6160 final int thumbOffset = ScrollBarUtils.getThumbOffset(bounds
17565 getVerticalScrollBarBounds(@ullable Rect bounds, @Nullable Rect touchBounds) argument
17573 getRoundVerticalScrollBarBounds(Rect bounds) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManager.java781 * that the resize doesn't need to preserve the window, and can be skipped if bounds
796 * that the resize should be performed even if the bounds appears unchanged.
818 * even if the bounds is unchanged. Usually used to force a resizing when a drag action
1548 * The bounds of the task.
1551 public Rect bounds; field in class:ActivityManager.RecentTaskInfo
1607 if (bounds != null) {
1609 bounds.writeToParcel(dest, 0);
1635 bounds = source.readInt() > 0 ?
2030 * @param initialBounds If the primary stack gets created, it will use these bounds for the
2031 * docked stack. Pass {@code null} to use default bounds
2056 resizeStack(int stackId, Rect bounds) argument
2621 public Rect bounds = new Rect(); field in class:ActivityManager.StackInfo
[all...]
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java143 public void onBoundsChange(Rect bounds) { argument
144 final float w = bounds.width();
145 final float h = bounds.height();
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
H A DPipManager.java297 // and this could clobber the existing animation to the new bounds calculated by WM.
308 // Reset the PIP bounds and apply. PIP bounds can be changed by two reasons.
656 Rect bounds = isSettingsShown() ? mSettingsPipBounds : mDefaultPipBounds;
657 if (mPipBounds != bounds) {
658 mPipBounds = bounds;
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DWindowFrameTests.java79 TaskWithBounds(Rect bounds) { argument
81 mBounds = bounds;
82 setBounds(bounds);
132 Task task = new TaskWithBounds(null); // fullscreen task doesn't use bounds for computeFrame
189 Task task = new TaskWithBounds(null); // fullscreen task doesn't use bounds for computeFrame
202 // It can select various widths and heights within the bounds.
216 // parent bounds.
284 // task bounds not the parent frame.
303 // However if we set temp inset bounds, the insets will be computed
305 // the task bounds
[all...]

Completed in 1026 milliseconds

1234567891011>>