| /cts/tests/tests/view/src/android/view/cts/ |
| TextureViewCtsActivity.java | 25 import android.graphics.Bitmap; 143 public Bitmap getContents(Bitmap.Config config, ColorSpace colorSpace) throws Throwable { 145 final Bitmap bitmap = Bitmap.createBitmap(this.getWindow().getDecorView().getWidth(), local 148 this.getTextureView().getBitmap(bitmap); 157 return bitmap;
|
| /developers/build/prebuilts/gradle/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
| MainActivity.java | 23 import android.graphics.Bitmap; 93 private Bitmap mImageBitmap; 150 mImageBitmap = (Bitmap) extras.get("data"); 248 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 253 private static Asset toAsset(Bitmap bitmap) { 257 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream);
|
| /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
| ImageCache.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.CompressFormat; 23 import android.graphics.Bitmap.Config; 83 private Set<SoftReference<Bitmap>> mReusableBitmaps; 143 // balancing of memory usage between this set and the bitmap LruCache. It would also 149 Collections.synchronizedSet(new HashSet<SoftReference<Bitmap>>()); 168 // We're running on Honeycomb or later, so add the bitmap 170 mReusableBitmaps.add(new SoftReference<Bitmap>(oldValue.getBitmap())); 177 * for a bitmap cache 231 * Adds a bitmap to both memory and disk cache 317 Bitmap bitmap = null; local 364 Bitmap bitmap = null; local 614 Bitmap bitmap = value.getBitmap(); local [all...] |
| /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
| ImageCache.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.CompressFormat; 23 import android.graphics.Bitmap.Config; 83 private Set<SoftReference<Bitmap>> mReusableBitmaps; 143 // balancing of memory usage between this set and the bitmap LruCache. It would also 149 Collections.synchronizedSet(new HashSet<SoftReference<Bitmap>>()); 168 // We're running on Honeycomb or later, so add the bitmap 170 mReusableBitmaps.add(new SoftReference<Bitmap>(oldValue.getBitmap())); 177 * for a bitmap cache 231 * Adds a bitmap to both memory and disk cache 317 Bitmap bitmap = null; local 364 Bitmap bitmap = null; local 614 Bitmap bitmap = value.getBitmap(); local [all...] |
| /developers/samples/android/wearable/wear/DataLayer/Application/src/main/java/com/example/android/wearable/datalayer/ |
| MainActivity.java | 23 import android.graphics.Bitmap; 93 private Bitmap mImageBitmap; 150 mImageBitmap = (Bitmap) extras.get("data"); 248 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 253 private static Asset toAsset(Bitmap bitmap) { 257 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream);
|
| /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
| ImageCache.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.CompressFormat; 23 import android.graphics.Bitmap.Config; 83 private Set<SoftReference<Bitmap>> mReusableBitmaps; 143 // balancing of memory usage between this set and the bitmap LruCache. It would also 149 Collections.synchronizedSet(new HashSet<SoftReference<Bitmap>>()); 168 // We're running on Honeycomb or later, so add the bitmap 170 mReusableBitmaps.add(new SoftReference<Bitmap>(oldValue.getBitmap())); 177 * for a bitmap cache 231 * Adds a bitmap to both memory and disk cache 317 Bitmap bitmap = null; local 364 Bitmap bitmap = null; local 614 Bitmap bitmap = value.getBitmap(); local [all...] |
| /development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
| DynamicListView.java | 25 import android.graphics.Bitmap; 55 * a bitmap and its visibility is set to INVISIBLE. A hover cell is then created and 146 * Creates the hover cell with the appropriate bitmap and of appropriate 147 * size. The hover cell's BitmapDrawable is drawn on top of the bitmap every 157 Bitmap b = getBitmapWithBorder(v); 170 private Bitmap getBitmapWithBorder(View v) { 171 Bitmap bitmap = getBitmapFromView(v); local 172 Canvas can = new Canvas(bitmap); 174 Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()) 189 Bitmap bitmap = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888); local [all...] |
| /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/msi/ |
| msilib.py | 646 def bitmap(self, name, x, y, w, h, text):
member in class:Dialog 647 return self.control(name, "Bitmap", x, y, w, h, 1, None, text, None, None)
|
| /external/ImageMagick/MagickCore/ |
| annotate.c | 1252 bitmap; local [all...] |
| /external/curl/lib/ |
| ssh-libssh.c | 1903 int bitmap = GETSOCK_BLANK; local [all...] |
| ssh.c | 2667 int bitmap = GETSOCK_BLANK; local [all...] |
| /external/freetype/src/bdf/ |
| bdf.h | 154 unsigned char* bitmap; /* Glyph bitmap. */ member in struct:bdf_glyph_t_ 156 unsigned short bytes; /* Number of bytes used for the bitmap. */ 214 unsigned long nmod[34816]; /* Bitmap indicating modified glyphs. */ 215 unsigned long umod[34816]; /* Bitmap indicating modified */
|
| /external/freetype/src/sfnt/ |
| ttsbit.c | 5 /* TrueType and OpenType embedded bitmap support (body). */ 244 " no embedded bitmap data table found;\n" 473 FT_Bitmap* bitmap; member in struct:TT_SBitDecoderRec_ 509 decoder->bitmap = &face->root.glyph->bitmap; 566 FT_Bitmap* map = decoder->bitmap; 718 FT_Bitmap* bitmap; local 723 /* check that we can write the glyph into the bitmap */ 724 bitmap = decoder->bitmap; 860 FT_Bitmap* bitmap; local [all...] |
| /external/pdfium/fpdfsdk/ |
| fpdfedit_embeddertest.cpp | 194 // Get the bitmap for the original document/ 210 // Add the bitmap to an image object and add the image object to the output 421 FPDF_BITMAP bitmap = RenderPage(page); local 427 CompareBitmap(bitmap, 200, 200, md5); 428 FPDFBitmap_Destroy(bitmap); 450 FPDF_BITMAP bitmap = RenderPage(page); local 451 CompareBitmap(bitmap, 612, 792, "ad04e5bd0f471a9a564fb034bd0fb073"); 452 FPDFBitmap_Destroy(bitmap); 676 // Check the bitmap 686 // Check that bitmap displays changed conten 1045 FPDF_BITMAP bitmap = FPDFImageObj_GetBitmap(obj); local [all...] |
| /external/python/cpython2/Tools/msi/ |
| msilib.py | 641 def bitmap(self, name, x, y, w, h, text): member in class:Dialog 642 return self.control(name, "Bitmap", x, y, w, h, 1, None, text, None, None)
|
| /external/skia/src/core/ |
| SkBitmapDevice.cpp | 68 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) 69 : INHERITED(bitmap.info(), SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)) 70 , fBitmap(bitmap) 71 , fRCStack(bitmap.width(), bitmap.height()) 73 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr)); 80 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps, 82 : INHERITED(bitmap.info(), surfaceProps) 83 , fBitmap(bitmap) 85 , fRCStack(bitmap.width(), bitmap.height() 100 SkBitmap bitmap; local [all...] |
| /external/skia/src/effects/ |
| SkTableColorFilter.cpp | 329 static std::unique_ptr<GrFragmentProcessor> Make(GrContext* context, const SkBitmap& bitmap); 442 const SkBitmap& bitmap) { 444 desc.fWidth = bitmap.width(); 446 desc.fRowHeight = bitmap.height(); 449 desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info(), *context->caps()); 456 int row = atlas->lockRow(bitmap); 461 SkASSERT(bitmap.isImmutable()); 463 sk_sp<SkImage> srcImage = SkImage::MakeFromBitmap(bitmap); 556 SkBitmap bitmap; local 557 this->asComponentTable(&bitmap); [all...] |
| /external/skia/src/image/ |
| SkImage_Lazy.cpp | 132 * On success (true), bitmap will point to the pixels for this generator. If this returns 133 * false, the bitmap will be reset to empty. 421 static bool check_output_bitmap(const SkBitmap& bitmap, uint32_t expectedID) { 422 SkASSERT(bitmap.getGenerationID() == expectedID); 423 SkASSERT(bitmap.isImmutable()); 424 SkASSERT(bitmap.getPixels()); 446 bool SkImage_Lazy::lockAsBitmapOnlyIfAlreadyCached(SkBitmap* bitmap, CachedFormat format) const { 449 fInfo.width(), fInfo.height()), bitmap) && 450 check_output_bitmap(*bitmap, uniqueID); 492 bool SkImage_Lazy::lockAsBitmap(SkBitmap* bitmap, SkImage::CachingHint chint, CachedFormat format 525 SkBitmapCache::Add(std::move(cacheRec), bitmap); local 831 SkBitmap bitmap; local [all...] |
| /external/skia/tests/ |
| SerializationTest.cpp | 275 // Try to render a small bitmap using the invalid deserialized filter 278 SkBitmap bitmap; local 279 bitmap.allocN32Pixels(24, 24); 280 SkCanvas canvas(bitmap); 285 canvas.drawBitmap(bitmap, 0, 0, &paint); 300 SkBitmap bitmap; local 301 bitmap.allocN32Pixels(SkScalarCeilToInt(picture.cullRect().width()), 303 SkCanvas canvas(bitmap); 305 return bitmap; 388 static void setup_bitmap_for_canvas(SkBitmap* bitmap) { 418 SkBitmap bitmap; local [all...] |
| /external/skia/tools/ |
| colorspaceinfo.cpp | 420 SkBitmap bitmap; local 421 bitmap.allocN32Pixels(width, height); 422 bitmap.eraseColor(SkColorSetARGB(0, 0, 0, 0)); 423 return bitmap; 428 OutputCanvas(SkBitmap&& bitmap) 429 :fBitmap(bitmap) 658 SkBitmap bitmap; local 661 bitmap.allocN32Pixels(width, height, kOpaque_SkAlphaType == codec->getInfo().alphaType()); 663 if (SkCodec::kSuccess != codec->getPixels(decodeInfo, bitmap.getPixels(), 664 bitmap.rowBytes())) [all...] |
| sk_tool_utils.cpp | 59 void write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, 61 SkBitmap tmp(bitmap); 84 SkBitmap bitmap; local 85 bitmap.allocPixels(SkImageInfo::MakeS32(w, h, kPremul_SkAlphaType)); 86 SkCanvas canvas(bitmap); 89 return bitmap; 101 SkBitmap bitmap; local 102 bitmap.allocN32Pixels(w, h); 103 SkCanvas canvas(bitmap); 118 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0) [all...] |
| /external/skia/tools/debugger/ |
| SkDebugCanvas.cpp | 120 SkBitmap bitmap; local 121 bitmap.allocPixels(SkImageInfo::MakeN32Premul(1, 1)); 123 SkCanvas canvas(bitmap); 128 SkColor prev = bitmap.getColor(0,0); 134 if (prev != bitmap.getColor(0,0)) { 137 prev = bitmap.getColor(0,0); 481 void SkDebugCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, 483 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint)); 486 void SkDebugCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, 488 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint [all...] |
| /external/skia/tools/skqp/ |
| gm_knowledge.cpp | 146 SkBitmap bitmap; local 151 bitmap.allocPixels(info); 152 SkASSERT(bitmap.rowBytes() == (unsigned)bitmap.width() * sizeof(uint32_t)); 153 if (SkCodec::kSuccess != codec->getPixels(bitmap.pixmap())) { 154 bitmap.reset(); 157 return bitmap;
|
| /external/skqp/src/core/ |
| SkBitmapDevice.cpp | 68 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) 69 : INHERITED(bitmap.info(), SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)) 70 , fBitmap(bitmap) 71 , fRCStack(bitmap.width(), bitmap.height()) 73 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr)); 80 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps, 82 : INHERITED(bitmap.info(), surfaceProps) 83 , fBitmap(bitmap) 85 , fRCStack(bitmap.width(), bitmap.height() 100 SkBitmap bitmap; local [all...] |
| /external/skqp/src/effects/ |
| SkTableColorFilter.cpp | 329 static std::unique_ptr<GrFragmentProcessor> Make(GrContext* context, const SkBitmap& bitmap); 442 const SkBitmap& bitmap) { 444 desc.fWidth = bitmap.width(); 446 desc.fRowHeight = bitmap.height(); 450 desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info(), *context->caps()); 452 int row = atlas->lockRow(bitmap); 457 proxy = GrMakeCachedBitmapProxy(context->contextPriv().proxyProvider(), bitmap); 545 SkBitmap bitmap; local 546 this->asComponentTable(&bitmap); 548 return ColorTableEffect::Make(context, bitmap); [all...] |