/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 280 native_getInternalFormat(Bitmap bitmap) argument 281 native_getType(Bitmap bitmap) argument 282 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument 284 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.cpp | 106 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { argument 124 Texture* TextureCache::get(SkBitmap* bitmap) { argument 125 Texture* texture = mCache.get(bitmap); 128 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { 130 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize); 134 const uint32_t size = bitmap->rowBytes() * bitmap->height(); 135 // Don't even try to cache a bitmap tha 164 getTransient(SkBitmap* bitmap) argument 174 remove(SkBitmap* bitmap) argument 178 removeDeferred(SkBitmap* bitmap) argument 212 generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate) argument 285 uploadLoFiTexture(bool resize, SkBitmap* bitmap, uint32_t width, uint32_t height) argument [all...] |
H A D | TextureCache.h | 62 void operator()(SkBitmap*& bitmap, Texture*& texture); 65 * Returns the texture associated with the specified bitmap. If the texture 68 Texture* get(SkBitmap* bitmap); 70 * Returns the texture associated with the specified bitmap. The generated 73 Texture* getTransient(SkBitmap* bitmap); 75 * Removes the texture associated with the specified bitmap. 78 void remove(SkBitmap* bitmap); 80 * Removes the texture associated with the specified bitmap. This is meant 83 void removeDeferred(SkBitmap* bitmap); 120 * Generates the texture from a bitmap int [all...] |
H A D | DisplayListRenderer.cpp | 256 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { argument 257 bitmap = refBitmap(bitmap); 260 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, left, top, paint)); 264 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { argument 265 bitmap = refBitmap(bitmap); 269 addDrawOp(new (alloc()) DrawBitmapMatrixOp(bitmap, matrix, paint)); 273 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, argument 276 bitmap 294 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 303 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 316 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...] |
/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/opt/photoviewer/src/com/android/ex/photo/loaders/ |
H A D | PhotoBitmapLoader.java | 32 * Loader for the bitmap of a photo. 56 if (result.bitmap != null) { 57 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); 75 Bitmap bitmap = result != null ? result.bitmap : null; 79 if (bitmap != null) { 80 onReleaseResources(bitmap); 84 mBitmap = bitmap; 95 if (oldBitmap != null && oldBitmap != bitmap && !oldBitmap.isRecycled()) { 110 result.bitmap 165 onReleaseResources(Bitmap bitmap) argument 175 public Bitmap bitmap; field in class:PhotoBitmapLoader.BitmapResult [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...] |
/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 | 225 SkBitmap bitmap;
local 227 bitmap.setConfig(config, width, height);
229 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
236 0, 0, width, height, bitmap);
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL);
254 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) {
argument 257 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap);
261 delete bitmap;
264 static jboolean Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) {
argument 267 return android::uirenderer::Caches::getInstance().resourceCache.recycle(bitmap);
281 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument 323 Bitmap_erase(JNIEnv* env, jobject, SkBitmap* bitmap, jint color) argument 327 Bitmap_width(JNIEnv* env, jobject, SkBitmap* bitmap) argument 331 Bitmap_height(JNIEnv* env, jobject, SkBitmap* bitmap) argument 335 Bitmap_rowBytes(JNIEnv* env, jobject, SkBitmap* bitmap) argument 339 Bitmap_config(JNIEnv* env, jobject, SkBitmap* bitmap) argument 343 Bitmap_getGenerationId(JNIEnv* env, jobject, SkBitmap* bitmap) argument 347 Bitmap_hasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap) argument 351 Bitmap_setHasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasAlpha) argument 356 Bitmap_hasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap) argument 360 Bitmap_setHasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasMipMap) argument 391 SkBitmap* bitmap = new SkBitmap; local 432 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument 512 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y) argument 530 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument 557 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color) argument 573 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument 580 Bitmap_copyPixelsToBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument 593 Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument 653 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...] |
H A D | BitmapFactory.cpp | 139 static SkPixelRef* installPixelRef(SkBitmap* bitmap, SkStream* stream, argument 144 if (bitmap->getSize() >= 32 * 1024) { 145 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize); 147 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize); 150 bitmap->setPixelRef(pr)->unref(); 151 pr->isOpaque(bitmap); 197 return nullObjectReturn("Cannot pre-scale a reused bitmap"); 212 SkBitmap* bitmap; local 215 bitmap = new SkBitmap; 218 return nullObjectReturn("SkImageDecoder: Cannot reuse bitmap wit 407 jobject bitmap = NULL; local [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) { 125 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); 144 bitmap = extractThumbnail(bitmap, 148 return bitmap; 159 Bitmap bitmap = null; 163 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 | GLES20RecordingCanvas.java | 83 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument 84 super.drawPatch(bitmap, chunks, dst, paint); 85 mDisplayList.mBitmaps.add(bitmap); 90 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 91 super.drawBitmap(bitmap, left, top, paint); 92 mDisplayList.mBitmaps.add(bitmap); 97 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument 98 super.drawBitmap(bitmap, matrix, paint); 99 mDisplayList.mBitmaps.add(bitmap); 104 public void drawBitmap(Bitmap bitmap, Rec argument 111 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 132 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument [all...] |
/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/volley/tests/src/com/android/volley/toolbox/ |
H A D | ImageRequestTest.java | 68 Bitmap bitmap = response.result; 69 assertNotNull(bitmap); 70 assertEquals(expectedWidth, bitmap.getWidth()); 71 assertEquals(expectedHeight, bitmap.getHeight());
|
/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 79 * instead to specify a bitmap to draw with and ensure the correct density is set. 90 * instead to specify a bitmap to draw with. 100 * Create drawable from a bitmap, not dealing with density. 105 public BitmapDrawable(Bitmap bitmap) { argument 106 this(new BitmapState(bitmap), null); 110 * Create drawable from a bitmap, setting initial target density based on 113 public BitmapDrawable(Resources res, Bitmap bitmap) { argument 187 setBitmap(Bitmap bitmap) argument 566 BitmapState(Bitmap bitmap) argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeFrame.java | 170 public void setBitmap(Bitmap bitmap) { argument 174 } else if (getFormat().getWidth() != bitmap.getWidth() || 175 getFormat().getHeight() != bitmap.getHeight()) { 178 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap); 182 throw new RuntimeException("Could not set native frame bitmap data!"); 198 throw new RuntimeException("Could not get bitmap data from native frame!"); 258 private native boolean setNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument 260 private native boolean getNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument
|
/frameworks/volley/src/com/android/volley/toolbox/ |
H A D | ImageRequest.java | 62 * @param listener Listener to receive the decoded bitmap 63 * @param maxWidth Maximum width to decode this bitmap to, or zero for none 64 * @param maxHeight Maximum height to decode this bitmap to, or zero for 66 * @param decodeConfig Format to decode the bitmap to 140 Bitmap bitmap = null; 143 bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions); 169 bitmap = Bitmap.createScaledBitmap(tempBitmap, 173 bitmap = tempBitmap; 177 if (bitmap == null) { 180 return Response.success(bitmap, HttpHeaderParse [all...] |