Searched refs:Bitmap (Results 1 - 25 of 209) sorted by relevance

123456789

/frameworks/base/graphics/java/android/graphics/
H A DBitmap.aidl19 parcelable Bitmap;
H A DBitmapFactory.java31 * Creates Bitmap objects from various sources, including files, streams,
52 * resource or as a stream). The {@link android.graphics.Bitmap.Config
56 * <p>You should still always use the returned Bitmap of the decode
61 * but in all cases you should use the returned Bitmap to make sure
64 public Bitmap inBitmap;
67 * If set, decode methods will always return a mutable Bitmap instead of
69 * effects to a Bitmap loaded through BitmapFactory.
101 * Image are loaded with the {@link Bitmap.Config#ARGB_8888} config by
104 public Bitmap.Config inPreferredConfig = Bitmap
[all...]
H A DBitmapShader.java29 public final Bitmap mBitmap;
38 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) {
H A DBitmap.java28 public final class Bitmap implements Parcelable { class in inherits:Parcelable
33 * @see Bitmap#getDensity()
34 * @see Bitmap#setDensity(int)
47 * Backing buffer for the Bitmap.
96 /*package*/ Bitmap(int nativeBitmap, byte[] buffer, boolean isMutable, byte[] ninePatchChunk, method in class:Bitmap
401 public Bitmap copy(Config config, boolean isMutable) {
403 Bitmap b = nativeCopy(mNativeBitmap, config.nativeInt, isMutable);
419 public static Bitmap createScaledBitmap(Bitmap src, int dstWidth,
422 synchronized (Bitmap
[all...]
/frameworks/base/core/java/android/app/
H A DIThumbnailRetriever.aidl17 import android.graphics.Bitmap;
24 Bitmap getThumbnail(int index);
H A DIThumbnailReceiver.aidl19 import android.graphics.Bitmap;
27 void newThumbnail(int id, in Bitmap thumbnail, CharSequence description);
/frameworks/base/services/java/com/android/server/am/
H A DThumbnailHolder.java19 import android.graphics.Bitmap;
22 Bitmap lastThumbnail; // Last thumbnail captured for this item.
H A DTaskAccessInfo.java22 import android.graphics.Bitmap;
26 Bitmap thumbnail;
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DThreadBitmapTest.java20 import android.graphics.Bitmap;
38 public Bitmap b;
41 b = Bitmap.createBitmap(300, 300, Bitmap.Config.RGB_565);
H A DGraphicsPerformanceTests.java22 import android.graphics.Bitmap;
79 /** Bitmap we allocate and draw to */
80 protected Bitmap mDestBitmap;
92 mDestBitmap = Bitmap.createBitmap(SCREEN_WIDTH, SCREEN_HEIGHT,
93 Bitmap.Config.RGB_565);
163 /** Bitmap to draw. Allocated by subclass's createBitmap() function. */
164 private Bitmap mBitmap;
179 public abstract Bitmap createBitmap();
204 public Bitmap createBitmap() {
205 return Bitmap
[all...]
H A DBitmapTest.java27 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888);
28 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565);
29 Bitmap bm3 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_4444);
55 assertTrue("getConfig", bm1.getConfig() == Bitmap
[all...]
H A DBitmapFactoryTest.java33 Bitmap bitmap1 = Bitmap.createBitmap(
34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565);
36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out);
41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd);
43 assertEquals("Bitmap width", 1, bitmap.getWidth());
44 assertEquals("Bitmap height", 1, bitmap.getHeight());
/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java19 import android.graphics.Bitmap;
48 public static int getInternalFormat(Bitmap bitmap) {
50 throw new NullPointerException("getInternalFormat can't be used with a null Bitmap");
70 public static int getType(Bitmap bitmap) {
72 throw new NullPointerException("getType can't be used with a null Bitmap");
107 Bitmap bitmap, int border) {
109 throw new NullPointerException("texImage2D can't be used with a null Bitmap");
115 throw new IllegalArgumentException("invalid Bitmap format");
133 Bitmap bitmap, int type, int border) {
135 throw new NullPointerException("texImage2D can't be used with a null Bitmap");
[all...]
/frameworks/base/media/java/android/media/
H A DIRemoteControlDisplay.aidl21 import android.graphics.Bitmap;
49 void setArtwork(int generationId, in Bitmap artwork);
54 void setAllMetadata(int generationId, in Bundle metadata, in Bitmap artwork);
H A DIRemoteControlClient.aidl18 import android.graphics.Bitmap;
H A DThumbnailUtils.java23 import android.graphics.Bitmap;
60 * {@link #extractThumbnail(Bitmap, int, int, int)} unless the output is the input.
86 * @return Bitmap, or null on failures
90 public static Bitmap createImageThumbnail(String filePath, int kind) {
99 Bitmap bitmap = null;
122 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
147 public static Bitmap createVideoThumbnail(String filePath, int kind) {
148 Bitmap bitmap = null;
176 bitmap = Bitmap.createScaledBitmap(bitmap, w, h, true);
194 public static Bitmap extractThumbnai
[all...]
/frameworks/base/core/java/android/emoji/
H A DEmojiFactory.java19 import android.graphics.Bitmap;
36 // HashMap for caching Bitmap object. In order not to make an cache object
60 private Map<Integer, WeakReference<Bitmap>> mCache;
74 mCache = new CustomLinkedHashMap<Integer, WeakReference<Bitmap>>();
91 * Returns Bitmap object corresponding to the AndroidPua.
93 * Note that each Bitmap is cached by this class, which means that, if you modify a
94 * Bitmap object (using setPos() method), all same emoji Bitmap will be modified.
98 * @return Bitmap object when this factory knows the Bitmap relevan
[all...]
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselViewUtilities.java9 import android.graphics.Bitmap;
23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) {
31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
/frameworks/base/core/java/android/view/
H A DHardwareCanvas.java19 import android.graphics.Bitmap;
36 public void setBitmap(Bitmap bitmap) {
/frameworks/base/core/java/android/text/style/
H A DIconMarginSpan.java20 import android.graphics.Bitmap;
29 public IconMarginSpan(Bitmap b) {
33 public IconMarginSpan(Bitmap b, int pad) {
71 private Bitmap mBitmap;
/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCacheTest.java26 import android.graphics.Bitmap;
71 private Bitmap createCacheForView(final View view) {
72 final Bitmap[] cache = new Bitmap[1];
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DTaskDescription.java21 import android.graphics.Bitmap;
32 private Bitmap mThumbnail; // generated by Activity.onCreateThumbnail()
65 public void setThumbnail(Bitmap thumbnail) {
69 public Bitmap getThumbnail() {
/frameworks/base/core/java/android/webkit/
H A DWebHistoryItem.java19 import android.graphics.Bitmap;
42 private Bitmap mFavicon;
134 * @return A Bitmap containing the favicon for this history item or null.
138 public Bitmap getFavicon() {
192 * @param icon A Bitmap containing the favicon for this history item.
196 /*package*/ void setFavicon(Bitmap icon) {
242 Bitmap favicon, byte[] data) {
/frameworks/base/telephony/java/com/android/internal/telephony/cat/
H A DCommandParams.java19 import android.graphics.Bitmap;
36 boolean setIcon(Bitmap icon) { return true; }
47 boolean setIcon(Bitmap icon) {
69 boolean setIcon(Bitmap icon) {
89 boolean setIcon(Bitmap icon) {
109 boolean setIcon(Bitmap icon) {
134 boolean setIcon(Bitmap icon) {
161 boolean setIcon(Bitmap icon) {
187 boolean setIcon(Bitmap icon) {
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) {
69 final Bitmap oldBitmap = bm;
70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f),
93 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage,
95 Bitmap bm = null;
137 /*package*/ static Bitmap nativeDecodeFileDescriptor(FileDescriptor fd,
144 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) {
150 /*package*/ static Bitmap nativeDecodeByteArray(byte[] data, int offset,

Completed in 278 milliseconds

123456789