HomeSort by relevance Sort by last modified time
    Searched full:bitmap (Results 76 - 100 of 1192) sorted by null

1 2 34 5 6 7 8 91011>>

  /packages/apps/Gallery3D/src/com/cooliris/media/
PhotoAppWidgetProvider.java 27 import android.graphics.Bitmap;
74 Bitmap bitmap = helper.getPhoto(appWidgetId); local
75 if (bitmap != null) {
77 views.setImageViewBitmap(Res.id.photo, bitmap);
113 * Store the given bitmap in this database for the given appWidgetId.
115 public boolean setPhoto(int appWidgetId, Bitmap bitmap) {
121 int size = bitmap.getWidth() * bitmap.getHeight() * 4
155 Bitmap bitmap = null; local
    [all...]
CanvasTexture.java 22 import android.graphics.Bitmap;
36 private final Bitmap.Config mBitmapConfig;
37 private Bitmap mBitmap = null;
42 public CanvasTexture(Bitmap.Config bitmapConfig) {
94 Bitmap bitmap = mBitmap; local
104 // Reallocate the bitmap only if the padded size has changed.
132 // Recycle the existing bitmap and create a new one.
133 if (bitmap != null)
134 bitmap.recycle()
    [all...]
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);
109 public void setImageBitmap(Bitmap bitmap) {
110 setImageBitmap(bitmap, 0);
113 private void setImageBitmap(Bitmap bitmap, int rotation)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
BlurMaskFilterTest.java 22 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.Config;
51 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888);
71 private void checkQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) {
72 int right = bitmap.getWidth() - 1;
73 int bottom = bitmap.getHeight() - 1;
75 checkColor(color, bitmap.getPixel(x, y), alphaTolerance);
76 checkColor(color, bitmap.getPixel(right - x, y), alphaTolerance)
    [all...]
ShaderTest.java 19 import android.graphics.Bitmap;
56 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); local
58 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
PixelXorXfermodeTest.java 19 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.Config;
41 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888);
43 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888);
46 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
PurgeableBitmapView.java 20 import android.graphics.Bitmap;
34 * PurgeableBitmapView decodes an encoded bitstream to a Bitmap each time update()
35 * is invoked(), and its onDraw() draws the Bitmap and a number to screen.
41 private Bitmap mBitmap;
43 private final Bitmap[] mBitmapArray = new Bitmap [mArraySize];
59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
60 Bitmap.Config.ARGB_8888);
61 bitstream = generateBitstream(src, Bitmap.CompressFormat.JPEG, 80)
    [all...]
