HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 251 - 275 of 800) sorted by null

<<11121314151617181920>>

  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
BitmapDrawableTest.java 26 import android.graphics.Bitmap;
33 import android.graphics.Bitmap.Config;
68 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.ARGB_8888); local
69 bitmapDrawable = new BitmapDrawable(bitmap);
73 assertEquals(bitmap, bitmapDrawable.getBitmap());
77 new BitmapDrawable(mContext.getResources(), bitmap); local
84 new BitmapDrawable((Bitmap) null);
311 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.RGB_565) local
328 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.RGB_565); local
    [all...]
ClipDrawableTest.java 27 import android.graphics.Bitmap;
28 import android.graphics.Bitmap.Config;
108 Bitmap bitmap = Bitmap.createBitmap(100, 50, Config.RGB_565); local
109 BitmapDrawable bmpDrawable = new BitmapDrawable(bitmap);
110 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling
122 Bitmap bitmap = Bitmap.createBitmap(100, 50, Config.RGB_565) local
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
GLES20TriangleRenderer.java 29 import android.graphics.Bitmap;
140 Bitmap bitmap; local
142 bitmap = BitmapFactory.decodeStream(is);
151 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
152 bitmap.recycle();
MatrixPaletteRenderer.java 33 import android.graphics.Bitmap;
281 Bitmap bitmap; local
283 bitmap = BitmapFactory.decodeStream(is);
292 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
293 bitmap.recycle();
  /development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/
