/external/chromium_org/tools/telemetry/telemetry/core/ |
bitmap_unittest.py | 32 bmp = bitmap.Bitmap.FromBase64Png(test_png) 34 self.assertEquals(2, bmp.width) 35 self.assertEquals(2, bmp.height) 37 bmp.GetPixelColor(0, 0).AssertIsRGB(255, 0, 0) 38 bmp.GetPixelColor(1, 1).AssertIsRGB(0, 255, 0) 39 bmp.GetPixelColor(0, 1).AssertIsRGB(0, 0, 255) 40 bmp.GetPixelColor(1, 0).AssertIsRGB(255, 255, 0) 71 bmp = bitmap.Bitmap.FromBase64Png(test_png) 73 self.assertTrue(bmp.IsEqual(file_bmp)) 109 bmp = bitmap.Bitmap(3, 4, 3, pixels [all...] |
tab.py | 138 for timestamp, bmp in self.browser.platform.StopVideoCapture(): 140 content_box = bmp.GetBoundingBox( 162 bmp.Crop(content_box) 164 yield timestamp, bmp
|
/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...] |
/external/skia/gm/ |
clippedbitmapshaders.cpp | 29 SkBitmap bmp; local 30 bmp.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); 31 bmp.allocPixels(); 32 bmp.lockPixels(); 33 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); 38 bmp.unlockPixels(); 40 return bmp; 83 SkBitmap bmp = create_bitmap(); local 85 bmp, fMode, fMode);
|
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 | 214 SkBitmap bmp; variable 215 bmp.setConfig(SkBitmap::kARGB_8888_Config, kSize, kSize); 216 bmp.allocPixels(); 217 SkCanvas bmpCanvas(bmp); 224 fBmpShader.reset(SkShader::CreateBitmapShader(bmp,
|
/external/skia/bench/ |
WritePixelsBench.cpp | 54 SkBitmap bmp; variable 55 bmp.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height()); 56 canvas->readPixels(&bmp, 0, 0); 59 canvas->writePixels(bmp, 0, 0, fConfig);
|
/external/skia/tests/ |
ShaderOpacityTest.cpp | 15 SkBitmap bmp; local 16 bmp.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); 19 SkShader* shader = SkShader::CreateBitmapShader(bmp, 26 bmp.allocPixels(); 29 shader = SkShader::CreateBitmapShader(bmp, 36 bmp.setAlphaType(kOpaque_SkAlphaType); 37 shader = SkShader::CreateBitmapShader(bmp, 44 bmp.setAlphaType(kPremul_SkAlphaType); 45 shader = SkShader::CreateBitmapShader(bmp,
|
PremulAlphaRoundTripTest.cpp | 19 SkBitmap bmp; local 20 bmp.setConfig(SkBitmap::kARGB_8888_Config, 256, 256); 21 bmp.allocPixels(); 22 SkAutoLockPixels alp(bmp); 23 uint32_t* pixels = reinterpret_cast<uint32_t*>(bmp.getPixels()); 30 canvas->writePixels(bmp, 0, 0, unpremulConfig);
|
ReadPixelsTest.cpp | 107 static SkBitmap bmp; local 108 if (bmp.isNull()) { 109 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H); 110 SkDEBUGCODE(bool alloc =) bmp.allocPixels(); 112 SkAutoLockPixels alp(bmp); 113 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); 116 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); 126 canvas->drawBitmap(bmp, 0, 0, &paint); 359 SkBitmap bmp; local [all...] |
WritePixelsTest.cpp | 136 static SkBitmap bmp; local 137 if (bmp.isNull()) { 138 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H); 139 SkDEBUGCODE(bool alloc = ) bmp.allocPixels(); 141 SkAutoLockPixels alp(bmp); 142 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); 145 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); 155 canvas->drawBitmap(bmp, 0, 0, &paint); 309 SkBitmap bmp; local 453 SkBitmap bmp; local [all...] |
PathUtilsTest.cpp | 46 static void print_bmp( SkBitmap* bmp, int w, int h){ 50 int d = *bmp->getAddr32(x,y); 100 // make bmp 101 SkBitmap bmp; local 102 bmp.setConfig(SkBitmap::kARGB_8888_Config, w, h); 103 bmp.allocPixels(); 104 SkCanvas canvas(bmp); 108 // test bmp 109 test_bmp(reporter, truth, &bmp, w, h);
|
/external/chromium_org/third_party/skia/src/core/ |
SkDevice.cpp | 93 SkBitmap* bmp; local 100 bmp = &tmp; 102 bmp = bitmap; 108 bmp->extractSubset(&bmpSubset, subrect); 114 if (result && bmp == &tmp) {
|
/external/skia/src/core/ |
SkDevice.cpp | 93 SkBitmap* bmp; local 100 bmp = &tmp; 102 bmp = bitmap; 108 bmp->extractSubset(&bmpSubset, subrect); 114 if (result && bmp == &tmp) {
|
/developers/build/prebuilts/gradle/RenderScriptIntrinsic/RenderScriptIntrinsicSample/src/main/java/com/example/android/renderscriptintrinsic/ |
ThumbnailRadioButton.java | 62 BitmapDrawable bmp = new BitmapDrawable(getResources(), bitmap); local 63 bmp.setGravity(Gravity.CENTER); 73 Drawable drawableArray[] = new Drawable[]{bmp, rectChecked}; 83 Drawable drawableArray2[] = new Drawable[]{bmp, rectUnchecked};
|
/developers/samples/android/renderScript/RenderScriptIntrinsic/RenderScriptIntrinsicSample/src/main/java/com/example/android/renderscriptintrinsic/ |
ThumbnailRadioButton.java | 62 BitmapDrawable bmp = new BitmapDrawable(getResources(), bitmap); local 63 bmp.setGravity(Gravity.CENTER); 73 Drawable drawableArray[] = new Drawable[]{bmp, rectChecked}; 83 Drawable drawableArray2[] = new Drawable[]{bmp, rectUnchecked};
|
/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/tools/telemetry/telemetry/core/platform/ |
android_platform_backend_unittest.py | 81 timestamp, bmp = timestamp_bitmap 85 self.assertTrue(expected_bitmap.IsEqual(bmp))
|
/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);
|