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

123456

/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);
/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/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/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
/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/core/jni/android/graphics/
H A DNinePatch.cpp98 SkRect bounds; local
99 GraphicsJNI::jrect_to_rect(env, boundsRect, &bounds);
102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region);
/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;
59 // Rejected based on either empty clip, or bounds not intersecting with clip
116 // bounds are empty, so op is rejected
139 // bounds are empty, so op is rejected
H A DRenderProperties.cpp131 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer
160 Rect bounds; local
161 getRevealClip().getBounds(&bounds);
162 ALOGD("%*s(Clip to reveal clip with bounds %.2f %.2f %.2f %.2f)", level * 2, "",
163 RECT_ARGS(bounds));
171 ALOGD("%*s(Clip to outline with bounds %.2f %.2f %.2f %.2f)", level * 2, "",
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/
H A DRecentsTvTransitionHelper.java51 final Rect bounds, int destinationStack) {
53 if (bounds != null) {
54 opts.setLaunchBounds(bounds.isEmpty() ? null : bounds);
49 launchTaskFromRecents(final TaskStack stack, @Nullable final Task task, final TaskStackHorizontalGridView stackView, final TaskCardView taskView, final Rect bounds, int destinationStack) argument
/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/v4/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/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);
H A DInsetDrawable.java42 * the View's actual bounds.
210 protected void onBoundsChange(Rect bounds) { argument
212 r.set(bounds);
219 // Apply inset bounds to the wrapped drawable.
/frameworks/base/libs/hwui/hwui/
H A DMinikinSkia.cpp58 void MinikinFontSkia::GetBounds(MinikinRect* bounds, uint32_t glyph_id, argument
65 bounds->mLeft = skBounds.fLeft;
66 bounds->mTop = skBounds.fTop;
67 bounds->mRight = skBounds.fRight;
68 bounds->mBottom = skBounds.fBottom;
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistVisualizer.java36 final Rect bounds; field in class:AssistVisualizer.TextEntry
50 bounds = new Rect(left, top, left+node.getWidth(), top+node.getHeight());
118 Log.d(TAG, "View " + te.className + " " + te.bounds.toShortString()
186 canvas.drawRect(te.bounds.left - mTmpLocation[0], te.bounds.top - mTmpLocation[1],
187 te.bounds.right - mTmpLocation[0], te.bounds.bottom - mTmpLocation[1],
195 canvas.drawRect(0, 0, te.bounds.right - te.bounds.left, te.bounds
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DTileDrawable.java76 protected void onBoundsChange(Rect bounds) { argument
77 super.onBoundsChange(bounds);
83 if (bounds.isEmpty()) {
86 final int l = bounds.left + (bounds.width() / 2) - (mInnerWidth / 2);
87 final int t = bounds.top + (bounds.height() / 2) - (mInnerHeight / 2);
/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/core/java/com/android/internal/view/menu/
H A DMenuPopup.java65 * Specifies the anchor-relative bounds of the popup's transition
68 * @param bounds anchor-relative bounds
70 public void setEpicenterBounds(Rect bounds) { argument
71 mEpicenterBounds = bounds;
75 * @return anchor-relative bounds of the popup's transition epicenter
/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);

Completed in 732 milliseconds

123456