/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmap.java | 3 import android.graphics.Bitmap; 15 @Implements(Bitmap.class) 17 @RealObject private Bitmap realBitmap; 21 private Bitmap.Config config; 28 public boolean compress(Bitmap.CompressFormat format, int quality, OutputStream stream) { 39 public static Bitmap createBitmap(int width, int height, Bitmap.Config config) { 40 Bitmap scaledBitmap = Robolectric.newInstanceOf(Bitmap.class); 42 shadowBitmap.appendDescription("Bitmap (" + width + " x " + height + ")") 119 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
ShadowDrawable.java | 4 import android.graphics.Bitmap; 44 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 62 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 68 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 69 shadowOf(bitmap).setLoadedFromResourceId(resourceId); 70 BitmapDrawable drawable = new BitmapDrawable(bitmap);
|
/external/selinux/libsepol/src/ |
mls.c | 557 ebitmap_t bitmap; local 579 ebitmap_init(&bitmap); 592 rc = ebitmap_set_bit(&bitmap, 599 c->range.level[l].cat = bitmap;
|
/external/skia/bench/ |
BitmapBench.cpp | 76 const bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache 97 fName.set("bitmap"); 144 const SkBitmap& bitmap = fBitmap; local 145 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2); 146 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2); 153 bitmap.notifyPixelsChanged(); 155 canvas->drawBitmap(bitmap, x, y, &paint);
|
/external/skia/dm/ |
DMSrcSink.cpp | 123 SkBitmap bitmap; local 124 if (!bitmap.tryAllocPixels(decodeInfo, NULL, colorTable.get())) { 131 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), NULL, 153 bitmap.getAddr(0, y), 1, 0); 166 canvas->drawBitmap(bitmap, 0, 0); 202 SkBitmap bitmap; local 203 if (!SkImageDecoder::DecodeMemory(encoded->data(), encoded->size(), &bitmap, 207 if (kRGB_565_SkColorType == dstColorType && !bitmap.isOpaque()) { 208 // Do not draw a bitmap with alpha to a destination without alpha 259 SkBitmap bitmap; local [all...] |
/external/skia/samplecode/ |
SampleColorFilter.cpp | 89 SkBitmap bitmap; local 90 bitmap.allocN32Pixels(n, n); 91 bitmap.eraseColor(SK_ColorTRANSPARENT); 93 SkCanvas canvas(bitmap); 109 return bitmap;
|
SamplePath.cpp | 76 SkBitmap bitmap; local 77 bitmap.allocN32Pixels(300, 200); 79 SkCanvas canvas(bitmap);
|
SampleRegion.cpp | 22 SkBitmap bitmap; local 23 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); 24 bitmap.eraseColor(SK_ColorTRANSPARENT); 35 SkCanvas c(bitmap); 45 canvas->drawBitmap(bitmap, 0, 0, NULL); 50 canvas->drawBitmap(bitmap, SkIntToScalar(2*width), 0, NULL);
|
/external/skia/src/core/ |
SkBitmapDevice.cpp | 61 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) : fBitmap(bitmap) { 62 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL)); 65 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProperties) 67 , fBitmap(bitmap) 69 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL)); 80 SkBitmap bitmap; local 83 if (!bitmap.setInfo(info)) { 87 if (!bitmap.tryAllocPixels(info)) { 90 if (!bitmap.info().isOpaque()) [all...] |
SkBitmapProcShader.cpp | 120 const SkBitmap& bitmap = *fState->fBitmap; local 121 bool bitmapIsOpaque = bitmap.isOpaque(); 129 switch (bitmap.colorType()) { 145 if (rec.fPaint->isDither() && bitmap.colorType() != kRGB_565_SkColorType) { 152 if (1 == bitmap.height() && 164 // The bitmap proc state has been created outside of the context on memory that will be freed 272 // returns true and set color if the bitmap can be drawn as a single color 276 // Android expects SkShaders constructed from a Bitmap to always be queryable with 307 // SkBitmapProcShader stores bitmap coordinates in a 16bit buffer, as it 444 "Couldn't convert bitmap to texture.") [all...] |
SkDevice.cpp | 60 const SkBitmap& bitmap = this->onAccessBitmap(); local 62 bitmap.notifyPixelsChanged(); 64 return bitmap; 171 // Default impl : turns everything into raster bitmap 180 // Default impl : turns everything into raster bitmap
|
/external/skia/src/utils/ |
SkCanvasStateUtils.cpp | 226 // we currently only work for bitmap backed devices 227 const SkBitmap& bitmap = layer.device()->accessBitmap(true/*changePixels*/); local 228 if (bitmap.empty() || bitmap.isNull() || !bitmap.lockPixelsAreWritable()) { 237 layerState->width = bitmap.width(); 238 layerState->height = bitmap.height(); 240 switch (bitmap.colorType()) { 250 layerState->raster.rowBytes = bitmap.rowBytes(); 251 layerState->raster.pixels = bitmap.getPixels() 297 SkBitmap bitmap; local [all...] |
/external/skia/src/views/ |
SkWidgets.cpp | 508 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const 510 if (bitmap) 511 *bitmap = fBitmap; 515 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) 517 if (bitmap) 519 fBitmap = *bitmap; 526 SkBitmap bitmap; local 528 if (SkImageDecoder::DecodeFile(path, &bitmap)) 530 this->setBitmap(&bitmap, true); 531 bitmap.setOwnsPixels(false) [all...] |
/external/skia/src/views/unix/ |
SkOSWindow_Unix.cpp | 385 static bool convertBitmapToXImage(XImage& image, const SkBitmap& bitmap) { 388 int bitsPerPixel = bitmap.bytesPerPixel() * 8; 389 image.width = bitmap.width(); 390 image.height = bitmap.height(); 392 image.data = (char*) bitmap.getPixels(); 398 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * 4; 411 // Draw the bitmap to the screen. 412 const SkBitmap& bitmap = getBitmap(); local 413 int width = bitmap.width() [all...] |
/external/skia/tests/ |
CachedDecodingPixelRefTest.cpp | 22 * Fill this bitmap with some color. 39 * encode this bitmap into some data via SkImageEncoder 93 original bitmap */ 329 SkBitmap bitmap; local 330 bitmap.allocN32Pixels(TestImageGenerator::Width(), TestImageGenerator::Height()); 331 SkCanvas canvas(bitmap); 337 r, TestImageGenerator::Color() == *bitmap.getAddr32(0, 0)); 339 REPORTER_ASSERT(r, kDefaultColor == bitmap.getColor(0,0));
|
ImageDecodingTest.cpp | 129 // "c0" is the color of the premultiplied bitmap at (i, j). 132 // bitmap at (i, j). 340 // expected output for 8x8 bitmap 424 static SkPixelRef* install_pixel_ref(SkBitmap* bitmap, 427 SkASSERT(bitmap != NULL); 430 SkColorType colorType = bitmap->colorType(); 433 SkDecodingImageGenerator::Create(stream, opts), bitmap)) { 434 return bitmap->pixelRef(); 597 * client of the generator set sample size, dithering, and bitmap 671 SkBitmap bitmap; local 749 SkBitmap bitmap; local [all...] |
SerializationTest.cpp | 251 // Try to render a small bitmap using the invalid deserialized filter 254 SkBitmap bitmap; local 255 bitmap.allocN32Pixels(24, 24); 256 SkCanvas canvas(bitmap); 261 canvas.drawBitmap(bitmap, 0, 0, &paint); 289 SkBitmap bitmap; local 290 bitmap.allocN32Pixels(SkScalarCeilToInt(picture.cullRect().width()), 292 SkCanvas canvas(bitmap); 294 return bitmap; 356 static void setup_bitmap_for_canvas(SkBitmap* bitmap) { 386 SkBitmap bitmap; local [all...] |
SkResourceCacheTest.cpp | 29 // Draw a scaled bitmap, then return true if it has been cached. 33 SkBitmap bitmap; local 34 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize); 35 bitmap.eraseColor(0xFFFFFFFF); 44 canvas->drawBitmapRect(bitmap, 48 return is_in_scaled_image_cache(bitmap, xScale, yScale); 84 static void make_bitmap(SkBitmap* bitmap, const SkImageInfo& info, SkBitmap::Allocator* allocator) { 86 bitmap->setInfo(info); 87 allocator->allocPixelRef(bitmap, 0); 89 bitmap->allocPixels(info) [all...] |
/external/skia/tools/ |
render_pictures_main.cpp | 121 * Write the raw encoded bitmap data to a file. 123 static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitmap) { 136 // Put in a dummy bitmap. 137 return SkImageDecoder::DecodeStream(&memStream, bitmap, kUnknown_SkColorType, 264 SkBitmap* bitmap = NULL; local 270 FLAGS_validate || FLAGS_writeWholeImage ? &bitmap : NULL); 272 if (!success || ((FLAGS_validate || FLAGS_writeWholeImage) && bitmap == NULL)) { 274 SkDELETE(bitmap); 304 SkDELETE(bitmap); 309 if (success && (bitmap->width() != referenceBitmap->width())) [all...] |
/external/v8/src/heap/ |
spaces-inl.h | 19 // Bitmap 21 void Bitmap::Clear(MemoryChunk* chunk) { 22 Bitmap* bitmap = chunk->markbits(); local 23 for (int i = 0; i < bitmap->CellsCount(); i++) bitmap->cells()[i] = 0;
|
/external/valgrind/include/vki/ |
vki-xen.h | 76 VKI_XEN_GUEST_HANDLE_64(vki_uint8) bitmap; member in struct:vki_xenctl_bitmap
|
/frameworks/av/media/libmedia/ |
IMediaMetadataRetriever.cpp | 264 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); local 265 if (bitmap != 0) { // Don't send NULL across the binder interface 267 reply->writeStrongBinder(IInterface::asBinder(bitmap));
|
/frameworks/base/core/java/android/gesture/ |
Gesture.java | 19 import android.graphics.Bitmap; 176 * Creates a bitmap of the gesture with a transparent background. 178 * @param width width of the target bitmap 179 * @param height height of the target bitmap 183 * @return the bitmap 185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { 186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) local 221 final Bitmap bitmap = Bitmap.createBitmap(width, height, local [all...] |
/frameworks/base/core/java/android/transition/ |
Crossfade.java | 25 import android.graphics.Bitmap; 39 * This transition captures bitmap representations of target views before and 49 // a given target view. This would save bitmap comparisons in this transition, for example. 53 private static final String PROPNAME_BITMAP = "android:crossfade:bitmap"; 178 Bitmap startBitmap = (Bitmap) startVals.get(PROPNAME_BITMAP); 179 Bitmap endBitmap = (Bitmap) endVals.get(PROPNAME_BITMAP); 271 Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight() local [all...] |
TransitionUtils.java | 22 import android.graphics.Bitmap; 81 * Creates a View using the bitmap copy of <code>view</code>. If <code>view</code> is large, 82 * the copy will use a scaled bitmap of the given view. 102 Bitmap bitmap = createViewBitmap(view, matrix, bounds); local 103 if (bitmap != null) { 104 copy.setImageBitmap(bitmap); 114 * Get a copy of bitmap of given drawable, return null if intrinsic size is zero 116 public static Bitmap createDrawableBitmap(Drawable drawable) { 124 // return same bitmap if scale down not neede 129 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); local 156 Bitmap bitmap = null; local [all...] |