HomeSort by relevance Sort by last modified time
    Searched refs:Bitmap (Results 76 - 100 of 619) sorted by null

1 2 34 5 6 7 8 91011>>

  /packages/apps/Mms/src/com/android/mms/ui/
VideoAttachmentView.java 24 import android.graphics.Bitmap;
69 public void setImage(String name, Bitmap bitmap) {
91 Bitmap bitmap = createVideoThumbnail(mContext, video); local
92 if (null == bitmap) {
93 bitmap = BitmapFactory.decodeResource(getResources(),
96 mThumbnailView.setImageBitmap(bitmap);
102 public static Bitmap createVideoThumbnail(Context context, Uri uri) {
103 Bitmap bitmap = null local
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/
WaveformImage.java 19 import android.graphics.Bitmap;
29 * Utility class to draw a waveform into a bitmap, given a byte array
40 public static Bitmap drawWaveform(
42 final Bitmap b = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
  /cts/tests/tests/graphics/src/android/graphics/cts/
NinePatchTest.java 27 import android.graphics.Bitmap;
43 private Bitmap mBitmap;
67 args = {android.graphics.Bitmap.class, byte[].class, java.lang.String.class}
86 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local
87 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk()));
115 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale);
117 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local
180 Bitmap bitmap = local
    [all...]
PictureTest.java 24 import android.graphics.Bitmap;
99 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local
100 canvas = new Canvas(bitmap);
103 checkBitmap(bitmap);
108 // create a new Canvas with a new bitmap
109 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888)
    [all...]
PathDashPathEffectTest.java 23 import android.graphics.Bitmap;
30 import android.graphics.Bitmap.Config;
50 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
60 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
SumPathEffectTest.java 23 import android.graphics.Bitmap;
32 import android.graphics.Bitmap.Config;
49 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); local
50 bitmap.eraseColor(Color.BLACK);
51 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
72 canvas = new Canvas(bitmap);
77 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j))
    [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...]
