/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatch.cpp | 30 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, 69 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, argument 87 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), 88 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom)); 89 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 94 canvas->translate(bounds.fLeft, bounds.fTop); 97 bounds 123 SkRect bounds; local 139 SkRect bounds; local 152 SkRect bounds; local [all...] |
H A D | NinePatchImpl.cpp | 105 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, argument 108 if (canvas && canvas->quickReject(bounds, SkCanvas::kBW_EdgeType)) { 122 SkNinePatch::DrawMesh(canvas, bounds, bitmap, 146 LOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height())); 153 if (bounds.isEmpty() || 204 LOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n", 206 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds [all...] |
H A D | Canvas.cpp | 126 static int saveLayer(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds, argument 130 if (bounds != NULL) { 131 GraphicsJNI::jrectf_to_rect(env, bounds, &storage); 140 SkRect bounds; local 141 bounds.set(SkFloatToScalar(l), SkFloatToScalar(t), SkFloatToScalar(r), 143 return canvas->saveLayer(&bounds, paint, (SkCanvas::SaveFlags)flags); 147 jobject bounds, int alpha, int flags) { 150 if (bounds != NULL) { 151 GraphicsJNI::jrectf_to_rect(env, bounds, &storage); 161 SkRect bounds; local 146 saveLayerAlpha(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds, int alpha, int flags) argument 851 getClipBounds(JNIEnv* env, jobject, SkCanvas* canvas, jobject bounds) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | TouchDelegate.java | 26 * 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/graphics/java/android/graphics/drawable/ |
H A D | PictureDrawable.java | 69 Rect bounds = getBounds(); 71 canvas.clipRect(bounds); 72 canvas.translate(bounds.left, bounds.top);
|
H A D | AnimatedRotateDrawable.java | 73 final Rect bounds = drawable.getBounds(); 75 int w = bounds.right - bounds.left; 76 int h = bounds.bottom - bounds.top; 190 protected void onBoundsChange(Rect bounds) { argument 191 mState.mDrawable.setBounds(bounds.left, bounds.top, bounds.right, bounds [all...] |
H A D | RotateDrawable.java | 76 Rect bounds = mState.mDrawable.getBounds(); 78 int w = bounds.right - bounds.left; 79 int h = bounds.bottom - bounds.top; 174 protected void onBoundsChange(Rect bounds) { argument 175 mState.mDrawable.setBounds(bounds.left, bounds.top, 176 bounds.right, bounds [all...] |
H A D | Drawable.java | 110 * Draw in its bounds (set via setBounds) respecting optional effects such 139 public void setBounds(Rect bounds) { argument 140 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); 144 * Return a copy of the drawable's bounds in the specified Rect (allocated 145 * by the caller). The bounds specify where this will draw when its draw() 148 * @param bounds Rect to receive the drawable's bounds (allocate 151 copyBounds(Rect bounds) argument 579 onBoundsChange(Rect bounds) argument [all...] |
H A D | ClipDrawable.java | 185 protected void onBoundsChange(Rect bounds) { argument 186 mClipState.mDrawable.setBounds(bounds); 197 final Rect bounds = getBounds(); 199 int w = bounds.width(); 204 int h = bounds.height(); 209 Gravity.apply(mClipState.mGravity, w, h, bounds, r);
|
H A D | ScaleDrawable.java | 207 protected void onBoundsChange(Rect bounds) { argument 210 int w = bounds.width(); 215 int h = bounds.height(); 220 Gravity.apply(mScaleState.mGravity, w, h, bounds, r);
|
H A D | GradientDrawable.java | 132 * Controls how the gradient is oriented relative to the drawable's bounds 377 RectF bounds = new RectF(mRect); 379 float x = bounds.width() / 2.0f; 380 float y = bounds.height() / 2.0f; 383 st.mThickness : bounds.width() / st.mThicknessRatio; 386 st.mInnerRadius : bounds.width() / st.mInnerRadiusRatio; 388 RectF innerBounds = new RectF(bounds); 391 bounds = new RectF(innerBounds); 392 bounds.inset(-thickness, -thickness); 410 ringPath.arcTo(bounds, 0. [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 143 protected void onBoundsChange(Rect bounds) { argument 144 super.onBoundsChange(bounds); 148 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument 157 track.setBounds(bounds); 163 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 168 thumbRect.set(bounds.left, bounds.top + offset, 169 bounds.right, bounds.top + offset + length); 171 thumbRect.set(bounds [all...] |
H A D | TabWidget.java | 295 final Rect bounds = mBounds; 296 bounds.left = selectedChild.getLeft(); 297 bounds.right = selectedChild.getRight(); 299 leftStrip.setBounds(Math.min(0, bounds.left - leftStrip.getIntrinsicWidth()), 300 myHeight - leftStrip.getIntrinsicHeight(), bounds.left, myHeight); 301 rightStrip.setBounds(bounds.right, myHeight - rightStrip.getIntrinsicHeight(), 302 Math.max(getWidth(), bounds.right + rightStrip.getIntrinsicWidth()), myHeight);
|
H A D | ListView.java | 2964 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument 2968 canvas.clipRect(bounds); 2970 final int span = bounds.bottom - bounds.top; 2972 bounds.top = bounds.bottom - height; 2975 drawable.setBounds(bounds); 2981 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument 2985 canvas.clipRect(bounds); 2987 final int span = bounds 3150 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument [all...] |
/frameworks/base/services/surfaceflinger/ |
H A D | TextureManager.cpp | 237 Rect bounds(dirty.bounds()); 244 bounds.set(Rect(t.width, t.height)); 278 0, bounds.top, t.width, bounds.height(), 280 t.data + bounds.top*t.stride*2); 283 0, bounds.top, t.width, bounds.height(), 285 t.data + bounds.top*t.stride*2); 289 0, bounds [all...] |
H A D | Transform.cpp | 242 Rect Transform::transform(const Rect& bounds) const 245 vec2 lt( bounds.left, bounds.top ); 246 vec2 rt( bounds.right, bounds.top ); 247 vec2 lb( bounds.left, bounds.bottom ); 248 vec2 rb( bounds.right, bounds.bottom ); 274 out.set(transform(reg.bounds())); [all...] |
/frameworks/base/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 84 int usage, const Rect& bounds, void** vaddr) 89 bounds.left, bounds.top, bounds.width(), bounds.height(), 93 bounds.left, bounds.top, bounds.width(), bounds.height(), 83 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument
|
H A D | Region.cpp | 239 Rect& bounds; 247 : bounds(reg.mBounds), storage(reg.mStorage), head(), tail(), cur() { 248 bounds.top = bounds.bottom = 0; 249 bounds.left = INT_MAX; 250 bounds.right = INT_MIN; 259 bounds.top = storage.itemAt(0).top; 260 bounds.bottom = storage.top().bottom; 265 bounds.left = 0; 266 bounds [all...] |
/frameworks/base/include/ui/ |
H A D | GraphicBufferMapper.h | 46 int usage, const Rect& bounds, void** vaddr);
|
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 235 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/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 336 Rectangle bounds = region.mArea.getBounds(); 337 if (bounds.isEmpty()) { 342 rect.left = bounds.x; 343 rect.top = bounds.y; 344 rect.right = bounds.x + bounds.width; 345 rect.bottom = bounds.y + bounds.height;
|
H A D | Path_Delegate.java | 195 /*package*/ static void native_computeBounds(int nPath, RectF bounds) { argument 201 pathDelegate.fillBounds(bounds); 554 * Fills the given {@link RectF} with the path bounds. 555 * @param bounds the RectF to be filled. 557 private void fillBounds(RectF bounds) { argument 559 bounds.left = (float)rect.getMinX(); 560 bounds.right = (float)rect.getMaxX(); 561 bounds.top = (float)rect.getMinY(); 562 bounds.bottom = (float)rect.getMaxY(); 704 * @param oval The bounds o [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FixedSizeDrawable.java | 43 public void setBounds(Rect bounds) { argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Paint.java | 1327 * Return in bounds (allocated by the caller) the smallest rectangle that 1330 * @param text String to measure and return its bounds 1333 * @param bounds Returns the unioned bounds of all the text. Must be 1336 public void getTextBounds(String text, int start, int end, Rect bounds) { argument 1340 if (bounds == null) { 1341 throw new NullPointerException("need bounds Rect"); 1343 nativeGetStringBounds(mNativePaint, text, start, end, bounds); 1347 * Return in bounds (allocated by the caller) the smallest rectangle that 1350 * @param text Array of chars to measure and return their unioned bounds 1356 getTextBounds(char[] text, int index, int count, Rect bounds) argument 1411 nativeGetStringBounds(int nativePaint, String text, int start, int end, Rect bounds) argument 1413 nativeGetCharArrayBounds(int nativePaint, char[] text, int index, int count, Rect bounds) argument [all...] |
/frameworks/base/services/surfaceflinger/DisplayHardware/ |
H A D | DisplayHardware.h | 87 Rect bounds() const { function in class:android::DisplayHardware
|