HomeSort by relevance Sort by last modified time
    Searched refs:Bitmap (Results 26 - 50 of 1115) sorted by null

12 3 4 5 6 7 8 91011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
BitmapLoader.java 19 import android.graphics.Bitmap;
27 // 2.) as a place holder for the loaded bitmap
28 public abstract class BitmapLoader implements FutureListener<Bitmap> {
45 private Future<Bitmap> mTask;
46 private Bitmap mBitmap;
49 public void onFutureDone(Future<Bitmap> future) {
84 // Recycle the loader and the bitmap
102 public synchronized Bitmap getBitmap() {
106 abstract protected Future<Bitmap> submitBitmapTask(FutureListener<Bitmap> l)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CreateBitmap.java 53 private Bitmap[] mBitmaps;
54 private Bitmap[] mJPEG;
55 private Bitmap[] mPNG;
59 private static Bitmap codec(Bitmap src, Bitmap.CompressFormat format,
75 mBitmaps = new Bitmap[6];
77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
78 Bitmap.Config.ARGB_8888);
79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBitmap.java 3 import android.graphics.Bitmap;
15 @Implements(Bitmap.class)
17 @RealObject private Bitmap realBitmap;
21 private Bitmap.Config config;
28 public boolean compress(Bitmap.CompressFormat format, int quality, OutputStream stream) {
39 public static Bitmap createBitmap(int width, int height, Bitmap.Config config) {
40 Bitmap scaledBitmap = Robolectric.newInstanceOf(Bitmap.class);
42 shadowBitmap.appendDescription("Bitmap (" + width + " x " + height + ")")
119 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
BitmapTest.java 3 import android.graphics.Bitmap;
4 import android.graphics.Bitmap.Config;
24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class);
25 shadowOf(originalBitmap).appendDescription("Original bitmap");
26 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false);
27 assertEquals("Original bitmap scaled to 100 x 200", shadowOf(scaledBitmap).getDescription());
34 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888) local
40 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local
55 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local
126 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local
135 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local
    [all...]
  /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
BitmapUtils.java 24 import android.graphics.Bitmap;
52 static HashMap<Integer, Bitmap> sBitmapResourceMap = new HashMap<Integer, Bitmap>();
63 Bitmap bitmap = getBitmap(resources, resourceId); local
64 Bitmap thumbnail = getThumbnail(bitmap, 200);
72 * Utility method to get bitmap from cache or, if not there, load it
75 static Bitmap getBitmap(Resources resources, int resourceId) {
76 Bitmap bitmap = sBitmapResourceMap.get(resourceId) local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
IconUtilities.java 20 import android.graphics.Bitmap;
36 public static Bitmap getFXBitmap(Resources res, int id) {
37 Bitmap ret;
47 public static Bitmap loadBitmap(Resources res, int resource) {
50 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
51 Bitmap bitmap = BitmapFactory.decodeResource( local
55 return bitmap;
58 public static Bitmap applyFX(Bitmap bitmap, final Bitmap fxBitmap)
    [all...]
ImageFilterKMeans.java 19 import android.graphics.Bitmap;
52 native protected void nativeApplyFilter(Bitmap bitmap, int width, int height,
53 Bitmap large_ds_bm, int lwidth, int lheight, Bitmap small_ds_bm,
57 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
59 return bitmap;
61 int w = bitmap.getWidth()
    [all...]
  /frameworks/base/core/java/android/webkit/
WebHistoryItem.java 19 import android.graphics.Bitmap;
82 * @return A Bitmap containing the favicon for this history item or null.
86 public Bitmap getFavicon() {
  /frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
HelloComputeNDK.java 22 import android.graphics.Bitmap;
26 private Bitmap mBitmapIn;
27 private Bitmap mBitmapOut;
33 native void nativeMono(int X, int Y, Bitmap in, Bitmap out);
41 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), mBitmapIn.getHeight(),
54 private Bitmap loadBitmap(int resource) {
56 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
WidgetSource.java 19 import android.graphics.Bitmap;
26 public Bitmap getImage(int index);
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AttachmentBitmapHolder.java 21 import android.graphics.Bitmap;
30 public void setThumbnail(Bitmap result);
  /development/ndk/platforms/android-8/samples/bitmap-plasma/src/com/example/plasma/
Plasma.java 22 import android.graphics.Bitmap;
42 private Bitmap mBitmap;
46 private static native void renderPlasma(Bitmap bitmap, long time_ms);
54 mBitmap = Bitmap.createBitmap(W, H, Bitmap.Config.RGB_565);
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
NavigationEntry.java 7 import android.graphics.Bitmap;
19 private Bitmap mFavicon;
25 String title, Bitmap favicon) {
85 public Bitmap getFavicon() {
92 public void updateFavicon(Bitmap favicon) {
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
BitmapFactoryTest.java 33 Bitmap bitmap1 = Bitmap.createBitmap(
34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565);
36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out);
41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd); local
42 assertNotNull("BitmapFactory returned null", bitmap);
43 assertEquals("Bitmap width", 1, bitmap.getWidth());
44 assertEquals("Bitmap height", 1, bitmap.getHeight())
    [all...]
  /packages/apps/Gallery/src/com/android/camera/gallery/
IImage.java 19 import android.graphics.Bitmap;
37 /** Get the bitmap for the full size image. */
38 public abstract Bitmap fullSizeBitmap(int minSideLength,
40 public abstract Bitmap fullSizeBitmap(int minSideLength,
71 // Get the bitmap of the medium thumbnail
72 public abstract Bitmap thumbBitmap(boolean rotateAsNeeded);
74 // Get the bitmap of the mini thumbnail.
75 public abstract Bitmap miniThumbBitmap();
  /art/test/079-phantom/src/
Bitmap.java 21 public class Bitmap {
24 Bitmap.NativeWrapper mNativeWrapper;
35 Bitmap(String name, int width, int height, Bitmap.NativeWrapper nativeData) {
45 return "Bitmap " + mName + ": " + mWidth + "x" + mHeight + " (" +
60 System.out.println("Bitmap has shut down");
67 static Bitmap.NativeWrapper allocNativeStorage(int width, int height) {
70 synchronized (Bitmap.class) {
74 Bitmap.NativeWrapper wrapper = new Bitmap.NativeWrapper(nativeData)
    [all...]
  /dalvik/tests/079-phantom/src/
Bitmap.java 21 public class Bitmap {
24 Bitmap.NativeWrapper mNativeWrapper;
35 Bitmap(String name, int width, int height, Bitmap.NativeWrapper nativeData) {
45 return "Bitmap " + mName + ": " + mWidth + "x" + mHeight + " (" +
60 System.out.println("Bitmap has shut down");
67 static Bitmap.NativeWrapper allocNativeStorage(int width, int height) {
70 synchronized (Bitmap.class) {
74 Bitmap.NativeWrapper wrapper = new Bitmap.NativeWrapper(nativeData)
    [all...]
  /development/samples/devbytes/animation/CrossFading/src/com/example/android/crossfading/
CrossFading.java 20 import android.graphics.Bitmap;
48 Bitmap bitmap0 = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888);
49 Bitmap bitmap1 = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888);
58 // Add the red/green bitmap drawables to a TransitionDrawable. They are layered
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
JavaBrowserViewRendererHelper.java 7 import android.graphics.Bitmap;
26 private static LruCache<Integer, Bitmap> sBitmapCache = new LruCache<Integer, Bitmap>(5);
29 * Provides a Bitmap object with a given width and height used for auxiliary rasterization.
30 * |canvas| is optional and if supplied indicates the Canvas that this Bitmap will be
32 * the Bitmap will be cached in sBitmapCache for future use.
35 private static Bitmap createBitmap(int width, int height, Canvas canvas, int ownerKey) {
42 Bitmap bitmap = sBitmapCache.get(ownerKey); local
43 if (bitmap == null || bitmap.getWidth() != width || bitmap.getHeight() != height)
    [all...]
  /frameworks/base/opengl/java/android/opengl/
GLUtils.java 19 import android.graphics.Bitmap;
44 * return the internal format as defined by OpenGL ES of the supplied bitmap.
45 * @param bitmap
46 * @return the internal format of the bitmap.
48 public static int getInternalFormat(Bitmap bitmap) {
49 if (bitmap == null) {
50 throw new NullPointerException("getInternalFormat can't be used with a null Bitmap");
52 if (bitmap.isRecycled()) {
53 throw new IllegalArgumentException("bitmap is recycled")
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
HolographicViewHelper.java 21 import android.graphics.Bitmap;
47 Bitmap original = createOriginalImage(v, mTempCanvas);
48 Bitmap outline = createImageWithOverlay(v, mTempCanvas, mHighlightColor);
49 Bitmap hotword = createImageWithOverlay(v, mTempCanvas, mHotwordColor);
77 private Bitmap createOriginalImage(ImageView v, Canvas canvas) {
79 final Bitmap b = Bitmap.createBitmap(
80 d.getIntrinsicWidth(), d.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
93 * Responsibility for the bitmap is transferred to the caller.
95 private Bitmap createImageWithOverlay(ImageView v, Canvas canvas, int color)
    [all...]
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
BitmapUtils.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.CompressFormat;
44 * bitmap.
52 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
116 public static Bitmap resizeBitmapByScale(
117 Bitmap bitmap, float scale, boolean recycle) {
118 int width = Math.round(bitmap.getWidth() * scale);
119 int height = Math.round(bitmap.getHeight() * scale);
120 if (width == bitmap.getWidth(
185 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local
208 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BitmapUtils.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.CompressFormat;
44 * bitmap.
52 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
116 public static Bitmap resizeBitmapByScale(
117 Bitmap bitmap, float scale, boolean recycle) {
118 int width = Math.round(bitmap.getWidth() * scale);
119 int height = Math.round(bitmap.getHeight() * scale);
120 if (width == bitmap.getWidth(
185 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local
208 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [all...]
  /packages/apps/Launcher3/src/com/android/gallery3d/common/
BitmapUtils.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.CompressFormat;
44 * bitmap.
52 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
116 public static Bitmap resizeBitmapByScale(
117 Bitmap bitmap, float scale, boolean recycle) {
118 int width = Math.round(bitmap.getWidth() * scale);
119 int height = Math.round(bitmap.getHeight() * scale);
120 if (width == bitmap.getWidth(
185 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local
208 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
FrameImage2D.java 19 import android.graphics.Bitmap;
51 * Assigns the pixel data of the specified bitmap.
53 * The RGBA pixel data will be extracted from the bitmap and assigned to the frame data. Note,
58 * @param bitmap The bitmap pixels to assign.
60 public void setBitmap(Bitmap bitmap) {
61 bitmap = convertToFrameType(bitmap, mBackingStore.getFrameType());
62 validateBitmapSize(bitmap, mBackingStore.getDimensions())
    [all...]

Completed in 492 milliseconds

12 3 4 5 6 7 8 91011>>