Searched defs:bitmap (Results 26 - 50 of 171) sorted by relevance

1234567

/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
H A DFrameSequenceTest.java39 Bitmap bitmap =
41 mBitmaps.add(bitmap);
42 return bitmap;
46 public void releaseBitmap(Bitmap bitmap) { argument
47 if (!mBitmaps.contains(bitmap)) throw new IllegalStateException();
48 mBitmaps.remove(bitmap);
49 bitmap.recycle();
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DResourceRequestKey.java17 package com.android.bitmap;
H A DContiguousFIFOAggregator.java17 package com.android.bitmap;
22 import com.android.bitmap.util.Trace;
H A DUnrefedBitmapCache.java17 package com.android.bitmap;
22 import com.android.bitmap.ReusableBitmap.NullReusableBitmap;
23 import com.android.bitmap.util.Trace;
84 ReusableBitmap bitmap;
86 while ((bitmap = super.poll()) == null && mBlocking) {
104 return bitmap;
H A DUnrefedPooledCache.java17 package com.android.bitmap;
22 import com.android.bitmap.util.Trace;
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DBitmapUtils.java17 package com.android.bitmap.util;
H A DExif.java17 package com.android.bitmap.util;
H A DInputStreamBuffer.java17 package com.android.bitmap.util;
/frameworks/opt/chips/src/com/android/ex/chips/
H A DCircularImageView.java74 Bitmap bitmap = bitmapDrawable.getBitmap();
75 if (bitmap == null) {
79 source.set(0, 0, bitmap.getWidth(), bitmap.getHeight());
83 drawBitmapWithCircleOnCanvas(bitmap, canvas, source, destination);
87 * Given the source bitmap and a canvas, draws the bitmap through a circular
90 * @param bitmap The source bitmap to draw.
92 * @param source The source bound of the bitmap
95 drawBitmapWithCircleOnCanvas(Bitmap bitmap, Canvas canvas, RectF source, RectF dest) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
H A DPhotoBitmapLoader.java32 * Loader for the bitmap of a photo.
58 if (result.bitmap != null) {
59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM);
77 Bitmap bitmap = result != null ? result.bitmap : null;
81 if (bitmap != null) {
82 onReleaseResources(bitmap);
87 mBitmap = bitmap;
98 if (oldBitmap != null && oldBitmap != bitmap && !oldBitmap.isRecycled()) {
113 result.bitmap
168 onReleaseResources(Bitmap bitmap) argument
[all...]
H A DPhotoBitmapLoaderInterface.java19 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);
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DMediaStoreSaver.java35 public static final String save(Bitmap bitmap, argument
59 bitmap.compress(format, 100, fOut);
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java27 protected RoundedBitmapDrawable21(Resources res, Bitmap bitmap) { argument
28 super(res, bitmap);
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java41 // Size of the smaller bitmap we're actually going to scan.
51 * Checks whether a bitmap is grayscale. Grayscale here means "very close to a perfect
54 * Instead of scanning every pixel in the bitmap, we first resize the bitmap to no more than
58 public boolean isGrayscale(Bitmap bitmap) { argument
59 int height = bitmap.getHeight();
60 int width = bitmap.getWidth();
78 mTempCompactBitmapCanvas.drawBitmap(bitmap, mTempMatrix, mTempCompactBitmapPaint);
79 bitmap = mTempCompactBitmap;
85 bitmap
[all...]
/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp96 SkBitmap bitmap; local
97 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region);
/frameworks/base/libs/hwui/
H A DReadback.cpp34 Surface& surface, SkBitmap* bitmap) {
41 int destWidth = bitmap->width();
42 int destHeight = bitmap->height();
45 ALOGW("Can't copy surface into bitmap, %dx%d exceeds max texture size %d",
55 SkAutoLockPixels alp(*bitmap);
62 switch (bitmap->colorType()) {
91 glPixelStorei(GL_PACK_ALIGNMENT, bitmap->bytesPerPixel());
178 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
179 type, bitmap
33 copySurfaceInto(renderthread::RenderThread& renderThread, Surface& surface, SkBitmap* bitmap) argument
[all...]
H A DTextureCache.h75 * acquired for the bitmap, false otherwise. If a Texture was acquired it is
78 bool prefetchAndMarkInUse(void* ownerToken, const SkBitmap* bitmap);
81 * Returns the texture associated with the specified bitmap from either within the cache, or
84 Texture* get(const SkBitmap* bitmap) { argument
85 return get(bitmap, AtlasUsageType::Use);
89 * Returns the texture associated with the specified bitmap. If the texture cannot be found in
92 Texture* getAndBypassAtlas(const SkBitmap* bitmap) { argument
93 return get(bitmap, AtlasUsageType::Bypass);
134 bool canMakeTextureFromBitmap(const SkBitmap* bitmap);
136 Texture* get(const SkBitmap* bitmap, AtlasUsageTyp
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DRecordingCanvasTests.cpp243 SkBitmap bitmap;
244 bitmap.setInfo(SkImageInfo::MakeUnknown(25, 25));
260 canvas.drawBitmap(bitmap, 0, 0, nullptr);
665 SkBitmap bitmap = TestUtils::createSkBitmap(100, 100); local
666 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [&bitmap](RecordingCanvas& canvas) {
667 canvas.drawBitmap(bitmap, 0, 0, nullptr);
674 SkBitmap bitmap = TestUtils::createSkBitmap(100, 100); local
675 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [&bitmap](RecordingCanvas& canvas) {
677 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(bitmap,
688 SkBitmap bitmap local
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java36 * return the internal format as defined by OpenGL ES of the supplied bitmap.
37 * @param bitmap
38 * @return the internal format of the bitmap.
40 public static int getInternalFormat(Bitmap bitmap) { argument
41 if (bitmap == null) {
44 if (bitmap.isRecycled()) {
45 throw new IllegalArgumentException("bitmap is recycled");
47 int result = native_getInternalFormat(bitmap);
55 * Return the type as defined by OpenGL ES of the supplied bitmap, if there
56 * is one. If the bitmap i
62 getType(Bitmap bitmap) argument
98 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int border) argument
124 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
146 texImage2D(int target, int level, Bitmap bitmap, int border) argument
181 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap) argument
206 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
264 native_getInternalFormat(Bitmap bitmap) argument
265 native_getType(Bitmap bitmap) argument
266 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
268 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameImage2D.java51 * 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) { argument
61 bitmap = convertToFrameType(bitmap, mBackingStore.getFrameType());
62 validateBitmapSize(bitmap, mBackingStore.getDimensions());
64 backing.setData(bitmap);
116 private static Bitmap convertToFrameType(Bitmap bitmap, FrameTyp argument
136 validateBitmapSize(Bitmap bitmap, int[] dimensions) argument
[all...]
/frameworks/minikin/libs/minikin/
H A DMinikinFontFreeType.cpp87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap; local
88 result->buffer = bitmap.buffer;
89 result->width = bitmap.width;
90 result->height = bitmap.rows;
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DImageCompare.java18 Bitmap bitmap = BitmapFactory.decodeFile(file_path);
20 bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
39 private static byte[] loadBitmapByteArray(Bitmap bitmap) { argument
40 int bytes = bitmap.getByteCount();
42 bitmap.copyPixelsToBuffer(buffer);
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java37 DefaultRoundedBitmapDrawable(Resources res, Bitmap bitmap) { argument
38 super(res, bitmap);
63 * Returns a new drawable by creating it from a bitmap, setting initial target density based on
66 public static RoundedBitmapDrawable create(Resources res, Bitmap bitmap) { argument
68 return new RoundedBitmapDrawable21(res, bitmap);
70 return new DefaultRoundedBitmapDrawable(res, bitmap);
74 * Returns a new drawable, creating it by opening a given file path and decoding the bitmap.
87 * Returns a new drawable, creating it by decoding a bitmap from the given input stream.
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java38 * This method takes a view and returns a single bitmap that is the layered combination
54 // Create a bitmap
55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
57 // Create a canvas that wraps the bitmap
58 final Canvas canvas = new Canvas(bitmap);
89 // the topmost ancestor) and draw their backgrounds into our combined bitmap. At each step
102 return bitmap;
116 // Create a bitmap
117 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight,
119 // Create a canvas that wraps the bitmap
144 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, int bitmapWidth, int bitmapHeight, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
[all...]
/frameworks/base/core/java/android/os/
H A DUserManagerInternal.java94 public abstract void setUserIcon(int userId, Bitmap bitmap); argument

Completed in 2515 milliseconds

1234567