HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 276 - 300 of 864) sorted by null

<<11121314151617181920>>

  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
RecycleBitmapPool.java 19 import android.graphics.Bitmap;
28 // FIXME: this class saves recycle bitmap as SoftReference, which is too vulnerable to
31 // certain amount of recycled bitmaps in memory, we may also need remove bitmap from LRUCache
32 // if we are not able to get a recycled bitmap here.
37 // allow reuse bitmap with larger bytes, set to 0 to disable different byte size
47 sGetAllocationByteCount = Bitmap.class.getMethod("getAllocationByteCount");
52 private final SparseArray<ArrayList<SoftReference<Bitmap>>> mRecycled8888 =
53 new SparseArray<ArrayList<SoftReference<Bitmap>>>();
58 public static int getSize(Bitmap bitmap) {
115 Bitmap bitmap = getRecycledBitmap(mRecycled8888.get(key)); local
141 Bitmap bitmap = ref.get(); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
ContactDrawable.java 16 package com.android.mail.bitmap;
19 import android.graphics.Bitmap;
39 private static Bitmap DEFAULT_AVATAR;
  /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
LetterTileProvider.java 20 import android.graphics.Bitmap;
30 import com.android.mail.bitmap.ColorPicker;
40 * number), this method creates a bitmap with the letter in the center of a
42 * bitmap with the default contact avatar.
46 private final Bitmap mDefaultBitmap;
47 private final Bitmap[] mBitmapBackgroundCache;
48 private final Bitmap[] mDefaultBitmapCache;
75 mBitmapBackgroundCache = new Bitmap[POSSIBLE_BITMAP_SIZES];
78 mDefaultBitmapCache = new Bitmap[POSSIBLE_BITMAP_SIZES];
83 public Bitmap getLetterTile(final Dimensions dimensions, final String displayName
89 final Bitmap bitmap = getBitmap(dimensions, false \/* getDefault *\/); local
140 Bitmap bitmap = cache[pos]; local
    [all...]
  /packages/services/Car/service/src/com/android/car/cluster/renderer/
ThreadSafeNavigationRenderer.java 20 import android.graphics.Bitmap;
60 Bitmap image, int turnSide) {
90 nt.bitmap, nt.turnSide);
106 private final Bitmap bitmap; field in class:ThreadSafeNavigationRenderer.NextTurn
109 NextTurn(int event, String road, int turnAngle, int turnNumber, Bitmap bitmap,
115 this.bitmap = bitmap;
  /prebuilts/misc/darwin-x86_64/freetype/include/freetype2/
ftglyph.h 63 /* bitmap, a vector outline, or even images in other formats. */
80 /* bitmap or pointer. */
124 /* A handle to an object used to model a bitmap glyph image. This is */
136 /* A structure used for bitmap glyph images. This really is a */
144 /* glyph bitmap. */
148 /* bitmap. This distance is positive for upwards~y! */
150 /* bitmap :: A descriptor for the bitmap. */
155 /* the bitmap's contents easily. */
165 FT_Bitmap bitmap; member in struct:FT_BitmapGlyphRec_
    [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();
  /frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
ImageFlipRenderThread.java 19 import android.graphics.Bitmap;
223 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource); local
225 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);
228 bitmap.recycle();
  /frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
AnimatedVectorDrawableTest.java 21 import android.graphics.Bitmap;
63 private Bitmap mBitmap;
73 mBitmap = Bitmap.createBitmap(IMAGE_WIDTH, IMAGE_HEIGHT, Bitmap.Config.ARGB_8888);
82 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int resId) throws IOException {
102 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
190 final Bitmap bitmap = Bitmap.createBitmap(imageButton.getWidth(), imageButton.getHeight() local
    [all...]
  /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...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
BitmapDrawableTest.java 29 import android.graphics.Bitmap;
36 import android.graphics.Bitmap.Config;
84 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.ARGB_8888); local
85 bitmapDrawable = new BitmapDrawable(bitmap);
89 assertEquals(bitmap, bitmapDrawable.getBitmap());
93 new BitmapDrawable(mContext.getResources(), bitmap); local
100 new BitmapDrawable((Bitmap) null);
128 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage)
338 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.RGB_565); local
357 Bitmap bitmap; local
582 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 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...]
  /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/EasterEgg/src/com/android/egg/neko/
NekoLand.java 26 import android.graphics.Bitmap;
230 Bitmap bitmap = cat.createBitmap(512, 512); local
231 if (bitmap != null) {
234 bitmap.compress(Bitmap.CompressFormat.PNG, 0, os);
  /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();

Completed in 770 milliseconds

<<11121314151617181920>>