/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
HistogramView.java | 20 import android.graphics.Bitmap; 33 private Bitmap mBitmap; 40 class ComputeHistogramTask extends AsyncTask<Bitmap, Void, int[]> { 42 protected int[] doInBackground(Bitmap... params) { 44 Bitmap bitmap = params[0]; local 45 int w = bitmap.getWidth(); 46 int h = bitmap.getHeight(); 48 bitmap.getPixels(pixels, 0, w, 0, 0, w, h); 76 public void setBitmap(Bitmap bitmap) [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
BitmapRegionTileSource.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 78 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888; 83 // Although this is the same size as the Bitmap that is likely already 85 // thread. Thus to simplify, this source will decode its own bitmap. 86 Bitmap preview = decodePreview(path, previewSize); 125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { 134 if (bitmap == null) 164 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
DecodedImageResource.java | 19 import android.graphics.Bitmap; 33 * Container class for holding a bitmap resource used by the MediaResourceManager. This resource 40 private Bitmap mBitmap; 44 public DecodedImageResource(final String key, final Bitmap bitmap, int orientation) { 46 mBitmap = bitmap; 51 * Gets the contained bitmap. 54 public Bitmap getBitmap() { 64 * Attempt to reuse the bitmap in the image resource and repurpose it for something else. 65 * After this, the image resource will relinquish ownership on the bitmap resource so tha 192 Bitmap bitmap = getBitmap(); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
ContactResolver.java | 18 package com.android.mail.bitmap; 25 import com.android.bitmap.BitmapCache; 26 import com.android.bitmap.DecodeTask; 27 import com.android.bitmap.RequestKey; 28 import com.android.bitmap.ReusableBitmap; 32 import com.android.mail.bitmap.ContactRequest.ContactRequestHolder; 258 final ReusableBitmap bitmap = values[0].bitmap; local 261 if (bitmap == null && mCache != null) { 266 request.destination.onDecodeComplete(request.contactRequest, bitmap); 282 public final ReusableBitmap bitmap; field in class:ContactResolver.Result [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageViewTouchBase.java | 20 import android.graphics.Bitmap; 57 // The current bitmap being displayed. 64 // ImageViewTouchBase will pass a Bitmap to the Recycler if it has finished 65 // its use of that Bitmap. 67 public void recycle(Bitmap b); 120 public void setImageBitmap(Bitmap bitmap) { 121 setImageBitmap(bitmap, 0); 124 private void setImageBitmap(Bitmap bitmap, int rotation) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
NinePatchTexture.java | 20 import android.graphics.Bitmap; 47 protected Bitmap onGetBitmap() { 51 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 52 Bitmap bitmap = BitmapFactory.decodeResource( local 54 mBitmap = bitmap; 55 setSize(bitmap.getWidth(), bitmap.getHeight()); 56 byte[] chunkData = bitmap.getNinePatchChunk(); 59 : NinePatchChunk.deserialize(bitmap.getNinePatchChunk()) [all...] |
/art/runtime/gc/space/ |
malloc_space.cc | 52 StringPrintf("allocspace %s live-bitmap %d", name.c_str(), static_cast<int>(bitmap_index)), 54 CHECK(live_bitmap_.get() != nullptr) << "could not create allocspace live bitmap #" 57 StringPrintf("allocspace %s mark-bitmap %d", name.c_str(), static_cast<int>(bitmap_index)), 59 CHECK(live_bitmap_.get() != nullptr) << "could not create allocspace mark bitmap #" 239 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); local 241 bitmap->Clear(ptrs[i]); 257 // If the bitmaps are clamped, then the temp bitmap is actually the mark bitmap.
|
/cts/tests/tests/effect/src/android/effect/cts/ |
EffectTest.java | 19 import android.graphics.Bitmap; 101 Bitmap bitmap = createTestBitmap(); local 102 int inputTexture = mEnv.bitmapToTexture(bitmap); 105 effect.apply(inputTexture, bitmap.getWidth(), bitmap.getHeight(), outputTexture); 118 private Bitmap createTestBitmap() { 119 Bitmap testBitmap = Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CornerPathEffectTest.java | 19 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config; 55 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 56 Canvas canvas = new Canvas(bitmap); 81 int pixel = bitmap.getPixel(x, y);
|
DashPathEffectTest.java | 19 import android.graphics.Bitmap; 26 import android.graphics.Bitmap.Config; 45 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 46 bitmap.eraseColor(BACKGROUND); 58 Canvas canvas = new Canvas(bitmap); 67 assertEquals(FOREGROUND, bitmap.getPixel(x, y)); 69 assertEquals(BACKGROUND, bitmap.getPixel(x, y)); 72 assertEquals(BACKGROUND, bitmap.getPixel(x, y)) [all...] |
DiscretePathEffectTest.java | 20 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.Config; 55 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 56 bitmap.eraseColor(Color.TRANSPARENT); 58 Canvas canvas = new Canvas(bitmap); 80 int pixel = bitmap.getPixel(x, y);
|
EmbossMaskFilterTest.java | 20 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.Config; 53 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 54 bitmap.eraseColor(Color.BLACK); 56 Canvas c = new Canvas(bitmap); 64 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); 65 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)) [all...] |
PictureTest.java | 24 import android.graphics.Bitmap; 71 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 72 Canvas drawDest = new Canvas(bitmap); 88 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888) local 119 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
PathShapeTest.java | 20 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 55 Bitmap bitmap = Bitmap.createBitmap(SHAPE_SIZE, SHAPE_SIZE, Config.ARGB_8888); local 56 Canvas canvas = new Canvas(bitmap); 64 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50)); 75 if (bitmap.getPixel(25, i) == TEST_COLOR_2) { 78 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) { 81 if (bitmap.getPixel(i, i) == TEST_COLOR_2) [all...] |
RectShapeTest.java | 20 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 41 private void assertDrawSuccessfully(Bitmap bitmap, int width, int height, int color) { 44 assertEquals(color, bitmap.getPixel(i, j)); 51 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 52 Canvas canvas = new Canvas(bitmap); 59 assertDrawSuccessfully(bitmap, TEST_WIDTH, TEST_HEIGHT, TEST_COLOR_1) [all...] |
RoundRectShapeTest.java | 20 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 66 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 67 Canvas canvas = new Canvas(bitmap); 74 assertEquals(0, bitmap.getPixel(0, 0)); 75 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, 0)); 79 assertEquals(0, bitmap.getPixel(0, 0)); 80 assertEquals(TEST_COLOR_2, bitmap.getPixel(TEST_WIDTH / 2, 0)) [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
ResourceModifier.java | 21 import android.graphics.Bitmap; 50 public final Bitmap bitmap; field in class:ResourceModifier 55 bitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1); 56 int texWidth = bitmap.getWidth(); 57 int texHeight = bitmap.getHeight(); 62 repeatShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, 65 translatedShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, 72 scaledShader = new BitmapShader(bitmap, Shader.TileMode.MIRROR, 98 final float width = bitmap.getWidth() / 8.0f [all...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/recommendation/ |
UpdateRecommendationsService.java | 26 import android.graphics.Bitmap; 98 Bitmap bitmap = Glide.with(getApplicationContext()) local 103 notificationBuilder.setBitmap(bitmap);
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/service/ |
ListenerService.java | 23 import android.graphics.Bitmap; 103 Bitmap bitmap = Utils.loadBitmapFromAsset( local 118 .setBackground(bitmap)
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/service/ |
ListenerService.java | 23 import android.graphics.Bitmap; 103 Bitmap bitmap = Utils.loadBitmapFromAsset( local 118 .setBackground(bitmap)
|
/development/ndk/platforms/android-17/samples/Teapot/src/com/sample/helper/ |
NDKHelper.java | 26 import android.graphics.Bitmap; 45 // Load Bitmap 57 private Bitmap scaleBitmap(Bitmap bitmapToScale, float newWidth, float newHeight) 70 // recreate the new Bitmap and set it back 71 return Bitmap.createBitmap(bitmapToScale, 0, 0, bitmapToScale.getWidth(), 77 Bitmap bitmap = null; local 89 bitmap = BitmapFactory.decodeStream(new FileInputStream(file)); 92 bitmap = BitmapFactory.decodeStream(context.getResources().getAssets( 119 Bitmap bitmap = null; local [all...] |
/development/ndk/platforms/android-18/samples/MoreTeapots/src/com/sample/helper/ |
NDKHelper.java | 26 import android.graphics.Bitmap; 45 // Load Bitmap 57 private Bitmap scaleBitmap(Bitmap bitmapToScale, float newWidth, float newHeight) 70 // recreate the new Bitmap and set it back 71 return Bitmap.createBitmap(bitmapToScale, 0, 0, bitmapToScale.getWidth(), 77 Bitmap bitmap = null; local 89 bitmap = BitmapFactory.decodeStream(new FileInputStream(file)); 92 bitmap = BitmapFactory.decodeStream(context.getResources().getAssets( 119 Bitmap bitmap = null; local [all...] |
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/service/ |
ListenerService.java | 23 import android.graphics.Bitmap; 103 Bitmap bitmap = Utils.loadBitmapFromAsset( local 118 .setBackground(bitmap)
|
/external/freetype/include/ |
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...] |
/external/freetype/src/cache/ |
ftcsbits.c | 44 FT_Bitmap* bitmap, 48 FT_Int pitch = bitmap->pitch; 55 size = (FT_ULong)pitch * bitmap->rows; 58 FT_MEM_COPY( sbit->buffer, bitmap->buffer, size ); 92 * This function tries to load a small bitmap within a given FTC_SNode. 134 FT_Bitmap* bitmap = &slot->bitmap; local 141 " glyph loaded didn't return a bitmap\n" )); 146 /* If this is not the case, our bitmap is too large */ 156 if ( !CHECK_BYTE( bitmap->rows ) | [all...] |