/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/ |
H A D | ImageWorker.java | 36 * This class wraps up completing some arbitrary long running work when loading a bitmap to an 69 * bitmap. 79 Bitmap bitmap = null; 82 bitmap = mImageCache.getBitmapFromMemCache(String.valueOf(data)); 85 if (bitmap != null) { 87 imageView.setImageBitmap(bitmap); 102 * Set placeholder bitmap that shows when the the background thread is running. 104 * @param bitmap 106 public void setLoadingImage(Bitmap bitmap) { argument 107 mLoadingBitmap = bitmap; 291 onPostExecute(Bitmap bitmap) argument 307 onCancelled(Bitmap bitmap) argument 339 AsyncDrawable(Resources res, Bitmap bitmap, BitmapWorkerTask bitmapWorkerTask) argument 356 setImageBitmap(ImageView imageView, Bitmap bitmap) argument [all...] |
H A D | ImageCache.java | 43 * This class holds our bitmap caches (memory and disk). 132 * for a bitmap cache 135 protected int sizeOf(String key, Bitmap bitmap) { 136 return getBitmapSize(bitmap); 184 * Adds a bitmap to both memory and disk cache. 185 * @param data Unique identifier for the bitmap to store 186 * @param bitmap The bitmap to store 188 public void addBitmapToCache(String data, Bitmap bitmap) { argument 189 if (data == null || bitmap 464 getBitmapSize(Bitmap bitmap) argument [all...] |
H A D | ImageFetcher.java | 185 * @param data The data to load the bitmap, in this case, a regular http URL 186 * @return The downloaded and resized bitmap 242 Bitmap bitmap = null; 244 bitmap = decodeSampledBitmapFromDescriptor(fileDescriptor, mImageWidth, mImageHeight); 251 return bitmap; 260 * Download a bitmap from a URL and write the content to an output stream.
|
/development/samples/BrowserPlugin/jni/ |
H A D | RenderingThread.cpp | 144 void RenderingThread::setupNativeWindow(ANativeWindow* ANW, const SkBitmap& bitmap) argument 146 int result = ANativeWindow_setBuffersGeometry(ANW, bitmap.width(), 147 bitmap.height(), WINDOW_FORMAT_RGBA_8888); 168 updateNativeWindow(ANW, bitmap); 172 const SkBitmap& bitmap) 175 if (bitmap.height() == 0 || bitmap.width() == 0) 187 bitmap.lockPixels(); 188 uint8_t* bitmapOrigin = static_cast<uint8_t*>(bitmap.getPixels()); 190 for (row = 0 ; row < bitmap 171 updateNativeWindow(ANativeWindow* ANW, const SkBitmap& bitmap) argument [all...] |
H A D | RenderingThread.h | 56 void setupNativeWindow(ANativeWindow* ANW, const SkBitmap& bitmap); 57 void updateNativeWindow(ANativeWindow* ANW, const SkBitmap& bitmap);
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
H A D | ImageDownloader.java | 77 // Soft cache for bitmap kicked out of hard cache 92 * otherwise. A null bitmap will be associated to the ImageView if an error occurs. 111 Bitmap bitmap = getBitmapFromCache(url); 113 if (bitmap == null) { 117 imageView.setImageBitmap(bitmap); 201 * @return The cached bitmap or null if it was not found. 206 final Bitmap bitmap = sHardBitmapCache.get(url); 207 if (bitmap != null) { 211 sHardBitmapCache.put(url, bitmap); 212 return bitmap; 316 onPostExecute(Bitmap bitmap) argument [all...] |
H A D | ContactPhotoBinder.java | 78 // decoding the bitmap could be done in a worker thread too. 79 Bitmap bitmap = BitmapFactory.decodeStream(stream); 80 d = new BitmapDrawable(mResources, bitmap);
|
/development/samples/BrowserPlugin/jni/animation/ |
H A D | AnimationThread.cpp | 64 SkBitmap* bitmap = new SkBitmap; local 65 bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height); 66 bitmap->allocPixels(); 67 bitmap->eraseColor(0x00000000); 68 return bitmap;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
H A D | DensityActivity.java | 59 addLabelToRoot(root, "Prescaled bitmap in drawable"); 66 addLabelToRoot(root, "Autoscaled bitmap in drawable"); 88 addLabelToRoot(root, "Prescaled bitmap"); 95 addLabelToRoot(root, "Autoscaled bitmap"); 135 Bitmap bitmap; 136 bitmap = loadAndPrintDpi(resource, scale); 140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 161 Bitmap bitmap; 162 bitmap = loadAndPrintDpi(resource, scale); 164 ScaledBitmapView view = new ScaledBitmapView(this, bitmap); 199 ScaledBitmapView(Context context, Bitmap bitmap) argument [all...] |
H A D | GLES20TriangleRenderer.java | 140 Bitmap bitmap; 142 bitmap = BitmapFactory.decodeStream(is); 151 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 152 bitmap.recycle();
|
H A D | StaticTriangleRenderer.java | 191 Bitmap bitmap; 193 bitmap = BitmapFactory.decodeStream(is); 202 GLUtils.texImage2D(GL_TEXTURE_2D, 0, bitmap, 0); 203 bitmap.recycle();
|
H A D | TriangleRenderer.java | 93 Bitmap bitmap; 95 bitmap = BitmapFactory.decodeStream(is); 104 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); 105 bitmap.recycle();
|
/development/samples/BrowserPlugin/jni/navigation/ |
H A D | NavigationPlugin.h | 39 void drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip);
|
H A D | NavigationPlugin.cpp | 98 void NavigationPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { argument 99 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); 173 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip);
|
/development/samples/Snake/src/com/example/android/snake/ |
H A D | TileView.java | 100 Bitmap bitmap = Bitmap.createBitmap(mTileSize, mTileSize, Bitmap.Config.ARGB_8888); 101 Canvas canvas = new Canvas(bitmap); 105 mTileArray[key] = bitmap;
|
/development/ndk/platforms/android-8/samples/bitmap-plasma/src/com/example/plasma/ |
H A D | Plasma.java | 46 private static native void renderPlasma(Bitmap bitmap, long time_ms); argument
|
/development/samples/BrowserPlugin/jni/audio/ |
H A D | AudioPlugin.h | 48 void drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip);
|
/development/samples/BrowserPlugin/jni/form/ |
H A D | FormPlugin.h | 45 void drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip);
|
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
H A D | GLES20TriangleRenderer.java | 138 Bitmap bitmap; 140 bitmap = BitmapFactory.decodeStream(is); 149 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 150 bitmap.recycle();
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
H A D | HelloEffects.java | 74 // Load input bitmap 75 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), 77 mImageWidth = bitmap.getWidth(); 78 mImageHeight = bitmap.getHeight(); 83 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 246 // if no effect is chosen, just render the original bitmap
|
/development/samples/BrowserPlugin/jni/background/ |
H A D | BackgroundPlugin.cpp | 60 //initialize bitmap transparency variables 148 ANPBitmap bitmap; local 151 !gSurfaceI.lock(env, m_surface, &bitmap, NULL)) { 157 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); 353 gLogI.log(kDebug_ANPLogType, "BEGIN: testing bitmap transparency"); 356 if (evt->data.draw.data.bitmap.format == kRGBA_8888_ANPBitmapFormat) { 357 gLogI.log(kError_ANPLogType, "bitmap default format is transparent"); 374 if (evt->data.draw.data.bitmap.format != kRGBA_8888_ANPBitmapFormat) { 375 gLogI.log(kError_ANPLogType, "bitmap did not change to transparent format"); 390 if (evt->data.draw.data.bitmap [all...] |
/development/ndk/platforms/android-3/include/linux/raid/ |
H A D | md_k.h | 160 struct bitmap *bitmap; member in struct:mddev_s
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
H A D | RemoteControlClientCompat.java | 207 * @param key the identifier of the bitmap to set. The only valid value is 209 * @param bitmap The bitmap for the artwork, or null if there isn't any. 215 public MetadataEditorCompat putBitmap(int key, Bitmap bitmap) { argument 218 mPutBitmapMethod.invoke(mActualMetadataEditor, key, bitmap);
|
/development/ndk/platforms/android-9/arch-x86/include/asm/ |
H A D | genapic_32.h | 39 unsigned long (*check_apicid_used)(physid_mask_t bitmap, int apicid);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
H A D | SpriteTextRenderer.java | 100 Bitmap bitmap; 102 bitmap = BitmapFactory.decodeStream(is); 111 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); 112 bitmap.recycle();
|