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

12345

/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp32 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap,
89 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, argument
93 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop),
94 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom));
95 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
100 canvas->translate(bounds.fLeft, bounds.fTop);
103 bounds
127 SkRect bounds; local
142 SkRect bounds; local
153 SkRect bounds; local
[all...]
H A DNinePatchImpl.cpp105 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, argument
108 if (canvas && canvas->quickReject(bounds)) {
122 SkNinePatch::DrawMesh(canvas, bounds, bitmap,
146 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()));
153 if (bounds.isEmpty() ||
204 ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n",
206 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds
[all...]
/frameworks/base/core/java/android/view/
H A DIMagnificationCallbacks.aidl25 void onMagnifedBoundsChanged(in Region bounds);
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.cpp74 int usage, const Rect& bounds, void** vaddr)
80 bounds.left, bounds.top, bounds.width(), bounds.height(),
88 int usage, const Rect& bounds, android_ycbcr *ycbcr)
94 bounds.left, bounds.top, bounds.width(), bounds
73 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
87 lockYCbCr(buffer_handle_t handle, int usage, const Rect& bounds, android_ycbcr *ycbcr) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DFocusedStackFrame.java65 private void draw(Rect bounds, int color) { argument
66 if (false && DEBUG_STACK) Slog.i(TAG, "draw: bounds=" + bounds.toShortString() +
68 mTmpDrawRect.set(bounds);
79 final int w = bounds.width();
80 final int h = bounds.height();
102 private void positionSurface(Rect bounds) { argument
103 if (false && DEBUG_STACK) Slog.i(TAG, "positionSurface: bounds=" + bounds.toShortString());
104 mSurfaceControl.setSize(bounds
134 setBounds(Rect bounds) argument
[all...]
H A DStackBox.java85 /** Used to keep from reallocating a temporary Rect for propagating bounds to child boxes */
143 /** Returns the bounds of the specified TaskStack if it is contained in this StackBox.
144 * @param stackId the TaskStack to find the bounds of.
145 * @return a new Rect with the bounds of stackId if it is within this StackBox, null otherwise.
151 Rect bounds = mFirst.getStackBounds(stackId);
152 if (bounds != null) {
153 return bounds;
290 /** If this is a terminal StackBox (contains a TaskStack) set the bounds.
291 * @param bounds The rectangle to set the bounds t
294 setStackBoxSizes(Rect bounds, boolean underStatusBar) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DFace.java68 * @param bounds Bounds of the face.
76 * if bounds is {@code null},
85 public Face(Rect bounds, int score, int id, argument
87 checkNotNull("bounds", bounds);
99 mBounds = bounds;
119 * @param bounds Bounds of the face.
123 * if bounds is {@code null},
129 public Face(Rect bounds, int score) { argument
130 this(bounds, scor
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPictureDrawable.java69 Rect bounds = getBounds();
71 canvas.clipRect(bounds);
72 canvas.translate(bounds.left, bounds.top);
H A DAnimatedRotateDrawable.java74 final Rect bounds = drawable.getBounds();
76 int w = bounds.right - bounds.left;
77 int h = bounds.bottom - bounds.top;
82 canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top);
202 protected void onBoundsChange(Rect bounds) { argument
203 mState.mDrawable.setBounds(bounds.left, bounds
[all...]
H A DRotateDrawable.java76 Rect bounds = mState.mDrawable.getBounds();
78 int w = bounds.right - bounds.left;
79 int h = bounds.bottom - bounds.top;
86 canvas.rotate(st.mCurrentDegrees, px + bounds.left, py + bounds.top);
182 protected void onBoundsChange(Rect bounds) { argument
183 mState.mDrawable.setBounds(bounds.left, bounds
[all...]
H A DClipDrawable.java193 protected void onBoundsChange(Rect bounds) { argument
194 mClipState.mDrawable.setBounds(bounds);
205 final Rect bounds = getBounds();
207 int w = bounds.width();
212 int h = bounds.height();
218 Gravity.apply(mClipState.mGravity, w, h, bounds, r, layoutDirection);
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java142 protected void onBoundsChange(Rect bounds) { argument
143 super.onBoundsChange(bounds);
147 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument
156 track.setBounds(bounds);
162 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument
167 thumbRect.set(bounds.left, bounds.top + offset,
168 bounds.right, bounds.top + offset + length);
170 thumbRect.set(bounds
[all...]
H A DFastScroller.java507 final Rect bounds = mTempBounds;
508 measurePreview(mPrimaryText, bounds);
509 applyLayout(mPrimaryText, bounds);
510 measurePreview(mSecondaryText, bounds);
511 applyLayout(mSecondaryText, bounds);
515 bounds.left -= mPreviewImage.getPaddingLeft();
516 bounds.top -= mPreviewImage.getPaddingTop();
517 bounds.right += mPreviewImage.getPaddingRight();
518 bounds.bottom += mPreviewImage.getPaddingBottom();
519 applyLayout(mPreviewImage, bounds);
532 applyLayout(View view, Rect bounds) argument
1499 animateBounds(View v, Rect bounds) argument
[all...]
H A DTabWidget.java342 final Rect bounds = mBounds;
343 bounds.left = selectedChild.getLeft();
344 bounds.right = selectedChild.getRight();
346 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()),
347 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight);
348 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(),
349 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
/frameworks/native/include/ui/
H A DGraphicBufferMapper.h46 int usage, const Rect& bounds, void** vaddr);
49 int usage, const Rect& bounds, android_ycbcr *ycbcr);
/frameworks/base/libs/hwui/font/
H A DFont.h112 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions);
115 int numGlyphs, Rect *bounds, const float* positions);
125 Rect* bounds, const float* pos);
128 Rect* bounds, const float* pos);
131 Rect* bounds, const float* pos);
134 Rect* bounds, const float* pos);
H A DFont.cpp142 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) {
149 if (bounds->bottom > nPenY) {
150 bounds->bottom = nPenY;
152 if (bounds->left > nPenX) {
153 bounds->left = nPenX;
155 if (bounds->right < nPenX + width) {
156 bounds->right = nPenX + width;
158 if (bounds->top < nPenY + height) {
159 bounds->top = nPenY + height;
164 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, cons
141 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
163 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
182 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
209 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument
341 measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, Rect *bounds, const float* positions) argument
372 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
[all...]
/frameworks/base/libs/hwui/
H A DOpenGLRenderer.cpp792 void OpenGLRenderer::calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer) { argument
793 const Rect untransformedBounds(bounds);
795 currentTransform().mapRect(bounds);
797 // Layers only make sense if they are in the framebuffer's bounds
798 if (bounds.intersect(*mSnapshot->clipRect)) {
800 bounds.snapToPixelBoundaries();
803 // need to make sure the layer does not extend outside the bounds
805 if (!bounds.intersect(mSnapshot->previous->viewport)) {
806 bounds.setEmpty();
808 clip.set(bounds);
825 updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip, bool fboLayer, int alpha) argument
977 createFboLayer(Layer* layer, Rect& bounds, Rect& clip, GLuint previousFbo) argument
1338 dirtyLayerUnchecked(Rect& bounds, Region* region) argument
1381 Rect* bounds = mLayers.itemAt(i); local
1705 Rect* bounds = mSnapshot->previous->clipRect; local
2098 drawBitmaps(SkBitmap* bitmap, AssetAtlas::Entry* entry, int bitmapCount, TextureVertex* vertices, bool pureTranslate, const Rect& bounds, SkPaint* paint) argument
2451 const Rect& bounds = mesh->quads.itemAt(i); local
2574 SkRect bounds = path.getBounds(); local
2599 SkRect bounds; local
2618 SkRect bounds; local
2919 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
[all...]
H A DPathTessellator.h105 static void expandBoundsForStroke(SkRect& bounds, const SkPaint* paint, bool forceExpand);
111 const mat4* transform, SkRect& bounds, VertexBuffer& vertexBuffer);
114 const mat4* transform, SkRect& bounds, VertexBuffer& vertexBuffer);
H A DDeferredDisplayList.h56 // global op bounds, mapped by mMatrix to be in screen space coordinates, clipped
62 int mClipSideFlags; // specifies which sides of the bounds are clipped, unclipped if cleared
83 DeferredDisplayList(const Rect& bounds, bool avoidOverdraw = true) : argument
84 mBounds(bounds), mAvoidOverdraw(avoidOverdraw) {
88 void reset(const Rect& bounds) { mBounds.set(bounds); } argument
149 // layer space bounds of rendering
197 bool opaqueOverBounds; // opaque over bounds in DeferredDisplayState - can skip ops below
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDelegateViewHelper.java123 RectF bounds = new RectF();
130 bounds.set(p[0], p[1], p[0] + view.getWidth(), p[1] + view.getHeight());
132 bounds.union(p[0], p[1], p[0] + view.getWidth(), p[1] + view.getHeight());
135 mInitialTouch.set(bounds);
/frameworks/av/libvideoeditor/lvpp/
H A DPreviewRenderer.cpp108 Rect bounds(mWidth, mHeight);
113 bounds, &dst));
/frameworks/base/core/java/android/gesture/
H A DGesture.java235 final RectF bounds = new RectF();
236 path.computeBounds(bounds, true);
238 final float sx = (width - 2 * inset) / bounds.width();
239 final float sy = (height - 2 * inset) / bounds.height();
243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f,
244 -bounds.top + (height - bounds.height() * scale) / 2.0f);
/frameworks/native/services/surfaceflinger/
H A DTransform.cpp203 Rect Transform::transform(const Rect& bounds) const
206 vec2 lt( bounds.left, bounds.top );
207 vec2 rt( bounds.right, bounds.top );
208 vec2 lb( bounds.left, bounds.bottom );
209 vec2 rb( bounds.right, bounds.bottom );
235 out.set(transform(reg.bounds()));
[all...]

Completed in 2421 milliseconds

12345