| /packages/apps/Gallery2/src/com/android/gallery3d/data/ |
| LocalVideo.java | 21 import android.graphics.Bitmap; 154 public Job<Bitmap> requestImage(int type) { 170 public Bitmap onDecodeOriginal(JobContext jc, int type) { 171 Bitmap bitmap = BitmapUtils.createVideoThumbnail(mLocalFilePath); local 172 if (bitmap == null || jc.isCancelled()) return null; 173 return bitmap;
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
| BitmapCache.java | 19 import android.graphics.Bitmap; 31 private HashMap<Long, ArrayList<WeakReference<Bitmap>>> 32 mBitmapCache = new HashMap<Long, ArrayList<WeakReference<Bitmap>>>(); 55 Bitmap bitmap; field in class:BitmapCache.BitmapTracking 61 private void track(Bitmap bitmap, int type) { 64 if (tracking.bitmap == bitmap) { 65 Log.e(LOGTAG, "giving a bitmap already given!!!") 125 Bitmap bitmap = buffer.getBitmap(); local 185 Bitmap bitmap = null; local 207 Bitmap bitmap = getBitmap(source.getWidth(), source.getHeight(), type); local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
| CategoryView.java | 21 import android.graphics.Bitmap; 137 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.filtershow_add); local 138 setBitmap(bitmap);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
| ColorBrightnessView.java | 20 import android.graphics.Bitmap; 91 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); local 92 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
|
| ColorCompareView.java | 21 import android.graphics.Bitmap; 82 Bitmap bitmap = Bitmap.createBitmap(colors, imgdim, imgdim, Bitmap.Config.ARGB_8888); local 83 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
|
| ColorSaturationView.java | 20 import android.graphics.Bitmap; 91 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); local 92 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
| EditorDrawTabletUI.java | 22 import android.graphics.Bitmap; 136 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), mBrushIcons[i]); local 137 button.setImageBitmap(bitmap);
|
| /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/pipeline/ |
| CacheProcessing.java | 19 import android.graphics.Bitmap; 37 Bitmap cache; 94 public Bitmap apply(FilterEnvironment environment, Bitmap cacheBitmap) { 96 Bitmap source = cacheBitmap; 109 Log.v(LOGTAG, "Apply geometry to bitmap " + cacheBitmap); 116 + " to bitmap " + cacheBitmap); 125 Log.v(LOGTAG, "Apply returns bitmap " + cacheBitmap); 131 public Bitmap process(Bitmap originalBitmap 245 Bitmap bitmap = currentStep.cache; local [all...] |
| ImageSavingTask.java | 20 import android.graphics.Bitmap; 40 Bitmap previewImage; 45 Bitmap bitmap; field in class:ImageSavingTask.UpdateBitmap 69 Bitmap previewImage, boolean flatten, 89 Bitmap previewImage = request.previewImage; 93 // We create a small bitmap showing the result that we can 96 updateBitmap.bitmap = createNotificationBitmap(previewImage, sourceUri, preset); 139 Bitmap bitmap = ((UpdateBitmap) message).bitmap local 155 Bitmap bitmap = ImageLoader.loadConstrainedBitmap(sourceUri, getContext(), 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/Launcher2/src/com/android/launcher2/ |
| ItemInfo.java | 22 import android.graphics.Bitmap; 185 static byte[] flattenBitmap(Bitmap bitmap) { 188 int size = bitmap.getWidth() * bitmap.getHeight() * 4; 191 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 201 static void writeBitmap(ContentValues values, Bitmap bitmap) { 202 if (bitmap != null) [all...] |
| /packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
| ShadowDrawable.java | 22 import android.graphics.Bitmap; 123 Bitmap bitmap = Bitmap.createBitmap(mState.mIntrinsicWidth, mState.mIntrinsicHeight, local 124 Bitmap.Config.ARGB_8888); 125 Canvas canvas = new Canvas(bitmap); 140 Bitmap shadow = bitmap.extractAlpha(paint, offset); 144 bitmap.eraseColor(Color.TRANSPARENT); 150 bitmap = bitmap.copy(Bitmap.Config.HARDWARE, false) [all...] |
| /packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
| AvatarRequest.java | 20 import android.graphics.Bitmap; 43 private static Bitmap sDefaultPersonBitmap; 44 private static Bitmap sDefaultPersonBitmapLarge; 74 Bitmap bitmap = null; local 81 bitmap = imageResource.getBitmap(); 93 // Check to see if we already got the bitmap. If not get a fallback avatar 94 if (bitmap == null) { 109 bitmap = renderLetterTile(name, width, height); 111 bitmap = renderDefaultAvatar(width, height) 118 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height, local 160 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height, local [all...] |
| SimSelectorAvatarRequest.java | 20 import android.graphics.Bitmap; 40 private static Bitmap sRegularSimIcon; 77 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height, backgroundColor); local 79 final Canvas canvas = new Canvas(bitmap); 110 return new DecodedImageResource(getKey(), bitmap, ExifInterface.ORIENTATION_NORMAL);
|
| /packages/apps/Music/src/com/android/music/utils/ |
| AlbumArtCache.java | 19 import android.graphics.Bitmap; 45 private final LruCache<String, Bitmap[]> mCache; 58 mCache = new LruCache<String, Bitmap[]>(maxSize) { 60 protected int sizeOf(String key, Bitmap[] value) { 67 public Bitmap getBigImage(String artUrl) { 68 Bitmap[] result = mCache.get(artUrl); 72 public Bitmap getIconImage(String artUrl) { 73 Bitmap[] result = mCache.get(artUrl); 80 // requests and bitmap rescales. For production-level apps, we recommend you use 82 Bitmap[] bitmap = mCache.get(artUrl) local 95 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap( local [all...] |
| /packages/apps/Settings/src/com/android/settings/shortcut/ |
| CreateShortcut.java | 28 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.Config; 116 private Bitmap createIcon(int resource, int layoutRes, int size) { 127 Bitmap bitmap = Bitmap.createBitmap(view.getMeasuredWidth(), view.getMeasuredHeight(), local 129 Canvas canvas = new Canvas(bitmap); 132 return bitmap;
|
| /packages/apps/Stk/src/com/android/stk/ |
| StkMenuConfig.java | 21 import android.graphics.Bitmap; 99 public Bitmap getIcon(int slotId) { 102 Bitmap bitmap = null; local 106 bitmap = resId == UNSPECIFIED ? null : 110 return bitmap;
|
| /packages/apps/TV/src/com/android/tv/data/ |
| ChannelLogoFetcher.java | 23 import android.graphics.Bitmap.CompressFormat; 142 "Failed to load bitmap. {channelName=" 158 bitmapInfo.bitmap.compress(CompressFormat.PNG, 100, os);
|
| /packages/apps/TV/src/com/android/tv/util/images/ |
| BitmapUtils.java | 22 import android.graphics.Bitmap; 57 public static Bitmap scaleBitmap(Bitmap bm, int maxWidth, int maxHeight) { 59 return Bitmap.createScaledBitmap(bm, rect.right, rect.bottom, false); 62 public static Bitmap getScaledMutableBitmap(Bitmap bm, int maxWidth, int maxHeight) { 63 Bitmap scaledBitmap = scaleBitmap(bm, maxWidth, maxHeight); 66 : scaledBitmap.copy(Bitmap.Config.ARGB_8888, true); 69 private static Rect calculateNewSize(Bitmap bm, int maxWidth, int maxHeight) { 84 String id, Bitmap bm, int maxWidth, int maxHeight) 141 Bitmap bitmap = BitmapFactory.decodeStream(inputStream, null, options); local 207 @NonNull public final Bitmap bitmap; field in class:BitmapUtils.ScaledBitmapInfo [all...] |
| /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
| AddAccessoryPreferenceFragment.java | 26 import android.graphics.Bitmap; 120 final Bitmap bitmap = local 121 Bitmap.createBitmap(iconWidth, iconHeight, Bitmap.Config.ARGB_8888); 122 final Canvas canvas = new Canvas(bitmap); 124 drawable = new BitmapDrawable(getResources(), bitmap);
|