/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageTinyPlanet.java | 20 import android.graphics.Bitmap; 143 Bitmap bitmap = MasterImage.getImage().getHighresImage(); local 144 if (bitmap == null) { 145 bitmap = MasterImage.getImage().getFilteredImage(); 148 if (bitmap != null) { 149 display(canvas, bitmap); 153 private void display(Canvas canvas, Bitmap bitmap) { 156 float iw = bitmap.getWidth() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
FilterEnvironment.java | 19 import android.graphics.Bitmap; 48 private HashMap<Long, WeakReference<Bitmap>> 49 bitmapCach = new HashMap<Long, WeakReference<Bitmap>>(); 51 public void cache(Bitmap bitmap) { 52 if (bitmap == null) { 55 Long key = calcKey(bitmap.getWidth(), bitmap.getHeight()); 56 bitmapCach.put(key, new WeakReference<Bitmap>(bitmap)); 62 Bitmap bitmap = null; local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
PhotoAppWidgetProvider.java | 25 import android.graphics.Bitmap; 109 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local 110 views.setImageViewBitmap(R.id.photo, bitmap);
|
WidgetConfigure.java | 23 import android.graphics.Bitmap; 127 Bitmap bitmap = (Bitmap) data.getParcelableExtra("data"); local 130 helper.setPhoto(mAppWidgetId, mPickedItem, bitmap);
|
WidgetService.java | 22 import android.graphics.Bitmap; 119 Bitmap bitmap = mSource.getImage(position); local 120 if (bitmap == null) return getLoadingView(); 124 views.setImageViewBitmap(R.id.appwidget_photo_item, bitmap);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
AlbumLabelMaker.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 66 private Bitmap getOverlayAlbumIcon(int sourceType) { 91 private Bitmap mBitmap; 98 public synchronized Bitmap get() { 101 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 117 public ThreadPool.Job<Bitmap> requestLabel( 132 private class AlbumLabelJob implements ThreadPool.Job<Bitmap> { 144 public Bitmap run(JobContext jc) { 149 Bitmap icon = getOverlayAlbumIcon(mSourceType) 151 Bitmap bitmap; local [all...] |
/packages/apps/Gallery2/src/com/android/photos/shims/ |
BitmapJobDrawable.java | 19 import android.graphics.Bitmap; 40 private Bitmap mBitmap; 70 Bitmap bitmap = mLoader.getBitmap(); local 71 if (bitmap != null) { 72 mBitmap = bitmap; 140 Bitmap bm = mBitmap; 169 protected Future<Bitmap> submitBitmapTask(FutureListener<Bitmap> l) { 175 protected void onLoadComplete(Bitmap bitmap) [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
BasicSlideEditorView.java | 23 import android.graphics.Bitmap; 98 public void setImage(String name, Bitmap bitmap) { 100 if (null == bitmap) { 101 bitmap = BitmapFactory.decodeResource(getResources(), 104 mImageView.setImageBitmap(bitmap); 133 Bitmap bitmap = VideoAttachmentView.createVideoThumbnail(mContext, video); local 134 if (null == bitmap) { 135 bitmap = BitmapFactory.decodeResource(getResources() [all...] |
/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/ |
coretypes.h | 48 typedef struct bitmap_head_def *bitmap; typedef in typeref:struct:bitmap_head_def
|
/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/ |
coretypes.h | 48 typedef struct bitmap_head_def *bitmap; typedef in typeref:struct:bitmap_head_def
|
/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/ |
coretypes.h | 48 typedef struct bitmap_head_def *bitmap; typedef in typeref:struct:bitmap_head_def
|
/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/ |
coretypes.h | 48 typedef struct bitmap_head_def *bitmap; typedef in typeref:struct:bitmap_head_def
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CubeMapActivity.java | 34 import android.graphics.Bitmap; 147 Bitmap bitmap; local 149 bitmap = BitmapFactory.decodeStream(is); 158 bitmap, 0); 159 bitmap.recycle();
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 29 import android.graphics.Bitmap; 635 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), local 637 bitmap.compress(Bitmap.CompressFormat.JPEG, 30, stream); [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
AttachmentProviderTests.java | 33 import android.graphics.Bitmap; 680 Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), local 683 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
ImageCurves.java | 20 import android.graphics.Bitmap; 343 class ComputeHistogramTask extends AsyncTask<Bitmap, Void, int[]> { 345 protected int[] doInBackground(Bitmap... params) { 347 Bitmap bitmap = params[0]; local 348 int w = bitmap.getWidth(); 349 int h = bitmap.getHeight(); 351 bitmap.getPixels(pixels, 0, w, 0, 0, w, h);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
NinePatchDrawableTest.java | 28 import android.graphics.Bitmap; 38 import android.graphics.Bitmap.Config; 68 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0); 86 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888); 201 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 212 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 223 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 234 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0); 244 @KnownFailure("Bug 2834281 - Bitmap#hasAlpha seems to return true for 289 Bitmap bitmap = Bitmap.createBitmap(COLOR, width, height, Bitmap.Config.RGB_565); local 337 Bitmap bitmap = getBitmapUnscaled(resId); local 345 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resId, opts); local [all...] |
/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/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...] |
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/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 | 23 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 103 * Set placeholder bitmap that shows when the the background thread is running. 105 * @param bitmap 107 public void setLoadingImage(Bitmap bitmap) { 108 mLoadingBitmap = bitmap; 253 Bitmap bitmap = null; local [all...] |
/external/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/freetype/src/sfnt/ |
ttsbit0.c | 5 /* TrueType and OpenType embedded bitmap support (body). */ 164 FT_Bitmap* bitmap; member in struct:TT_SBitDecoderRec_ 200 decoder->bitmap = &face->root.glyph->bitmap; 254 FT_Bitmap* map = decoder->bitmap; 379 FT_Bitmap* bitmap; local 389 /* check that we can write the glyph into the bitmap */ 390 bitmap = decoder->bitmap; 391 bit_width = bitmap->width 517 FT_Bitmap* bitmap; local [all...] |
/external/openssl/ssl/ |
d1_pkt.c | 171 static int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap); 172 static void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap); 532 dtls1_record_bitmap_update(s, &(s->d1->bitmap));/* Mark receipt of record. */ 558 DTLS1_BITMAP *bitmap; local 660 bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch); 661 if ( bitmap == NULL) 681 !dtls1_record_replay_check(s, bitmap)) [all...] |
/external/skia/legacy/src/images/ |
SkImageDecoder_libwebp.cpp | 105 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect); 307 static bool isConfigCompatible(SkBitmap* bitmap) { 308 SkBitmap::Config config = bitmap->config(); 331 // 2. bitmap's config is compatible 332 // 3. bitmap's size is same as the required region (after sampled) 339 SkBitmap *bitmap = decodedBitmap; local 342 // allocates a temp bitmap 343 bitmap = new SkBitmap; 344 adb.reset(bitmap); 347 if (bitmap->isNull()) [all...] |