Xfermodes.java 21 import android.graphics.Bitmap;
37 // create a bitmap with a circle, used for the "dst" image
38 static Bitmap makeDst(int w, int h) {
39 Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
48 // create a bitmap with a rect, used for the "src" image
49 static Bitmap makeSrc(int w, int h) {
50 Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888)
    [all...]
  /development/simulator/wrapsim/
BitVector.h 12 * Expanding bitmap, used for tracking resources. Bits are numbered starting
16 int isExpandable; /* expand bitmap if we run out? */
29 * the bitmap, and it's not marked expandable, dvmAllocBit returns -1.
  /external/skia/src/gl/
SkGLCanvas.cpp 65 SkBitmap bitmap; local
67 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
68 bitmap.setIsOpaque(isOpaque);
71 return SkNEW_ARGS(SkGLDevice_FBO, (bitmap, isForLayer));
74 bitmap.allocPixels();
75 if (!bitmap.isOpaque()) {
76 bitmap.eraseColor(0);
78 return SkNEW_ARGS(SkGLDevice_SWLayer, (bitmap));
80 return SkNEW_ARGS(SkGLDevice, (bitmap, isForLayer));
83 return SkNEW_ARGS(SkGLDevice, (bitmap, isForLayer))
    [all...]
  /external/e2fsprogs/lib/ext2fs/
rs_bitmap.c 2 * rs_bitmap.c --- routine for changing the size of a bitmap
42 * If we're expanding the bitmap, make sure all of the new
43 * parts of the bitmap are zero.
50 ext2fs_clear_bit(bitno - bmap->start, bmap->bitmap);
61 retval = ext2fs_resize_mem(size, new_size, &bmap->bitmap);
66 memset(bmap->bitmap + size, 0, new_size - size);
  /ndk/samples/bitmap-plasma/src/com/example/plasma/
Plasma.java 22 import android.graphics.Bitmap;
42 private Bitmap mBitmap;
46 private static native void renderPlasma(Bitmap bitmap, long time_ms);
54 mBitmap = Bitmap.createBitmap(W, H, Bitmap.Config.RGB_565);
  /external/e2fsprogs/tests/f_bitmaps/
expect.1 8 Block bitmap differences: +12 -20 +41 -50
11 Inode bitmap differences: +11 -15
  /external/e2fsprogs/tests/f_miss_blk_bmap/
expect.1 2 Relocating group 0's block bitmap to 2...
7 Block bitmap differences: +(0--10)
  /packages/apps/Gallery/src/com/android/camera/gallery/
IImage.java 19 import android.graphics.Bitmap;
37 /** Get the bitmap for the full size image. */
38 public abstract Bitmap fullSizeBitmap(int minSideLength,
40 public abstract Bitmap fullSizeBitmap(int minSideLength,
71 // Get the bitmap of the medium thumbnail
72 public abstract Bitmap thumbBitmap(boolean rotateAsNeeded);
74 // Get the bitmap of the mini thumbnail.
75 public abstract Bitmap miniThumbBitmap();
  /external/skia/emoji/
EmojiFont.cpp 65 encoded data and length. The bitmap field is initialized to 0, and is not
98 /* Return the bitmap associated with the local index, or NULL if none is
99 available. Note that this will try to cache the bitmap the first time it
104 SkBitmap* bitmap = NULL; local
106 bitmap = rec->fBitmap;
107 if (NULL == bitmap) {
108 bitmap = new SkBitmap;
109 if (!SkImageDecoder::DecodeMemory(rec->fData, rec->fSize, bitmap)) {
110 delete bitmap;
116 rec->fBitmap = bitmap;
169 const SkBitmap* bitmap = get_bitmap(glyphID - kGlyphBase); local
189 const SkBitmap* bitmap = get_bitmap(glyphID - kGlyphBase); local
    [all...]
  /external/skia/tests/
BitmapCopyTest.cpp 30 SkBitmap bitmap(src);
34 SkAutoLockPixels alp(bitmap);
35 SkColorTable* ctable = bitmap.getColorTable();
38 if (canHaveAlpha(bitmap.config()) && canHaveAlpha(dstConfig)) {
39 bitmap.setIsOpaque(false);
43 REPORTER_ASSERT(reporter, bitmap.copyTo(&dst, dstConfig));
45 if (bitmap.isOpaque() != dst.isOpaque()) {
46 report_opaqueness(reporter, bitmap, dst);
50 bitmap.setIsOpaque(true);
54 REPORTER_ASSERT(reporter, bitmap.copyTo(&dst, dstConfig))
    [all...]
  /frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DpiTestActivity.java 24 import android.graphics.Bitmap;
86 addLabelToRoot(root, "Prescaled bitmap in drawable");
93 addLabelToRoot(root, "Autoscaled bitmap in drawable");
115 addLabelToRoot(root, "Prescaled bitmap");
122 addLabelToRoot(root, "Autoscaled bitmap");
162 Bitmap bitmap; local
163 bitmap = loadAndPrintDpi(resource, scale);
167 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
188 Bitmap bitmap local
212 Bitmap bitmap; local
    [all...]
  /external/webkit/WebCore/platform/graphics/android/
ImageAndroid.cpp 95 m_size = IntSize(ref->bitmap().width(), ref->bitmap().height());
99 m_frames[0].m_hasAlpha = !ref->bitmap().isOpaque();
124 const SkBitmap& bm = ref->bitmap();
199 // in case we get called with an incomplete bitmap
200 const SkBitmap& bitmap = image->bitmap(); local
201 if (bitmap.getPixels() == NULL && bitmap.pixelRef() == NULL) {
204 bitmap.width(), bitmap.height()
288 SkBitmap bitmap; local
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
RectShapeTest.java 24 import android.graphics.Bitmap;
28 import android.graphics.Bitmap.Config;
51 private void assertDrawSuccessfully(Bitmap bitmap, int width, int height, int color) {
54 assertEquals(color, bitmap.getPixel(i, j));
66 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
67 Canvas canvas = new Canvas(bitmap);
74 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1)
    [all...]
  /frameworks/base/core/java/android/text/style/
ImageSpan.java 20 import android.graphics.Bitmap;
37 * @deprecated Use {@link #ImageSpan(Context, Bitmap)} instead.
40 public ImageSpan(Bitmap b) {
45 * @deprecated Use {@link #ImageSpan(Context, Bitmap, int) instead.
48 public ImageSpan(Bitmap b, int verticalAlignment) {
52 public ImageSpan(Context context, Bitmap b) {
60 public ImageSpan(Context context, Bitmap b, int verticalAlignment) {
134 Bitmap bitmap = null; local
138 bitmap = BitmapFactory.decodeStream(is)
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
ItemInfo.java 23 import android.graphics.Bitmap;
115 static byte[] flattenBitmap(Bitmap bitmap) {
118 int size = bitmap.getWidth() * bitmap.getHeight() * 4;
121 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
131 static void writeBitmap(ContentValues values, Bitmap bitmap) {
132 if (bitmap != null)
    [all...]
  /external/freetype/src/raster/
ftrend1.c 97 /* convert a slot's glyph image into a bitmap */
108 FT_Bitmap* bitmap; local
171 bitmap = &slot->bitmap;
174 /* release old bitmap buffer */
177 FT_FREE( bitmap->buffer );
186 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY;
187 bitmap->num_grays = 256;
192 bitmap->pixel_mode = FT_PIXEL_MODE_MONO;
195 bitmap->width = width
    [all...]
  /external/webkit/WebCore/platform/graphics/wx/
ImageWx.cpp 41 #include <wx/bitmap.h>
102 wxGraphicsBitmap* bitmap = frameAtIndex(m_currentFrame); local
105 wxBitmap* bitmap = frameAtIndex(m_currentFrame); local
109 if (!bitmap) // If it's too early we won't have an image yet.
136 gc->DrawBitmap(*bitmap, adjustedDestRect.x(), adjustedDestRect.y(), adjustedDestRect.width(), adjustedDestRect.height());
138 gc->DrawGraphicsBitmap(*bitmap, adjustedDestRect.x(), adjustedDestRect.y(), adjustedDestRect.width(), adjustedDestRect.height());
148 wxImage img = bitmap->ConvertToImage();
150 bitmap = new wxBitmap(img);
154 ASSERT(bitmap->GetRefData());
155 mydc.SelectObject(*bitmap);
185 wxGraphicsBitmap* bitmap = nativeImageForCurrentFrame(); local
    [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...]

Completed in 390 milliseconds

1 2 34 5 6 7 8 91011>>