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

1 2 34 5 6 7 8 91011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterVibrance.java 21 import android.graphics.Bitmap;
43 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float bright);
46 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
48 return bitmap;
50 int w = bitmap.getWidth();
51 int h = bitmap.getHeight();
53 nativeApplyFilter(bitmap, w, h, value)
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
GifFrameResourceDecoder.java 3 import android.graphics.Bitmap;
9 import com.bumptech.glide.load.resource.bitmap.BitmapResource;
11 class GifFrameResourceDecoder implements ResourceDecoder<GifDecoder, Bitmap> {
19 public Resource<Bitmap> decode(GifDecoder source, int width, int height) {
20 Bitmap bitmap = source.getNextFrame(); local
21 return BitmapResource.obtain(bitmap, bitmapPool);
  /external/glide/library/src/main/java/com/bumptech/glide/request/target/
BitmapImageViewTarget.java 3 import android.graphics.Bitmap;
7 * A {@link com.bumptech.glide.request.target.Target} that can display an {@link android.graphics.Bitmap} in an
12 public class BitmapImageViewTarget extends ImageViewTarget<Bitmap> {
18 * Sets the {@link android.graphics.Bitmap} on the view using
19 * {@link android.widget.ImageView#setImageBitmap(android.graphics.Bitmap)}.
21 * @param resource The bitmap to display.
24 protected void setResource(Bitmap resource) {
  /packages/apps/Dialer/java/com/android/dialer/util/
DrawableConverter.java 20 import android.graphics.Bitmap;
35 /** Converts the provided drawable to a bitmap using the drawable's intrinsic width and height. */
37 public static Bitmap drawableToBitmap(@Nullable Drawable drawable) {
42 * Converts the provided drawable to a bitmap with the specified width and height.
48 public static Bitmap drawableToBitmap(@Nullable Drawable drawable, int width, int height) {
53 Bitmap bitmap; local
55 bitmap = ((BitmapDrawable) drawable).getBitmap();
58 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)
86 Bitmap bitmap = drawableToBitmap(photo); local
    [all...]
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
Bitmaps.java 19 import android.graphics.Bitmap;
25 public static Bitmap createTestBitmap(int width, int height) {
26 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
28 return bitmap;
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapShaderTest.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
46 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888);
57 // create a bitmap that fits (NUM_TILES - 0.5) tiles in both directions
58 Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2,
73 * bitmap.
75 private void verifyTile(Bitmap bitmap, int tileX, int tileY)
101 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); local
123 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); local
145 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); local
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
BitmapDecoder.java 1 package com.bumptech.glide.load.resource.bitmap;
3 import android.graphics.Bitmap;
9 * A bitmap decoder for a given resource type.
11 * @param <T> The type of resource this decoder can decode a {@link Bitmap} from.
15 * Returns a decoded bitmap for a given resource and target dimensions.
18 * @param bitmapPool A bitmap pool that can be used to reuse bitmaps during the load. Any bitmaps created or
19 * obtained from the pool other than the bitmap returned by this method should be returned to the
21 * @param outWidth The target width for the returned bitmap (need not match exactly).
22 * @param outHeight The target height for the returned bitmap (need not match exactly).
23 * @param decodeFormat The desired configuration for the returned bitmap
    [all...]
  /development/samples/browseable/MediaBrowserService/src/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...]
  /packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
BitmapUtils.java 23 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.Config;
42 * Scales a bitmap while preserving the proportions such that both dimensions are the smallest
45 * This function can be a few times as expensive as Bitmap.createScaledBitmap with
48 * @param bm The bitmap to scale.
51 * @return The scaled bitmap, or the original bitmap if scaling was not necessary.
53 public static Bitmap scaleBitmap(Bitmap bm, int width, int height) {
65 Bitmap scaledBm = bm
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
FrameImage2D.java 19 import android.graphics.Bitmap;
51 * Assigns the pixel data of the specified bitmap.
53 * The RGBA pixel data will be extracted from the bitmap and assigned to the frame data. Note,
58 * @param bitmap The bitmap pixels to assign.
60 public void setBitmap(Bitmap bitmap) {
61 bitmap = convertToFrameType(bitmap, mBackingStore.getFrameType());
62 validateBitmapSize(bitmap, mBackingStore.getDimensions())
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
PixelCopyTest.java 27 import android.graphics.Bitmap;
28 import android.graphics.Bitmap.Config;
90 Bitmap dest = null;
96 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888);
103 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888);
110 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888)
168 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
181 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
191 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
201 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
211 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
223 Bitmap bitmap = Bitmap.createBitmap(20, 20, Config.ARGB_8888); local
249 Bitmap bitmap; local
267 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
280 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
293 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
308 Bitmap bitmap = Bitmap.createBitmap(20, 20, Config.ARGB_8888); local
375 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
423 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); local
    [all...]
  /art/runtime/gc/accounting/
