Searched refs:bounds (Results 101 - 125 of 267) sorted by relevance

1234567891011

/frameworks/base/graphics/java/android/graphics/
H A DNinePatch.java23 * bounds of the graphic. For a thorough explanation of a NinePatch image,
252 * @param bounds The location and size of the NinePatch.
255 * report, else a {@link Region} holding the parts of the specified bounds
258 public final Region getTransparentRegion(Rect bounds) { argument
259 long r = nativeGetTransparentRegion(mBitmap, mNativeChunk, bounds);
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp75 // 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;
600 int penX = intRadius - bounds.left;
601 int penY = intRadius - bounds
625 initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor) argument
651 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
669 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...]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DAppBoundsTests.java51 * Ensures the configuration app bounds at the root level match the app dimensions.
60 // The bounds should always be positioned in the top left.
64 // The bounds should equal the defined app width and height
70 * Ensures that bounds are clipped to their parent.
83 * Ensures that empty bounds are not propagated to the configuration.
93 * Ensures that bounds on freeform stacks are not clipped.
104 * Ensures that fully contained bounds are not clipped.
114 * Ensures that full screen free form bounds are clipped
125 private void testStackBoundsConfiguration(Integer stackId, Rect parentBounds, Rect bounds, argument
135 stackController.adjustConfigurationForBounds(bounds, nul
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java335 Rectangle bounds = region.mArea.getBounds();
336 if (bounds.isEmpty()) {
341 rect.left = bounds.x;
342 rect.top = bounds.y;
343 rect.right = bounds.x + bounds.width;
344 rect.bottom = bounds.y + bounds.height;
H A DCanvas_Delegate.java410 Rect bounds) {
419 bounds.left = rect.x;
420 bounds.top = rect.y;
421 bounds.right = rect.x + rect.width;
422 bounds.bottom = rect.y + rect.height;
409 nGetClipBounds(long nativeCanvas, Rect bounds) argument
/frameworks/support/transition/src/android/support/transition/
H A DChangeClipBounds.java39 private static final String PROPNAME_BOUNDS = "android:clipBounds:bounds";
66 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight());
67 values.values.put(PROPNAME_BOUNDS, bounds);
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerShellCommand.java1840 final Rect bounds = getBounds();
1841 if (bounds == null) {
1842 getErrPrintWriter().println("Error: invalid input bounds");
1845 return resizeStack(stackId, bounds, 0);
1851 final Rect bounds;
1853 bounds = null;
1855 bounds = getBounds();
1856 if (bounds == null) {
1857 getErrPrintWriter().println("Error: invalid input bounds");
1861 return resizeStackUnchecked(stackId, bounds,
1864 resizeStackUnchecked(int stackId, Rect bounds, int delayMs, boolean animate) argument
1885 resizeStack(int stackId, Rect bounds, int delayMs) argument
2025 setBoundsSide(Rect bounds, String side, int value) argument
2099 taskResize(int taskId, Rect bounds, int delay_ms, boolean pretendUserResize) argument
[all...]
H A DLaunchingTaskPositioner.java37 * sufficiently close enough, it shifts the bounds of the new task and tries again. When it exhausts
52 // If task bounds collide with some other, we will step and try again until we find a good
60 // reaches the end of stack bounds.
110 * @param task Task for which we want to find bounds that won't collide with other.
269 Rect bounds = task.mBounds;
270 if (closeLeftTopCorner(proposal, bounds) || closeRightTopCorner(proposal, bounds)
271 || closeLeftBottomCorner(proposal, bounds)
272 || closeRightBottomCorner(proposal, bounds)) {
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DPasswordTextView.java161 Rect bounds = getCharBounds();
162 int charHeight = (bounds.bottom - bounds.top);
167 float charLength = bounds.right - bounds.left;
184 Rect bounds = new Rect();
185 mDrawPaint.getTextBounds("0", 0, 1, bounds);
186 return bounds;
192 Rect bounds = getCharBounds();
193 int charLength = bounds
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTaskStack.java359 Rect bounds = dockAreaOverlay.getBounds();
360 int x = bounds.left + (bounds.width() - mHintTextBounds.x) / 2;
361 int y = bounds.top + (bounds.height() + mHintTextBounds.y) / 2;
365 canvas.rotate(-90f, bounds.centerX(), bounds.centerY());
375 * Creates a new bounds and alpha animation.
377 public void startAnimation(Rect bounds, int areaAlpha, int hintAlpha, int duration, argument
410 if (bounds !
526 updateBoundsWithSystemInsets(Rect bounds, Rect insets) argument
538 getMappedRect(RectF bounds, int width, int height, Rect out) argument
[all...]
/frameworks/base/core/java/android/transition/
H A DChangeImageTransform.java46 private static final String PROPNAME_BOUNDS = "android:changeImageTransform:bounds";
96 Rect bounds = new Rect(left, top, right, bottom);
97 values.put(PROPNAME_BOUNDS, bounds);
108 float scaleX = ((float) bounds.width()) / drawableWidth;
109 float scaleY = ((float) bounds.height()) / drawableHeight;
H A DCrossfade.java55 private static final String PROPNAME_BOUNDS = "android:crossfade:bounds";
195 // a reveal of the end scene over time. Also, animate the bounds of both drawables
243 Animator anim2 = ObjectAnimator.ofObject(startDrawable, "bounds",
249 Animator anim3 = ObjectAnimator.ofObject(endDrawable, "bounds",
262 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight());
264 bounds.offset(view.getLeft(), view.getTop());
266 transitionValues.values.put(PROPNAME_BOUNDS, bounds);
269 Log.d(LOG_TAG, "Captured bounds " + transitionValues.values.get(PROPNAME_BOUNDS));
283 drawable.setBounds(bounds);
/frameworks/base/core/java/android/util/
H A DLauncherIcons.java147 Rect bounds = getBounds();
148 canvas.drawBitmap(mState.mShadow, null, bounds, mState.mPaint);
154 bounds.width() * factor *
156 bounds.height() * factor * ICON_SIZE_BLUR_FACTOR);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java181 final Rect bounds = getBounds();
184 int w = bounds.width();
190 int h = bounds.height();
197 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
H A DScaleDrawable.java221 protected void onBoundsChange(Rect bounds) { argument
227 int w = bounds.width();
233 int h = bounds.height();
240 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
H A DAdaptiveIconDrawable.java66 * Such motion effect is achieved by internally setting the bounds of the foreground and
107 * Scaled mask based on the view bounds.
284 protected void onBoundsChange(Rect bounds) { argument
285 if (bounds.isEmpty()) {
288 updateLayerBounds(bounds);
291 private void updateLayerBounds(Rect bounds) { argument
294 updateLayerBoundsInternal(bounds);
295 updateMaskBoundsInternal(bounds);
302 * Set the child layer bounds bigger than the view port size by {@link #DEFAULT_VIEW_PORT_SCALE}
304 private void updateLayerBoundsInternal(Rect bounds) { argument
[all...]
H A DInsetDrawable.java41 * A Drawable that insets another Drawable by a specified distance or fraction of the content bounds.
43 * the View's actual bounds.
83 * @param inset Inset in fraction (range: [0, 1)) of the inset content bounds.
111 * Creates a new inset drawable with the specified insets in fraction of the view bounds.
114 * @param insetLeftFraction Left inset in fraction (range: [0, 1)) of the inset content bounds.
115 * @param insetTopFraction Top inset in fraction (range: [0, 1)) of the inset content bounds.
116 * @param insetRightFraction Right inset in fraction (range: [0, 1)) of the inset content bounds.
117 * @param insetBottomFraction Bottom inset in fraction (range: [0, 1)) of the inset content bounds.
269 protected void onBoundsChange(Rect bounds) { argument
271 r.set(bounds);
[all...]
/frameworks/base/libs/hwui/hwui/
H A DMinikinSkia.h37 void GetBounds(minikin::MinikinRect* bounds, uint32_t glyph_id,
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java59 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument
64 public int saveLayer(RectF bounds, Paint paint) { argument
80 public int saveLayerAlpha(RectF bounds, int alpha, int saveFlags) { argument
85 public int saveLayerAlpha(RectF bounds, int alpha) { argument
/frameworks/minikin/tests/util/
H A DMinikinFontForTest.h37 void GetBounds(MinikinRect* bounds, uint32_t glyph_id,
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java101 final Point bounds = getImageBounds(factory);
102 if (bounds == null) {
108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize);
190 * Gets the image bounds
194 * @return The image bounds
/frameworks/rs/
H A DrsFont.h87 RenderMode mode = FRAMEBUFFER, Rect *bounds = nullptr,
132 void measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds);
151 Font::Rect *bounds = nullptr,
154 void measureText(const char *text, uint32_t len, Font::Rect *bounds);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
H A DCompositeDrawable.java32 * Generic drawable class that can be composed of multiple children. Whenever the bounds changes
163 protected void onBoundsChange(Rect bounds) { argument
164 super.onBoundsChange(bounds);
165 updateBounds(bounds);
229 * Updates the bounds based on the {@link BoundsRule}.
231 void updateBounds(Rect bounds) { argument
235 childDrawable.updateBounds(bounds);
240 * Wrapper class holding a drawable object and {@link BoundsRule} to update drawable bounds
297 * Updates the bounds based on the {@link BoundsRule}.
299 void updateBounds(Rect bounds) { argument
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifPatternDrawable.java47 * scaling when given different bounds.
107 final Rect bounds = getBounds();
108 int drawableWidth = bounds.width();
109 int drawableHeight = bounds.height();
140 canvas.clipRect(bounds);
142 scaleCanvasToBounds(canvas, bitmap, bounds);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DStaggeredGridLayoutManagerBaseConfigSetTest.java253 // we append a suffix to the parcelable to test out of bounds
351 // set a new adapter with huge items to test full bounds check
532 final Rect bounds = mLayoutManager.getViewBounds(child);
534 Log.d(TAG, mConfig + " post scroll to invisible mPosition " + bounds + " in "
565 Rect bounds = mLayoutManager.getViewBounds(view);
566 if (layoutBounds.contains(bounds)) {
576 + " " + bounds + " inside " + layoutBounds);
585 bounds + " equals " + newBounds);
595 "child(" + position + ") not fully visible " + bounds + " not inside "
609 bounds
[all...]

Completed in 729 milliseconds

1234567891011