Home
last modified time | relevance | path

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

12345678910>>...18

/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()
/frameworks/support/v4/java/android/support/v4/graphics/
DBitmapCompat.java18 import android.graphics.Bitmap;
29 public boolean hasMipMap(Bitmap bitmap); in hasMipMap()
30 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap); in setHasMipMap()
31 public int getAllocationByteCount(Bitmap bitmap); in getAllocationByteCount()
36 public boolean hasMipMap(Bitmap bitmap) { in hasMipMap()
41 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { in setHasMipMap()
45 public int getAllocationByteCount(Bitmap bitmap) { in getAllocationByteCount()
52 public int getAllocationByteCount(Bitmap bitmap) { in getAllocationByteCount()
59 public boolean hasMipMap(Bitmap bitmap){ in hasMipMap()
64 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { in setHasMipMap()
[all …]
/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;
386 public static Bitmap decodeFile(String pathName, Options opts) { in decodeFile()
387 Bitmap bm = null; in decodeFile()
416 public static Bitmap decodeFile(String pathName) { in decodeFile()
424 public static Bitmap decodeResourceStream(Resources res, TypedValue value, in decodeResourceStream()
459 public static Bitmap decodeResource(Resources res, int id, Options opts) { in decodeResource()
460 Bitmap bm = null; in decodeResource()
496 public static Bitmap decodeResource(Resources res, int id) { in decodeResource()
513 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) { in decodeByteArray()
[all …]
DBitmap.java32 public final class Bitmap implements Parcelable { class
109 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, in Bitmap() method in Bitmap
555 public Bitmap copy(Config config, boolean isMutable) { in copy()
557 Bitmap b = nativeCopy(mNativeBitmap, config.nativeInt, isMutable); in copy()
578 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, in createScaledBitmap()
581 synchronized (Bitmap.class) { in createScaledBitmap()
596 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter); in createScaledBitmap()
598 synchronized (Bitmap.class) { in createScaledBitmap()
613 public static Bitmap createBitmap(Bitmap src) { in createBitmap()
633 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/photos/
DBitmapRegionTileSource.java22 import android.graphics.Bitmap;
23 import android.graphics.Bitmap.Config;
49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); in decodeRegion()
89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion()
95 Bitmap mBuffer;
98 private DumbBitmapRegionDecoder(Bitmap b) { in DumbBitmapRegionDecoder()
102 Bitmap b = BitmapFactory.decodeFile(pathName); in newInstance()
109 Bitmap b = BitmapFactory.decodeStream(is); in newInstance()
121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { in decodeRegion()
128 Bitmap newBitmap = Bitmap.createBitmap( in decodeRegion()
[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/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;
34 native void nativeMono(String cacheDir, int X, int Y, Bitmap in, Bitmap out); in nativeMono()
42 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), mBitmapIn.getHeight(), in onCreate()
57 private Bitmap loadBitmap(int resource) { in loadBitmap()
59 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadBitmap()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java20 import android.graphics.Bitmap;
84 public static Bitmap createImageThumbnail(String filePath, int kind) { in createImageThumbnail()
93 Bitmap bitmap = null; in createImageThumbnail()
118 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in createImageThumbnail()
152 public static Bitmap createVideoThumbnail(String filePath, int kind) { in createVideoThumbnail()
153 Bitmap bitmap = null; in createVideoThumbnail()
181 bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true); in createVideoThumbnail()
199 public static Bitmap extractThumbnail( in extractThumbnail()
200 Bitmap source, int width, int height) { in extractThumbnail()
212 public static Bitmap extractThumbnail( in extractThumbnail()
[all …]
/frameworks/support/v4/java/android/support/v4/app/
DSharedElementCallback.java20 import android.graphics.Bitmap;
154 Bitmap bitmap = createDrawableBitmap(d); in onCaptureSharedElementSnapshot()
172 Bitmap bitmap = null; in onCaptureSharedElementSnapshot()
183 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in onCaptureSharedElementSnapshot()
194 private static Bitmap createDrawableBitmap(Drawable drawable) { in createDrawableBitmap()
207 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createDrawableBitmap()
241 Bitmap bitmap = (Bitmap) bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP); in onCreateSnapshotView()
256 } else if (snapshot instanceof Bitmap) { in onCreateSnapshotView()
257 Bitmap bitmap = (Bitmap) snapshot; in onCreateSnapshotView()
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java19 import android.graphics.Bitmap;
61 public abstract Bitmap acquireBitmap(int minWidth, int minHeight); in acquireBitmap()
69 public abstract void releaseBitmap(Bitmap bitmap); in releaseBitmap()
74 public Bitmap acquireBitmap(int minWidth, int minHeight) {
75 return Bitmap.createBitmap(minWidth, minHeight, Bitmap.Config.ARGB_8888);
79 public void releaseBitmap(Bitmap bitmap) {
128 private Bitmap mFrontBitmap;
129 private Bitmap mBackBitmap;
152 Bitmap bitmap;
185 private static Bitmap acquireAndValidateBitmap(BitmapProvider bitmapProvider, in acquireAndValidateBitmap()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFrame.java22 import android.graphics.Bitmap;
88 } else if (object instanceof Bitmap) { in setObjectValue()
89 setBitmap((Bitmap)object); in setObjectValue()
117 public abstract void setBitmap(Bitmap bitmap); in setBitmap()
119 public abstract Bitmap getBitmap(); in getBitmap()
180 protected static Bitmap convertBitmapToRGBA(Bitmap bitmap) { in convertBitmapToRGBA()
181 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888) { in convertBitmapToRGBA()
184 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, false); in convertBitmapToRGBA()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java23 import android.graphics.Bitmap;
87 Bitmap scaled = createIconBitmap(src); in createIconDrawable()
105 private Bitmap createIconBitmap(Drawable icon) { in createIconBitmap()
116 Bitmap bitmap = bitmapDrawable.getBitmap(); in createIconBitmap()
117 if (bitmap.getDensity() == Bitmap.DENSITY_NONE) { in createIconBitmap()
145 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, in createIconBitmap()
146 Bitmap.Config.ARGB_8888); in createIconBitmap()
170 private Bitmap createSelectedBitmap(Bitmap src, boolean pressed) { in createSelectedBitmap()
171 final Bitmap result = Bitmap.createBitmap(mIconTextureWidth, mIconTextureHeight, in createSelectedBitmap()
172 Bitmap.Config.ARGB_8888); in createSelectedBitmap()
[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/packages/PrintSpooler/src/com/android/printspooler/util/
DBitmapSerializeUtils.java19 import android.graphics.Bitmap;
43 public static void readBitmapPixels(Bitmap bitmap, ParcelFileDescriptor source) { in readBitmapPixels()
53 public static void writeBitmapPixels(Bitmap bitmap, ParcelFileDescriptor destination) { in writeBitmapPixels()
57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd); in nativeReadBitmapPixels()
59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd); in nativeWriteBitmapPixels()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DBitmapHelper.java19 import android.graphics.Bitmap;
36 public static Bitmap createCircularClip(Bitmap input, int width, int height) { in createCircularClip()
41 final Bitmap output = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in createCircularClip()
/frameworks/ex/framesequence/samples/RastermillSamples/src/com/android/rastermill/samples/
DAnimatedGifTest.java19 import android.graphics.Bitmap;
35 HashSet<Bitmap> mBitmaps = new HashSet<Bitmap>();
37 public Bitmap acquireBitmap(int minWidth, int minHeight) { in acquireBitmap()
38 Bitmap bitmap = in acquireBitmap()
39 Bitmap.createBitmap(minWidth + 1, minHeight + 4, Bitmap.Config.ARGB_8888); in acquireBitmap()
45 public void releaseBitmap(Bitmap bitmap) { in releaseBitmap()
/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()
105 boolean setIcon(Bitmap icon) { in setIcon()
126 boolean setIcon(Bitmap icon) { in setIcon()
152 boolean setIcon(Bitmap icon) { in setIcon()
180 boolean setIcon(Bitmap icon) { in setIcon()
207 boolean setIcon(Bitmap icon) { in setIcon()

12345678910>>...18