/frameworks/base/core/java/android/content/ |
H A D | Context.java | 878 public abstract void setWallpaper(Bitmap bitmap) throws IOException; argument
|
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViews.java | 242 // reference the bitmap cache. We don't want to modify the object as it may need to 275 // Because pruning can remove the need for bitmaps, we reconstruct the bitmap cache 863 Bitmap bitmap; field in class:RemoteViews.BitmapReflectionAction 866 BitmapReflectionAction(int viewId, String methodName, Bitmap bitmap) { argument 867 this.bitmap = bitmap; 870 bitmapId = mBitmapCache.getBitmapId(bitmap); 877 bitmap = mBitmapCache.getBitmapForId(bitmapId); 892 bitmap); 898 bitmapId = bitmapCache.getBitmapId(bitmap); 1825 setImageViewBitmap(int viewId, Bitmap bitmap) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Canvas.cpp | 64 static SkCanvas* initRaster(JNIEnv* env, jobject, SkBitmap* bitmap) { argument 65 return bitmap ? new SkCanvas(*bitmap) : new SkCanvas; 96 static void setBitmap(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap) { argument 97 if (bitmap) { 98 canvas->setBitmapDevice(*bitmap); 455 SkCanvas* canvas, SkBitmap* bitmap, 470 canvas->drawBitmap(*bitmap, left_, top_, &filteredPaint); 472 canvas->drawBitmap(*bitmap, left_, top_, paint); 486 canvas->drawBitmap(*bitmap, 454 drawBitmap__BitmapFFPaint(JNIEnv* env, jobject jcanvas, SkCanvas* canvas, SkBitmap* bitmap, jfloat left, jfloat top, SkPaint* paint, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument 492 doDrawBitmap(JNIEnv* env, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, const SkRect& dst, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument 514 drawBitmapRF(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, jobject dstRectF, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument 524 drawBitmapRR(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, jobject dstRect, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument 539 SkBitmap bitmap; local 556 drawBitmapMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, const SkMatrix* matrix, const SkPaint* paint) argument 562 drawBitmapMesh(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, int meshWidth, int meshHeight, jfloatArray jverts, int vertIndex, jintArray jcolors, int colorIndex, const SkPaint* paint) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 332 OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, 335 JavaHeapBitmapRef bitmapRef(env, bitmap, buffer); 337 renderer->drawBitmap(bitmap, left, top, paint); 341 OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, 345 JavaHeapBitmapRef bitmapRef(env, bitmap, buffer); 347 renderer->drawBitmap(bitmap, srcLeft, srcTop, srcRight, srcBottom, 352 OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, SkMatrix* matrix, 355 JavaHeapBitmapRef bitmapRef(env, bitmap, buffer); 357 renderer->drawBitmap(bitmap, matrix, paint); 363 SkBitmap* bitmap local 331 android_view_GLES20Canvas_drawBitmap(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jfloat left, jfloat top, SkPaint* paint) argument 340 android_view_GLES20Canvas_drawBitmapRect(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 351 android_view_GLES20Canvas_drawBitmapMatrix(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, SkMatrix* matrix, SkPaint* paint) argument 385 android_view_GLES20Canvas_drawBitmapMesh(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors, jint colorOffset, SkPaint* paint) argument 401 android_view_GLES20Canvas_drawPatch(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jbyteArray chunks, float left, float top, float right, float bottom, SkPaint* paint) argument 849 android_view_GLES20Canvas_copyLayer(JNIEnv* env, jobject clazz, Layer* layer, SkBitmap* bitmap) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 29 * the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect, 77 // Maximum bitmap size as defined in Skia's native code 105 * Construct an empty raster canvas. Use setBitmap() to specify a bitmap to 107 * this will typically be replaced when a target bitmap is set for the 111 // 0 means no native bitmap 117 * Construct a canvas with the specified bitmap to draw into. The bitmap 121 * bitmap's density. 123 * @param bitmap Specifies a mutable bitmap fo 125 Canvas(Bitmap bitmap) argument 179 setBitmap(Bitmap bitmap) argument 1024 throwIfRecycled(Bitmap bitmap) argument 1042 drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) argument 1064 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 1092 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 1123 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument 1194 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 1234 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 1628 native_setBitmap(int nativeCanvas, int bitmap) argument 1697 native_drawBitmap(int nativeCanvas, int bitmap, float left, float top, int nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 1703 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, RectF dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument 1708 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, Rect dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.cpp | 140 SkBitmap* bitmap = mOwnedBitmapResources.itemAt(i); local 141 caches.resourceCache.decrementRefcountLocked(bitmap); 142 caches.resourceCache.destructorLocked(bitmap); 449 SkBitmap* bitmap = getBitmap(); local 454 bitmap, x, y, paint); 458 SkBitmap* bitmap = getBitmap(); local 462 bitmap, matrix, paint); 466 SkBitmap* bitmap = getBitmap(); local 477 (char*) indent, OP_NAMES[op], bitmap, f1, f2, f3, f4, f5, f6, f7, f8, paint); 481 SkBitmap* bitmap local 491 SkBitmap* bitmap = getBitmap(); local 508 SkBitmap* bitmap = getBitmap(); local 1054 SkBitmap* bitmap = getBitmap(); local 1071 SkBitmap* bitmap = getBitmap(); local 1080 SkBitmap* bitmap = getBitmap(); local 1097 SkBitmap* bitmap = getBitmapData(); local 1110 SkBitmap* bitmap = getBitmap(); local 1131 SkBitmap* bitmap = getBitmap(); local 1577 drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 1588 drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument 1602 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 1615 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 1627 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 1644 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, SkPaint* paint) argument [all...] |
H A D | DisplayListRenderer.h | 583 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint); 584 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint); 585 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, 588 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint); 589 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, 591 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, 824 inline void addBitmap(SkBitmap* bitmap) { argument 825 // Note that this assumes the bitmap is immutable. There are cases this won't handle 826 // correctly, such as creating the bitmap from scratch, drawing with it, changing its 829 addInt((int) bitmap); 834 addBitmapData(SkBitmap* bitmap) argument [all...] |
H A D | OpenGLRenderer.cpp | 1661 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { argument 1662 const float right = left + bitmap->width(); 1663 const float bottom = top + bitmap->height(); 1670 Texture* texture = mCaches.textureCache.get(bitmap); 1674 if (CC_UNLIKELY(bitmap->getConfig() == SkBitmap::kA8_Config)) { 1683 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { argument 1684 Rect r(0.0f, 0.0f, bitmap->width(), bitmap->height()); 1693 Texture* texture = mCaches.textureCache.get(bitmap); 1701 drawTextureRect(0.0f, 0.0f, bitmap 1707 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 1724 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 1803 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 1860 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, SkPaint* paint) argument 1871 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, int alpha, SkXfermode::Mode mode) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 320 // create a new Canvas_Delegate with the given bitmap and return its new native int. 333 /*package*/ static void native_setBitmap(int nativeCanvas, int bitmap) { argument 341 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 823 /*package*/ static void native_drawBitmap(Canvas thisCanvas, int nativeCanvas, int bitmap, argument 830 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 845 /*package*/ static void native_drawBitmap(Canvas thisCanvas, int nativeCanvas, int bitmap, argument 851 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 870 /*package*/ static void native_drawBitmap(int nativeCanvas, int bitmap, argument 876 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 955 //FIXME add support for canvas, screen and bitmap densitie 1212 Canvas_Delegate(Bitmap_Delegate bitmap) argument 1273 setBitmap(Bitmap_Delegate bitmap) argument 1279 drawBitmap( int nativeCanvas, Bitmap_Delegate bitmap, int nativePaintOrZero, final int sleft, final int stop, final int sright, final int sbottom, final int dleft, final int dtop, final int dright, final int dbottom) argument 1323 getImageToDraw(Bitmap_Delegate bitmap, Paint_Delegate paint, boolean[] forceSrcMode) argument [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
H A D | CarouselRS.java | 609 public void setDefaultBitmap(Bitmap bitmap) argument 611 mScript.set_defaultTexture(allocationFromBitmap(bitmap, MIPMAP)); 614 public void setLoadingBitmap(Bitmap bitmap) argument 616 mScript.set_loadingTexture(allocationFromBitmap(bitmap, MIPMAP)); 649 private Allocation allocationFromBitmap(Bitmap bitmap, Allocation.MipmapControl mipmap) argument 651 if (bitmap == null) return null; 652 Allocation allocation = Allocation.createFromBitmap(mRS, bitmap, 657 private Allocation allocationFromPool(int n, Bitmap bitmap, Allocation.MipmapControl mipmap) argument 670 allocation = allocationFromBitmap(bitmap, mipmap); 672 } else if (bitmap ! 718 setTexture(int n, Bitmap bitmap) argument 737 setDetailTexture(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument 849 setBackgroundTexture(Bitmap bitmap) argument 858 setDetailLineTexture(Bitmap bitmap) argument 867 setDetailLoadingTexture(Bitmap bitmap) argument 917 elementForBitmap(Bitmap bitmap, Bitmap.Config defaultConfig) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 175 static native boolean nCopyLayer(int layerId, int bitmap); argument 738 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument 739 if (bitmap.isRecycled()) throw new IllegalArgumentException("Cannot draw recycled bitmaps"); 744 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, chunks, 751 private static native void nDrawPatch(int renderer, int bitmap, byte[] buffer, byte[] chunks, argument 755 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 756 if (bitmap.isRecycled()) throw new IllegalArgumentException("Cannot draw recycled bitmaps"); 758 int modifiers = paint != null ? setupModifiers(bitmap, paint) : MODIFIER_NONE; 761 nDrawBitmap(mRenderer, bitmap 767 nDrawBitmap( int renderer, int bitmap, byte[] buffer, float left, float top, int paint) argument 771 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 784 nDrawBitmap(int renderer, int bitmap, byte[] buff, int matrix, int paint) argument 788 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument 815 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 841 nDrawBitmap(int renderer, int bitmap, byte[] buffer, float srcLeft, float srcTop, float srcRight, float srcBottom, float left, float top, float right, float bottom, int paint) argument 890 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 918 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument [all...] |