| /cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
| NinePatchDrawableTest.java | 30 import android.graphics.Bitmap; 31 import android.graphics.Bitmap.Config; 98 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0); 117 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888); 269 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 281 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 293 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 305 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 315 // Known failure: Bug 2834281 - Bitmap#hasAlpha seems to return true fo 365 Bitmap bitmap = Bitmap.createBitmap( local 653 Bitmap bitmap = getBitmapUnscaled(resId); local 661 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resId, opts); local 668 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local [all...] |
| AdaptiveIconDrawableTest.java | 11 import android.graphics.Bitmap; 12 import android.graphics.Bitmap.Config; 147 final Bitmap bm_test = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888); 148 final Bitmap bm_org = bm_test.copy(Config.ARGB_8888, false); 176 final Bitmap bm_org = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 181 // Tested bitmap is drawn from the adaptive icon drawable 222 Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); local [all...] |
| /frameworks/base/graphics/java/android/graphics/ |
| Bitmap.java | 44 public final class Bitmap implements Parcelable { 45 private static final String TAG = "Bitmap"; 48 * Indicates that the bitmap was created for an unknown pixel density. 50 * @see Bitmap#getDensity() 51 * @see Bitmap#setDensity(int) 55 // Estimated size of the Bitmap native allocation, not including 65 * Represents whether the Bitmap's content is requested to be pre-multiplied. 67 * isPremultiplied() may never return true for a 565 Bitmap or a bitmap 73 * The native bitmap's premultiplication state is kept up to date b 824 Bitmap bitmap; local 1250 Bitmap bitmap = ThreadedRenderer.createHardwareBitmap(node, width, height); local 1256 Bitmap bitmap = Bitmap.createBitmap(width, height, config); local [all...] |
| /frameworks/base/services/core/java/com/android/server/am/ |
| TaskPersister.java | 20 import android.graphics.Bitmap; 117 Bitmap mImage; 119 ImageWriteQueueItem(String filePath, Bitmap image) { 303 void saveImage(Bitmap image, String filePath) { 311 // replace the Bitmap with the new one. 334 Bitmap getTaskDescriptionIcon(String filePath) { 336 final Bitmap icon = getImageFromWriteQueue(filePath); 343 Bitmap getImageFromWriteQueue(String filePath) { 600 static Bitmap restoreImage(String filename) { 723 final Bitmap bitmap = imageWriteQueueItem.mImage local [all...] |
| /frameworks/base/services/core/java/com/android/server/pm/ |
| InstantAppRegistry.java | 26 import android.graphics.Bitmap; 207 public Bitmap getInstantAppIconLPw(@NonNull String packageName, 513 final Bitmap bitmap; local 515 bitmap = ((BitmapDrawable) icon).getBitmap(); 517 bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), 518 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); 519 Canvas canvas = new Canvas(bitmap); 528 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out) [all...] |
| /packages/apps/Launcher2/src/com/android/launcher2/ |
| LauncherProvider.java | 43 import android.graphics.Bitmap; 731 Bitmap bitmap = Utilities.resampleIconBitmap( local 734 if (bitmap != null) { 736 data = ItemInfo.flattenBitmap(bitmap); 741 bitmap.recycle(); [all...] |
| /packages/apps/TV/tests/common/src/com/android/tv/testing/ |
| FakeTvProvider.java | 36 import android.graphics.Bitmap; 2427 Bitmap bitmap = BitmapFactory.decodeStream(is); local [all...] |
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| PathTest.java | 24 import android.graphics.Bitmap; 525 Bitmap actualBitmap = drawAndGetBitmap(actual); 526 Bitmap expectedBitmap = drawAndGetBitmap(expected); 533 private static Bitmap drawAndGetBitmap(Path path) { 534 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); local 535 bitmap.eraseColor(Color.BLACK); 538 Canvas canvas = new Canvas(bitmap); [all...] |
| /cts/tests/tests/media/src/android/media/cts/ |
| ExifInterfaceTest.java | 20 import android.graphics.Bitmap; 188 Bitmap bitmap = exifInterface.getThumbnailBitmap(); local 189 if (bitmap == null) { 192 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", " 193 + bitmap.getHeight()); 256 Bitmap thumbnailBitmap = exifInterface.getThumbnailBitmap();
|
| HeifWriterTest.java | 19 import android.graphics.Bitmap; 270 final Bitmap[] mBitmaps; 275 String inputPath, String outputPath, Bitmap[] bitmaps) { 302 Bitmap[] mBitmaps; 344 throw new IllegalArgumentException("no bitmap found!"); 351 mBitmaps = new Bitmap[mMaxNumImages]; 456 Bitmap[] bitmaps = config.mBitmaps; 616 Bitmap bitmap = BitmapFactory.decodeFile(filename); local 621 Color.valueOf(bitmap.getPixel(r.centerX(), r.centerY())))) [all...] |
| /cts/tests/tests/openglperf/src/android/openglperf/cts/ |
| PlanetsRenderer.java | 22 import android.graphics.Bitmap; 356 Bitmap bitmap = BitmapFactory.decodeStream(in); local 363 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
|
| /cts/tests/tests/view/src/android/view/cts/ |
| PixelCopyTest.java | 29 import android.graphics.Bitmap; 30 import android.graphics.Bitmap.Config; 104 Bitmap dest = null; 110 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); 117 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); 124 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888) 182 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 195 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 205 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 215 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 225 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 237 Bitmap bitmap = Bitmap.createBitmap(20, 20, Config.ARGB_8888); local 253 Bitmap bitmap = Bitmap.createBitmap(20, 20, Config.ARGB_8888); local 287 Bitmap bitmap; local 305 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 318 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 331 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 346 Bitmap bitmap = Bitmap.createBitmap(20, 20, Config.ARGB_8888); local 365 Bitmap bitmap; local 409 Bitmap bitmap; local 439 Bitmap bitmap; local 480 Bitmap bitmap; local 498 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 511 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 524 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 539 Bitmap bitmap = Bitmap.createBitmap(20, 20, Config.ARGB_8888); local 558 Bitmap bitmap; local 642 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local 690 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local [all...] |
| /cts/tests/tests/widget/src/android/widget/cts/ |
| ImageViewTest.java | 39 import android.graphics.Bitmap; 248 Bitmap.Config viewConfig = imageViewBitmap.getBitmap().getConfig(); 249 Bitmap testimageBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( 278 final Bitmap bitmap = local 280 mImageViewRegular.setImageBitmap(bitmap); 285 WidgetTestUtils.assertEquals(bitmap, imageViewBitmap.getBitmap());
|
| /development/apps/GestureBuilder/src/com/android/gesture/builder/ |
| GestureBuilderActivity.java | 43 import android.graphics.Bitmap; 353 final Bitmap bitmap = gesture.toBitmap(mThumbnailSize, mThumbnailSize, local 359 mAdapter.addBitmap(namedGesture.gesture.getID(), bitmap); local 417 void addBitmap(Long id, Bitmap bitmap) { 418 mThumbnails.put(id, new BitmapDrawable(bitmap));
|
| /development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ |
| AccelerometerPlayActivity.java | 21 import android.graphics.Bitmap; 128 private Bitmap mBitmap; 129 private Bitmap mWood; 356 Bitmap ball = BitmapFactory.decodeResource(getResources(), R.drawable.ball); 359 mBitmap = Bitmap.createScaledBitmap(ball, dstWidth, dstHeight, true); 363 opts.inPreferredConfig = Bitmap.Config.RGB_565; 370 // the bitmap 438 final Bitmap bitmap = mBitmap; local 449 canvas.drawBitmap(bitmap, x, y, null) [all...] |
| /development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/ |
| MainActivity.java | 24 import android.graphics.Bitmap; 102 private Bitmap mImageBitmap; 168 mImageBitmap = (Bitmap) extras.get("data"); 304 * Builds an {@link com.google.android.gms.wearable.Asset} from a bitmap. The image that we get 309 private static Asset toAsset(Bitmap bitmap) { 313 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream);
|
| /external/curl/lib/ |
| http2.c | 94 int bitmap = GETSOCK_BLANK; local 103 bitmap |= GETSOCK_READSOCK(FIRSTSOCKET); 106 bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET); 108 return bitmap; [all...] |
| multi.c | 899 int bitmap; local 908 bitmap = multi_getsock(data, sockbunch, MAX_SOCKSPEREASYHANDLE); 913 if((bitmap & GETSOCK_READSOCK(i)) && VALID_SOCK((sockbunch[i]))) { 917 if((bitmap & GETSOCK_WRITESOCK(i)) && VALID_SOCK((sockbunch[i]))) { 946 int bitmap; local 969 bitmap = multi_getsock(data, sockbunch, MAX_SOCKSPEREASYHANDLE); 974 if(bitmap & GETSOCK_READSOCK(i)) { 978 if(bitmap & GETSOCK_WRITESOCK(i)) { 1016 bitmap = multi_getsock(data, sockbunch, MAX_SOCKSPEREASYHANDLE); 1021 if(bitmap & GETSOCK_READSOCK(i)) [all...] |
| /external/jemalloc/include/jemalloc/internal/ |
| arena.h | 71 /* Per region allocated/deallocated bitmap. */ 72 bitmap_t bitmap[BITMAP_GROUPS_MAX]; member in struct:arena_run_s [all...] |
| /external/mesa3d/src/mesa/state_tracker/ |
| st_context.h | 185 } bitmap; member in struct:st_context
|
| /external/pdfium/third_party/libtiff/ |
| tif_fax3.c | 72 const unsigned char* bitmap; /* bit reversal table */ member in struct:__anon31500 116 const unsigned char* bitmap = sp->bitmap; /* input data bit reverser */ \ 163 sp->bitmap = [all...] |
| /external/skia/dm/ |
| DM.cpp | 852 SkBitmap bitmap; local 855 Error err = sink->draw(justOneRect, &bitmap, &stream, &log); 1096 SkBitmap bitmap; local [all...] |
| /external/skia/fuzz/ |
| FuzzCanvas.cpp | 255 SkBitmap bitmap; local 283 bitmap = make_fuzz_bitmap(fuzz); 288 return SkShader::MakeBitmapShader(bitmap, tmX, tmY, useMatrix ? &matrix : nullptr); [all...] |
| /external/skia/samplecode/ |
| SampleFilterFuzz.cpp | 240 static void rand_bitmap_for_canvas(SkBitmap* bitmap) { 245 } while (!valid_for_raster_canvas(info) || !bitmap->tryAllocPixels(info)); 248 static void make_g_bitmap(SkBitmap& bitmap) { 249 rand_bitmap_for_canvas(&bitmap); 251 SkCanvas canvas(bitmap); 262 static void make_checkerboard_bitmap(SkBitmap& bitmap) { 263 rand_bitmap_for_canvas(&bitmap); 265 SkCanvas canvas(bitmap); 287 static SkBitmap bitmap[2]; local 290 make_g_bitmap(bitmap[0]) [all...] |
| /external/skia/src/effects/ |
| SkBlurMaskFilter.cpp | 366 SkBitmap bitmap; local 367 bitmap.installMaskPixels(*mask); 369 SkCanvas canvas(bitmap); 384 SkBitmap bitmap; local 385 bitmap.installPixels(SkImageInfo::Make(mask->fBounds.width(), 391 SkCanvas canvas(bitmap); [all...] |