/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaMetadataRetrieverTest.java | 21 import android.graphics.Bitmap; 95 Bitmap bitmap = retriever.captureFrame(); local 96 assertTrue(bitmap != null); 99 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream); 102 Log.e(TAG, "Fails to convert the bitmap to a JPEG file for " + MediaNames.THUMBNAIL_CAPTURE_TEST_FILES[i]); 156 Bitmap bitmap = retriever.captureFrame(); 157 assertTrue(bitmap != null) [all...] |
/external/skia/src/gl/ |
SkGLDevice.cpp | 72 SkGLDevice::SkGLDevice(const SkBitmap& bitmap, bool offscreen) 73 : SkDevice(bitmap), fClipIter(bitmap.height()) { 168 SkBitmap bitmap; local 171 if (!shader->asABitmap(&bitmap, &matrix, tileModes)) { 176 bitmap.lockPixels(); 177 if (!bitmap.readyToDraw()) { 181 // see if we've already cached the bitmap from the shader 184 TexCache* cache = SkGLDevice::LockTexCache(bitmap, &name, &max); 198 matrix.postScale(max.fX / bitmap.width(), max.fY / bitmap.height()) 541 SkBitmap bitmap; local [all...] |
/external/freetype/include/freetype/ |
ftglyph.h | 63 /* bitmap, a vector outline, or even images in other formats. */ 80 /* bitmap or pointer. */ 124 /* A handle to an object used to model a bitmap glyph image. This is */ 136 /* A structure used for bitmap glyph images. This really is a */ 144 /* glyph bitmap. */ 148 /* bitmap. This distance is positive for upwards~y! */ 150 /* bitmap :: A descriptor for the bitmap. */ 155 /* the bitmap's contents easily. */ 165 FT_Bitmap bitmap; member in struct:FT_BitmapGlyphRec_ [all...] |
/bionic/linker/ |
ba.c | 36 #define BA_IS_FREE(index) (!(ba->bitmap[index].allocated)) 37 #define BA_ORDER(index) ba->bitmap[index].order 66 /* clean up the bitmap, merging any buddies */ 67 ba->bitmap[curr].allocated = 0; 70 * repeat until the buddy is not free or end of the bitmap is reached 109 /* look through the bitmap: 144 ba->bitmap[best_fit].allocated = 1;
|
/external/skia/src/images/ |
SkImageDecoder_libpvjpeg.cpp | 75 static bool getFrame(PVJpgDecoderInterface* codec, SkBitmap* bitmap, 85 bitmap->setConfig(SkBitmap::kRGB_565_Config, width, height); 86 bitmap->setIsOpaque(true); 100 format.iOutputPitch = bitmap->rowBytes() >> 1; 121 bitmap->allocPixels(); 122 memcpy(bitmap->getPixels(), ptrs[0], bitmap->getSize());
|
/frameworks/base/core/java/android/webkit/ |
WebHistoryItem.java | 19 import android.graphics.Bitmap; 39 private Bitmap mFavicon; 125 * @return A Bitmap containing the favicon for this history item or null. 129 public Bitmap getFavicon() { 165 * @param icon A Bitmap containing the favicon for this history item. 169 /*package*/ void setFavicon(Bitmap icon) { 212 Bitmap favicon, byte[] data) {
|
/frameworks/base/tests/BrowserTestPlugin/jni/event/ |
EventPlugin.cpp | 47 void EventPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { 50 inst(), bitmap.width, bitmap.height); 58 const float zoomFactorW = static_cast<float>(bitmap.width) / W; 59 const float zoomFactorH = static_cast<float>(bitmap.height) / H; 71 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); 147 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip);
|
/packages/apps/Camera/src/com/android/camera/ |
ThumbnailController.java | 22 import android.graphics.Bitmap; 44 * corresponds to a URI of the original picture/video. The thumbnail bitmap 53 private Bitmap mThumb; 68 public void setData(Uri uri, Bitmap original) { 100 mThumb.compress(Bitmap.CompressFormat.PNG, 100, d); 123 Bitmap thumb = BitmapFactory.decodeStream(d); 148 private void updateThumb(Bitmap original) {
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
LiveFolderAdapter.java | 33 import android.graphics.Bitmap; 145 final Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local 146 final Bitmap resampled = Utilities.resampleIconBitmap(bitmap, mContext); 147 if (bitmap != resampled) { 149 bitmap.recycle();
|
/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/e2fsprogs/tests/f_bbfile/ |
expect.1 | 4 Group 0's inode bitmap (4) is bad. Relocate? yes 6 Relocating group 0's inode bitmap from 4 to 43... 36 Block bitmap differences: +43
|
/external/skia/src/core/ |
SkBlitter_Sprite.cpp | 66 // have wrapped the source bitmap inside a shader 76 a bit of a hack, since we "could" pass in the fractional left/top for the bitmap, 77 and respect that by blending the edges of the bitmap against the device. To support
|
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...] |
SkCanvas.cpp | 68 by the device's XY offset and bitmap-bounds. 164 bitmap/device to draw into from this level. This value is NOT 414 SkCanvas::SkCanvas(const SkBitmap& bitmap) 418 this->init(SkNEW_ARGS(SkDevice, (bitmap)))->unref(); 515 SkDevice* SkCanvas::setBitmapDevice(const SkBitmap& bitmap) { 516 SkDevice* device = this->setDevice(SkNEW_ARGS(SkDevice, (bitmap))); 735 static bool reject_bitmap(const SkBitmap& bitmap) { 736 return bitmap.width() <= 0 || bitmap.height() <= 0 || 737 bitmap.width() > 32767 || bitmap.height() > 32767 1007 SkBitmap bitmap; local [all...] |
/external/webkit/WebKit/android/ |
RenderSkinAndroid.h | 66 * "images/bitmap.png", and uses the asset manager to select the exact one. It 67 * returns true if it successfully decoded the bitmap, false otherwise. 69 static bool DecodeBitmap(android::AssetManager* am, const char* fileName, SkBitmap* bitmap);
|
/frameworks/base/media/jni/ |
android_media_MediaMetadataRetriever.cpp | 178 SkBitmap *bitmap = new SkBitmap(); local 179 if (bitmap == NULL) { 183 bitmap->setConfig(SkBitmap::kRGB_565_Config, videoFrame->mDisplayWidth, videoFrame->mDisplayHeight); 184 if (!bitmap->allocPixels()) { 185 delete bitmap; 189 memcpy((uint8_t*)bitmap->getPixels(), (uint8_t*)videoFrame + sizeof(VideoFrame), videoFrame->mSize); 193 // available after creating the Bitmap is returned to Java app. 194 return env->NewObject(fields.bitmapClazz, fields.bitmapConstructor, (int) bitmap, true, NULL, -1); 283 fields.bitmapClazz = env->FindClass("android/graphics/Bitmap"); 285 jniThrowException(env, "java/lang/RuntimeException", "Can't find android/graphics/Bitmap"); [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/ |
Input.java | 19 import android.graphics.Bitmap; 30 public Bitmap icon; 96 boolean setIcon(Bitmap Icon) { return true; }
|
/packages/apps/Gallery/src/com/android/camera/ |
PhotoAppWidgetBind.java | 24 import android.graphics.Bitmap; 41 // The caller has requested that we bind a given bitmap to a specific 52 final ArrayList<Bitmap> bitmaps =
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
DrmImageList.java | 21 import android.graphics.Bitmap; 84 public Bitmap miniThumbBitmap() { 90 public Bitmap thumbBitmap(boolean rotateAsNeeded) {
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
ImageManager.java | 29 import android.graphics.Bitmap; 30 import android.graphics.Bitmap.CompressFormat; 56 public static final Bitmap DEFAULT_THUMBNAIL = Bitmap.createBitmap(32, 32, Bitmap.Config.RGB_565); 57 public static final Bitmap NO_IMAGE_BITMAP = Bitmap.createBitmap(1, 1, Bitmap.Config.RGB_565); 132 * Stores a bitmap or a jpeg byte array to a file (using the specified 140 String filename, Bitmap source, byte[] jpegData, int[] degree) [all...] |
PhotoAppWidgetBind.java | 25 import android.graphics.Bitmap; 44 // The caller has requested that we bind a given bitmap to a specific 54 final ArrayList<Bitmap> bitmaps = extras.getParcelableArrayList(EXTRA_APPWIDGET_BITMAPS);
|
Utils.java | 35 import android.graphics.Bitmap; 77 public static final Bitmap resizeBitmap(Bitmap bitmap, int maxSize) { 78 int srcWidth = bitmap.getWidth(); 79 int srcHeight = bitmap.getHeight(); 95 Bitmap retVal = Bitmap.createScaledBitmap(bitmap, width, height, true); 98 return bitmap; [all...] |
/packages/apps/Mms/tests/src/com/android/mms/util/ |
SmileyParserUnitTests.java | 21 import android.graphics.Bitmap; 69 Bitmap bitmap1 = bitmapDrawable1.getBitmap(); 70 Bitmap bitmap2 = bitmapDrawable2.getBitmap();
|
/external/webkit/WebCore/platform/graphics/chromium/ |
TransparencyWin.cpp | 123 // This bitmap will be empty if you don't specify needReferenceBuffer to the 134 // The destination bitmap we're drawing into. 254 // coordinate space of our bitmap. 414 SkBitmap* bitmap = const_cast<SkBitmap*>( local 420 // Fix up our bitmap, making it contain only the pixels which changed 423 SkAutoLockPixels lock(*bitmap); 424 for (int y = 0; y < bitmap->height(); y++) { 426 uint32_t* dest = bitmap->getAddr32(0, y); 427 for (int x = 0; x < bitmap->width(); x++) { 457 // Note that we need to specify the source layer subset, since the bitmap 469 const SkBitmap& bitmap = m_layerBuffer->context()->platformContext()->canvas()->getTopPlatformDevice().accessBitmap(true); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
AvoidXfermodeTest.java | 25 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.Config; 67 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888);
|