/external/skia/include/images/ |
SkImageDecoder.h | 160 // original bitmap, sampling 1 pixel for every size pixels. e.g. if sample 161 // size is set to 3, then the returned bitmap will be 1/3 as wide and high, 190 only the bitmap's width/height/config need be set. If kDecodePixels_Mode 191 is passed, then the bitmap must have pixels or a pixelRef. 194 kDecodeBounds_Mode, //!< only return width/height/config in bitmap 195 kDecodePixels_Mode //!< return entire bitmap (including pixels) 198 /** Given a stream, decode it into the specified bitmap. 199 If the decoder can decompress the image, it calls bitmap.setConfig(), 203 bitmap. It can then set the pixels with the decompressed image. 205 * decoding, the function converts the decoded config in bitmap [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
SpriteComponent.java | 108 // Fire and forget. Allocate a new bitmap for this animation frame, set it up, and 110 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local 111 bitmap.setWidth(mWidth); 112 bitmap.setHeight(mHeight); 113 bitmap.setOpacity(mOpacity); 114 updateFlip(bitmap, parentObject.facingDirection.x < 0.0f, 116 bitmap.setTexture(currentFrame.texture); 117 render.setDrawable(bitmap); 182 protected final void updateFlip(DrawableBitmap bitmap, boolean horzFlip, boolean vertFlip) { 183 bitmap.setFlip(horzFlip, vertFlip) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmapFactory.java | 4 import android.graphics.Bitmap; 28 public static Bitmap decodeResource(Resources res, int id) { 29 Bitmap bitmap = create("resource:" + getResourceName(id)); local 30 shadowOf(bitmap).setLoadedFromResourceId(id); 31 return bitmap; 35 public static Bitmap decodeResource(Resources res, int id, BitmapFactory.Options options) { 36 Bitmap bitmap = create("resource:" + getResourceName(id), options); local 37 shadowOf(bitmap).setLoadedFromResourceId(id) 70 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
/external/webkit/Source/WebKit/android/plugins/ |
ANPSurfaceInterface.cpp | 89 static bool anp_lock(JNIEnv* env, jobject surfaceView, ANPBitmap* bitmap, ANPRectI* dirtyRect) { 90 if (!bitmap || !surfaceView) { 96 if (!bitmap || !android::Surface::isValid(surface)) { 131 bitmap->format = convertPixelFormat(outBuffer.format); 132 bitmap->width = outBuffer.width; 133 bitmap->height = outBuffer.height; 134 bitmap->rowBytes = bpr; 137 bitmap->baseAddr = outBuffer.bits; 139 bitmap->baseAddr = NULL;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageTinyPlanet.java | 20 import android.graphics.Bitmap; 143 Bitmap bitmap = MasterImage.getImage().getHighresImage(); local 144 if (bitmap == null) { 145 bitmap = MasterImage.getImage().getFilteredImage(); 148 if (bitmap != null) { 149 display(canvas, bitmap); 153 private void display(Canvas canvas, Bitmap bitmap) { 156 float iw = bitmap.getWidth() [all...] |
/external/chromium/chrome/common/ |
common_param_traits_unittest.cc | 76 // Tests bitmap serialization. 77 TEST(IPCMessageTest, Bitmap) { 78 SkBitmap bitmap; local 80 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 5); 81 bitmap.allocPixels(); 82 memset(bitmap.getPixels(), 'A', bitmap.getSize()); 85 IPC::ParamTraits<SkBitmap>::Write(&msg, bitmap); 91 EXPECT_EQ(bitmap.config(), output.config()); 92 EXPECT_EQ(bitmap.width(), output.width()) [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselView.java | 23 import android.graphics.Bitmap; 347 * @param bitmap the bitmap image to show 349 public void setTextureForItem(int n, Bitmap bitmap) { 350 mController.setTextureForItem(n, bitmap); 365 * @param bitmap the bitmap to show as the detail 368 Bitmap bitmap) { [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 23 import android.graphics.Bitmap; 66 * Returns a bitmap suitable for the all apps view. Used to convert pre-ICS 70 static Bitmap createIconBitmap(Bitmap icon, Context context) { 77 return Bitmap.createBitmap(icon, 85 // Icon is too small, render to a larger bitmap 92 * Returns a bitmap suitable for the all apps view. 94 static Bitmap createIconBitmap(Drawable icon, Context context) { 108 // Ensure the bitmap has a density. 110 Bitmap bitmap = bitmapDrawable.getBitmap() local 138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/frameworks/base/core/java/android/view/ |
GLES20RecordingCanvas.java | 19 import android.graphics.Bitmap; 32 * Bitmap objects that it draws, preventing the backing memory of Bitmaps from being freed while 83 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { 84 super.drawPatch(bitmap, chunks, dst, paint); 85 mDisplayList.mBitmaps.add(bitmap); 86 // Shaders in the Paint are ignored when drawing a Bitmap 90 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { 91 super.drawBitmap(bitmap, left, top, paint) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageViewTouchBase.java | 20 import android.graphics.Bitmap; 57 // The current bitmap being displayed. 64 // ImageViewTouchBase will pass a Bitmap to the Recycler if it has finished 65 // its use of that Bitmap. 67 public void recycle(Bitmap b); 120 public void setImageBitmap(Bitmap bitmap) { 121 setImageBitmap(bitmap, 0); 124 private void setImageBitmap(Bitmap bitmap, int rotation) [all...] |
/external/skia/legacy/src/utils/ |
SkDeferredCanvas.cpp | 111 void SkDeferredCanvas::flushIfNeeded(const SkBitmap& bitmap) { 114 getDeferredDevice()->flushIfNeeded(bitmap); 316 void SkDeferredCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar left, 319 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())); 322 isPaintOpaque(paint, &bitmap)) { 326 drawingCanvas()->drawBitmap(bitmap, left, top, paint); 327 flushIfNeeded(bitmap); 330 void SkDeferredCanvas::drawBitmapRect(const SkBitmap& bitmap, 336 isPaintOpaque(paint, &bitmap)) { [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
DashPathEffectTest.java | 19 import android.graphics.Bitmap; 26 import android.graphics.Bitmap.Config; 45 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 46 bitmap.eraseColor(BACKGROUND); 58 Canvas canvas = new Canvas(bitmap); 67 assertEquals(FOREGROUND, bitmap.getPixel(x, y)); 69 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); 72 assertEquals(BACKGROUND, bitmap.getPixel(x, y)) [all...] |
ShaderTest.java | 19 import android.graphics.Bitmap; 34 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); local 36 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
PathShapeTest.java | 20 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 55 Bitmap bitmap = Bitmap.createBitmap(SHAPE_SIZE, SHAPE_SIZE, Config.ARGB_8888); local 56 Canvas canvas = new Canvas(bitmap); 64 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50)); 75 if (bitmap.getPixel(25, i) == TEST_COLOR_2) { 78 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) { 81 if (bitmap.getPixel(i, i) == TEST_COLOR_2) [all...] |
RectShapeTest.java | 20 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 41 private void assertDrawSuccessfully(Bitmap bitmap, int width, int height, int color) { 44 assertEquals(color, bitmap.getPixel(i, j)); 51 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 52 Canvas canvas = new Canvas(bitmap); 59 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1) [all...] |
/external/chromium/chrome/browser/ui/views/ |
tab_icon_view.cc | 99 void TabIconView::PaintFavicon(gfx::Canvas* canvas, const SkBitmap& bitmap) { 100 PaintIcon(canvas, bitmap, 0, 0, bitmap.width(), bitmap.height(), true); 104 const SkBitmap& bitmap, 130 canvas->DrawBitmapInt(bitmap, src_x, src_y, src_w, src_h,
|
tab_icon_view.h | 48 void PaintFavicon(gfx::Canvas* canvas, const SkBitmap& bitmap); 50 const SkBitmap& bitmap,
|
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
TransferQueue.h | 52 // While in the queue, the Tile can be re-used, the updated bitmap 82 , bitmap(0) 88 // Bitmap will be created lazily, need to delete them at dtor. 89 delete bitmap; 99 SkBitmap* bitmap; member in class:WebCore::TileTransferData 116 // insert the bitmap into the queue, mark the tile dirty if failing 118 SkBitmap& bitmap); 122 SkBitmap& bitmap); 148 SkBitmap& bitmap);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
SlideshowAttachmentView.java | 24 import android.graphics.Bitmap; 73 public void setImage(String name, Bitmap bitmap) { 74 if (null == bitmap) { 76 bitmap = BitmapFactory.decodeResource(getResources(), 82 if (bitmap != null) { 83 mImageView.setImageBitmap(bitmap); // implementation doesn't appear to be null-safe 156 public void setVideoThumbnail(String name, Bitmap bitmap) {
|
/external/freetype/src/smooth/ |
ftsmooth.c | 97 /* convert a slot's glyph image into a bitmap */ 112 FT_Bitmap* bitmap; local 166 bitmap = &slot->bitmap; 174 /* release old bitmap buffer */ 177 FT_FREE( bitmap->buffer ); 235 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 236 bitmap->num_grays = 256; 237 bitmap->width = width; 238 bitmap->rows = height [all...] |
/external/freetype/src/raster/ |
ftrend1.c | 97 /* convert a slot's glyph image into a bitmap */ 108 FT_Bitmap* bitmap; local 186 bitmap = &slot->bitmap; 189 /* release old bitmap buffer */ 192 FT_FREE( bitmap->buffer ); 201 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 202 bitmap->num_grays = 256; 207 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 210 bitmap->width = width [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/renderer/android/ |
TextureUtil.java | 3 import android.graphics.Bitmap; 53 private static void buildMipmap(Bitmap bitmap) { 55 int height = bitmap.getHeight(); 56 int width = bitmap.getWidth(); 59 //First of all, generate the texture from our bitmap and set it to the according level 60 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, level, bitmap, 0); 71 Bitmap bitmap2 = Bitmap.createScaledBitmap(bitmap, width, height, true) [all...] |
/frameworks/base/core/jni/android/graphics/ |
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, chunkObj, paint, destDensity, srcDensity) [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
MediaCacheUtils.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.CompressFormat; 84 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 86 Bitmap bitmap = DecodeUtils.decodeThumbnail(sJobStub, inBitmap.getPath(), options, size, local 88 boolean success = (bitmap != null); 90 success = writeAndRecycle(bitmap, outBitmap); 95 public static boolean downsample(Bitmap inBitmap, MediaSize size, File outBitmap) { 108 Bitmap scaled = Bitmap.createScaledBitmap(inBitmap, targetWidth, targetHeight, false) 116 Bitmap bitmap = BitmapUtils.createVideoThumbnail(inVideo.getPath()); local [all...] |
/external/chromium/chrome/browser/ui/webui/ |
web_ui_util.cc | 15 std::string GetImageDataUrl(const SkBitmap& bitmap) { 17 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &output);
|