/frameworks/base/opengl/java/android/opengl/ |
H A D | GLUtils.java | 44 * return the internal format as defined by OpenGL ES of the supplied bitmap. 45 * @param bitmap 46 * @return the internal format of the bitmap. 48 public static int getInternalFormat(Bitmap bitmap) { argument 49 if (bitmap == null) { 52 if (bitmap.isRecycled()) { 53 throw new IllegalArgumentException("bitmap is recycled"); 55 int result = native_getInternalFormat(bitmap); 63 * Return the type as defined by OpenGL ES of the supplied bitmap, if there 64 * is one. If the bitmap i 70 getType(Bitmap bitmap) argument 106 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int border) argument 132 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument 154 texImage2D(int target, int level, Bitmap bitmap, int border) argument 189 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap) argument 214 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument 274 native_getInternalFormat(Bitmap bitmap) argument 275 native_getType(Bitmap bitmap) argument 276 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument 278 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument [all...] |
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | jpeg_decoder_bench.cpp | 53 SkBitmap* bitmap) { 58 // Decode the input stream and then use the bitmap. 59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 63 printf("WidthxHeight: %dx%d\n", bitmap->width(), bitmap->height()); 70 SkBitmap* bitmap) { 75 // Decode the input stream and then use the bitmap. 76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 82 return storeBitmapToFile(bitmap, filename); 89 SkBitmap* bitmap local 52 testDecodeBounds(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument 69 testDecodePixels(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.cpp | 105 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { argument 123 Texture* TextureCache::get(SkBitmap* bitmap) { argument 124 Texture* texture = mCache.get(bitmap); 127 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { 132 const uint32_t size = bitmap->rowBytes() * bitmap->height(); 133 // Don't even try to cache a bitmap that's bigger than the cache 142 generateTexture(bitmap, texture, false); 147 bitmap, textur 162 remove(SkBitmap* bitmap) argument 166 removeDeferred(SkBitmap* bitmap) argument 200 generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate) argument 255 uploadLoFiTexture(bool resize, SkBitmap* bitmap, uint32_t width, uint32_t height) argument [all...] |
H A D | GradientCache.cpp | 119 SkBitmap bitmap; local 120 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 1024, 1); 121 bitmap.allocPixels(); 122 bitmap.eraseColor(0); 124 SkCanvas canvas(bitmap); 128 points[1].set(bitmap.width(), 0.0f); 137 canvas.drawRectCoords(0.0f, 0.0f, bitmap.width(), 1.0f, p); 140 const uint32_t size = bitmap.rowBytes() * bitmap.height(); 146 generateTexture(&bitmap, textur 154 generateTexture(SkBitmap* bitmap, Texture* texture) argument [all...] |
H A D | TextureCache.h | 61 void operator()(SkBitmap*& bitmap, Texture*& texture); 64 * Returns the texture associated with the specified bitmap. If the texture 67 Texture* get(SkBitmap* bitmap); 69 * Removes the texture associated with the specified bitmap. 72 void remove(SkBitmap* bitmap); 74 * Removes the texture associated with the specified bitmap. This is meant 77 void removeDeferred(SkBitmap* bitmap); 114 * Generates the texture from a bitmap into the specified texture structure. 116 * @param regenerate If true, the bitmap data is reuploaded into the texture, but 119 void generateTexture(SkBitmap* bitmap, Textur [all...] |
H A D | LayerRenderer.cpp | 334 bool LayerRenderer::copyLayer(Layer* layer, SkBitmap* bitmap) { argument 336 if (layer && layer->isTextureLayer() && bitmap->width() <= caches.maxTextureSize && 337 bitmap->height() <= caches.maxTextureSize) { 345 SkAutoLockPixels alp(*bitmap); 356 switch (bitmap->config()) { 397 glTexImage2D(GL_TEXTURE_2D, 0, format, bitmap->width(), bitmap->height(), 407 renderer.setViewport(bitmap->width(), bitmap->height()); 409 bitmap [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapShader.java | 20 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or 32 * Call this to create a new shader that will draw with a bitmap. 34 * @param bitmap The bitmap to use inside the shader 35 * @param tileX The tiling mode for x to draw the bitmap in. 36 * @param tileY The tiling mode for y to draw the bitmap in. 38 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) { argument 39 mBitmap = bitmap; 40 final int b = bitmap [all...] |
H A D | Canvas.java | 29 * the draw calls (writing into the bitmap), a drawing primitive (e.g. Rect, 46 java-bitmap is). If we are a gl-based, then mBitmap will be null, and 83 // Maximum bitmap size as defined in Skia's native code 111 * Construct an empty raster canvas. Use setBitmap() to specify a bitmap to 113 * this will typically be replaced when a target bitmap is set for the 117 // 0 means no native bitmap 123 * Construct a canvas with the specified bitmap to draw into. The bitmap 127 * bitmap's density. 129 * @param bitmap Specifie 131 Canvas(Bitmap bitmap) argument 186 setBitmap(Bitmap bitmap) argument 1036 throwIfRecycled(Bitmap bitmap) argument 1055 drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) argument 1077 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 1106 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 1138 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument 1212 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 1252 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 1644 native_setBitmap(int nativeCanvas, int bitmap) argument 1713 native_drawBitmap(int nativeCanvas, int bitmap, float left, float top, int nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 1719 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, RectF dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument 1724 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, Rect dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument [all...] |
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapFactoryTest.java | 41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd); 42 assertNotNull("BitmapFactory returned null", bitmap); 43 assertEquals("Bitmap width", 1, bitmap.getWidth()); 44 assertEquals("Bitmap height", 1, bitmap.getHeight());
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 224 SkBitmap bitmap;
local 226 bitmap.setConfig(config, width, height);
228 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
235 0, 0, width, height, bitmap);
238 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL);
253 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) {
argument 256 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap);
260 delete bitmap;
263 static void Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) {
argument 266 android::uirenderer::Caches::getInstance().resourceCache.recycle(bitmap);
280 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument 312 Bitmap_erase(JNIEnv* env, jobject, SkBitmap* bitmap, jint color) argument 316 Bitmap_width(JNIEnv* env, jobject, SkBitmap* bitmap) argument 320 Bitmap_height(JNIEnv* env, jobject, SkBitmap* bitmap) argument 324 Bitmap_rowBytes(JNIEnv* env, jobject, SkBitmap* bitmap) argument 328 Bitmap_config(JNIEnv* env, jobject, SkBitmap* bitmap) argument 332 Bitmap_getGenerationId(JNIEnv* env, jobject, SkBitmap* bitmap) argument 336 Bitmap_hasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap) argument 340 Bitmap_setHasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasAlpha) argument 371 SkBitmap* bitmap = new SkBitmap; local 412 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument 492 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y) argument 510 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument 537 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color) argument 553 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument 560 Bitmap_copyPixelsToBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument 573 Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument 633 Bitmap_prepareToDraw(JNIEnv* env, jobject, SkBitmap* bitmap) argument [all...] |
H A D | NinePatchImpl.cpp | 40 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { argument 41 switch (bitmap.getConfig()) { 43 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y)); 46 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y)); 50 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y))); 53 SkColorTable* ctable = bitmap.getColorTable(); 55 (*ctable)[*bitmap.getAddr8(x, y)]); 71 const SkBitmap& bitmap, const SkPaint& paint, 80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) { 91 canvas->drawBitmapRect(bitmap, 70 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument 105 NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument [all...] |
H A D | NinePatch.cpp | 31 const SkBitmap& bitmap, const android::Res_png_9patch& chunk, 69 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, 88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 105 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 113 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, 118 SkASSERT(bitmap); 125 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensity, srcDensity); 129 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, 134 SkASSERT(bitmap); 140 draw(env, canvas, bounds, bitmap, chunkOb 68 draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument 112 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument 128 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument 143 getTransparentRegion(JNIEnv* env, jobject, const SkBitmap* bitmap, jbyteArray chunkObj, jobject boundsRect) argument [all...] |
/frameworks/base/tests/BrowserTestPlugin/jni/event/ |
H A D | EventPlugin.h | 38 void drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip);
|
H A D | EventPlugin.cpp | 47 void EventPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { argument 50 inst(), bitmap.width, bitmap.height); 58 const float zoomFactorW = static_cast<float>(bitmap.width) / W; 59 const float zoomFactorH = static_cast<float>(bitmap.height) / H; 71 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); 147 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip);
|
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 33 * of a face in a bitmap. 127 * face found. The bitmap must be in 565 format (for now). 129 * @param bitmap the {@link android.graphics.Bitmap} graphic to be analyzed 139 public int findFaces(Bitmap bitmap, Face[] faces) argument 144 if (bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) { 146 "bitmap size doesn't match initialization"); 153 int numFaces = fft_detect(bitmap); 190 native private int fft_detect(Bitmap bitmap); argument
|
H A D | ThumbnailUtils.java | 49 /* Maximum pixels size for created bitmap. */ 99 Bitmap bitmap = null; 103 bitmap = sizedThumbnailBitmap.mBitmap; 106 if (bitmap == null) { 123 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); 133 bitmap = extractThumbnail(bitmap, 137 return bitmap; 148 Bitmap bitmap = null; 152 bitmap [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
H A D | CarouselView.java | 347 * @param bitmap the bitmap image to show 349 public void setTextureForItem(int n, Bitmap bitmap) { argument 350 mController.setTextureForItem(n, bitmap); 365 * @param bitmap the bitmap to show as the detail 368 Bitmap bitmap) { 369 mController.setDetailTextureForItem(n, offx, offy, loffx, loffy, bitmap); 373 * Sets the bitmap to show on a card when the card draws the very first time. 374 * Generally, this bitmap wil 367 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument 380 setDefaultBitmap(Bitmap bitmap) argument 392 setLoadingBitmap(Bitmap bitmap) argument 415 setBackgroundBitmap(Bitmap bitmap) argument 425 setDetailLoadingBitmap(Bitmap bitmap) argument 436 setDetailLineBitmap(Bitmap bitmap) argument [all...] |
H A D | CarouselViewUtilities.java | 16 * Debug utility to write the given bitmap to a file. 19 * @param bitmap the bitmap to write 23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) { argument 31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
H A D | CarouselController.java | 368 * @param bitmap the bitmap image to show 370 public void setTextureForItem(int n, Bitmap bitmap) { argument 375 mRenderScript.setTexture(n, bitmap); 392 * @param bitmap the bitmap to show as the detail 395 Bitmap bitmap) { 398 mRenderScript.setDetailTexture(n, offx, offy, loffx, loffy, bitmap); 438 * Sets the bitmap to show on a card when the card draws the very first time. 439 * Generally, this bitmap wil 394 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument 445 setDefaultBitmap(Bitmap bitmap) argument 460 setLoadingBitmap(Bitmap bitmap) argument 489 setBackgroundBitmap(Bitmap bitmap) argument 502 setDetailLoadingBitmap(Bitmap bitmap) argument 516 setDetailLineBitmap(Bitmap bitmap) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | GLES20Layer.java | 46 boolean copyInto(Bitmap bitmap) { argument 47 return GLES20Canvas.nCopyLayer(mLayer, bitmap.mNativeBitmap);
|
H A D | GLES20RecordingCanvas.java | 95 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument 96 super.drawPatch(bitmap, chunks, dst, paint); 97 mDisplayList.mBitmaps.add(bitmap); 102 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 103 super.drawBitmap(bitmap, left, top, paint); 104 mDisplayList.mBitmaps.add(bitmap); 109 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument 110 super.drawBitmap(bitmap, matrix, paint); 111 mDisplayList.mBitmaps.add(bitmap); 116 public void drawBitmap(Bitmap bitmap, Rec argument 123 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 144 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument [all...] |
H A D | HardwareCanvas.java | 36 public void setBitmap(Bitmap bitmap) { argument
|
/frameworks/base/core/jni/ |
H A D | android_view_PointerIcon.h | 48 SkBitmap bitmap; member in struct:android::PointerIcon 58 bitmap.reset(); 68 /* Loads the bitmap associated with a pointer icon. 73 /* Loads the bitmap associated with a pointer icon by style.
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 39 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a 42 * <p>It can be defined in an XML file with the <code><bitmap></code> element. For more 47 * transformation of raw bitmap graphics, and should be used when drawing to a 96 * Create drawable from a bitmap, not dealing with density. 101 public BitmapDrawable(Bitmap bitmap) { argument 102 this(new BitmapState(bitmap), null); 106 * Create drawable from a bitmap, setting initial target density based on 109 public BitmapDrawable(Resources res, Bitmap bitmap) { argument 110 this(new BitmapState(bitmap), res); 115 * Create a drawable by opening a given file path and decoding the bitmap 183 setBitmap(Bitmap bitmap) argument 517 BitmapState(Bitmap bitmap) argument [all...] |
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A D | DpiTestActivity.java | 89 addLabelToRoot(root, "Prescaled bitmap in drawable"); 96 addLabelToRoot(root, "Autoscaled bitmap in drawable"); 118 addLabelToRoot(root, "Prescaled bitmap"); 125 addLabelToRoot(root, "Autoscaled bitmap"); 165 Bitmap bitmap; 166 bitmap = loadAndPrintDpi(resource, scale); 170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 191 Bitmap bitmap; 192 bitmap = loadAndPrintDpi(resource, scale); 194 ScaledBitmapView view = new ScaledBitmapView(this, bitmap); 229 ScaledBitmapView(Context context, Bitmap bitmap) argument [all...] |