HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 376 - 400 of 1029) sorted by null

<<11121314151617181920>>

  /packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
RecycleBitmapPool.java 18 import android.graphics.Bitmap;
29 * This class saves recycle bitmap as SoftReference, which is too vulnerable to
32 * certain amount of recycled bitmaps in memory, we may also need remove bitmap from LRUCache
33 * if we are not able to get a recycled bitmap here.
41 // allow reuse bitmap with larger bytes, set to 0 to disable different byte size
50 sGetAllocationByteCount = Bitmap.class.getMethod("getAllocationByteCount");
55 private final SparseArray<ArrayList<SoftReference<Bitmap>>> mRecycled8888 =
56 new SparseArray<ArrayList<SoftReference<Bitmap>>>();
61 public static int getSize(Bitmap bitmap) {
118 Bitmap bitmap = getRecycledBitmap(mRecycled8888.get(key)); local
144 Bitmap bitmap = ref.get(); local
    [all...]
BitmapWorkerTask.java 25 import android.graphics.Bitmap;
43 * AsyncTask which loads a bitmap.
51 public class BitmapWorkerTask extends AsyncTask<BitmapWorkerOptions, Void, Bitmap> {
62 // a flag for if the bitmap is scaled from original source
71 protected Bitmap doInBackground(BitmapWorkerOptions... params) {
76 protected Bitmap retrieveBitmap(BitmapWorkerOptions workerOptions) {
96 Log.e(TAG, "Error loading bitmap - unknown resource URI! "
100 Log.e(TAG, "Error loading bitmap - no source!");
114 protected void onPostExecute(Bitmap bitmap) {
185 Bitmap bitmap = BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions); local
293 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
EditorUiUtils.java 26 import android.graphics.Bitmap;
254 /** Decodes the Bitmap from the photo bytes from the given ValuesDelta. */
255 public static Bitmap getPhotoBitmap(ValuesDelta valuesDelta) {
277 /** Returns compressed bitmap bytes from the given Uri, scaled to the thumbnail dimensions. */
280 final Bitmap bitmap = ContactPhotoUtils.getBitmapFromUri(context, uri); local
282 final Bitmap bitmapScaled = Bitmap.createScaledBitmap(
283 bitmap, size, size, /* filter =*/ false);
  /packages/apps/Contacts/src/com/android/contacts/util/
ImageViewDrawableSetter.java 20 import android.graphics.Bitmap;
55 public Bitmap setupContactPhoto(Contact contactData, ImageView photoView) {
86 protected Bitmap setCompressedImage(byte[] compressed) {
131 private Bitmap previousBitmap() {
167 Bitmap bitmap = BitmapFactory.decodeByteArray(compressed, 0, compressed.length); local
168 if (bitmap == null) {
171 if (bitmap.getHeight() != bitmap.getWidth()) {
172 // Crop the bitmap into a square
    [all...]
  /packages/apps/Gallery/src/com/android/camera/gallery/
Image.java 24 import android.graphics.Bitmap;
151 public Bitmap thumbBitmap(boolean rotateAsNeeded) {
152 Bitmap bitmap = null; local
155 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
156 bitmap = BitmapManager.instance().getThumbnail(mContentResolver, mId,
159 if (bitmap != null && rotateAsNeeded) {
160 bitmap = Util.rotate(bitmap, getDegreesRotated());
163 return bitmap;
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
InfoPanel.java 19 import android.graphics.Bitmap;
73 Bitmap bitmap = MasterImage.getImage().getFilteredImage(); local
74 mImageThumbnail.setImageBitmap(bitmap);
82 histogramView.setBitmap(bitmap);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
TileImageViewAdapter.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
87 public Bitmap getTile(int level, int x, int y, int tileSize) {
103 // We need to clear a reused bitmap, if wantRegion is not fully
109 Bitmap bitmap = GalleryBitmapPool.getInstance().get(tileSize, tileSize); local
110 if (bitmap != null) {
111 if (needClear) bitmap.eraseColor(0);
113 bitmap = Bitmap.createBitmap(tileSize, tileSize, Config.ARGB_8888)
159 Bitmap bitmap = null; local
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
LogoUtils.java 21 import android.graphics.Bitmap;
46 Bitmap bitmap = null; local
50 bitmap = getBitmapPartiallyResized(logoFile.getPath(), maxWidth, maxHeight);
51 if (bitmap == null) {
56 if (bitmap != null) {
58 resizeBitmap(bitmap, maxWidth, maxHeight));
70 * Decodes a bitmap from an input stream.
71 * If the actual dimensions of the bitmap are larger than the desired ones, will try to return a
78 static Bitmap getBitmapPartiallyResized(String filePath, int maxDesiredWidth
    [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...]
  /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...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
BitmapDrawableTest.java 41 import android.graphics.Bitmap;
48 import android.graphics.Bitmap.Config;
101 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.ARGB_8888); local
102 bitmapDrawable = new BitmapDrawable(bitmap);
106 assertEquals(bitmap, bitmapDrawable.getBitmap());
110 new BitmapDrawable(mContext.getResources(), bitmap); local
117 new BitmapDrawable((Bitmap) null);
147 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage)
363 Bitmap bitmap = Bitmap.createBitmap(200, 300, Config.RGB_565); local
383 Bitmap bitmap; local
    [all...]
ClipDrawableTest.java 36 import android.graphics.Bitmap;
37 import android.graphics.Bitmap.Config;
138 Bitmap bitmap = Bitmap.createBitmap(100, 50, Config.RGB_565); local
139 BitmapDrawable bmpDrawable = new BitmapDrawable(bitmap);
140 bmpDrawable.setTargetDensity(bitmap.getDensity()); // avoid scaling
153 Bitmap bitmap = Bitmap.createBitmap(100, 50, Config.RGB_565) local
    [all...]
  /cts/tests/tests/systemui/src/android/systemui/cts/
LightBarTests.java 30 import android.graphics.Bitmap;
95 Bitmap bitmap = takeStatusBarScreenshot(mActivityRule.getActivity()); local
96 Stats s = evaluateLightBarBitmap(bitmap, Color.RED /* background */);
97 assertLightStats(bitmap, s);
116 Bitmap bitmap = takeNavigationBarScreenshot(mActivityRule.getActivity()); local
117 Stats s = evaluateLightBarBitmap(bitmap, Color.RED /* background */);
118 assertLightStats(bitmap, s);
149 private void assertLightStats(Bitmap bitmap, Stats s)
    [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();
  /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/core/java/android/app/
WallpaperColors.java 21 import android.graphics.Bitmap;
64 * Specifies that this object was generated by extracting colors from a bitmap.
69 // Maximum size that a bitmap can have to keep our calculations sane
72 // Even though we have a maximum size, we'll mainly match bitmap sizes
126 Bitmap bitmap = Bitmap.createBitmap(optimalSize.getWidth(), optimalSize.getHeight(), local
127 Bitmap.Config.ARGB_8888);
128 final Canvas bmpCanvas = new Canvas(bitmap);
129 drawable.setBounds(0, 0, bitmap.getWidth(), bitmap.getHeight())
    [all...]
  /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();
  /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...]
  /external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
StylizeActivity.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
95 private Bitmap rgbFrameBitmap = null;
96 private Bitmap croppedBitmap = null;
97 private Bitmap cropCopyBitmap = null;
105 private Bitmap textureCopyBitmap;
185 public static Bitmap getBitmapFromAsset(final Context context, final String filePath) {
188 Bitmap bitmap = null; local
191 bitmap = BitmapFactory.decodeStream(inputStream)
    [all...]
  /packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
MediaSource.java 30 import android.graphics.Bitmap;
580 public Bitmap getRoundPackageIcon() {
594 private Bitmap drawableToBitmap(Drawable drawable) {
595 Bitmap bitmap = null; local
605 bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888);
607 bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth()
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
MediaMetadataRetrieverTest.java 28 import android.graphics.Bitmap;
324 List<Bitmap> bitmaps = new ArrayList<>();
336 List<Bitmap> bitmaps = new ArrayList<>();
344 params.setPreferredConfig(Bitmap.Config.RGB_565);
346 Bitmap.Config.RGB_565, params.getPreferredConfig());
349 List<Bitmap> bitmaps = new ArrayList<>();
351 Bitmap bitmap = r.getFrameAtIndex(testCases[i][0], params);
352 assertEquals(Bitmap.Config.RGB_565, params.getActualConfig());
353 bitmaps.add(bitmap);
443 Bitmap bitmap = retriever.getScaledFrameAtTime( local
451 Bitmap bitmap = retriever.getScaledFrameAtTime( local
459 Bitmap bitmap = retriever.getScaledFrameAtTime( local
467 Bitmap bitmap = retriever.getScaledFrameAtTime( local
475 Bitmap bitmap = retriever.getScaledFrameAtTime( local
484 Bitmap bitmap = retriever.getScaledFrameAtTime( local
506 Bitmap bitmap = retriever.getScaledFrameAtTime( local
528 Bitmap bitmap = retriever.getScaledFrameAtTime( local
550 Bitmap bitmap = retriever.getScaledFrameAtTime( local
581 Bitmap bitmap = retriever.getScaledFrameAtTime( local
672 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...]

Completed in 1363 milliseconds

<<11121314151617181920>>