GLES20TriangleRenderer.java 29 import android.graphics.Bitmap;
138 Bitmap bitmap; local
140 bitmap = BitmapFactory.decodeStream(is);
149 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
150 bitmap.recycle();
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterRS.java 19 import android.graphics.Bitmap;
50 protected void update(Bitmap bitmap) {
51 getOutPixelsAllocation().copyTo(bitmap);
111 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
112 if (bitmap == null || bitmap.getWidth() == 0 || bitmap.getHeight() == 0)
187 Bitmap bitmap = BitmapFactory.decodeResource( local
199 Bitmap bitmap = BitmapFactory.decodeResource( local
217 Bitmap bitmap = BitmapFactory.decodeResource( local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
ExportDialog.java 20 import android.graphics.Bitmap;
172 Bitmap bitmap = MasterImage.getImage().getFilteredImage(); local
173 if (bitmap == null) {
177 bitmap.compress(Bitmap.CompressFormat.JPEG, mQuality, out);
179 mCompressedBounds = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
  /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...]
  /developers/build/prebuilts/gradle/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/
CalendarQueryService.java 40 import android.graphics.Bitmap;
194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local
195 return Asset.createFromBytes(toByteArray(bitmap));
208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local
209 if (bitmap != null) {
210 return Asset.createFromBytes(toByteArray(bitmap));
223 private static byte[] toByteArray(Bitmap bitmap) {
    [all...]
  /developers/samples/android/wearable/wear/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/
CalendarQueryService.java 40 import android.graphics.Bitmap;
194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local
195 return Asset.createFromBytes(toByteArray(bitmap));
208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local
209 if (bitmap != null) {
210 return Asset.createFromBytes(toByteArray(bitmap));
223 private static byte[] toByteArray(Bitmap bitmap) {
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
SpriteTextRenderer.java 30 import android.graphics.Bitmap;
100 Bitmap bitmap; local
102 bitmap = BitmapFactory.decodeStream(is);
111 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
112 bitmap.recycle();
  /development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/
CalendarQueryService.java 40 import android.graphics.Bitmap;
194 Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.nobody); local
195 return Asset.createFromBytes(toByteArray(bitmap));
208 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local
209 if (bitmap != null) {
210 return Asset.createFromBytes(toByteArray(bitmap));
223 private static byte[] toByteArray(Bitmap bitmap) {
    [all...]
  /frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
TestDocumentsProvider.java 26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.CompressFormat;
325 final Bitmap bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888); local
326 final Canvas canvas = new Canvas(bitmap);
333 bitmap.compress(CompressFormat.JPEG, 50, bos);
  /frameworks/base/packages/WallpaperCropper/src/com/android/photos/
BitmapRegionTileSource.java 22 import android.graphics.Bitmap;
23 import android.graphics.Bitmap.Config;
49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options);
89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) {
95 Bitmap mBuffer;
98 private DumbBitmapRegionDecoder(Bitmap b) {
102 Bitmap b = BitmapFactory.decodeFile(pathName);
109 Bitmap b = BitmapFactory.decodeStream(is);
121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) {
128 Bitmap newBitmap = Bitmap.createBitmap
475 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
GLTextureViewActivity.java 23 import android.graphics.Bitmap;
67 Bitmap b = mTextureView.getBitmap(800, 800);
72 b.compress(Bitmap.CompressFormat.PNG, 100, out);
270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); local
272 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);
275 bitmap.recycle();
  /frameworks/opt/bitmap/src/com/android/bitmap/
DecodeTask.java 17 package com.android.bitmap;
19 import android.graphics.Bitmap;
28 import com.android.bitmap.RequestKey.FileDescriptorFactory;
29 import com.android.bitmap.util.BitmapUtils;
30 import com.android.bitmap.util.Exif;
31 import com.android.bitmap.util.RectUtils;
32 import com.android.bitmap.util.Trace;
43 * and allow bitmap reuse on Jellybean 4.1 and later.
143 Trace.beginSection("poll for reusable bitmap");
187 // disable inBitmap-- bitmap reuse doesn't work with different decode regions du
318 final Bitmap bitmap; local
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/beam/
FireflyRenderer.java 21 import android.graphics.Bitmap;
259 Bitmap bitmap = BitmapFactory.decodeStream(in); local
265 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
267 bitmap.recycle();
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
ShapeTest.java 20 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.Config;
97 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
98 Canvas canvas = new Canvas(bitmap);
105 assertEquals(0, bitmap.getPixel(0, 0));
109 assertEquals(0, bitmap.getPixel(0, 0));
  /cts/tests/tests/text/src/android/text/cts/
EmojiTest.java 21 import android.graphics.Bitmap;
63 Bitmap mBitmapA, mBitmapB; // Emoji displayed Bitmaps to compare
160 Bitmap capture(char c[]) {
169 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
171 return bitmap;
182 Bitmap capture(char c[]) {
192 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()) local
215 Bitmap bitmap = Bitmap.createBitmap(getDrawingCache()); local
226 Bitmap bitmap; field in class:EmojiTest.CaptureWebView
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/util/
BitmapDumper.java 18 import android.graphics.Bitmap;
70 * drawing. The third file saved is a bitmap that is returned from the given visualizer's
74 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName,
76 Bitmap visualizerBitmap;
85 visualizerBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
87 Bitmap croppedBitmap = Bitmap.createBitmap(testedBitmap, 0, 0, width, height);
94 public static void dumpBitmap(Bitmap bitmap, String testName, String className)
    [all...]
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
AlbumArtCache.java 19 import android.graphics.Bitmap;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
63 protected int sizeOf(String key, Bitmap[] value) {
70 public Bitmap getBigImage(String artUrl) {
71 Bitmap[] result = mCache.get(artUrl);
75 public Bitmap getIconImage(String artUrl) {
76 Bitmap[] result = mCache.get(artUrl);
83 // requests and bitmap rescales. For production-level apps, we recommend you use
85 Bitmap[] bitmap = mCache.get(artUrl) local
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [all...]
  /developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/
MediaEffectsFragment.java 19 import android.graphics.Bitmap;
134 // Load input bitmap
135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local
136 mImageWidth = bitmap.getWidth();
137 mImageHeight = bitmap.getHeight();
142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);
279 // if no effect is chosen, just render the original bitmap
  /developers/build/prebuilts/gradle/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/
PdfRendererBasicFragment.java 22 import android.graphics.Bitmap;
37 * pages. We use a {@link android.graphics.pdf.PdfRenderer} to render PDF pages as {@link android.graphics.Bitmap}s.
62 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap}
172 // Important: the destination bitmap must be ARGB (not RGB).
173 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local
174 Bitmap.Config.ARGB_8888);
175 // Here, we render the page onto the Bitmap.
179 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY)
    [all...]
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/
Utils.java 21 import android.graphics.Bitmap;
123 * Convert an asset into a bitmap object synchronously. Only call this
127 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) {
139 // decode the stream into a bitmap
144 * Create a wearable asset from a bitmap.
146 public static Asset createAssetFromBitmap(Bitmap bitmap) {
147 if (bitmap != null) {
149 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream)
    [all...]
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/
AlbumArtCache.java 19 import android.graphics.Bitmap;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
63 protected int sizeOf(String key, Bitmap[] value) {
70 public Bitmap getBigImage(String artUrl) {
71 Bitmap[] result = mCache.get(artUrl);
75 public Bitmap getIconImage(String artUrl) {
76 Bitmap[] result = mCache.get(artUrl);
83 // requests and bitmap rescales. For production-level apps, we recommend you use
85 Bitmap[] bitmap = mCache.get(artUrl) local
98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [all...]

Completed in 1469 milliseconds

<<11121314151617181920>>