Home
last modified time | relevance | path

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

12345678910>>...12

/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/graphics/java/android/graphics/
DBitmapFactory.java66 public Bitmap inBitmap;
106 public Bitmap.Config inPreferredConfig = Bitmap.Config.ARGB_8888;
296 public static Bitmap decodeFile(String pathName, Options opts) { in decodeFile()
297 Bitmap bm = null; in decodeFile()
325 public static Bitmap decodeFile(String pathName) { in decodeFile()
333 public static Bitmap decodeResourceStream(Resources res, TypedValue value, in decodeResourceStream()
368 public static Bitmap decodeResource(Resources res, int id, Options opts) { in decodeResource()
369 Bitmap bm = null; in decodeResource()
405 public static Bitmap decodeResource(Resources res, int id) { in decodeResource()
422 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) { in decodeByteArray()
[all …]
DBitmap.java29 public final class Bitmap implements Parcelable { class
98 /*package*/ Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, in Bitmap() method in Bitmap
111 /*package*/ Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, in Bitmap() method in Bitmap
427 public Bitmap copy(Config config, boolean isMutable) { in copy()
429 Bitmap b = nativeCopy(mNativeBitmap, config.nativeInt, isMutable); in copy()
448 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, in createScaledBitmap()
451 synchronized (Bitmap.class) { in createScaledBitmap()
466 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter); in createScaledBitmap()
468 synchronized (Bitmap.class) { in createScaledBitmap()
483 public static Bitmap createBitmap(Bitmap src) { in createBitmap()
[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()
282 native private static int native_getInternalFormat(Bitmap bitmap); in native_getInternalFormat()
283 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/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/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()
DNativeFrame.java25 import android.graphics.Bitmap;
170 public void setBitmap(Bitmap bitmap) { in setBitmap()
178 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap); in setBitmap()
188 public Bitmap getBitmap() { in getBitmap()
192 Bitmap result = Bitmap.createBitmap(getFormat().getWidth(), in getBitmap()
194 Bitmap.Config.ARGB_8888); in getBitmap()
258 private native boolean setNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); in setNativeBitmap()
260 private native boolean getNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); in getNativeBitmap()
/frameworks/support/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/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) { in finishDecode()
69 final Bitmap oldBitmap = bm; in finishDecode()
70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f), in finishDecode()
88 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage, in nativeDecodeStream()
94 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage, in nativeDecodeStream()
96 Bitmap bm = null; in nativeDecodeStream()
140 /*package*/ static Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, in nativeDecodeFileDescriptor()
147 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { in nativeDecodeAsset()
153 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts, in nativeDecodeAsset()
160 /*package*/ static Bitmap nativeDecodeByteArray(byte[] data, int offset, in nativeDecodeByteArray()
/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()
DTaskSwitcherActivity.java39 import android.graphics.Bitmap;
44 import android.graphics.Bitmap.Config;
64 private Bitmap mBlankBitmap = Bitmap.createBitmap(128, 128, Config.RGB_565);
69 Bitmap thumbnail;
76 public ActivityDescription(Bitmap _thumbnail, in ActivityDescription()
143 public Bitmap getTexture(int n) { in getTexture()
145 Bitmap bitmap = desc.thumbnail == null ? mBlankBitmap : desc.thumbnail; in getTexture()
150 public Bitmap getDetailTexture(int n) { in getDetailTexture()
151 Bitmap bitmap = null; in getDetailTexture()
154 bitmap = Bitmap.createBitmap(DETAIL_TEXTURE_WIDTH, DETAIL_TEXTURE_HEIGHT, in getDetailTexture()
[all …]
/frameworks/base/core/java/android/app/
DWallpaperManager.java22 import android.graphics.Bitmap;
123 private final Bitmap mBitmap;
130 private FastBitmapDrawable(Bitmap bitmap) { in FastBitmapDrawable()
200 private Bitmap mWallpaper;
201 private Bitmap mDefaultWallpaper;
234 public Bitmap peekWallpaperBitmap(Context context, boolean returnDefault) { in peekWallpaperBitmap()
267 private Bitmap getCurrentWallpaperLocked() { in getCurrentWallpaperLocked()
277 Bitmap bm = BitmapFactory.decodeFileDescriptor( in getCurrentWallpaperLocked()
296 private Bitmap getDefaultWallpaperLocked(Context context) { in getDefaultWallpaperLocked()
306 Bitmap bm = BitmapFactory.decodeStream(is, null, options); in getDefaultWallpaperLocked()
[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/base/telephony/java/com/android/internal/telephony/cat/
DCommandParams.java19 import android.graphics.Bitmap;
36 boolean setIcon(Bitmap icon) { return true; } in setIcon()
52 boolean setIcon(Bitmap icon) { in setIcon()
74 boolean setIcon(Bitmap icon) { in setIcon()
94 boolean setIcon(Bitmap icon) { in setIcon()
114 boolean setIcon(Bitmap icon) { in setIcon()
139 boolean setIcon(Bitmap icon) { in setIcon()
166 boolean setIcon(Bitmap icon) { in setIcon()
192 boolean setIcon(Bitmap icon) { in setIcon()
DIconLoader.java21 import android.graphics.Bitmap;
41 private Bitmap mCurrentIcon = null;
49 private Bitmap[] mIcons = null;
50 private HashMap<Integer, Bitmap> mIconsCache = null;
75 mIconsCache = new HashMap<Integer, Bitmap>(50); in IconLoader()
96 mIcons = new Bitmap[recordNumbers.length]; in loadIcons()
236 public static Bitmap parseToBnW(byte[] data, int length){ in parseToBnW()
259 return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888); in parseToBnW()
286 public static Bitmap parseToRGB(byte[] data, int length, in parseToRGB()
321 return Bitmap.createBitmap(pixels, width, height, in parseToRGB()
[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 …]
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java21 import android.graphics.Bitmap;
78 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { in NinePatchDrawable()
86 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable()
98 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, in NinePatchDrawable()
185 int left = Bitmap.scaleFromDensity(insets.left, sdensity, tdensity); in scaleFromDensity()
186 int top = Bitmap.scaleFromDensity(insets.top, sdensity, tdensity); in scaleFromDensity()
187 int right = Bitmap.scaleFromDensity(insets.right, sdensity, tdensity); in scaleFromDensity()
188 int bottom = Bitmap.scaleFromDensity(insets.bottom, sdensity, tdensity); in scaleFromDensity()
200 mBitmapWidth = Bitmap.scaleFromDensity(mNinePatch.getWidth(), in computeBitmapSize()
202 mBitmapHeight = Bitmap.scaleFromDensity(mNinePatch.getHeight(), in computeBitmapSize()
[all …]
/frameworks/base/graphics/java/android/renderscript/
DAllocation.java23 import android.graphics.Bitmap;
75 Bitmap mBitmap;
412 private void validateBitmapFormat(Bitmap b) { in validateBitmapFormat()
413 Bitmap.Config bc = b.getConfig(); in validateBitmapFormat()
458 private void validateBitmapSize(Bitmap b) { in validateBitmapSize()
563 public void copyFrom(Bitmap b) { in copyFrom()
866 public void copy2DRangeFrom(int xoff, int yoff, Bitmap data) { in copy2DRangeFrom()
880 public void copyTo(Bitmap b) { in copyTo()
1094 static Element elementFromBitmap(RenderScript rs, Bitmap b) { in elementFromBitmap()
1095 final Bitmap.Config bc = b.getConfig(); in elementFromBitmap()
[all …]
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
70 private Bitmap mBitmapTwoByTwo;
71 private Bitmap mBitmapCity;
140 private Bitmap loadBitmap(int resource) { in loadBitmap()
142 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadBitmap()
143 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
144 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig()); in loadBitmap()
/frameworks/base/core/java/android/text/style/
DImageSpan.java20 import android.graphics.Bitmap;
40 public ImageSpan(Bitmap b) { in ImageSpan()
48 public ImageSpan(Bitmap b, int verticalAlignment) { in ImageSpan()
52 public ImageSpan(Context context, Bitmap b) { in ImageSpan()
60 public ImageSpan(Context context, Bitmap b, int verticalAlignment) { in ImageSpan()
134 Bitmap bitmap = null; in getDrawable()

12345678910>>...12