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

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/jni/android/graphics/
Shader.cpp 86 SkBitmap bitmap; local
88 // Only pass a valid SkBitmap object to the constructor if the Bitmap exists. Otherwise,
90 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
92 SkShader* s = SkShader::CreateBitmapShader(bitmap,
257 { "nativeCreate", "(Landroid/graphics/Bitmap;II)J", (void*)BitmapShader_constructor },
  /frameworks/base/core/jni/
android_view_TextureView.cpp 161 SkBitmap bitmap; local
162 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
165 bitmap.setPixels(buffer.bits);
167 bitmap.setPixels(NULL);
171 nativeCanvas->setBitmap(bitmap);
  /frameworks/base/libs/hwui/
SkiaShader.cpp 200 SkBitmap bitmap; local
202 if (shader.asABitmap(&bitmap, nullptr, xy) != SkShader::kDefault_BitmapType) {
212 outData->bitmapTexture = caches.textureCache.getAndBypassAtlas(&bitmap);
269 // The shader is not a gradient. Check for a bitmap shader.
281 "failed storing bitmap shader data");
  /frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
ObjectBrowser.java 23 import android.graphics.Bitmap;
96 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length); local
97 if (bitmap != null) {
99 thumbView.setImageBitmap(bitmap);
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
BitmapShader_Delegate.java 78 /*package*/ static long nativeCreate(Bitmap androidBitmap, int shaderTileModeX,
80 Bitmap_Delegate bitmap = Bitmap_Delegate.getDelegate(androidBitmap); local
81 if (bitmap == null) {
86 bitmap.getImage(),
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderDrawable.java 28 import android.graphics.Bitmap;
152 // create an Android bitmap around the BufferedImage
153 Bitmap bitmap = Bitmap_Delegate.createBitmap(image, local
156 // create a Canvas around the Android bitmap
157 Canvas canvas = new Canvas(bitmap);
  /frameworks/minikin/sample/
example_skia.cpp 131 SkBitmap bitmap; local
132 bitmap.allocN32Pixels(width, height);
133 SkCanvas canvas(bitmap);
144 SkImageEncoder::EncodeFile("/data/local/tmp/foo.png", bitmap, SkImageEncoder::kPNG_Type, 100);
  /frameworks/opt/bitmap/src/com/android/bitmap/
ReusableBitmap.java 17 package com.android.bitmap;
19 import android.graphics.Bitmap;
22 * A simple bitmap wrapper. Currently supports reference counting and logical width/height
23 * (which may differ from a bitmap's reported width/height due to bitmap reuse).
27 public final Bitmap bmp;
35 public ReusableBitmap(final Bitmap bitmap) {
36 this(bitmap, true /* reusable */);
39 public ReusableBitmap(final Bitmap bitmap, final boolean reusable)
    [all...]
  /frameworks/opt/bitmap/src/com/android/bitmap/util/
InputStreamBuffer.java 17 package com.android.bitmap.util;
  /frameworks/opt/bitmap/src/com/android/bitmap/view/
BitmapDrawableImageView.java 17 package com.android.bitmap.view;
20 import android.graphics.Bitmap;
27 import com.android.bitmap.drawable.BasicBitmapDrawable;
127 public void setImageBitmap(final Bitmap bm) {
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
MediaControllerGlue.java 4 import android.graphics.Bitmap;
179 Bitmap bitmap = mMediaController.getMetadata().getDescription().getIconBitmap(); local
180 return bitmap == null ? null : new BitmapDrawable(getContext().getResources(), bitmap);
  /frameworks/volley/src/main/java/com/android/volley/toolbox/
ImageRequest.java 26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.Config;
33 * back with a decoded Bitmap.
35 public class ImageRequest extends Request<Bitmap> {
45 private final Response.Listener<Bitmap> mListener;
64 * @param listener Listener to receive the decoded bitmap
65 * @param maxWidth Maximum width to decode this bitmap to, or zero for none
66 * @param maxHeight Maximum height to decode this bitmap to, or zero for
69 * @param decodeConfig Format to decode the bitmap to
72 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight
173 Bitmap bitmap = null; local
    [all...]
  /packages/apps/Camera2/src/com/android/camera/data/
FilmstripItemUtils.java 19 import android.graphics.Bitmap;
58 * Decodes the dimension of a bitmap.
60 * @param is An input stream with the data of the bitmap.
72 Log.e(TAG, "Bitmap dimension decoding failed");
90 public static Bitmap loadImageThumbnailFromStream(InputStream stream, int imageWidth,
103 // Generate Bitmap of maximum size that fits into widthBound x heightBound.
117 // Bitmap requests:
130 Bitmap b = BitmapFactory.decodeStream(stream, null, opts);
137 // If Bitmap maximum edge > MAXIMUM_TEXTURE_SIZE, which can happen for panoramas,
142 b = Bitmap.createScaledBitmap(b, b.getWidth() * GL11.GL_MAX_TEXTURE_SIZE / maxEdge
163 Bitmap bitmap = null; local
    [all...]
  /packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
JpegImageBackendImageSaver.java 19 import android.graphics.Bitmap;
125 // Bitmap
128 final Bitmap bitmap = BitmapFactory.decodeByteArray(payload.data, 0, local
133 // NOT applied to the bitmap directly.
135 mSession.updateCaptureIndicatorThumbnail(bitmap, rotation);
154 /** Factor to downsample full-size JPEG image for use in thumbnail bitmap. */
YuvImageBackendImageSaver.java 19 import android.graphics.Bitmap;
136 // Load bitmap into CameraAppUI
139 final Bitmap bitmap = Bitmap.createBitmap(payload.data, local
141 task.result.height, Bitmap.Config.ARGB_8888);
142 mSession.updateCaptureIndicatorThumbnail(bitmap, mImageRotation.getDegrees());
145 final Bitmap bitmapIntermediate = Bitmap.createBitmap(payload.data,
147 task.result.height, Bitmap.Config.ARGB_8888)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/session/
PlaceholderManager.java 22 import android.graphics.Bitmap;
85 public Placeholder insertPlaceholder(String title, Bitmap placeholder, long timestamp) {
107 Bitmap bitmap = BitmapFactory.decodeByteArray(placeholder, 0, placeholder.length, options); local
108 return insertPlaceholder(title, bitmap, timestamp);
148 * @param placeholder the placeholder bitmap
150 public void replacePlaceholder(Placeholder session, Bitmap placeholder) {
158 * @param placeholder the session for which to retrieve bitmap placeholder
160 public Optional<Bitmap> getPlaceholder(Placeholder placeholder) {
168 * @param placeholder the session for which to remove the bitmap placeholder
    [all...]
  /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/Settings/src/com/android/settings/
CreateShortcut.java 25 import android.graphics.Bitmap;
26 import android.graphics.Bitmap.Config;
75 private Bitmap createIcon(int resource) {
82 Bitmap bitmap = Bitmap.createBitmap(view.getMeasuredWidth(), view.getMeasuredHeight(), local
84 Canvas canvas = new Canvas(bitmap);
87 return bitmap;
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
ContactPhotoUtils.java 21 import android.graphics.Bitmap;
78 * Creates a byte[] containing the PNG-compressed bitmap, or null if
81 public static byte[] compressBitmap(Bitmap bitmap) {
82 final int size = bitmap.getWidth() * bitmap.getHeight() * 4;
85 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
  /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...]

Completed in 3197 milliseconds

1 2 3 4 5 6 7 8 91011>>