| /packages/apps/Email/tests/src/com/android/email/provider/ |
| AttachmentProviderTests.java | 23 import android.graphics.Bitmap; 661 Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), local 664 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
| ImageCurves.java | 20 import android.graphics.Bitmap; 335 class ComputeHistogramTask extends AsyncTask<Bitmap, Void, int[]> { 337 protected int[] doInBackground(Bitmap... params) { 339 Bitmap bitmap = params[0]; local 340 int w = bitmap.getWidth(); 341 int h = bitmap.getHeight(); 343 bitmap.getPixels(pixels, 0, w, 0, 0, w, h);
|
| /packages/apps/Launcher3/src/com/android/launcher3/ |
| Utilities.java | 36 import android.graphics.Bitmap; 130 public static Bitmap createIconBitmap(Cursor c, int iconIndex, Context context) { 140 * Returns a bitmap suitable for the all apps view. If the package or the resource do not 143 public static Bitmap createIconBitmap(String packageName, String resourceName, 166 * Returns a bitmap which is of the appropriate size to be displayed as an icon 168 public static Bitmap createIconBitmap(Bitmap icon, Context context) { 177 * Returns a bitmap suitable for the all apps view. 179 public static Bitmap createIconBitmap(Drawable icon, Context context) { 191 // Ensure the bitmap has a density 193 Bitmap bitmap = bitmapDrawable.getBitmap(); local 214 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
| /art/runtime/gc/collector/ |
| mark_compact.cc | 93 // Set the bit in the bitmap so that we know to restore it later. 122 // Visit all the marked objects in the bitmap. 135 // TODO: I don't think we should need heap bitmap lock to Get the mark bitmap. 187 // Bitmap which describes which objects we have to move. 190 // Bitmap which describes which lock words we need to restore. 392 // No mod union table, so we need to scan the space using bitmap visit. 393 // Scan the space using bitmap visit. 394 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); local 395 if (bitmap != nullptr) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
| AnimatedVectorDrawableTest.java | 20 import android.graphics.Bitmap; 49 private Bitmap mBitmap; 62 mBitmap = Bitmap.createBitmap(IMAGE_WIDTH, IMAGE_HEIGHT, Bitmap.Config.ARGB_8888); 71 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int resId) throws IOException { 91 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
| NinePatchDrawableTest.java | 26 import android.graphics.Bitmap; 36 import android.graphics.Bitmap.Config; 67 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0); 85 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888); 229 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 240 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 251 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 262 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 272 // Known failure: Bug 2834281 - Bitmap#hasAlpha seems to return true fo 317 Bitmap bitmap = Bitmap.createBitmap(COLOR, width, height, Bitmap.Config.RGB_565); local 365 Bitmap bitmap = getBitmapUnscaled(resId); local 373 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resId, opts); local [all...] |
| VectorDrawableTest.java | 20 import android.graphics.Bitmap; 114 private Bitmap mBitmap; 123 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 137 // Setup VectorDrawable from xml file and draw into the bitmap. 160 Bitmap golden = BitmapFactory.decodeResource(mResources, goldenImages[i]); 167 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int[] resIds, int index) throws IOException { 187 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out) [all...] |
| /cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
| ActivityTestBase.java | 19 import android.graphics.Bitmap; 126 static int[] getBitmapPixels(Bitmap bitmap) { 127 int[] pixels = new int[bitmap.getWidth() * bitmap.getHeight()]; 128 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 129 0, 0, bitmap.getWidth(), bitmap.getHeight()); 133 private Bitmap takeScreenshotImpl(Point testOffset) [all...] |
| /developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
| MainActivity.java | 24 import android.graphics.Bitmap; 160 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo); local 166 mAssetFragment.setBackgroundImage(bitmap); 250 * Extracts {@link android.graphics.Bitmap} data from the 253 private Bitmap loadBitmapFromAsset(GoogleApiClient apiClient, Asset asset) {
|
| /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
| ImageFetcher.java | 20 import android.graphics.Bitmap; 185 * @param data The data to load the bitmap, in this case, a regular http URL 186 * @return The downloaded and resized bitmap 188 private Bitmap processBitmap(String data) { 242 Bitmap bitmap = null; local 244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth, 252 return bitmap; 256 protected Bitmap processBitmap(Object data) { 261 * Download a bitmap from a URL and write the content to an output stream [all...] |
| ImageWorker.java | 21 import android.graphics.Bitmap; 37 * This class wraps up completing some arbitrary long running work when loading a bitmap to an 47 private Bitmap mLoadingBitmap; 70 * will be created to asynchronously load the bitmap. 87 // Bitmap found in memory cache 105 * Set placeholder bitmap that shows when the the background thread is running. 107 * @param bitmap 109 public void setLoadingImage(Bitmap bitmap) { 110 mLoadingBitmap = bitmap; 258 Bitmap bitmap = null; local [all...] |
| /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
| ImageFetcher.java | 20 import android.graphics.Bitmap; 185 * @param data The data to load the bitmap, in this case, a regular http URL 186 * @return The downloaded and resized bitmap 188 private Bitmap processBitmap(String data) { 242 Bitmap bitmap = null; local 244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth, 252 return bitmap; 256 protected Bitmap processBitmap(Object data) { 261 * Download a bitmap from a URL and write the content to an output stream [all...] |
| ImageWorker.java | 21 import android.graphics.Bitmap; 37 * This class wraps up completing some arbitrary long running work when loading a bitmap to an 47 private Bitmap mLoadingBitmap; 70 * will be created to asynchronously load the bitmap. 87 // Bitmap found in memory cache 105 * Set placeholder bitmap that shows when the the background thread is running. 107 * @param bitmap 109 public void setLoadingImage(Bitmap bitmap) { 110 mLoadingBitmap = bitmap; 258 Bitmap bitmap = null; local [all...] |
| /developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
| MainActivity.java | 24 import android.graphics.Bitmap; 160 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo); local 166 mAssetFragment.setBackgroundImage(bitmap); 250 * Extracts {@link android.graphics.Bitmap} data from the 253 private Bitmap loadBitmapFromAsset(GoogleApiClient apiClient, Asset asset) {
|
| /development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
| ImageDownloader.java | 24 import android.graphics.Bitmap; 62 private final static HashMap<String, Bitmap> sHardBitmapCache = 63 new LinkedHashMap<String, Bitmap>(HARD_CACHE_CAPACITY / 2, 0.75f, true) { 66 protected boolean removeEldestEntry(Map.Entry<String, Bitmap> eldest) { 69 sSoftBitmapCache.put(eldest.getKey(), new SoftReference<Bitmap>(eldest.getValue())); 77 // Soft cache for bitmap kicked out of hard cache 78 private final static ConcurrentHashMap<String, SoftReference<Bitmap>> sSoftBitmapCache = 79 new ConcurrentHashMap<String, SoftReference<Bitmap>>(HARD_CACHE_CAPACITY / 2); 92 * otherwise. A null bitmap will be associated to the ImageView if an error occurs. 111 Bitmap bitmap = getBitmapFromCache(url) local 206 final Bitmap bitmap = sHardBitmapCache.get(url); local 219 final Bitmap bitmap = bitmapReference.get(); local 278 final Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local [all...] |
| /development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/ |
| MainActivity.java | 24 import android.graphics.Bitmap; 160 final Bitmap bitmap = loadBitmapFromAsset(mGoogleApiClient, photo); local 166 mAssetFragment.setBackgroundImage(bitmap); 250 * Extracts {@link android.graphics.Bitmap} data from the 253 private Bitmap loadBitmapFromAsset(GoogleApiClient apiClient, Asset asset) {
|
| /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
| ImageFetcher.java | 20 import android.graphics.Bitmap; 185 * @param data The data to load the bitmap, in this case, a regular http URL 186 * @return The downloaded and resized bitmap 188 private Bitmap processBitmap(String data) { 242 Bitmap bitmap = null; local 244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth, 252 return bitmap; 256 protected Bitmap processBitmap(Object data) { 261 * Download a bitmap from a URL and write the content to an output stream [all...] |
| ImageWorker.java | 21 import android.graphics.Bitmap; 37 * This class wraps up completing some arbitrary long running work when loading a bitmap to an 47 private Bitmap mLoadingBitmap; 70 * will be created to asynchronously load the bitmap. 87 // Bitmap found in memory cache 105 * Set placeholder bitmap that shows when the the background thread is running. 107 * @param bitmap 109 public void setLoadingImage(Bitmap bitmap) { 110 mLoadingBitmap = bitmap; 258 Bitmap bitmap = null; local [all...] |
| /development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/ |
| ImagePixelization.java | 20 import android.graphics.Bitmap; 59 Bitmap mImageBitmap; 66 Bitmap mPixelatedBitmap; 155 public BitmapDrawable customImagePixelization(float pixelizationFactor, Bitmap bitmap) { 157 int width = bitmap.getWidth(); 158 int height = bitmap.getHeight(); 162 mPixelatedBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 172 bitmap.getPixels(bitmapPixels, 0, width, 0, 0, width, height) [all...] |
| /development/samples/training/ContactsList/src/com/example/android/contactslist/util/ |
| ImageLoader.java | 21 import android.graphics.Bitmap; 38 * This class wraps up completing some arbitrary long running work when loading a bitmap to an 47 private Bitmap mLoadingBitmap; 67 * created to asynchronously load the bitmap. 78 Bitmap bitmap = null; local 81 bitmap = mImageCache.getBitmapFromMemCache(String.valueOf(data)); 84 if (bitmap != null) { 85 // Bitmap found in memory cache 86 imageView.setImageBitmap(bitmap); 210 Bitmap bitmap = null; local [all...] |
| /external/fio/ |
| smalloc.c | 24 #define SMALLOC_BPB 32 /* block size, bytes-per-bit in bitmap */ 40 unsigned int *bitmap; /* blocks free/busy map */ member in struct:pool 113 map = &pool->bitmap[pool_idx]; 216 pool->bitmap = (void *) ptr + (pool->nr_blocks * SMALLOC_BPL); 390 if (pool->bitmap[i] == -1U) { 397 idx = find_next_zero(pool->bitmap[i], last_idx);
|
| /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
| ImageHeaderParser.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.GIF; 4 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.JPEG; 5 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.PNG; 6 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.PNG_A; 7 import static com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType.UNKNOWN;
|
| /external/pdfium/core/src/fxge/win32/ |
| fx_win32_dwrite.cpp | 429 BITMAP bitmap; local 430 GetObject(hBitmap, sizeof bitmap, &bitmap); 433 bitmap.bmWidth, 434 bitmap.bmHeight, 435 bitmap.bmBitsPixel == 24 ? FXDIB_Rgb : FXDIB_Rgb32, 436 (FX_LPBYTE)bitmap.bmBits
|
| /external/selinux/checkpolicy/test/ |
| dismod.c | 344 ebitmap_t *bitmap; local 348 bitmap = &(p->user_val_to_struct[i]->roles.roles); 349 for (j = ebitmap_startbit(bitmap); j < ebitmap_length(bitmap); 351 if (ebitmap_get_bit(bitmap, j)) {
|
| /external/skia/src/core/ |
| SkPicturePlayback.cpp | 64 static SkBitmap shallow_copy(const SkBitmap& bitmap) { 65 return bitmap; 161 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local 163 canvas->drawBitmap(bitmap, loc.fX, loc.fY, paint); 167 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local 172 canvas->drawBitmapRectToRect(bitmap, src, dst, paint, flags); 176 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local 182 canvas->drawBitmap(bitmap, 0, 0, paint); 186 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local 189 canvas->drawBitmapNine(bitmap, src, dst, paint) 326 const SkBitmap bitmap = shallow_copy(fPictureData->getBitmap(reader)); local [all...] |