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

<<11121314151617181920>>

  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
PathShapeTest.java 20 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.Config;
55 Bitmap bitmap = Bitmap.createBitmap(SHAPE_SIZE, SHAPE_SIZE, Config.ARGB_8888); local
56 Canvas canvas = new Canvas(bitmap);
64 assertEquals(TEST_COLOR_1, bitmap.getPixel(50, 50));
75 if (bitmap.getPixel(25, i) == TEST_COLOR_2) {
78 if (bitmap.getPixel(i, 25) == TEST_COLOR_2) {
81 if (bitmap.getPixel(i, i) == TEST_COLOR_2)
    [all...]
  /cts/tests/tests/holo/src/android/holo/cts/
BitmapAssets.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.CompressFormat;
96 public static Bitmap getBitmap(Context context, String bitmapName) {
121 public static String saveBitmap(Bitmap bitmap, String bitmapName, int type) throws IOException {
132 bitmap.compress(CompressFormat.PNG, 100, stream);
  /cts/tests/tests/text/src/android/text/style/cts/
IconMarginSpanTest.java 20 import android.graphics.Bitmap;
35 private static final Bitmap BITMAP_80X120 =
36 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
  /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
ShadowLayout.java 20 import android.graphics.Bitmap;
41 Bitmap mShadowBitmap;
69 mShadowBitmap = Bitmap.createBitmap(sShadowRect.width(),
70 sShadowRect.height(), Bitmap.Config.ARGB_8888);
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoTask.java 22 import android.graphics.Bitmap;
77 private Bitmap mDecodedImage;
147 // Releases references to the byte buffer and the BitMap
187 Bitmap getImage() {
231 // Implements ImageCoderRunnable.setImage(). Sets the Bitmap for the current image.
233 public void setImage(Bitmap decodedImage) {
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
GLFrame.java 25 import android.graphics.Bitmap;
226 public void setBitmap(Bitmap bitmap) {
229 if (getFormat().getWidth() != bitmap.getWidth() ||
230 getFormat().getHeight() != bitmap.getHeight()) {
231 throw new RuntimeException("Bitmap dimensions do not match GL frame dimensions!");
233 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap);
235 throw new RuntimeException("Could not set GL frame bitmap data!");
241 public Bitmap getBitmap()
    [all...]
  /frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
ErrorCalculator.java 24 import android.graphics.Bitmap;
75 public float calcErrorRS(Bitmap ideal, Bitmap given) {
120 public void calcErrorHeatmapRS(Bitmap ideal, Bitmap given, Bitmap output) {
135 public static float calcError(Bitmap ideal, Bitmap given) {
180 private static boolean inspectRegion(Bitmap ideal, int x, int y) {
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
BitmapMutateActivity.java 22 import android.graphics.Bitmap;
61 private final Bitmap mBitmap1;
71 mBitmap1 = Bitmap.createBitmap(PATTERN_SIZE, PATTERN_SIZE, Bitmap.Config.ARGB_8888);
TextGammaActivity.java 22 import android.graphics.Bitmap;
49 Bitmap b = Bitmap.createBitmap(gamma.getWidth(), gamma.getHeight(),
50 Bitmap.Config.ARGB_8888);
ThinPatchesActivity.java 21 import android.graphics.Bitmap;
48 private Bitmap mTexture;
58 mTexture = Bitmap.createBitmap(4, 3, Bitmap.Config.ARGB_8888);
  /frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
SampleRSActivity.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
70 private Bitmap mBitmapTwoByTwo;
71 private Bitmap mBitmapCity;
140 private Bitmap loadBitmap(int resource) {
142 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
143 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options);
144 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig());
  /packages/apps/Browser/src/com/android/browser/
WebViewController.java 21 import android.graphics.Bitmap;
52 void onPageStarted(Tab tab, WebView view, Bitmap favicon);
60 void onFavicon(Tab tab, WebView view, Bitmap icon);
83 Bitmap getDefaultVideoPoster();
  /packages/apps/Contacts/src/com/android/contacts/util/
ImageViewDrawableSetter.java 21 import android.graphics.Bitmap;
82 protected Bitmap setCompressedImage(byte[] compressed) {
124 private Bitmap previousBitmap() {
146 Bitmap bitmap = BitmapFactory.decodeByteArray(compressed, 0, compressed.length); local
147 return new BitmapDrawable(rsrc, bitmap);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
MasterImage.java 51 private Bitmap mGeometryOnlyBitmap = null;
52 private Bitmap mFiltersOnlyBitmap = null;
53 private Bitmap mPartialBitmap = null;
54 private Bitmap mHighresBitmap = null;
160 Bitmap preview = mLoader.getOriginalBitmapSmall();
166 Bitmap historyPreview = Bitmap.createScaledBitmap(preview, w, h, true);
175 Bitmap image = mLoader.getOriginalBitmapLarge();
240 public void setOriginalGeometry(Bitmap originalBitmapLarge) {
250 public Bitmap getFilteredImage()
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 20 import android.graphics.Bitmap;
33 public static void recycleThumbnail(Bitmap b) {
39 public static Bitmap getThumbnail(MtpDevice device, MtpObjectInfo info) {
58 // when image decoding fails and an existing bitmap was supplied
60 // of that bitmap.
74 Bitmap created;
  /packages/apps/Gallery2/src/com/android/photos/data/
GalleryBitmapPool.java 19 import android.graphics.Bitmap;
99 public Bitmap get(int width, int height) {
108 public boolean put(Bitmap b) {
109 if (b == null || b.getConfig() != Bitmap.Config.ARGB_8888) {
  /packages/apps/Launcher2/src/com/android/launcher2/
ItemInfo.java 21 import android.graphics.Bitmap;
156 static byte[] flattenBitmap(Bitmap bitmap) {
159 int size = bitmap.getWidth() * bitmap.getHeight() * 4;
162 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
172 static void writeBitmap(ContentValues values, Bitmap bitmap) {
173 if (bitmap != null)
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
MediaItemThumbnailTest.java 23 import android.graphics.Bitmap;
71 protected void validateThumbnail(Bitmap thumbNailBmp, int outWidth,
98 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth,
117 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth,
136 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth,
156 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth,
176 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth,
196 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth,
217 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth,
235 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 21 import android.graphics.Bitmap;
42 * A resizeable bitmap, with stretchable areas that you define. This type of image
74 * @deprecated Use {@link #NinePatchDrawable(Resources, Bitmap, byte[], Rect, String)}
78 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) {
79 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
86 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk,
88 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
98 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk
303 Bitmap bitmap = null; local
    [all...]
  /packages/apps/VideoEditor/src/com/android/videoeditor/util/
ImageUtils.java 26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.CompressFormat;
65 * Resize a bitmap to the specified width and height.
72 * @return The resized bitmap
74 public static Bitmap scaleImage(String filename, int width, int height, int match)
83 final Bitmap srcBitmap;
92 // Create the bitmap from file.
105 // Create the canvas bitmap.
106 final Bitmap bitmap = Bitmap.createBitmap(Math.round(scaledWidth) local
    [all...]
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
PhotoCarousel.java 20 import android.graphics.Bitmap;
53 private final HashMap<View, Bitmap> mBitmapStore;
54 private final LinkedList<Bitmap> mBitmapQueue;
104 mBitmapStore = new HashMap<View, Bitmap>();
105 mBitmapQueue = new LinkedList<Bitmap>();
130 private class PhotoLoadTask extends AsyncTask<Void, Void, Bitmap> {
139 public Bitmap doInBackground(Void... unused) {
140 Bitmap decodedPhoto;
149 public void onPostExecute(Bitmap photo) {
184 Bitmap photo = mBitmapQueue.poll()
    [all...]
  /frameworks/base/graphics/java/android/renderscript/
Allocation.java 24 import android.graphics.Bitmap;
60 Bitmap mBitmap;
146 * (usually a {@link android.graphics.Bitmap}); copying to or from the
147 * original source Bitmap will cause a synchronization rather than a full
149 * and the source Bitmap.
158 * Controls mipmap behavior when using the bitmap creation and update
164 * bitmap will not contain additional LODs.
241 private void setBitmap(Bitmap b) {
434 private void validateBitmapFormat(Bitmap b) {
435 Bitmap.Config bc = b.getConfig()
    [all...]
  /cts/tests/tests/webkit/src/android/webkit/cts/
WebHistoryItemTest.java 19 import android.graphics.Bitmap;
61 Bitmap icon = mOnUiThread.getFavicon();
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMediaStore.java 4 import android.graphics.Bitmap;
20 public static Bitmap getBitmap(ContentResolver cr, Uri url) {
  /frameworks/base/core/java/android/view/
GLES20Layer.java 20 import android.graphics.Bitmap;
56 public boolean copyInto(Bitmap bitmap) {
57 return GLES20Canvas.nCopyLayer(mLayer, bitmap.mNativeBitmap);

Completed in 376 milliseconds

<<11121314151617181920>>