/packages/apps/UnifiedEmail/src/com/android/bitmap/ |
ReusableBitmap.java | 27 public final Bitmap bmp; field in class:ReusableBitmap 40 bmp = bitmap; 74 return bmp.getByteCount(); 103 sb.append(" bmp="); 104 sb.append(bmp); 109 if (bmp != null) { 111 sb.append(bmp.getByteCount() >> 10);
|
/external/qemu/distrib/sdl-1.2.15/test/ |
testvidinfo.c | 46 int RunBlitTests(SDL_Surface *screen, SDL_Surface *bmp, int blitcount) 53 maxx = (int)screen->w - bmp->w + 1; 54 maxy = (int)screen->h - bmp->h + 1; 67 dst.w = bmp->w; 68 dst.h = bmp->h; 69 SDL_BlitSurface(bmp, NULL, screen, &dst); 84 SDL_Surface *bmp, *bmpcc, *tmp; local 138 bmp = SDL_LoadBMP("sample.bmp"); 139 if ( ! bmp ) { [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
NinePatchDrawableTest.java | 68 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0); local 71 new NinePatchDrawable(bmp, chunk, r, name); 73 new NinePatchDrawable(new NinePatch(bmp, chunk, name)); 78 new NinePatchDrawable(bmp, chunk, r, name); 86 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888); local 87 Canvas c = new Canvas(bmp); 93 assertColorFillRect(bmp, 0, 0, 4, 4, Color.RED); 94 assertColorFillRect(bmp, 5, 0, 4, 4, Color.BLUE); 95 assertColorFillRect(bmp, 0, 5, 4, 4, ocean); 96 assertColorFillRect(bmp, 5, 5, 4, 4, Color.YELLOW) 199 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); local 210 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); local 221 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); local 232 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); local [all...] |
TransitionDrawableTest.java | 196 private void assertColorFillRect(Bitmap bmp, int x, int y, int w, int h, int color) { 199 assertEquals(color, bmp.getPixel(i, j)); 204 private void assertColorNotFillRect(Bitmap bmp, int x, int y, int w, int h, int color) { 207 assertTrue(color != bmp.getPixel(i, j));
|
/external/skia/gm/ |
bigmatrix.cpp | 61 SkBitmap bmp; local 62 bmp.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); 63 bmp.allocPixels(); 64 bmp.lockPixels(); 65 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); 70 bmp.unlockPixels(); 74 bmp,
|
modecolorfilters.cpp | 40 SkBitmap bmp; local 41 bmp.setConfig(SkBitmap::kARGB_8888_Config, 2 * checkSize, 2 * checkSize); 42 bmp.allocPixels(); 43 SkCanvas canvas(bmp); 53 return SkNEW_ARGS(SkBitmapProcShader, (bmp, SkShader::kRepeat_TileMode,
|
shadertext3.cpp | 70 static SkBitmap bmp; local 71 if (bmp.isNull()) { 72 makebm(&bmp, SkBitmap::kARGB_8888_Config, kPointSize / 4, kPointSize / 4); 79 canvas->drawBitmap(bmp, 5.f, 5.f, &bmpPaint); 104 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp,
|
xfermodes3.cpp | 205 SkBitmap bmp; variable 206 bmp.setConfig(SkBitmap::kARGB_8888_Config, kSize, kSize); 207 bmp.allocPixels(); 208 SkCanvas bmpCanvas(bmp); 215 fBmpShader.reset(SkShader::CreateBitmapShader(bmp,
|
shadertext2.cpp | 94 static SkBitmap bmp; local 95 if (bmp.isNull()) { 96 makebm(&bmp, SkBitmap::kARGB_8888_Config, kPointSize / 2, kPointSize / 2); 99 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bmp, 128 canvas->drawBitmap(bmp, 0, 0); 129 canvas->translate(0, bmp.height() + labelPaint.getTextSize() + 15.f);
|
/external/skia/tests/ |
ShaderOpacityTest.cpp | 14 SkBitmap bmp; local 15 bmp.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); 18 SkShader* shader = SkShader::CreateBitmapShader(bmp, 25 bmp.allocPixels(); 28 shader = SkShader::CreateBitmapShader(bmp, 35 bmp.setIsOpaque(true); 36 shader = SkShader::CreateBitmapShader(bmp, 43 bmp.setIsOpaque(false); 44 shader = SkShader::CreateBitmapShader(bmp,
|
PremulAlphaRoundTripTest.cpp | 23 SkBitmap bmp; local 24 bmp.setConfig(SkBitmap::kARGB_8888_Config, 256, 256); 25 bmp.allocPixels(); 26 SkAutoLockPixels alp(bmp); 27 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); 34 canvas->writePixels(bmp, 0, 0, unpremulConfig);
|
ReadPixelsTest.cpp | 110 static SkBitmap bmp; local 111 if (bmp.isNull()) { 112 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H); 113 SkDEBUGCODE(bool alloc =) bmp.allocPixels(); 115 SkAutoLockPixels alp(bmp); 116 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); 119 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); 129 canvas->drawBitmap(bmp, 0, 0, &paint); 362 SkBitmap bmp; local [all...] |
WritePixelsTest.cpp | 138 static SkBitmap bmp; local 139 if (bmp.isNull()) { 140 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H); 141 SkDEBUGCODE(bool alloc = ) bmp.allocPixels(); 143 SkAutoLockPixels alp(bmp); 144 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); 147 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); 157 canvas->drawBitmap(bmp, 0, 0, &paint); 311 SkBitmap bmp; local 455 SkBitmap bmp; local [all...] |
PathUtilsTest.cpp | 47 static void print_bmp( SkBitmap* bmp, int w, int h){ 51 int d = *bmp->getAddr32(x,y); 101 // make bmp 102 SkBitmap bmp; local 103 bmp.setConfig(SkBitmap::kARGB_8888_Config, w, h); 104 bmp.allocPixels(); 105 SkCanvas canvas(bmp); 109 // test bmp 110 test_bmp(reporter, truth, &bmp, w, h);
|
/external/chromium_org/chrome/browser/profiles/ |
profile_info_util.cc | 24 SkBitmap bmp = skia::ImageOperations::Resize( local 31 canvas.DrawImageInt(gfx::ImageSkia::CreateFrom1xBitmap(bmp), x, y); 53 SkBitmap bmp = skia::ImageOperations::Resize( local 61 canvas.DrawImageInt(gfx::ImageSkia::CreateFrom1xBitmap(bmp), x, y); 75 SkBitmap bmp = skia::ImageOperations::Resize( local 85 canvas.DrawImageInt(gfx::ImageSkia::CreateFrom1xBitmap(bmp), x1, y1);
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/ |
MultiTouchView.java | 156 final Bitmap bmp = Bitmap.createBitmap(colors, 0, w, w, h, Bitmap.Config.ARGB_8888); local 161 mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint); 177 final Bitmap bmp = BitmapFactory.decodeStream(jpeg); local 182 mCanvas.drawBitmap(bmp, mDrawMatrix, mPaint);
|
/external/chromium_org/skia/ext/ |
image_operations_unittest.cc | 24 uint32_t AveragePixel(const SkBitmap& bmp, 31 uint32_t cur = *bmp.getAddr32(x, y); 64 void PrintPixel(const SkBitmap& bmp, 71 const uint32_t cur = *bmp.getAddr32(x, y); 72 base::snprintf(str, sizeof(str), "bmp[%d,%d] = %08X", x, y, cur); 113 void FillDataToBitmap(int w, int h, SkBitmap* bmp) { 114 bmp->setConfig(SkBitmap::kARGB_8888_Config, w, h); 115 bmp->allocPixels(); 122 *bmp->getAddr32(x, y) = pixel; 138 SkBitmap* bmp) { [all...] |
/development/apps/WidgetPreview/src/com/android/widgetpreview/ |
WidgetPreviewActivity.java | 243 Bitmap bmp = Bitmap.createBitmap( local 245 Canvas c = new Canvas(bmp); 247 return bmp; 250 private boolean saveImage(Bitmap bmp, String name) { 261 if (!bmp.compress(CompressFormat.PNG, 100, fout)) { 295 Bitmap bmp = getPreviewBitmap(); local 296 if (saveImage(bmp, mAppWidgetName)) {
|
/external/chromium_org/ppapi/native_client/tests/ppapi_test_lib/ |
test_interface.cc | 190 PP_Resource CreateImageData(PP_Size size, ColorPremul pixel_color, void** bmp) { 198 *bmp = NULL; 199 *bmp = PPBImageData()->Map(image_data); 200 CHECK(*bmp != NULL); 201 uint32_t* bmp_words = static_cast<uint32_t*>(*bmp);
|
/cts/suite/cts/deviceTests/opengl/src/com/android/cts/opengl/reference/ |
GLGameActivity.java | 154 Bitmap bmp = BitmapFactory.decodeStream(in, null, op); local 168 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bmp, 0); 176 bmp.recycle();
|
/external/chromium/chrome/browser/resources/shared/js/ |
media_common.js | 14 return /\.(bmp|gif|jpe?g|ico|png|webp)$/i.test(path);
|
/external/chromium_org/ui/webui/resources/js/ |
media_common.js | 14 return /\.(bmp|gif|jpe?g|ico|png|webp)$/i.test(path);
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
RenderScript.java | 230 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); 231 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { 233 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); 236 native int rsnAllocationCreateBitmapBackedAllocation(int con, int type, int mip, Bitmap bmp, int usage); 237 synchronized int nAllocationCreateBitmapBackedAllocation(int type, int mip, Bitmap bmp, int usage) { 239 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage); 243 native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); 244 synchronized int nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { 246 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); 248 native int rsnAllocationCreateBitmapRef(int con, int type, Bitmap bmp); [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/tests/unit/ |
Makefile | 41 -rm -f result.bmp
|
/external/mesa3d/src/gallium/tests/unit/ |
Makefile | 41 -rm -f result.bmp
|