Searched defs:bounds (Results 1 - 25 of 159) sorted by relevance

1234567

/frameworks/base/services/core/java/com/android/server/wm/
H A DStackWindowListener.java28 void requestResize(Rect bounds); argument
H A DTaskWindowContainerListener.java32 void requestResize(Rect bounds, int resizeMode); argument
/frameworks/base/libs/hwui/tests/unit/
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";
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 DSkiaDisplayListTests.cpp96 SkRect bounds = SkRect::MakeWH(200, 200); local
98 vectorDrawable.mutateStagingProperties()->setBounds(bounds);
105 ASSERT_EQ(vectorDrawable.mutateProperties()->getBounds(), bounds);
/frameworks/base/core/java/android/view/
H A DTouchDelegate.java23 * actual view bounds. The view whose touch area is changed is called the delegate view. This
25 * instance that specifies the bounds that should be mapped to the delegate and the delegate
83 * @param bounds Bounds in local coordinates of the containing view that should be mapped to
87 public TouchDelegate(Rect bounds, View delegateView) { argument
88 mBounds = bounds;
91 mSlopBounds = new Rect(bounds);
97 * Will forward touch events to the delegate view if the event is within the bounds
112 Rect bounds = mBounds;
114 if (bounds.contains(x, y)) {
H A DRoundScrollbarRenderer.java57 public void drawRoundScrollbars(Canvas canvas, float alpha, Rect bounds) { argument
87 bounds.left - thumbWidth / 2,
88 bounds.top,
89 bounds.right - thumbWidth / 2,
90 bounds.bottom);
/frameworks/base/libs/hwui/tests/common/scenes/
H A DSaveLayer2Animation.cpp38 SkIRect bounds = SkIRect::MakeWH(width, height); variable
40 int smallRectHeight = (bounds.height()/regions);
42 int top = bounds.fTop;
51 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding,
58 bounds.fLeft, top + padding, minikin::kBidi_Force_LTR, mBluePaint, nullptr);
61 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight,
65 canvas.drawText(ontext.get(), 0, onscreen.length(), onscreen.length(), bounds.fLeft,
/frameworks/minikin/tests/util/
H A DMinikinFontForTest.cpp63 void MinikinFontForTest::GetBounds(MinikinRect* bounds, uint32_t /* glyph_id */, argument
66 bounds->mLeft = 0.0f;
67 bounds->mTop = 0.0f;
68 bounds->mRight = 10.0f;
69 bounds->mBottom = 10.0f;
/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/support/core-utils/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java54 Rect bounds, Rect outRect) {
56 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
53 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/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/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/base/libs/hwui/pipeline/skia/
H A DSkiaDisplayList.h129 void attachRecorder(SkLiteRecorder* recorder, const SkIRect& bounds) { argument
130 recorder->reset(&mDisplayList, bounds);
/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/native/include/ui/
H A DRegion.h52 inline Rect bounds() const { return getBounds(); } function in class:android::Region
57 // the region becomes its bounds
175 // bounds of the region. However, if the region is
/frameworks/support/core-utils/java/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java56 Rect bounds, Rect outRect) {
58 bounds, outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
55 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/support/transition/src/android/support/transition/
H A DTransitionUtils.java47 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight());
48 matrix.mapRect(bounds);
49 int left = Math.round(bounds.left);
50 int top = Math.round(bounds.top);
51 int right = Math.round(bounds.right);
52 int bottom = Math.round(bounds.bottom);
56 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
77 * @param bounds The bounds of the bitmap in the destination coordinate system (where the
79 * @return A bitmap of the given view or null if bounds ha
81 createViewBitmap(View view, Matrix matrix, RectF bounds) argument
[all...]
/frameworks/av/services/audioflinger/
H A DFastMixerDumpState.cpp78 uint32_t bounds = mBounds; local
79 uint32_t newestOpen = bounds & 0xFFFF;
80 uint32_t oldestClosed = bounds >> 16;
/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/graphics/java/android/graphics/drawable/
H A DRippleBackground.java55 public RippleBackground(RippleDrawable owner, Rect bounds, boolean isBounded, argument
57 super(owner, bounds, forceSoftware);
/frameworks/base/libs/hwui/
H A DBakedOpState.cpp24 static int computeClipSideFlags(const Rect& clip, const Rect& bounds) { argument
26 if (clip.left > bounds.left) clipSideFlags |= OpClipSideFlags::Left;
27 if (clip.top > bounds.top) clipSideFlags |= OpClipSideFlags::Top;
28 if (clip.right < bounds.right) clipSideFlags |= OpClipSideFlags::Right;
29 if (clip.bottom < bounds.bottom) clipSideFlags |= OpClipSideFlags::Bottom;
61 // Rejected based on either empty clip, or bounds not intersecting with clip
118 // bounds are empty, so op is rejected
141 // bounds are empty, so op is rejected
H A DRenderProperties.cpp138 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer
169 Rect bounds; local
170 getRevealClip().getBounds(&bounds);
171 output << indent << "(Clip to reveal clip with bounds "
172 << bounds.left << ", " << bounds.top << ", "
173 << bounds.right << ", " << bounds.bottom << ")" << std::endl;
181 const Rect& bounds = outline.getBounds(); local
182 output << indent << "(Clip to outline with bounds "
[all...]
H A DSnapshot.cpp116 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, argument
118 if (bounds.isEmpty()) {
139 state->dangerRects[i] = bounds;
141 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius;
142 state->dangerRects[0].right = state->dangerRects[2].right = bounds.left + radius;
143 state->dangerRects[1].left = state->dangerRects[3].left = bounds.right - radius;
144 state->dangerRects[2].top = state->dangerRects[3].top = bounds.bottom - radius;
153 state->innerRect = bounds;

Completed in 909 milliseconds

1234567