AlphaBitmap.java 37 private Bitmap mBitmap;
38 private Bitmap mBitmap2;
39 private Bitmap mBitmap3;
42 private static void drawIntoBitmap(Bitmap bm) {
67 mBitmap3 = Bitmap.createBitmap(200, 200, Bitmap.Config.ALPHA_8);
  /frameworks/base/graphics/java/android/graphics/
Bitmap.java 28 public final class Bitmap implements Parcelable {
31 * Indicates that the bitmap was created for an unknown pixel density.
33 * @see Bitmap#getDensity()
34 * @see Bitmap#setDensity(int)
47 * Backing buffer for the Bitmap.
92 bitmap int (pointer).
96 /*package*/ Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk,
99 throw new RuntimeException("internal error: native bitmap is 0");
115 * <p>Returns the density for this bitmap.</p>
139 * <p>Specifies the density for this bitmap. When the bitmap i
513 Bitmap bitmap; local
    [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) {
122 options.inPreferredConfig = Bitmap.Config.ARGB_8888
148 Bitmap bitmap = null; local
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/cat/
CommandParams.java 19 import android.graphics.Bitmap;
36 boolean setIcon(Bitmap icon) { return true; }
47 boolean setIcon(Bitmap icon) {
69 boolean setIcon(Bitmap icon) {
89 boolean setIcon(Bitmap icon) {
109 boolean setIcon(Bitmap icon) {
134 boolean setIcon(Bitmap icon) {
161 boolean setIcon(Bitmap icon) {
187 boolean setIcon(Bitmap icon) {
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapFactory_Delegate.java 47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) {
69 final Bitmap oldBitmap = bm;
70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f),
93 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage,
95 Bitmap bm = null;
107 // load the bitmap as a nine patch
111 // get the bitmap and chunk objects.
116 // put the chunk in the bitmap
126 // load the bitmap directly
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
AdaptiveBackground.java 19 import android.graphics.Bitmap;
37 private Bitmap mPendingBitmap;
48 public Bitmap getAdaptiveBitmap(Bitmap bitmap) {
49 Bitmap target = Bitmap.createBitmap(
50 BACKGROUND_WIDTH, BACKGROUND_HEIGHT, Bitmap.Config.ARGB_8888);
52 int width = bitmap.getWidth();
53 int height = bitmap.getHeight()
    [all...]
  /system/media/mca/filterfw/java/android/filterfw/core/
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...]
  /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/Gallery2/src/com/android/gallery3d/data/
DecodeUtils.java 25 import android.graphics.Bitmap;
26 import android.graphics.Bitmap.Config;
51 public static Bitmap requestDecode(JobContext jc, final String filePath,
59 public static Bitmap requestDecode(JobContext jc, FileDescriptor fd, Options options) {
66 public static Bitmap requestDecode(JobContext jc, byte[] bytes,
71 public static Bitmap requestDecode(JobContext jc, byte[] bytes, int offset,
79 public static Bitmap requestDecode(JobContext jc, final String filePath,
94 public static Bitmap requestDecode(JobContext jc, FileDescriptor fd,
107 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options);
115 * Decodes the bitmap from the given byte array if the image size is larger than the give
    [all...]
  /packages/apps/Camera/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...]
  /cts/tests/src/android/widget/cts/
WidgetTestUtils.java 24 import android.graphics.Bitmap;
38 * @param Bitmap b1 the first bitmap which needs to compare.
39 * @param Bitmap b2 the second bitmap which needs to compare.
41 public static void assertEquals(Bitmap b1, Bitmap b2) {
114 * Retrieve a bitmap that can be used for comparison on any density
116 * @return the {@link Bitmap} or <code>null</code>
118 public static Bitmap getUnscaledBitmap(Resources resources, int resId)
    [all...]
  /development/samples/Snake/src/com/example/android/snake/
TileView.java 21 import android.graphics.Bitmap;
55 private Bitmap[] mTileArray;
95 mTileArray = new Bitmap[tilecount];
119 Bitmap bitmap = Bitmap.createBitmap(mTileSize, mTileSize, Bitmap.Config.ARGB_8888); local
120 Canvas canvas = new Canvas(bitmap);
124 mTileArray[key] = bitmap;
  /frameworks/base/core/java/android/text/style/
ImageSpan.java 20 import android.graphics.Bitmap;
37 * @deprecated Use {@link #ImageSpan(Context, Bitmap)} instead.
40 public ImageSpan(Bitmap b) {
45 * @deprecated Use {@link #ImageSpan(Context, Bitmap, int) instead.
48 public ImageSpan(Bitmap b, int verticalAlignment) {
52 public ImageSpan(Context context, Bitmap b) {
60 public ImageSpan(Context context, Bitmap b, int verticalAlignment) {
134 Bitmap bitmap = null; local
138 bitmap = BitmapFactory.decodeStream(is)
    [all...]
  /packages/apps/VideoEditor/src/com/android/videoeditor/
OverlaysAdapter.java 20 import android.graphics.Bitmap;
39 private final Bitmap mGenericBitmap;
105 protected Bitmap loadImage(Object data) {
106 final Bitmap overlayBitmap = Bitmap.createBitmap(mGenericBitmap.getWidth(),
107 mGenericBitmap.getHeight(), Bitmap.Config.ARGB_8888);
  /packages/apps/Launcher2/src/com/android/launcher2/
HolographicOutlineHelper.java 19 import android.graphics.Bitmap;
102 * Apply an outer blur to the given bitmap.
103 * You should use OUTER_BLUR_RADIUS to ensure that the bitmap is big enough to draw
106 void applyOuterBlur(Bitmap bitmap, Canvas canvas, int color) {
108 Bitmap glow = bitmap.extractAlpha(mBlurPaint, mTempOffset);
121 * bitmap.
123 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color,
128 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color
    [all...]
IconCache.java 24 import android.graphics.Bitmap;
40 public Bitmap icon;
44 private final Bitmap mDefaultIcon;
121 private Bitmap makeDefaultIcon() {
123 Bitmap b = Bitmap.createBitmap(Math.max(d.getIntrinsicWidth(), 1),
125 Bitmap.Config.ARGB_8888);
164 public Bitmap getIcon(Intent intent) {
178 public Bitmap getIcon(ComponentName component, ResolveInfo resolveInfo,
190 public boolean isDefaultIcon(Bitmap icon)
    [all...]

Completed in 606 milliseconds

1 2 34 5 6 7 8 91011>>