/external/webkit/WebKit/android/plugins/ |
ANPCanvasInterface.cpp | 30 static ANPCanvas* anp_newCanvas(const ANPBitmap* bitmap) { 32 return new ANPCanvas(*SkANP::SetBitmap(&bm, *bitmap)); 144 static void anp_drawBitmap(ANPCanvas* canvas, const ANPBitmap* bitmap, 147 canvas->skcanvas->drawBitmap(*SkANP::SetBitmap(&bm, *bitmap), 152 static void anp_drawBitmapRect(ANPCanvas* canvas, const ANPBitmap* bitmap, 162 canvas->skcanvas->drawBitmapRect(*SkANP::SetBitmap(&bm, *bitmap), srcPtr,
|
/external/skia/src/core/ |
SkDraw.cpp | 171 static BitmapXferProc ChooseBitmapXferProc(const SkBitmap& bitmap, 209 switch (bitmap.config()) { 245 static void CallBitmapXferProc(const SkBitmap& bitmap, const SkIRect& rect, 248 switch (bitmap.config()) { 264 uint8_t* pixels = (uint8_t*)bitmap.getPixels(); 266 const size_t rowBytes = bitmap.rowBytes(); 291 be faster to operate directly on the device bitmap, rather than invoking 353 const SkBitmap* bitmap = blitter->justAnOpaqueColor(&value); local 354 SkASSERT(bitmap); 356 uint16_t* addr = bitmap->getAddr16(0, 0) [all...] |
SkBitmapProcShader.cpp | 94 const SkBitmap& bitmap = *fState.fBitmap; local 95 bool bitmapIsOpaque = bitmap.isOpaque(); 103 switch (bitmap.config()) { 119 if (paint.isDither() && bitmap.config() != SkBitmap::kRGB_565_Config) { 126 if (1 == bitmap.height() && 209 // returns true and set color if the bitmap can be drawn as a single color
|
/external/skia/src/views/ |
SkWidgets.cpp | 499 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const 501 if (bitmap) 502 *bitmap = fBitmap; 506 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) 508 if (bitmap) 510 fBitmap = *bitmap; 517 SkBitmap bitmap; local 519 if (SkImageDecoder::DecodeFile(path, &bitmap)) 521 this->setBitmap(&bitmap, true); 522 bitmap.setOwnsPixels(false) [all...] |
/frameworks/base/cmds/bootanimation/ |
BootAnimation.cpp | 93 SkBitmap bitmap; 95 &bitmap, SkBitmap::kNo_Config, SkImageDecoder::kDecodePixels_Mode); 100 // bitmap will go out of scope when we return from this method. 101 bitmap.lockPixels(); 103 const int w = bitmap.width(); 104 const int h = bitmap.height(); 105 const void* p = bitmap.getPixels(); 114 switch (bitmap.getConfig()) { 147 SkBitmap bitmap; local 149 &bitmap, SkBitmap::kRGB_565_Config [all...] |
/frameworks/base/core/jni/android/graphics/ |
Graphics.cpp | 297 SkBitmap* GraphicsJNI::getNativeBitmap(JNIEnv* env, jobject bitmap) { 299 SkASSERT(bitmap); 300 SkASSERT(env->IsInstanceOf(bitmap, gBitmap_class)); 301 SkBitmap* b = (SkBitmap*)env->GetIntField(bitmap, gBitmap_nativeInstanceID); 360 jobject GraphicsJNI::createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, 363 SkASSERT(bitmap != NULL); 364 SkASSERT(NULL != bitmap->pixelRef()); 369 (jint)bitmap, isMutable, ninepatch, density); 446 bool GraphicsJNI::setJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, 448 Sk64 size64 = bitmap->getSize64() [all...] |
Canvas.cpp | 59 static SkCanvas* initRaster(JNIEnv* env, jobject, SkBitmap* bitmap) { 60 return bitmap ? new SkCanvas(*bitmap) : new SkCanvas; 81 bitmap, but need to hard-code the answer. If we relax this 90 // normal technique, rely on the device's bitmap for the answer 112 SkBitmap* bitmap) { 113 canvas->setBitmapDevice(*bitmap); 467 SkCanvas* canvas, SkBitmap* bitmap, 482 canvas->drawBitmap(*bitmap, left_, top_, &filteredPaint); 484 canvas->drawBitmap(*bitmap, left_, top_, paint) 551 SkBitmap bitmap; local [all...] |
GraphicsJNI.h | 39 static SkBitmap* getNativeBitmap(JNIEnv*, jobject bitmap); 48 /** Create a java Bitmap object given the native bitmap (required) and optional 50 locked, and its native address set as the bitmap's pixels. If storage is null, 51 then the bitmap must be an owner of its natively allocated pixels (via allocPixels). 53 static jobject createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, 58 /** Set a pixelref for the bitmap (needs setConfig to already be called) 65 /** Copy the colors in colors[] to the bitmap, convert to the correct 77 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable);
|
/external/qemu/distrib/sdl-1.2.12/src/video/picogui/ |
SDL_pgvideo.c | 194 if ( this->hidden->bitmap ) { 195 /* Free old bitmap */ 200 pgDelete(this->hidden->bitmap); 209 /* Create a new picogui bitmap */ 210 this->hidden->bitmap = pgCreateBitmap(width,height); 211 this->hidden->shm = *pgMakeSHMBitmap(this->hidden->bitmap); 226 /* 1. Incremental bitmap rendering 229 0,0,0,0,this->hidden->bitmap); 232 /* 2. Normal bitmap rendering 235 0,0,this->hidden->shm.width,this->hidden->shm.height,this->hidden->bitmap); [all...] |
/frameworks/base/media/jni/ |
android_media_MediaMetadataRetriever.cpp | 214 SkBitmap *bitmap = new SkBitmap(); local 215 if (bitmap == NULL) { 219 bitmap->setConfig(SkBitmap::kRGB_565_Config, videoFrame->mDisplayWidth, videoFrame->mDisplayHeight); 220 if (!bitmap->allocPixels()) { 221 delete bitmap; 225 memcpy((uint8_t*)bitmap->getPixels(), (uint8_t*)videoFrame + sizeof(VideoFrame), videoFrame->mSize); 229 // available after creating the Bitmap is returned to Java app. 231 fields.bitmapConstructor, (int) bitmap, true, NULL, -1); 233 LOGV("Return a new bitmap constructed with the rotation matrix"); 236 jSrcBitmap, // source Bitmap [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
Contacts_PeopleTest.java | 25 import android.graphics.Bitmap; 308 Bitmap bitmap = BitmapFactory.decodeStream(photoStream, null, null); 309 assertEquals(212, bitmap.getWidth()); 310 assertEquals(142, bitmap.getHeight()); 320 bitmap = People.loadContactPhoto(context, mPeopleRowsAdded.get(0), 322 assertEquals(212, bitmap.getWidth()); 323 assertEquals(142, bitmap.getHeight()); 325 bitmap = People.loadContactPhoto(context, null, 327 assertEquals(48, bitmap.getWidth()) [all...] |
/external/freetype/src/sfnt/ |
ttsbit0.c | 5 /* TrueType and OpenType embedded bitmap support (body). */ 164 FT_Bitmap* bitmap; member in struct:TT_SBitDecoderRec_ 200 decoder->bitmap = &face->root.glyph->bitmap; 254 FT_Bitmap* map = decoder->bitmap; 379 FT_Bitmap* bitmap; local 389 /* check that we can write the glyph into the bitmap */ 390 bitmap = decoder->bitmap; 391 bit_width = bitmap->width 517 FT_Bitmap* bitmap; local [all...] |
/external/webkit/WebCore/platform/graphics/win/ |
GraphicsContextCGWin.cpp | 42 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); local 44 BITMAP info; 46 GetObject(bitmap, sizeof(info), &info); 86 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); 88 // Need to make a CGImage out of the bitmap's pixel buffer and then draw 90 BITMAP info; 91 GetObject(bitmap, sizeof(info), &info); 107 ::DeleteObject(bitmap);
|
/frameworks/base/core/jni/android/opengl/ |
util.cpp | 554 jclass bitmapClass = env->FindClass("android/graphics/Bitmap"); 627 const SkBitmap& bitmap(*nativeBitmap); 628 SkBitmap::Config config = bitmap.getConfig(); 637 const SkBitmap& bitmap(*nativeBitmap); 638 SkBitmap::Config config = bitmap.getConfig(); 648 const SkBitmap& bitmap(*nativeBitmap); 649 SkBitmap::Config config = bitmap.getConfig(); 659 bitmap.lockPixels(); 660 const int w = bitmap.width(); 661 const int h = bitmap.height() [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
IconUtilities.java | 23 import android.graphics.Bitmap; 90 Bitmap scaled = createIconBitmap(src); 105 * Returns a bitmap suitable for the all apps view. The bitmap will be a power 106 * of two sized ARGB_8888 bitmap that can be used as a gl texture. 108 private Bitmap createIconBitmap(Drawable icon) { 117 // Ensure the bitmap has a density. 119 Bitmap bitmap = bitmapDrawable.getBitmap(); local 120 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) 148 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactPhotoLoader.java | 24 import android.graphics.Bitmap; 80 SoftReference<Bitmap> bitmapRef; 166 // Null bitmap reference means that database contains no bytes for the photo 172 Bitmap bitmap = holder.bitmapRef.get(); local 173 if (bitmap != null) { 174 view.setImageBitmap(bitmap); 178 // Null bitmap means that the soft reference was released by the GC 183 // The bitmap has not been loaded - should display the placeholder image. 288 * Stores the supplied bitmap in cache 299 Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, null); local [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageGetter.java | 24 import android.graphics.Bitmap; 32 * into memory and post a callback to display the resulting bitmap. 34 * Then proceed to load the full image bitmap. Three things can 44 * a callback to the UI thread to actually show the bitmap. 49 * bitmap on the floor. 53 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, 104 final RotateBitmap bitmap, 111 mCB.imageLoaded(position, offset, bitmap, isThumb); 112 } else if (bitmap != null) { 113 bitmap.recycle() [all...] |
/packages/apps/Gallery3D/src/com/cooliris/media/ |
Photographs.java | 24 import android.graphics.Bitmap; 82 private final Bitmap mBitmap; 87 public SetWallpaperThread(Bitmap bitmap, Handler handler, Context context, File file) { 88 mBitmap = bitmap; 183 intent.putExtra("outputFormat", Bitmap.CompressFormat.PNG.name()); 195 Bitmap bitmap = BitmapFactory.decodeStream(s); local 196 if (bitmap == null) { 197 Log.e(LOG_TAG, "Failed to set wallpaper. " + "Couldn't get bitmap for path " + mTempFile) [all...] |
/frameworks/base/core/java/android/provider/ |
MediaStore.java | 27 import android.graphics.Bitmap; 154 * If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap 271 private static Bitmap getMiniThumbFromFile(Cursor c, Uri baseUri, ContentResolver cr, BitmapFactory.Options options) { 272 Bitmap bitmap = null; local 279 bitmap = BitmapFactory.decodeFileDescriptor( 290 return bitmap; 326 * @param options this is only used for MINI_KIND when decoding the Bitmap 329 * @return Bitmap bitmap of specified thumbnail kin 333 Bitmap bitmap = null; local 529 Bitmap bitmap = BitmapFactory.decodeStream(input); local [all...] |
/external/e2fsprogs/lib/ext2fs/ |
rw_bitmaps.c | 34 * of each word. Thus a bitmap with only bit 0 set would be, as 36 * To cope with this, we byte-reverse each word of a bitmap if 44 static void ext2fs_swap_bitmap(ext2_filsys fs, char *bitmap, int nbytes) 46 __u32 *p = (__u32 *) bitmap; 76 block_bitmap = fs->block_map->bitmap; 84 inode_bitmap = fs->inode_map->bitmap; 103 /* Force bitmap padding for the last group */ 189 sprintf(buf, "block bitmap for %s", fs->device_name); 193 block_bitmap = fs->block_map->bitmap; 198 sprintf(buf, "inode bitmap for %s", fs->device_name) [all...] |
/external/skia/include/core/ |
SkCanvas.h | 39 A Canvas encapsulates all of the state about drawing into a device (bitmap). 54 /** Construct a canvas with the specified bitmap to draw into. 55 @param bitmap Specifies a bitmap for the canvas to draw into. Its 58 explicit SkCanvas(const SkBitmap& bitmap); 81 the bitmap of the pixels that the canvas draws into. The reference count 92 /** Specify a bitmap for the canvas to draw into. This is a help method for 93 setDevice(), and it creates a device for the bitmap by calling 94 createDevice(). The structure of the bitmap is copied into the device. 96 virtual SkDevice* setBitmapDevice(const SkBitmap& bitmap); [all...] |
/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...] |
/external/webkit/WebCore/platform/win/ |
DragImageCairoWin.cpp | 91 static cairo_surface_t* createCairoContextFromBitmap(HBITMAP bitmap) 93 BITMAP info; 94 GetObject(bitmap, sizeof(info), &info); 97 // At this point, we have a Cairo surface that points to a Windows BITMAP. The BITMAP
|
/packages/apps/Mms/src/com/android/mms/ui/ |
MmsThumbnailPresenter.java | 29 import android.graphics.Bitmap; 87 Bitmap bitmap = BitmapFactory.decodeResource( local 89 view.setImage(name, bitmap);
|
/external/openssl/ssl/ |
d1_pkt.c | 171 static int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap); 172 static void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap); 507 dtls1_record_bitmap_update(s, &(s->d1->bitmap));/* Mark receipt of record. */ 534 DTLS1_BITMAP *bitmap; local 655 bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch); 656 if ( bitmap == NULL) 671 !dtls1_record_replay_check(s, bitmap)) [all...] |