/development/samples/training/ContactsList/src/com/example/android/contactslist/util/ |
D | ImageLoader.java | 78 Bitmap bitmap = null; in loadImage() local 81 bitmap = mImageCache.getBitmapFromMemCache(String.valueOf(data)); in loadImage() 84 if (bitmap != null) { in loadImage() 86 imageView.setImageBitmap(bitmap); in loadImage() 210 Bitmap bitmap = null; in doInBackground() local 225 bitmap = processBitmap(params[0]); in doInBackground() 232 if (bitmap != null && mImageCache != null) { in doInBackground() 233 mImageCache.addBitmapToCache(dataString, bitmap); in doInBackground() 240 return bitmap; in doInBackground() 247 protected void onPostExecute(Bitmap bitmap) { in onPostExecute() argument [all …]
|
D | ImageCache.java | 89 protected int sizeOf(String key, Bitmap bitmap) { in init() 90 final int bitmapSize = getBitmapSize(bitmap) / 1024; in init() 101 public void addBitmapToCache(String data, Bitmap bitmap) { in addBitmapToCache() argument 102 if (data == null || bitmap == null) { in addBitmapToCache() 108 mMemoryCache.put(data, bitmap); in addBitmapToCache() 138 public static int getBitmapSize(Bitmap bitmap) { in getBitmapSize() argument 140 return bitmap.getByteCount(); in getBitmapSize() 143 return bitmap.getRowBytes() * bitmap.getHeight(); in getBitmapSize()
|
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/ |
D | RecyclingBitmapDrawable.java | 40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { in RecyclingBitmapDrawable() argument 41 super(res, bitmap); in RecyclingBitmapDrawable() 99 Bitmap bitmap = getBitmap(); in hasValidBitmap() local 100 return bitmap != null && !bitmap.isRecycled(); in hasValidBitmap()
|
D | ImageWorker.java | 107 public void setLoadingImage(Bitmap bitmap) { in setLoadingImage() argument 108 mLoadingBitmap = bitmap; in setLoadingImage() 253 Bitmap bitmap = null; in doInBackground() local 271 bitmap = mImageCache.getBitmapFromDiskCache(dataString); in doInBackground() 278 if (bitmap == null && !isCancelled() && getAttachedImageView() != null in doInBackground() 280 bitmap = processBitmap(params[0]); in doInBackground() 287 if (bitmap != null) { in doInBackground() 290 drawable = new BitmapDrawable(mResources, bitmap); in doInBackground() 294 drawable = new RecyclingBitmapDrawable(mResources, bitmap); in doInBackground() 361 public AsyncDrawable(Resources res, Bitmap bitmap, BitmapWorkerTask bitmapWorkerTask) { in AsyncDrawable() argument [all …]
|
D | ImageCache.java | 297 Bitmap bitmap = null; in getBitmapFromDiskCache() local 319 bitmap = ImageResizer.decodeSampledBitmapFromDescriptor( in getBitmapFromDiskCache() 333 return bitmap; in getBitmapFromDiskCache() 342 Bitmap bitmap = null; in getBitmapFromReusableSet() local 354 bitmap = item; in getBitmapFromReusableSet() 367 return bitmap; in getBitmapFromReusableSet() 556 Bitmap bitmap = value.getBitmap(); in getBitmapSize() local 559 return bitmap.getByteCount(); in getBitmapSize() 562 return bitmap.getRowBytes() * bitmap.getHeight(); in getBitmapSize()
|
D | ImageFetcher.java | 242 Bitmap bitmap = null; in processBitmap() local 244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth, in processBitmap() 252 return bitmap; in processBitmap()
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
D | BitmapUtils.java | 63 Bitmap bitmap = getBitmap(resources, resourceId); in loadPhotos() local 64 Bitmap thumbnail = getThumbnail(bitmap, 200); in loadPhotos() 76 Bitmap bitmap = sBitmapResourceMap.get(resourceId); in getBitmap() local 77 if (bitmap == null) { in getBitmap() 78 bitmap = BitmapFactory.decodeResource(resources, resourceId); in getBitmap() 79 sBitmapResourceMap.put(resourceId, bitmap); in getBitmap() 81 return bitmap; in getBitmap()
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
D | ImageDownloader.java | 111 Bitmap bitmap = getBitmapFromCache(url); in download() local 113 if (bitmap == null) { in download() 117 imageView.setImageBitmap(bitmap); in download() 206 final Bitmap bitmap = sHardBitmapCache.get(url); in getBitmapFromCache() local 207 if (bitmap != null) { in getBitmapFromCache() 211 sHardBitmapCache.put(url, bitmap); in getBitmapFromCache() 212 return bitmap; in getBitmapFromCache() 219 final Bitmap bitmap = bitmapReference.get(); in getBitmapFromCache() local 220 if (bitmap != null) { in getBitmapFromCache() 222 return bitmap; in getBitmapFromCache() [all …]
|
D | ContactPhotoBinder.java | 79 Bitmap bitmap = BitmapFactory.decodeStream(stream); in bind() local 80 d = new BitmapDrawable(mResources, bitmap); in bind()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | DensityActivity.java | 135 Bitmap bitmap; in addBitmapDrawable() local 136 bitmap = loadAndPrintDpi(resource, scale); in addBitmapDrawable() 140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); in addBitmapDrawable() 161 Bitmap bitmap; in addCanvasBitmap() local 162 bitmap = loadAndPrintDpi(resource, scale); in addCanvasBitmap() 164 ScaledBitmapView view = new ScaledBitmapView(this, bitmap); in addCanvasBitmap() 185 Bitmap bitmap; in loadAndPrintDpi() local 187 bitmap = BitmapFactory.decodeResource(getResources(), id); in loadAndPrintDpi() 191 bitmap = BitmapFactory.decodeResource(getResources(), id, opts); in loadAndPrintDpi() 193 return bitmap; in loadAndPrintDpi() [all …]
|
D | StaticTriangleRenderer.java | 191 Bitmap bitmap; in load() local 193 bitmap = BitmapFactory.decodeStream(is); in load() 202 GLUtils.texImage2D(GL_TEXTURE_2D, 0, bitmap, 0); in load() 203 bitmap.recycle(); in load()
|
D | TriangleRenderer.java | 93 Bitmap bitmap; in onSurfaceCreated() local 95 bitmap = BitmapFactory.decodeStream(is); in onSurfaceCreated() 104 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated() 105 bitmap.recycle(); in onSurfaceCreated()
|
D | GLES20TriangleRenderer.java | 140 Bitmap bitmap; in onSurfaceCreated() local 142 bitmap = BitmapFactory.decodeStream(is); in onSurfaceCreated() 151 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated() 152 bitmap.recycle(); in onSurfaceCreated()
|
D | MatrixPaletteRenderer.java | 281 Bitmap bitmap; in onSurfaceCreated() local 283 bitmap = BitmapFactory.decodeStream(is); in onSurfaceCreated() 292 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated() 293 bitmap.recycle(); in onSurfaceCreated()
|
/development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/ |
D | BitmapScaling.java | 46 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), in onCreate() local 48 originalImageView.setImageBitmap(bitmap); in onCreate() 51 addScaledImageView(bitmap, i, container); in onCreate()
|
/development/samples/devbytes/animation/KeyframeAnimation/src/com/example/android/keyframeanimation/ |
D | KeyframeAnimation.java | 75 Bitmap bitmap = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888); in getDrawableForFrameNumber() local 76 Canvas canvas = new Canvas(bitmap); in getDrawableForFrameNumber() 82 return new BitmapDrawable(getResources(), bitmap); in getDrawableForFrameNumber()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/content/ |
D | FileProviderExample.java | 65 final Bitmap bitmap = Bitmap.createBitmap( in saveThumbnail() local 67 final Canvas canvas = new Canvas(bitmap); in saveThumbnail() 73 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os); in saveThumbnail()
|
/development/samples/Snake/src/com/example/android/snake/ |
D | TileView.java | 100 Bitmap bitmap = Bitmap.createBitmap(mTileSize, mTileSize, Bitmap.Config.ARGB_8888); in loadTile() local 101 Canvas canvas = new Canvas(bitmap); in loadTile() 105 mTileArray[key] = bitmap; in loadTile()
|
/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/ |
D | PictureViewer.java | 64 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), in onCreate() local 66 drawables[i] = new BitmapDrawable(getResources(), bitmap); in onCreate()
|
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
D | GLES20TriangleRenderer.java | 138 Bitmap bitmap; in onSurfaceCreated() local 140 bitmap = BitmapFactory.decodeStream(is); in onSurfaceCreated() 149 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated() 150 bitmap.recycle(); in onSurfaceCreated()
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
D | HelloEffects.java | 75 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), in loadTextures() local 77 mImageWidth = bitmap.getWidth(); in loadTextures() 78 mImageHeight = bitmap.getHeight(); in loadTextures() 83 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); in loadTextures()
|
/development/ndk/platforms/android-8/samples/bitmap-plasma/src/com/example/plasma/ |
D | Plasma.java | 46 private static native void renderPlasma(Bitmap bitmap, long time_ms); in renderPlasma() argument
|
/development/ndk/platforms/android-3/include/linux/raid/ |
D | md_k.h | 160 struct bitmap *bitmap; member
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
D | SpriteTextRenderer.java | 100 Bitmap bitmap; in onSurfaceCreated() local 102 bitmap = BitmapFactory.decodeStream(is); in onSurfaceCreated() 111 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); in onSurfaceCreated() 112 bitmap.recycle(); in onSurfaceCreated()
|
/development/ndk/platforms/android-8/samples/bitmap-plasma/jni/ |
D | plasma.c | 363 …example_plasma_PlasmaView_renderPlasma(JNIEnv * env, jobject obj, jobject bitmap, jlong time_ms) in Java_com_example_plasma_PlasmaView_renderPlasma() argument 377 if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { in Java_com_example_plasma_PlasmaView_renderPlasma() 387 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { in Java_com_example_plasma_PlasmaView_renderPlasma() 396 AndroidBitmap_unlockPixels(env, bitmap); in Java_com_example_plasma_PlasmaView_renderPlasma()
|