Searched refs:bounds (Results 1 - 25 of 235) sorted by relevance

12345678910

/frameworks/base/core/java/com/android/internal/policy/
H A DDockedDividerUtils.java55 * Makes sure that the bounds are always valid, i. e. they are at least one pixel high and wide.
57 * @param bounds The bounds to sanitize.
58 * @param topLeft Pass true if the bounds are at the top/left of the screen, false if they are
60 * the bounds.
62 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { argument
64 // If the bounds are either on the top or left of the screen, rather move it further to the
68 if (bounds.left >= bounds.right) {
69 bounds
84 calculatePositionForBounds(Rect bounds, int dockSide, int dividerSize) argument
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp81 uint32_t usage, const Rect& bounds, void** vaddr)
87 bounds.left, bounds.top, bounds.width(), bounds.height(),
95 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr)
105 bounds.left, bounds.top, bounds.width(), bounds
80 lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr) argument
94 lockYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) argument
123 lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) argument
147 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument
[all...]
/frameworks/support/v7/cardview/jellybean-mr1/android/support/v7/widget/
H A DCardViewJellybeanMr1.java29 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius,
31 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
/frameworks/base/core/java/android/view/accessibility/
H A DIAccessibilityInteractionConnection.aidl34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds,
39 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback,
42 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds,
46 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId,
50 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId,
/frameworks/base/core/java/android/view/
H A DTouchDelegate.java26 * actual view bounds. The view whose touch area is changed is called the delegate view. This
28 * instance that specifies the bounds that should be mapped to the delegate and the delegate
86 * @param bounds Bounds in local coordinates of the containing view that should be mapped to
90 public TouchDelegate(Rect bounds, View delegateView) { argument
91 mBounds = bounds;
94 mSlopBounds = new Rect(bounds);
100 * Will forward touch events to the delegate view if the event is within the bounds
115 Rect bounds = mBounds;
117 if (bounds.contains(x, y)) {
/frameworks/base/core/java/android/view/animation/
H A DTransformation.java126 Rect bounds = t.getClipRect();
128 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top,
129 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom);
131 setClipRect(bounds);
145 Rect bounds = t.getClipRect();
147 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top,
148 mClipRect.right + bounds
[all...]
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DCardViewEclairMr1.java39 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius,
42 final float innerWidth = bounds.width() - twoRadius - 1;
43 final float innerHeight = bounds.height() - twoRadius - 1;
50 canvas.translate(bounds.left + roundedCornerRadius,
51 bounds.top + roundedCornerRadius);
64 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, bounds.top,
65 bounds.right - roundedCornerRadius + 1f,
66 bounds.top + roundedCornerRadius, paint);
68 canvas.drawRect(bounds
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPictureDrawable.java65 Rect bounds = getBounds();
67 canvas.clipRect(bounds);
68 canvas.translate(bounds.left, bounds.top);
/frameworks/base/libs/hwui/tests/unit/
H A DFontRendererTests.cpp42 Rect bounds; local
44 &glyphs, &positions, &totalAdvance, &bounds);
51 EXPECT_LE(bounds.getWidth() + radius * 2, (int) result.width);
52 EXPECT_LE(bounds.getHeight() + radius * 2, (int) result.height);
H A DTextDropShadowCacheTests.cpp42 uirenderer::Rect bounds; local
44 &glyphs, &positions, &totalAdvance, &bounds);
45 EXPECT_TRUE(bounds.contains(5, -10, 100, 0)) << "Expect input to be nontrivially sized";
/frameworks/base/libs/hwui/utils/
H A DNinePatch.h31 static void Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap,
H A DNinePatchImpl.cpp98 void NinePatch::Draw(SkCanvas* canvas, const SkRect& bounds, argument
101 if (canvas && canvas->quickReject(bounds)) {
117 SkNinePatch::DrawMesh(canvas, bounds, bitmap,
138 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()),
139 SkScalarToFloat(bounds.height()));
145 if (bounds.isEmpty() ||
199 ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
201 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds
[all...]
/frameworks/native/include/ui/
H A DGraphicBufferMapper.h46 uint32_t usage, const Rect& bounds, void** vaddr);
49 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
54 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd);
57 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
/frameworks/base/core/java/android/hardware/camera2/params/
H A DFace.java71 * @param bounds Bounds of the face.
79 * if bounds is {@code null},
88 public Face(Rect bounds, int score, int id, argument
90 checkNotNull("bounds", bounds);
102 mBounds = bounds;
122 * @param bounds Bounds of the face.
126 * if bounds is {@code null},
132 public Face(Rect bounds, int score) { argument
133 this(bounds, scor
[all...]
/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp83 const SkPaint& paint, float x, float y, MinikinRect& bounds, float totalAdvance)
91 , bounds(bounds)
123 bounds.mLeft, bounds.mTop, bounds.mRight, bounds.mBottom, totalAdvance);
130 bounds.mLeft, bounds.mTop, bounds
82 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, const SkPaint& paint, float x, float y, MinikinRect& bounds, float totalAdvance) argument
145 MinikinRect& bounds; member in class:android::DrawTextFunctor
163 MinikinRect bounds; local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFixedSizeFrameLayout.java27 * relayout its children with the last known layout bounds when a layout is requested from a child
70 // If we are already laid out, then just reuse the same bounds to layout the children
89 protected void layoutContents(Rect bounds, boolean changed) { argument
90 super.onLayout(changed, bounds.left, bounds.top, bounds.right, bounds.bottom);
/frameworks/minikin/sample/
H A DMinikinSkia.cpp38 void MinikinFontSkia::GetBounds(MinikinRect* bounds, uint32_t glyph_id,
45 bounds->mLeft = skBounds.fLeft;
46 bounds->mTop = skBounds.fTop;
47 bounds->mRight = skBounds.fRight;
48 bounds->mBottom = skBounds.fBottom;
H A DMinikinSkia.h12 void GetBounds(MinikinRect* bounds, uint32_t glyph_id,
/frameworks/base/core/java/android/transition/
H A DExplode.java85 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS);
88 calculateOut(sceneRoot, bounds, mTempLoc);
92 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top,
102 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS);
103 int viewPosX = bounds.left;
104 int viewPosY = bounds.top;
113 endX += interruptedPosition[0] - bounds.left;
114 endY += interruptedPosition[1] - bounds.top;
115 bounds
125 calculateOut(View sceneRoot, Rect bounds, int[] outVector) argument
[all...]
H A DTransitionUtils.java93 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight());
94 matrix.mapRect(bounds);
95 int left = Math.round(bounds.left);
96 int top = Math.round(bounds.top);
97 int right = Math.round(bounds.right);
98 int bottom = Math.round(bounds.bottom);
102 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
151 * @param bounds The bounds of the bitmap in the destination coordinate system (where the
153 * @return A bitmap of the given view or null if bounds ha
155 createViewBitmap(View view, Matrix matrix, RectF bounds) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DTask.java49 // 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...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherScrim.java57 Rect bounds = getBounds();
58 float width = bounds.width() * OUTER_EXTENT;
59 float height = (mTop + bounds.height()) * OUTER_EXTENT;
62 canvas.drawRect(isLtr ? bounds.right - width : 0, 0,
63 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint);
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java154 protected void onBoundsChange(Rect bounds) { argument
155 super.onBoundsChange(bounds);
186 private void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument
196 track.setBounds(bounds);
202 private void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument
208 thumb.setBounds(bounds.left, bounds.top + offset,
209 bounds.right, bounds.top + offset + length);
218 thumb.setBounds(bounds
[all...]
/frameworks/base/libs/hwui/tests/microbench/
H A DFontBench.cpp39 uirenderer::Rect bounds;
41 &glyphs, &positions, &totalAdvance, &bounds);
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java52 Rect bounds, Rect outRect) {
54 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
51 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument

Completed in 519 milliseconds

12345678910