Home
last modified time | relevance | path

Searched refs:Bitmap (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DGraphicsPerformanceTests.java22 import android.graphics.Bitmap;
80 protected Bitmap mDestBitmap;
92 mDestBitmap = Bitmap.createBitmap(SCREEN_WIDTH, SCREEN_HEIGHT, in setUp()
93 Bitmap.Config.RGB_565); in setUp()
164 private Bitmap mBitmap;
179 public abstract Bitmap createBitmap(); in createBitmap()
204 public Bitmap createBitmap() { in createBitmap()
205 return Bitmap.createBitmap(7, 7, Bitmap.Config.RGB_565); in createBitmap()
222 public Bitmap createBitmap() { in createBitmap()
223 return Bitmap.createBitmap(15, 15, Bitmap.Config.RGB_565); in createBitmap()
[all …]
DBitmapTest.java27 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testBasic()
28 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testBasic()
29 Bitmap bm3 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_4444); in testBasic()
55 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888); in testBasic()
56 assertTrue("getConfig", bm2.getConfig() == Bitmap.Config.RGB_565); in testBasic()
57 assertTrue("getConfig", bm3.getConfig() == Bitmap.Config.ARGB_4444); in testBasic()
62 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testMutability()
63 Bitmap bm2 = Bitmap.createBitmap(new int[100 * 200], 100, 200, in testMutability()
64 Bitmap.Config.ARGB_8888); in testMutability()
86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, in testGetPixelsWithAlpha()
[all …]
DBitmapFactoryTest.java33 Bitmap bitmap1 = Bitmap.createBitmap( in testBitmapParcelFileDescriptor()
34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565); in testBitmapParcelFileDescriptor()
36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out); in testBitmapParcelFileDescriptor()
41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd); in testBitmapParcelFileDescriptor()
DThreadBitmapTest.java20 import android.graphics.Bitmap;
38 public Bitmap b;
41 b = Bitmap.createBitmap(300, 300, Bitmap.Config.RGB_565); in MThread()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.CompressFormat;
116 public static Bitmap resizeBitmapByScale( in resizeBitmapByScale()
117 Bitmap bitmap, float scale, boolean recycle) { in resizeBitmapByScale()
122 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); in resizeBitmapByScale()
131 private static Bitmap.Config getConfig(Bitmap bitmap) { in getConfig()
132 Bitmap.Config config = bitmap.getConfig(); in getConfig()
134 config = Bitmap.Config.ARGB_8888; in getConfig()
139 public static Bitmap resizeDownBySideLength( in resizeDownBySideLength()
140 Bitmap bitmap, int maxLength, boolean recycle) { in resizeDownBySideLength()
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java100 public Bitmap inBitmap;
139 public Bitmap.Config inPreferredConfig = Bitmap.Config.ARGB_8888;
371 public static Bitmap decodeFile(String pathName, Options opts) { in decodeFile()
372 Bitmap bm = null; in decodeFile()
401 public static Bitmap decodeFile(String pathName) { in decodeFile()
409 public static Bitmap decodeResourceStream(Resources res, TypedValue value, in decodeResourceStream()
444 public static Bitmap decodeResource(Resources res, int id, Options opts) { in decodeResource()
445 Bitmap bm = null; in decodeResource()
481 public static Bitmap decodeResource(Resources res, int id) { in decodeResource()
498 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) { in decodeByteArray()
[all …]
DBitmap.java29 public final class Bitmap implements Parcelable { class
107 Bitmap(int nativeBitmap, byte[] buffer, int width, int height, int density, in Bitmap() method in Bitmap
554 public Bitmap copy(Config config, boolean isMutable) { in copy()
556 Bitmap b = nativeCopy(mNativeBitmap, config.nativeInt, isMutable); in copy()
577 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, in createScaledBitmap()
580 synchronized (Bitmap.class) { in createScaledBitmap()
595 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter); in createScaledBitmap()
597 synchronized (Bitmap.class) { in createScaledBitmap()
612 public static Bitmap createBitmap(Bitmap src) { in createBitmap()
632 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) { in createBitmap()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameImage2D.java19 import android.graphics.Bitmap;
60 public void setBitmap(Bitmap bitmap) { in setBitmap()
73 public Bitmap toBitmap() { in toBitmap()
74 Bitmap result = (Bitmap)mBackingStore.lockData(MODE_READ, BackingStore.ACCESS_BITMAP); in toBitmap()
116 private static Bitmap convertToFrameType(Bitmap bitmap, FrameType type) { in convertToFrameType()
117 Bitmap.Config config = bitmap.getConfig(); in convertToFrameType()
118 Bitmap result = bitmap; in convertToFrameType()
121 if (config != Bitmap.Config.ARGB_8888) { in convertToFrameType()
122 result = bitmap.copy(Bitmap.Config.ARGB_8888, false); in convertToFrameType()
136 private void validateBitmapSize(Bitmap bitmap, int[] dimensions) { in validateBitmapSize()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DBitmapTexture.java19 import android.graphics.Bitmap;
29 protected Bitmap mContentBitmap;
31 public BitmapTexture(Bitmap bitmap) { in BitmapTexture()
35 public BitmapTexture(Bitmap bitmap, boolean hasBorder) { in BitmapTexture()
42 protected void onFreeBitmap(Bitmap bitmap) { in onFreeBitmap()
47 protected Bitmap onGetBitmap() { in onGetBitmap()
51 public Bitmap getBitmap() { in getBitmap()
DUploadedTexture.java19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
47 private static HashMap<BorderKey, Bitmap> sBorderLines =
48 new HashMap<BorderKey, Bitmap>();
62 protected Bitmap mBitmap;
118 private static Bitmap getBorderLine( in getBorderLine()
124 Bitmap bitmap = sBorderLines.get(key); in getBorderLine()
127 ? Bitmap.createBitmap(1, length, config) in getBorderLine()
128 : Bitmap.createBitmap(length, 1, config); in getBorderLine()
134 private Bitmap getBitmap() { in getBitmap()
[all …]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java22 import android.graphics.Bitmap;
23 import android.graphics.Bitmap.Config;
51 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); in decodeRegion()
91 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion()
97 Bitmap mBuffer;
100 private DumbBitmapRegionDecoder(Bitmap b) { in DumbBitmapRegionDecoder()
104 Bitmap b = BitmapFactory.decodeFile(pathName); in newInstance()
111 Bitmap b = BitmapFactory.decodeStream(is); in newInstance()
123 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion()
130 Bitmap newBitmap = Bitmap.createBitmap( in decodeRegion()
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLUtils.java19 import android.graphics.Bitmap;
48 public static int getInternalFormat(Bitmap bitmap) { in getInternalFormat()
70 public static int getType(Bitmap bitmap) { in getType()
107 Bitmap bitmap, int border) { in texImage2D()
133 Bitmap bitmap, int type, int border) { in texImage2D()
154 public static void texImage2D(int target, int level, Bitmap bitmap, in texImage2D()
190 Bitmap bitmap) { in texSubImage2D()
215 Bitmap bitmap, int format, int type) { in texSubImage2D()
280 native private static int native_getInternalFormat(Bitmap bitmap); in native_getInternalFormat()
281 native private static int native_getType(Bitmap bitmap); in native_getType()
[all …]
/frameworks/base/core/java/android/emoji/
DEmojiFactory.java19 import android.graphics.Bitmap;
60 private Map<Integer, WeakReference<Bitmap>> mCache;
74 mCache = new CustomLinkedHashMap<Integer, WeakReference<Bitmap>>(); in EmojiFactory()
101 public synchronized Bitmap getBitmapFromAndroidPua(int pua) { in getBitmapFromAndroidPua()
102 WeakReference<Bitmap> cache = mCache.get(pua); in getBitmapFromAndroidPua()
104 Bitmap ret = nativeGetBitmapFromAndroidPua(mNativeEmojiFactory, pua); in getBitmapFromAndroidPua()
109 mCache.put(pua, new WeakReference<Bitmap>(ret)); in getBitmapFromAndroidPua()
113 Bitmap tmp = cache.get(); in getBitmapFromAndroidPua()
115 Bitmap ret = nativeGetBitmapFromAndroidPua(mNativeEmojiFactory, pua); in getBitmapFromAndroidPua()
116 mCache.put(pua, new WeakReference<Bitmap>(ret)); in getBitmapFromAndroidPua()
[all …]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DCompareActivity.java25 import android.graphics.Bitmap;
39 protected Bitmap mSoftwareBitmap;
40 protected Bitmap mHardwareBitmap;
67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in onCreateCommon()
68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in onCreateCommon()
83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in loadBitmaps()
84 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in loadBitmaps()
101 .getDeclaredMethod("copyInto", Bitmap.class); in loadBitmaps()
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
DHelloComputeNDK.java22 import android.graphics.Bitmap;
26 private Bitmap mBitmapIn;
27 private Bitmap mBitmapOut;
33 native void nativeMono(int X, int Y, Bitmap in, Bitmap out); in nativeMono()
41 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), mBitmapIn.getHeight(), in onCreate()
54 private Bitmap loadBitmap(int resource) { in loadBitmap()
56 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadBitmap()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFrame.java22 import android.graphics.Bitmap;
89 } else if (object instanceof Bitmap) { in setObjectValue()
90 setBitmap((Bitmap)object); in setObjectValue()
118 public abstract void setBitmap(Bitmap bitmap); in setBitmap()
120 public abstract Bitmap getBitmap(); in getBitmap()
181 protected static Bitmap convertBitmapToRGBA(Bitmap bitmap) { in convertBitmapToRGBA()
182 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888) { in convertBitmapToRGBA()
185 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, false); in convertBitmapToRGBA()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java23 import android.graphics.Bitmap;
90 public static Bitmap createImageThumbnail(String filePath, int kind) { in createImageThumbnail()
99 Bitmap bitmap = null; in createImageThumbnail()
124 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in createImageThumbnail()
158 public static Bitmap createVideoThumbnail(String filePath, int kind) { in createVideoThumbnail()
159 Bitmap bitmap = null; in createVideoThumbnail()
187 bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true); in createVideoThumbnail()
205 public static Bitmap extractThumbnail( in extractThumbnail()
206 Bitmap source, int width, int height) { in extractThumbnail()
218 public static Bitmap extractThumbnail( in extractThumbnail()
[all …]
/frameworks/volley/src/com/android/volley/toolbox/
DImageRequest.java26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.Config;
34 public class ImageRequest extends Request<Bitmap> {
44 private final Response.Listener<Bitmap> mListener;
69 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight, in ImageRequest()
122 protected Response<Bitmap> parseNetworkResponse(NetworkResponse response) { in parseNetworkResponse()
137 private Response<Bitmap> doParse(NetworkResponse response) { in doParse()
140 Bitmap bitmap = null; in doParse()
163 Bitmap tempBitmap = in doParse()
169 bitmap = Bitmap.createScaledBitmap(tempBitmap, in doParse()
[all …]
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java23 import android.graphics.Bitmap;
96 Bitmap scaled = createIconBitmap(src); in createIconDrawable()
114 private Bitmap createIconBitmap(Drawable icon) { in createIconBitmap()
125 Bitmap bitmap = bitmapDrawable.getBitmap(); in createIconBitmap()
126 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) { in createIconBitmap()
154 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, in createIconBitmap()
155 Bitmap.Config.ARGB_8888); in createIconBitmap()
179 private Bitmap createSelectedBitmap(Bitmap src, boolean pressed) { in createSelectedBitmap()
180 final Bitmap result = Bitmap.createBitmap(mIconTextureWidth, mIconTextureHeight, in createSelectedBitmap()
181 Bitmap.Config.ARGB_8888); in createSelectedBitmap()
[all …]
/frameworks/ex/carousel/test/src/com/android/carouseltest/
DCarouselTestActivity.java26 import android.graphics.Bitmap;
51 private Bitmap mGlossyOverlay;
52 private Bitmap mBorder;
84 public Bitmap getTexture(int n) { in getTexture()
85 Bitmap bitmap = Bitmap.createBitmap(TEXTURE_WIDTH, TEXTURE_HEIGHT, in getTexture()
86 Bitmap.Config.ARGB_8888); in getTexture()
102 public Bitmap getDetailTexture(int n) { in getDetailTexture()
103 Bitmap bitmap = Bitmap.createBitmap(DETAIL_TEXTURE_WIDTH, DETAIL_TEXTURE_HEIGHT, in getDetailTexture()
104 Bitmap.Config.ARGB_8888); in getDetailTexture()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCommandParams.java19 import android.graphics.Bitmap;
36 boolean setIcon(Bitmap icon) { return true; } in setIcon()
53 boolean setIcon(Bitmap icon) { in setIcon()
76 boolean setIcon(Bitmap icon) { in setIcon()
97 boolean setIcon(Bitmap icon) { in setIcon()
118 boolean setIcon(Bitmap icon) { in setIcon()
144 boolean setIcon(Bitmap icon) { in setIcon()
172 boolean setIcon(Bitmap icon) { in setIcon()
199 boolean setIcon(Bitmap icon) { in setIcon()
DIconLoader.java21 import android.graphics.Bitmap;
39 private Bitmap mCurrentIcon = null;
47 private Bitmap[] mIcons = null;
48 private HashMap<Integer, Bitmap> mIconsCache = null;
73 mIconsCache = new HashMap<Integer, Bitmap>(50); in IconLoader()
94 mIcons = new Bitmap[recordNumbers.length]; in loadIcons()
234 public static Bitmap parseToBnW(byte[] data, int length){ in parseToBnW()
257 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); in parseToBnW()
284 public static Bitmap parseToRGB(byte[] data, int length, in parseToRGB()
319 return Bitmap.createBitmap(pixels, width, height, in parseToRGB()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
DMediaItemThumbnailTest.java23 import android.graphics.Bitmap;
71 protected void validateThumbnail(Bitmap thumbNailBmp, int outWidth, in validateThumbnail()
98 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForH263QCIF()
117 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForMPEG4VGA()
136 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForMPEG4NTSC()
156 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForMPEG4WVGA()
176 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForMPEG4QCIF()
196 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForH264QCIF()
217 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForH264VGA()
235 final Bitmap thumbNailBmp = mediaVideoItem.getThumbnail(outWidth, in testThumbnailForH264WVGA()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DAllocation.java23 import android.graphics.Bitmap;
61 Bitmap mBitmap;
214 private void setBitmap(Bitmap b) { in setBitmap()
394 private void validateBitmapFormat(Bitmap b) { in validateBitmapFormat()
395 Bitmap.Config bc = b.getConfig(); in validateBitmapFormat()
443 private void validateBitmapSize(Bitmap b) { in validateBitmapSize()
603 public void copyFrom(Bitmap b) { in copyFrom()
606Bitmap newBitmap = Bitmap.createBitmap(b.getWidth(), b.getHeight(), Bitmap.Config.ARGB_8888); in copyFrom()
975 public void copy2DRangeFrom(int xoff, int yoff, Bitmap data) { in copy2DRangeFrom()
978Bitmap newBitmap = Bitmap.createBitmap(data.getWidth(), data.getHeight(), Bitmap.Config.ARGB_8888); in copy2DRangeFrom()
[all …]
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselController.java22 import android.graphics.Bitmap;
56 private Bitmap mDefaultBitmap;
57 private Bitmap mLoadingBitmap;
58 private Bitmap mBackgroundBitmap;
59 private Bitmap mDefaultLineBitmap = Bitmap.createBitmap(
60 new int[] {0x00000000, 0xffffffff, 0x00000000}, 0, 3, 3, 1, Bitmap.Config.ARGB_4444);
91 private Bitmap mDetailLoadingBitmap = Bitmap.createBitmap(
92 new int[] {0}, 0, 1, 1, 1, Bitmap.Config.ARGB_4444);
370 public void setTextureForItem(int n, Bitmap bitmap) { in setTextureForItem()
395 Bitmap bitmap) { in setDetailTextureForItem()
[all …]

12345678910>>...15