HomeSort by relevance Sort by last modified time
    Searched refs:Bitmap (Results 126 - 150 of 893) sorted by null

1 2 3 4 56 7 8 91011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterWBalance.java 22 import android.graphics.Bitmap;
49 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, int locX, int locY);
52 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
53 int w = bitmap.getWidth();
54 int h = bitmap.getHeight();
55 nativeApplyFilter(bitmap, w, h, -1, -1);
56 return bitmap;
    [all...]
ImageFilterBorder.java 20 import android.graphics.Bitmap;
54 public Bitmap applyHelper(Bitmap bitmap, float scale1, float scale2 ) {
55 int w = bitmap.getWidth();
56 int h = bitmap.getHeight();
58 Canvas canvas = new Canvas(bitmap);
63 return bitmap;
67 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality)
    [all...]
ImageFilterRS.java 19 import android.graphics.Bitmap;
49 protected void update(Bitmap bitmap) {
50 getOutPixelsAllocation().copyTo(bitmap);
100 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
101 if (bitmap == null || bitmap.getWidth() == 0 || bitmap.getHeight() == 0)
180 Bitmap bitmap = BitmapFactory.decodeResource( local
193 Bitmap bitmap = BitmapFactory.decodeResource( local
211 Bitmap bitmap = BitmapFactory.decodeResource( local
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
ActivityManagerRunningTaskInfoTest.java 19 import android.graphics.Bitmap;
62 mRunningTaskInfo.thumbnail = Bitmap.createBitmap(480, 320,
63 Bitmap.Config.RGB_565);
72 assertEquals(Bitmap.Config.RGB_565, values.thumbnail.getConfig());
90 mRunningTaskInfo.thumbnail = Bitmap.createBitmap(480, 320,
91 Bitmap.Config.RGB_565);
99 assertEquals(Bitmap.Config.RGB_565, values.thumbnail.getConfig());
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
ImageCacheRequest.java 19 import android.graphics.Bitmap;
28 abstract class ImageCacheRequest implements Job<Bitmap> {
51 public Bitmap run(JobContext jc) {
60 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
61 Bitmap bitmap; local
63 bitmap = DecodeUtils.decodeUsingPool(jc,
66 bitmap = DecodeUtils.decodeUsingPool(jc,
69 if (bitmap == null && !jc.isCancelled()) {
72 return bitmap;
77 Bitmap bitmap = onDecodeOriginal(jc, mType); local
    [all...]
ActionImage.java 19 import android.graphics.Bitmap;
43 public Job<Bitmap> requestImage(int type) {
52 private class BitmapJob implements Job<Bitmap> {
60 public Bitmap run(JobContext jc) {
62 Bitmap bitmap = BitmapFactory.decodeResource(mApplication.getResources(), local
66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true);
68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
ComposeShaderTest.java 19 import android.graphics.Bitmap;
30 import android.graphics.Bitmap.Config;
48 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); local
49 Canvas canvas = new Canvas(bitmap);
59 int pixel = bitmap.getPixel(x, y);
74 Bitmap greenBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888);
76 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888)
86 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local
    [all...]
NinePatchTest.java 23 import android.graphics.Bitmap;
38 private Bitmap mBitmap;
71 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local
72 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk()));
78 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale);
80 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local
138 Bitmap bitmap = local
    [all...]
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
Frame.java 22 import android.graphics.Bitmap;
89 } else if (object instanceof Bitmap) {
90 setBitmap((Bitmap)object);
118 public abstract void setBitmap(Bitmap bitmap);
120 public abstract Bitmap getBitmap();
181 protected static Bitmap convertBitmapToRGBA(Bitmap bitmap) {
182 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888)
    [all...]
NativeFrame.java 25 import android.graphics.Bitmap;
170 public void setBitmap(Bitmap bitmap) {
173 throw new RuntimeException("Attempting to set Bitmap for non 2-dimensional native frame!");
174 } else if (getFormat().getWidth() != bitmap.getWidth() ||
175 getFormat().getHeight() != bitmap.getHeight()) {
176 throw new RuntimeException("Bitmap dimensions do not match native frame dimensions!");
178 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap);
182 throw new RuntimeException("Could not set native frame bitmap data!")
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
RenderingRequest.java 19 import android.graphics.Bitmap;
30 private Bitmap mBitmap = null;
46 private static final Bitmap.Config mConfig = Bitmap.Config.ARGB_8888;
48 public static void post(Bitmap source, ImagePreset preset, int type, RenderingRequestCaller caller) {
52 public static void post(Bitmap source, ImagePreset preset, int type,
61 Bitmap bitmap = null; local
68 bitmap = pipeline.renderGeometryIcon(source, preset);
70 bitmap = Bitmap.createBitmap(source.getWidth(), source.getHeight(), mConfig)
    [all...]
ImageLoader.java 24 import android.graphics.Bitmap;
25 import android.graphics.Bitmap.CompressFormat;
30 import android.graphics.Bitmap.CompressFormat;
64 // TODO: this class has waaaay to much bitmap copying. Cleanup.
69 private Bitmap mOriginalBitmapSmall = null;
70 private Bitmap mOriginalBitmapLarge = null;
71 private Bitmap mOriginalBitmapHighres = null;
72 private Bitmap mBackgroundBitmap = null;
125 // Couldn't read the bitmap, let's exit
219 public Bitmap decodeImage(int id, BitmapFactory.Options options)
430 Bitmap bitmap = decodeUriWithBackouts(context, sourceUri, options); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
IconButton.java 20 import android.graphics.Bitmap;
37 private Bitmap mImageMirror = null;
38 private Bitmap mIcon = null;
60 * Set the image that the button icon will use. The image bitmap will be scaled
61 * and cropped into the largest bitmap with dimensions given by getGoodIconSideSize()
66 public void setIcon(Bitmap image) {
124 * @param image bitmap to use as icon
126 private boolean makeAndSetIcon(Bitmap image) {
137 * @param image bitmap to set the icon to.
139 private boolean setImageIcon(Bitmap image)
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
WidgetPreviewLoader.java 13 import android.graphics.Bitmap;
14 import android.graphics.Bitmap.Config;
82 class BitmapCache extends SoftReferenceThreadLocal<Bitmap> {
84 protected Bitmap initialValue() {
134 private HashMap<String, WeakReference<Bitmap>> mLoadedPreviews;
135 private ArrayList<SoftReference<Bitmap>> mUnusedBitmaps;
149 mLoadedPreviews = new HashMap<String, WeakReference<Bitmap>>();
150 mUnusedBitmaps = new ArrayList<SoftReference<Bitmap>>();
161 public Bitmap getPreview(final Object o) {
180 Bitmap unusedBitmap = null
    [all...]
  /development/samples/Support4Demos/src/com/example/android/supportv4/content/
FileProviderExample.java 20 import android.graphics.Bitmap;
65 final Bitmap bitmap = Bitmap.createBitmap( local
66 view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888);
67 final Canvas canvas = new Canvas(bitmap);
73 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
  /external/jmonkeyengine/engine/src/android/com/jme3/asset/
AndroidImageInfo.java 3 import android.graphics.Bitmap;
13 * method to retrieve a {@link Bitmap} when it is needed by the renderer.
15 * {@link AndroidImageInfo#loadBitmap()} method to acquire a bitmap by their own means.
22 protected Bitmap bitmap; field in class:AndroidImageInfo
29 public Bitmap getBitmap(){
30 if (bitmap == null || bitmap.isRecycled()){
40 return bitmap;
50 * Loads the bitmap directly from the asset info, possibly updatin
    [all...]
  /cts/tests/tests/text/src/android/text/cts/
EmojiTest.java 20 import android.graphics.Bitmap;
63 Bitmap mBitmapA, mBitmapB; // Emoji displayed Bitmaps to compare
150 Bitmap capture(char c[]) {
159 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
161 return bitmap;
172 Bitmap capture(char c[]) {
182 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local
205 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
216 Bitmap bitmap; field in class:EmojiTest.CaptureWebView
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
BitmapDecode.java 39 private Bitmap mBitmap;
40 private Bitmap mBitmap2;
41 private Bitmap mBitmap3;
42 private Bitmap mBitmap4;
72 Bitmap bm;
78 // bitmap, even though bm is null
95 mBitmap3 = Bitmap.createBitmap(pixels, 0, w, w, h,
96 Bitmap.Config.ARGB_8888);
97 mBitmap4 = Bitmap.createBitmap(pixels, 0, w, w, h,
98 Bitmap.Config.ARGB_4444)
    [all...]
BitmapPixels.java 36 private Bitmap mBitmap1;
37 private Bitmap mBitmap2;
38 private Bitmap mBitmap3;
141 mBitmap1 = Bitmap.createBitmap(N, N, Bitmap.Config.ARGB_8888);
142 mBitmap2 = Bitmap.createBitmap(N, N, Bitmap.Config.RGB_565);
143 mBitmap3 = Bitmap.createBitmap(N, N, Bitmap.Config.ARGB_4444);
Xfermodes.java 20 import android.graphics.Bitmap;
36 // create a bitmap with a circle, used for the "dst" image
37 static Bitmap makeDst(int w, int h) {
38 Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
47 // create a bitmap with a rect, used for the "src" image
48 static Bitmap makeSrc(int w, int h) {
49 Bitmap bm = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888)
    [all...]
  /frameworks/base/media/java/android/media/
ThumbnailUtils.java 23 import android.graphics.Bitmap;
49 /* Maximum pixels size for created bitmap. */
60 * {@link #extractThumbnail(Bitmap, int, int, int)} unless the output is the input.
86 * @return Bitmap, or null on failures
90 public static Bitmap createImageThumbnail(String filePath, int kind) {
99 Bitmap bitmap = null; local
103 bitmap = sizedThumbnailBitmap.mBitmap;
106 if (bitmap == null) {
124 options.inPreferredConfig = Bitmap.Config.ARGB_8888
159 Bitmap bitmap = null; local
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
CommandParams.java 19 import android.graphics.Bitmap;
36 boolean setIcon(Bitmap icon) { return true; }
53 boolean setIcon(Bitmap icon) {
76 boolean setIcon(Bitmap icon) {
97 boolean setIcon(Bitmap icon) {
118 boolean setIcon(Bitmap icon) {
144 boolean setIcon(Bitmap icon) {
172 boolean setIcon(Bitmap icon) {
199 boolean setIcon(Bitmap icon) {
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
TileImageViewAdapter.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
87 public Bitmap getTile(int level, int x, int y, int tileSize) {
103 // We need to clear a reused bitmap, if wantRegion is not fully
109 Bitmap bitmap = GalleryBitmapPool.getInstance().get(tileSize, tileSize); local
110 if (bitmap != null) {
111 if (needClear) bitmap.eraseColor(0);
113 bitmap = Bitmap.createBitmap(tileSize, tileSize, Config.ARGB_8888)
159 Bitmap bitmap = null; local
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
IconUtilities.java 23 import android.graphics.Bitmap;
96 Bitmap scaled = createIconBitmap(src);
111 * Returns a bitmap suitable for the all apps view. The bitmap will be a power
112 * of two sized ARGB_8888 bitmap that can be used as a gl texture.
114 private Bitmap createIconBitmap(Drawable icon) {
123 // Ensure the bitmap has a density.
125 Bitmap bitmap = bitmapDrawable.getBitmap(); local
126 if (bitmap.getDensity() == Bitmap.DENSITY_NONE)
154 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/
Thumbnail.java 22 import android.graphics.Bitmap;
51 private Bitmap mBitmap;
59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) {
61 mBitmap = rotateImage(bitmap, orientation);
62 if (mBitmap == null) throw new IllegalArgumentException("null bitmap");
69 public Bitmap getBitmap() {
81 private static Bitmap rotateImage(Bitmap bitmap, int orientation)
129 Bitmap bitmap = null; local
252 Bitmap bitmap = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length, options); local
265 Bitmap bitmap = null; local
    [all...]

Completed in 658 milliseconds

1 2 3 4 56 7 8 91011>>