/external/freetype/include/freetype/ |
ftbitmap.h | 42 /* Bitmap Handling */ 62 /* abitmap :: A pointer to the bitmap structure. */ 74 /* Copy a bitmap into another one. */ 79 /* source :: A handle to the source bitmap. */ 82 /* target :: A handle to the target bitmap. */ 99 /* Embolden a bitmap. The new bitmap will be about `xStrength' */ 113 /* bitmap :: A handle to the target bitmap. */ 120 /* or equal to~8 if bitmap is of pixel_mode @FT_PIXEL_MODE_MONO. * [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
BitmapFactory.java | 31 * Creates Bitmap objects from various sources, including files, streams, 46 * If set to true, the decoder will return null (no bitmap), but 48 * the bitmap without having to allocate the memory for its pixels. 56 * pixel in the decoded bitmap. For example, inSampleSize == 4 returns 59 * decoder will try to fulfill this request, but the resulting bitmap 72 public Bitmap.Config inPreferredConfig; 81 * The pixel density to use for the bitmap. This will always result 82 * in the returned bitmap having a density set for it (see 83 * {@link Bitmap#setDensity(int) Bitmap.setDensity(int)). In addition [all...] |
/frameworks/policies/base/phone/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...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapFactoryTest.java | 26 import android.graphics.Bitmap; 85 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, 88 // Test the bitmap size 91 // Test if no bitmap 101 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); 103 // Test the bitmap size 115 Bitmap b = BitmapFactory.decodeByteArray(array, 0, array.length, mOpt1); 117 // Test the bitmap size 120 // Test if no bitmap 131 Bitmap b = BitmapFactory.decodeByteArray(array, 0, array.length) 234 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, opt); local [all...] |
SumPathEffectTest.java | 23 import android.graphics.Bitmap; 32 import android.graphics.Bitmap.Config; 49 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); local 50 bitmap.eraseColor(Color.BLACK); 51 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 72 canvas = new Canvas(bitmap); 77 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j)) [all...] |
Bitmap_CompressFormatTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.CompressFormat; 22 import android.graphics.Bitmap.Config; 29 @TestTargetClass(Bitmap.CompressFormat.class) 51 args = {android.graphics.Bitmap.CompressFormat.class, int.class, 63 Bitmap b = Bitmap.createBitmap(10, 24, Config.ARGB_8888);
|
Bitmap_ConfigTest.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 25 @TestTargetClass(Bitmap.Config.class) 55 assertNotNull(Bitmap.createBitmap(10, 24, Config.ALPHA_8)); 56 assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_4444)); 57 assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_8888)); 58 assertNotNull(Bitmap.createBitmap(10, 24, Config.RGB_565));
|
/dalvik/tests/079-phantom/src/ |
Bitmap.java | 21 public class Bitmap { 24 Bitmap.NativeWrapper mNativeWrapper; 35 Bitmap(String name, int width, int height, Bitmap.NativeWrapper nativeData) { 45 return "Bitmap " + mName + ": " + mWidth + "x" + mHeight + " (" + 60 System.out.println("Bitmap has shut down"); 67 static Bitmap.NativeWrapper allocNativeStorage(int width, int height) { 70 synchronized (Bitmap.class) { 74 Bitmap.NativeWrapper wrapper = new Bitmap.NativeWrapper(nativeData) [all...] |
/external/oprofile/libdb/ |
db_debug.c | 21 unsigned char * bitmap = malloc(data->descr->current_size); local 22 memset(bitmap, '\0', data->descr->current_size); 29 if (bitmap[index]) 32 bitmap[index] = 1; 41 memset(bitmap, '\0', data->descr->current_size); 46 if (bitmap[index]) 49 bitmap[index] = 1; 59 bitmap[index] = 1; 64 free(bitmap); 73 unsigned char * bitmap = malloc(max + 1) local [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
BitmapDrawable.java | 21 import android.graphics.Bitmap; 40 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a 42 * a {@link android.graphics.Bitmap} object. 43 * <p>It can be defined in an XML file with the <code><bitmap></code> element.</p> 45 * Also see the {@link android.graphics.Bitmap} class, which handles the management and 46 * transformation of raw bitmap graphics, and should be used when drawing to a 62 private Bitmap mBitmap; 82 mBitmapState = new BitmapState((Bitmap) null); 90 mBitmapState = new BitmapState((Bitmap) null); 95 * Create drawable from a bitmap, not dealing with density 297 Bitmap bitmap = mBitmap; local 371 final Bitmap bitmap = BitmapFactory.decodeResource(r, id); local [all...] |
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 23 import android.graphics.Bitmap; 49 /* Maximum pixels size for created bitmap. */ 60 * {@link #extractThumbnail(Bitmap, int, int, int)} unless the output is the input. 86 * @return Bitmap 90 public static Bitmap createImageThumbnail(String filePath, int kind) { 99 Bitmap bitmap = null; local 103 bitmap = sizedThumbnailBitmap.mBitmap; 106 if (bitmap == null) { 122 options.inPreferredConfig = Bitmap.Config.ARGB_8888 146 Bitmap bitmap = null; local [all...] |
/frameworks/base/core/java/android/emoji/ |
EmojiFactory.java | 19 import android.graphics.Bitmap; 36 // HashMap for caching Bitmap object. In order not to make an cache object 60 private Map<Integer, WeakReference<Bitmap>> mCache; 74 mCache = new CustomLinkedHashMap<Integer, WeakReference<Bitmap>>(); 91 * Returns Bitmap object corresponding to the AndroidPua. 93 * Note that each Bitmap is cached by this class, which means that, if you modify a 94 * Bitmap object (using setPos() method), all same emoji Bitmap will be modified. 98 * @return Bitmap object when this factory knows the Bitmap relevant to the codepoint [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
VideoAttachmentView.java | 24 import android.graphics.Bitmap; 68 public void setImage(String name, Bitmap bitmap) { 89 Bitmap bitmap = createVideoThumbnail(mContext, video); local 90 if (null == bitmap) { 91 bitmap = BitmapFactory.decodeResource(getResources(), 94 mThumbnailView.setImageBitmap(bitmap); 97 public static Bitmap createVideoThumbnail(Context context, Uri uri) { 98 Bitmap bitmap = null local [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ArcShapeTest.java | 23 import android.graphics.Bitmap; 26 import android.graphics.Bitmap.Config; 63 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 64 Canvas canvas = new Canvas(bitmap); 71 // check the color at the center of bitmap 72 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 82 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
OvalShapeTest.java | 23 import android.graphics.Bitmap; 26 import android.graphics.Bitmap.Config; 58 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 59 Canvas canvas = new Canvas(bitmap); 66 // check the color at the center of bitmap 67 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 76 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
/external/skia/src/gl/ |
SkGLDevice_SWLayer.cpp | 4 SkGLDevice_SWLayer::SkGLDevice_SWLayer(const SkBitmap& bitmap) 5 : SkGLDevice(bitmap, true) { 8 SkASSERT(bitmap.getPixels()); 18 const SkBitmap& bitmap = this->accessBitmap(false); local 21 fTextureID = SkGL::BindNewTexture(bitmap, NULL); 49 void SkGLDevice_SWLayer::drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, 51 draw.drawBitmap(bitmap, matrix, paint); 54 void SkGLDevice_SWLayer::drawSprite(const SkDraw& draw, const SkBitmap& bitmap, 56 draw.drawSprite(bitmap, x, y, paint);
|
/external/webkit/WebCore/platform/graphics/android/ |
BitmapAllocatorAndroid.cpp | 57 bool BitmapAllocatorAndroid::allocPixelRef(SkBitmap* bitmap, SkColorTable*) 60 if (should_use_ashmem(*bitmap)) { 61 // SkDebugf("ashmem [%d %d]\n", bitmap->width(), bitmap->height()); 62 ref = new SkImageRef_ashmem(fStream, bitmap->config(), fSampleSize); 64 // SkDebugf("globalpool [%d %d]\n", bitmap->width(), bitmap->height()); 65 ref = new SkImageRef_GlobalPool(fStream, bitmap->config(), fSampleSize); 67 bitmap->setPixelRef(ref)->unref();
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
SimpleStringTexture.java | 19 import android.graphics.Bitmap; 47 protected Bitmap load(RenderView view) { 71 // Draw string into bitmap with a 1px margin for anti-aliasing. 74 Bitmap bitmap = Bitmap local 75 .createBitmap(bounds.width() + padding + padding, height + padding + padding, Bitmap.Config.ARGB_8888); 76 Canvas canvas = new Canvas(bitmap); 82 return bitmap;
|
UriTexture.java | 50 import android.graphics.Bitmap; 109 public static final Bitmap createFromUri(Context context, String uri, int maxResolutionX, int maxResolutionY, long cacheId, 113 options.inPreferredConfig = Bitmap.Config.RGB_565; 116 Bitmap bitmap = null; local 123 bitmap = createFromCache(crc64, maxResolutionX); 124 if (bitmap != null) { 125 return bitmap; 148 // Get the input stream again for decoding it to a bitmap. 160 // Decode bufferedInput to a bitmap 226 Bitmap bitmap = null; local 264 Bitmap bitmap = null; local 282 Bitmap bitmap; local [all...] |
/external/e2fsprogs/tests/f_illbbitmap/ |
expect.1 | 1 Note: if several inode or block bitmap blocks or part 7 Block bitmap for group 0 is not in group. (block 4096) 13 Relocating group 0's block bitmap to 4... 18 Block bitmap differences: +(1--21) 21 Inode bitmap differences: -(12--21)
|
/external/skia/xcode/hostapp/ |
test.cpp | 33 SkBitmap bitmap; local 34 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 640, 480); 35 bitmap.allocPixels(); 37 SkCanvas canvas(bitmap); 40 gImage = SkCreateCGImageRef(bitmap);
|
/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/plugin/include/ |
ipa-reference.h | 23 #include "bitmap.h" 27 bitmap ipa_reference_get_read_global (struct cgraph_node *fn); 28 bitmap ipa_reference_get_written_global (struct cgraph_node *fn); 29 bitmap ipa_reference_get_not_read_global (struct cgraph_node *fn); 30 bitmap ipa_reference_get_not_written_global (struct cgraph_node *fn);
|
/external/freetype/src/base/ |
ftbitmap.c | 99 FT_Bitmap* bitmap, 111 width = bitmap->width; 112 height = bitmap->rows; 113 pitch = bitmap->pitch; 117 switch ( bitmap->pixel_mode ) 151 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); 152 FT_Byte* end = bitmap->buffer + pitch; 176 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels ) ) 179 if ( bitmap->pitch > 0 ) 184 for ( i = 0; i < bitmap->rows; i++ 622 FT_Bitmap bitmap; local [all...] |
/external/freetype/src/smooth/ |
ftsmooth.c | 97 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 145 bitmap = &slot->bitmap; 151 /* release old bitmap buffer */ 154 FT_FREE( bitmap->buffer ); 212 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 213 bitmap->num_grays = 256; 214 bitmap->width = width; 215 bitmap->rows = height [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
PhotoAppWidgetProvider.java | 29 import android.graphics.Bitmap; 77 Bitmap bitmap = helper.getPhoto(appWidgetId); local 78 if (bitmap != null) { 81 views.setImageViewBitmap(R.id.photo, bitmap); 120 * Store the given bitmap in this database for the given appWidgetId. 122 public boolean setPhoto(int appWidgetId, Bitmap bitmap) { 128 int size = bitmap.getWidth() * bitmap.getHeight() * 4 166 Bitmap bitmap = null; local [all...] |