HomeSort by relevance Sort by last modified time
    Searched full:bitmap (Results 176 - 200 of 5205) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DrawableTileSource.java 20 import android.graphics.Bitmap;
78 Bitmap b = Bitmap.createBitmap((int) width, (int) height, Bitmap.Config.ARGB_8888);
89 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) {
91 if (bitmap == null) {
92 bitmap = Bitmap.createBitmap(tileSize, tileSize, Bitmap.Config.ARGB_8888)
    [all...]
  /packages/apps/TV/src/com/android/tv/util/
BitmapUtils.java 22 import android.graphics.Bitmap;
54 public static Bitmap scaleBitmap(Bitmap bm, int maxWidth, int maxHeight) {
56 return Bitmap.createScaledBitmap(bm, rect.right, rect.bottom, false);
59 private static Rect calculateNewSize(Bitmap bm, int maxWidth, int maxHeight) {
73 public static ScaledBitmapInfo createScaledBitmapInfo(String id, Bitmap bm, int maxWidth,
80 * Decode large sized bitmap into requested size.
104 // Check the bitmap dimensions.
109 // Rewind the stream in order to restart bitmap decoding.
125 // Decode the bitmap possibly resizing it
129 Bitmap bitmap = BitmapFactory.decodeStream(inputStream, null, options); local
202 public final Bitmap bitmap; field in class:BitmapUtils.ScaledBitmapInfo
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DecodedImageResource.java 19 import android.graphics.Bitmap;
33 * Container class for holding a bitmap resource used by the MediaResourceManager. This resource
40 private Bitmap mBitmap;
44 public DecodedImageResource(final String key, final Bitmap bitmap, int orientation) {
46 mBitmap = bitmap;
51 * Gets the contained bitmap.
54 public Bitmap getBitmap() {
64 * Attempt to reuse the bitmap in the image resource and repurpose it for something else.
65 * After this, the image resource will relinquish ownership on the bitmap resource so tha
192 Bitmap bitmap = getBitmap(); local
    [all...]
  /cts/tests/tests/view/src/android/view/cts/util/
DrawingUtils.java 19 import android.graphics.Bitmap;
34 * offscreen bitmap and checks each pixel to match the expected color. The expected color
45 // Create a bitmap that matches the size of our view
46 final Bitmap bitmap = Bitmap.createBitmap(viewWidth, viewHeight, Bitmap.Config.ARGB_8888); local
47 // Create a canvas that wraps the bitmap
48 final Canvas canvas = new Canvas(bitmap);
49 // And ask the view to draw itself to the canvas / bitmap
    [all...]
  /development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
CustomArrayAdapter.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
104 Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(), local
108 imgView.setImageBitmap(CustomArrayAdapter.getCroppedBitmap(bitmap));
114 * Returns a circular cropped version of the bitmap passed in.
116 public static Bitmap getCroppedBitmap(Bitmap bitmap) {
117 Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight()
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
ImageSavingTask.java 20 import android.graphics.Bitmap;
40 Bitmap previewImage;
45 Bitmap bitmap; field in class:ImageSavingTask.UpdateBitmap
69 Bitmap previewImage, boolean flatten,
89 Bitmap previewImage = request.previewImage;
93 // We create a small bitmap showing the result that we can
96 updateBitmap.bitmap = createNotificationBitmap(previewImage, sourceUri, preset);
139 Bitmap bitmap = ((UpdateBitmap) message).bitmap local
155 Bitmap bitmap = ImageLoader.loadConstrainedBitmap(sourceUri, getContext(), local
    [all...]
  /cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
RGBZ.java 21 import android.graphics.Bitmap;
42 private Bitmap bitmap; field in class:RGBZ
43 private Bitmap preview;
44 private Bitmap depthBitmap;
61 bitmap = setAlphaChannel(preview, depthBitmap);
80 bitmap = setAlphaChannel(preview, depthBitmap);
92 * @return The color+depth {@code Bitmap}
94 public Bitmap getBitmap() {
95 return bitmap;
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
BitmapVerifier.java 18 import android.graphics.Bitmap;
22 * Checks to see if a Bitmap follows the algorithm provided by the verifier
28 protected Bitmap mDifferenceBitmap;
31 * This will test if the bitmap is good or not.
33 public abstract boolean verify(int[] bitmap, int offset, int stride, int width, int height);
36 * This calculates the position in an array that would represent a bitmap given the parameters.
42 public Bitmap getDifferenceBitmap() {
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
Rgba16fTests.java 20 import android.graphics.Bitmap;
48 Bitmap bitmap = BitmapFactory.decodeStream(in);
50 width / (float) bitmap.getWidth(),
51 height / (float) bitmap.getHeight());
52 canvas.drawBitmap(bitmap, 0, 0, null);
69 Bitmap bitmap = BitmapFactory.decodeStream(in);
71 width / (float) bitmap.getWidth(),
72 height / (float) bitmap.getHeight())
    [all...]
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageCache.java 20 import android.graphics.Bitmap;
30 * This class holds our bitmap caches (memory and disk).
34 private LruCache<String, Bitmap> mMemoryCache;
83 mMemoryCache = new LruCache<String, Bitmap>(memCacheSize) {
86 * for a bitmap cache
89 protected int sizeOf(String key, Bitmap bitmap) {
90 final int bitmapSize = getBitmapSize(bitmap) / 1024;
97 * Adds a bitmap to both memory and disk cache.
98 * @param data Unique identifier for the bitmap to stor
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
VideoBitmapDecoder.java 1 package com.bumptech.glide.load.resource.bitmap;
3 import android.graphics.Bitmap;
13 * An {@link com.bumptech.glide.load.resource.bitmap.BitmapDecoder} that can decode a thumbnail frame
14 * {@link Bitmap} from a {@link android.os.ParcelFileDescriptor} containing a video.
31 public Bitmap decode(ParcelFileDescriptor resource, BitmapPool bitmapPool, int outWidth, int outHeight,
36 Bitmap result = mediaMetadataRetriever.getFrameAtTime();
44 return "VideoBitmapDecoder.com.bumptech.glide.load.resource.bitmap";
  /frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
PhotoBitmapLoaderInterface.java 4 import android.graphics.Bitmap;
19 public Bitmap bitmap; field in class:PhotoBitmapLoaderInterface.BitmapResult
25 * the underlying bitmap is null).
36 // Don't create a new drawable if there's no bitmap. PhotoViewFragment regards
39 if (bitmap == null) {
43 return new BitmapDrawable(resources, bitmap);
  /packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
RefcountBitmapDrawable.java 19 import android.graphics.Bitmap;
28 private RefcountObject<Bitmap> mRefcountObject;
33 public RefcountBitmapDrawable(Resources res, RefcountObject<Bitmap> bitmap) {
34 super(res, bitmap.getObject());
35 mRefcountObject = bitmap;
45 public RefcountObject<Bitmap> getRefcountObject() {
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
ResourceTexture.java 20 import android.graphics.Bitmap;
25 // ResourceTexture is a texture whose Bitmap is decoded from a resource.
40 protected Bitmap onGetBitmap() {
42 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
48 protected void onFreeBitmap(Bitmap bitmap) {
50 bitmap.recycle();
  /frameworks/base/graphics/java/android/graphics/
BitmapFactory.java 34 * Creates Bitmap objects from various sources, including files, streams,
52 * reuse this bitmap when loading content. If the decode operation
53 * cannot use this bitmap, the decode method will throw an
55 * current implementation necessitates that the reused bitmap be
56 * mutable, and the resulting reused bitmap will continue to remain
58 * an immutable bitmap.</p>
60 * <p>You should still always use the returned Bitmap of the decode
61 * method and not assume that reusing the bitmap worked, due to the
64 * set in the Options structure will indicate if the bitmap was reused,
65 * but in all cases you should use the Bitmap returned by the decodin
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
GifDrawableTransformation.java 3 import android.graphics.Bitmap;
8 import com.bumptech.glide.load.resource.bitmap.BitmapResource;
11 * An {@link com.bumptech.glide.load.Transformation} that wraps a transformation for a {@link Bitmap}
15 private final Transformation<Bitmap> wrapped;
18 public GifDrawableTransformation(Transformation<Bitmap> wrapped, BitmapPool bitmapPool) {
31 Bitmap firstFrame = resource.get().getFirstFrame();
32 Resource<Bitmap> bitmapResource = new BitmapResource(firstFrame, bitmapPool);
33 Resource<Bitmap> transformed = wrapped.transform(bitmapResource, outWidth, outHeight);
37 Bitmap transformedFrame = transformed.get();
  /packages/apps/TV/res/drawable/
btn_lock_material_anim.xml 20 <bitmap
26 <bitmap
32 <bitmap
37 <bitmap
44 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_000" android:tint="?android:attr/colorControlNormal" />
47 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_001" android:tint="?android:attr/colorControlNormal" />
50 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_002" android:tint="?android:attr/colorControlNormal" />
53 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_003" android:tint="?android:attr/colorControlNormal" />
56 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_004" android:tint="?android:attr/colorControlNormal" />
59 <bitmap android:src="@drawable/ic_tvsidepanel_lock_to_on_005" android:tint="?android:attr/colorControlNorm (…)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
ShaderTest.java 23 import android.graphics.Bitmap;
47 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); local
49 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
74 Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.RGB_565) local
    [all...]
  /external/pdfium/core/fpdfapi/page/
fpdf_page_func_embeddertest.cpp 17 FPDF_BITMAP bitmap = RenderPage(page); local
18 CompareBitmap(bitmap, 612, 792, "1940568c9ba33bac5d0b1ee9558c76b3");
19 FPDFBitmap_Destroy(bitmap);
  /external/pdfium/core/fpdfapi/render/
fpdf_render_pattern_embeddertest.cpp 14 FPDF_BITMAP bitmap = RenderPage(page); local
15 CompareBitmap(bitmap, 612, 792, "1940568c9ba33bac5d0b1ee9558c76b3");
16 FPDFBitmap_Destroy(bitmap);
  /external/pdfium/core/fxcodec/codec/
fx_codec_embeddertest.cpp 16 FPDF_BITMAP bitmap = RenderPage(page); local
17 CompareBitmap(bitmap, 691, 432, "24d75af646f8772c5ee7ced260452ae4");
18 FPDFBitmap_Destroy(bitmap);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
BitmapLoader.java 19 import android.graphics.Bitmap;
27 // 2.) as a place holder for the loaded bitmap
28 public abstract class BitmapLoader implements FutureListener<Bitmap> {
45 private Future<Bitmap> mTask;
46 private Bitmap mBitmap;
49 public void onFutureDone(Future<Bitmap> future) {
84 // Recycle the loader and the bitmap
102 public synchronized Bitmap getBitmap() {
106 abstract protected Future<Bitmap> submitBitmapTask(FutureListener<Bitmap> l)
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
HolographicViewHelper.java 21 import android.graphics.Bitmap;
46 Bitmap original = createOriginalImage(v, mTempCanvas);
47 Bitmap outline = createPressImage(v, mTempCanvas);
72 private Bitmap createOriginalImage(ImageView v, Canvas canvas) {
74 final Bitmap b = Bitmap.createBitmap(
75 d.getIntrinsicWidth(), d.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
88 * Responsibility for the bitmap is transferred to the caller.
90 private Bitmap createPressImage(ImageView v, Canvas canvas) {
92 final Bitmap b = Bitmap.createBitmap
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/
OrientedBitmapDrawable.java 20 import android.graphics.Bitmap;
31 * A drawable that draws a bitmap in a flipped or rotated orientation without having to adjust the
32 * bitmap
41 public static BitmapDrawable create(final int orientation, Resources res, Bitmap bitmap) {
43 // No need to adjust the bitmap, so just use a regular BitmapDrawable
44 return new BitmapDrawable(res, bitmap);
46 // Create an oriented bitmap drawable
47 return new OrientedBitmapDrawable(orientation, res, bitmap);
51 private OrientedBitmapDrawable(final int orientation, Resources res, Bitmap bitmap)
    [all...]
  /frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
AlbumArtCache.java 19 import android.graphics.Bitmap;
49 private final LruCache<String, Bitmap[]> mCache;
62 mCache = new LruCache<String, Bitmap[]>(maxSize) {
64 protected int sizeOf(String key, Bitmap[] value) {
71 public Bitmap getBigImage(String artUrl) {
72 Bitmap[] result = mCache.get(artUrl);
76 public Bitmap getIconImage(String artUrl) {
77 Bitmap[] result = mCache.get(artUrl);
84 // requests and bitmap rescales. For production-level apps, we recommend you use
86 Bitmap[] bitmap = mCache.get(artUrl) local
99 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [all...]

Completed in 3032 milliseconds

1 2 3 4 5 6 78 91011>>