heap_bitmap-inl.h 30 for (const auto& bitmap : continuous_space_bitmaps_) {
31 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor);
33 for (const auto& bitmap : large_object_bitmaps_) {
34 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor);
39 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local
40 if (LIKELY(bitmap != nullptr))
53 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local
68 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local
85 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/
BitmapTypeRequest.java 3 import android.graphics.Bitmap;
17 * A class for creating a load request that either loads an {@link Bitmap} directly or that adds an
18 * {@link com.bumptech.glide.load.resource.transcode.ResourceTranscoder} to transcode the {@link Bitmap} into another
21 * @param <ModelType> The type of model to load the {@link Bitmap} or transcoded class from.
23 public class BitmapTypeRequest<ModelType> extends BitmapRequestBuilder<ModelType, Bitmap> {
29 private static <A, R> FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R> buildProvider(Glide glide,
32 Class<R> transcodedClass, ResourceTranscoder<Bitmap, R> transcoder) {
38 transcoder = glide.buildTranscoder(Bitmap.class, transcodedClass);
40 DataLoadProvider<ImageVideoWrapper, Bitmap> loadProvider = glide.buildDataProvider(ImageVideoWrapper.class,
41 Bitmap.class)
    [all...]
  /external/e2fsprogs/lib/ext2fs/
gen_bitmap64.c 51 * new-style interfaces will support either type of bitmap, although
53 * new-style interface and the new-style bitmap are used.
55 * For example, the new bitmap interfaces will check the structure
56 * magic numbers and so will be able to detect old-stype bitmap. If
57 * they see an old-style bitmap, they will pass it to the gen_bitmap.c
67 * loop detections in pass 3, the bitmap will *always* be sparse, so
71 static void warn_bitmap(ext2fs_generic_bitmap bitmap,
75 if (bitmap->description)
76 com_err(0, bitmap->base_error_code+code,
77 "#%llu for %s", arg, bitmap->description)
96 ext2fs_generic_bitmap bitmap; local
    [all...]
  /packages/apps/Car/Stream/src/com/android/car/stream/
BitmapUtils.java 19 import android.graphics.Bitmap;
31 * Returns a {@link Bitmap} from a {@link VectorDrawable}.
33 * retrieve a bitmap from a VectorDrawable, so this method works around that.
36 public static Bitmap getBitmap(VectorDrawable vectorDrawable) {
41 Bitmap bitmap = Bitmap.createBitmap(vectorDrawable.getIntrinsicWidth(), local
42 vectorDrawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
43 Canvas canvas = new Canvas(bitmap);
46 return bitmap;
    [all...]
  /packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
UploadedTexture.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
28 // UploadedTextures use a Bitmap for the content of the texture.
30 // Subclasses should implement onGetBitmap() to provide the Bitmap and
31 // implement onFreeBitmap(mBitmap) which will be called when the Bitmap
46 private static HashMap<BorderKey, Bitmap> sBorderLines = new HashMap<BorderKey, Bitmap>();
55 protected Bitmap mBitmap;
61 private static Bitmap getBorderLine(boolean vertical, Config config, int length) {
63 Bitmap bitmap = sBorderLines.get(key) local
129 Bitmap bitmap = getBitmap(); local
139 Bitmap bitmap = getBitmap(); local
    [all...]
  /frameworks/base/libs/hwui/tests/common/
BitmapAllocationTestUtils.h 30 static sk_sp<Bitmap> allocateHeapBitmap(int width, int height,
31 SkColorType colorType, std::function<void(SkBitmap& bitmap)> setup) {
32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType); local
34 bitmap->getSkBitmap(&skBitmap);
36 return bitmap;
39 static sk_sp<Bitmap> allocateHardwareBitmap(int width, int height,
40 SkColorType colorType, std::function<void(SkBitmap& bitmap)> setup) {
44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap, nullptr))
    [all...]
  /packages/apps/DevCamera/src/com/android/devcamera/
BitmapUtility.java 18 import android.graphics.Bitmap;
26 * Some Bitmap utility functions.
30 public static Bitmap bitmapFromJpeg(byte[] data) {
37 Bitmap b = BitmapFactory.decodeByteArray(data, 0, data.length, opts);
42 public static Bitmap bitmapFromYuvImage(Image img) {
54 Bitmap b = Bitmap.createBitmap(colors, w, h, Bitmap.Config.ARGB_8888);
60 * Returns parameter bitmap rotated 90 degrees
62 private static Bitmap rotatedBitmap(Bitmap b)
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
SizeStrategy.java 4 import android.graphics.Bitmap;
12 * A strategy for reusing bitmaps that relies on {@link Bitmap#reconfigure(int, int, Bitmap.Config)}.
19 private final GroupedLinkedMap<Key, Bitmap> groupedMap = new GroupedLinkedMap<Key, Bitmap>();
23 public void put(Bitmap bitmap) {
24 int size = Util.getBitmapByteSize(bitmap);
27 groupedMap.put(key, bitmap);
34 public Bitmap get(int width, int height, Bitmap.Config config)
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBitmapDrawable.java 6 import android.graphics.Bitmap;
20 private Bitmap bitmap; field in class:ShadowBitmapDrawable
29 public void __constructor__(Bitmap bitmap) {
30 this.bitmap = bitmap;
33 public void __constructor__(Resources resources, Bitmap bitmap) {
34 this.bitmap = bitmap
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
ColorSpaceTests.java 19 import static android.graphics.Bitmap.Config.ARGB_8888;
20 import static android.graphics.Bitmap.Config.HARDWARE;
21 import static android.graphics.Bitmap.Config.RGB_565;
24 import android.graphics.Bitmap;
48 private Bitmap mMask;
52 Bitmap res = BitmapFactory.decodeResource(getActivity().getResources(),
54 mMask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), Bitmap.Config.ALPHA_8);
62 Bitmap bitmap8888 = loadAsset("green-p3.png", ARGB_8888);
63 Bitmap bitmapHardware = loadAsset("green-p3.png", HARDWARE)
80 Bitmap bitmap = loadAsset("green-p3.png", RGB_565); local
112 Bitmap bitmap = loadAsset("orange-prophotorgb.png", RGB_565); local
170 Bitmap bitmap; local
    [all...]
  /external/skia/gm/
extractbitmap.cpp 16 static void create_bitmap(SkBitmap* bitmap) {
19 bitmap->allocN32Pixels(W, H);
21 SkCanvas canvas(*bitmap);
43 SkBitmap bitmap; variable
44 create_bitmap(&bitmap); variable
45 int x = bitmap.width() / 2;
46 int y = bitmap.height() / 2;
50 canvas->drawBitmap(bitmap, 0, 0);
55 // Draw the bottom right fourth of the bitmap over the top left
57 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y))
    [all...]
  /packages/apps/Gallery2/src/com/android/photos/
BitmapRegionTileSource.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
78 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;
83 // Although this is the same size as the Bitmap that is likely already
85 // thread. Thus to simplify, this source will decode its own bitmap.
86 Bitmap preview = decodePreview(path, previewSize);
125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) {
134 if (bitmap == null)
164 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CreateBitmap.java 53 private Bitmap[] mBitmaps;
54 private Bitmap[] mJPEG;
55 private Bitmap[] mPNG;
59 private static Bitmap codec(Bitmap src, Bitmap.CompressFormat format,
75 mBitmaps = new Bitmap[6];
77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
78 Bitmap.Config.ARGB_8888);
79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT
    [all...]
  /external/e2fsprogs/tests/r_move_itable/
expect 50 Block bitmap at 130 (+129), Inode bitmap at 131 (+130)
58 Block bitmap at 386 (+129), Inode bitmap at 387 (+130)
64 Block bitmap at 513 (+0), Inode bitmap at 514 (+1)
72 Block bitmap at 898 (+129), Inode bitmap at 899 (+130)
78 Block bitmap at 1025 (+0), Inode bitmap at 1026 (+1
    [all...]

Completed in 867 milliseconds

1 2 34 5 6 7 8 91011>>