Searched refs:Bitmap (Results 26 - 50 of 448) sorted by relevance

1234567891011>>

/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
45 private Bitmap mTempCompactBitmap;
58 public boolean isGrayscale(Bitmap bitmap) {
65 mTempCompactBitmap = Bitmap.createBitmap(
66 COMPACT_BITMAP_SIZE, COMPACT_BITMAP_SIZE, Bitmap.Config.ARGB_8888
127 public static Bitmap buildScaledBitmap(Drawable drawable, int maxWidth,
150 Bitmap result = Bitmap.createBitmap(scaledWidth, scaledHeight, Config.ARGB_8888);
H A DUserIcons.java20 import android.graphics.Bitmap;
47 public static Bitmap convertToBitmap(Drawable icon) {
53 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DHealing.java19 import android.graphics.Bitmap;
40 Bitmap mUndoBitmap;
49 private static Bitmap buildMask(Rect rec, float[] xy) {
50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8);
76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output) {
83 Bitmap maskBitmap = buildMask(mRoiBounds, mPointsXY);
90 Bitmap destBitma
[all...]
H A DMediaStoreSaver.java21 import android.graphics.Bitmap;
35 public static final String save(Bitmap bitmap,
51 Bitmap.CompressFormat format = Bitmap.CompressFormat.PNG;
54 format = Bitmap.CompressFormat.JPEG;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageEncoder.java26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.CompressFormat;
55 Bitmap bitmap = input.getBitmap();
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DCompareActivity.java25 import android.graphics.Bitmap;
39 protected Bitmap mSoftwareBitmap;
40 protected Bitmap mHardwareBitmap;
67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
84 mHardwareBitmap = Bitmap
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DImageRequest.java19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
33 * back with a decoded Bitmap.
35 public class ImageRequest extends Request<Bitmap> {
45 private final Response.Listener<Bitmap> mListener;
72 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight,
89 public ImageRequest(String url, Response.Listener<Bitmap> listener, int maxWidth, int maxHeight,
155 protected Response<Bitmap> parseNetworkResponse(NetworkResponse response) {
170 private Response<Bitmap> doParse(NetworkResponse response) {
173 Bitmap bitma
[all...]
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DRefocusFilter.java3 import android.graphics.Bitmap;
48 * @return a {@code Bitmap} of the filtering result
54 protected Bitmap compute(Bitmap inputImage, BlurStack blurStack) {
74 Bitmap resultImage = extractResultImage();
178 protected abstract void initializeScriptAndBuffers(Bitmap inputImage,
182 protected abstract Bitmap extractResultImage();
H A DImageCompare.java4 import android.graphics.Bitmap;
18 Bitmap bitmap = BitmapFactory.decodeFile(file_path);
20 bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
39 private static byte[] loadBitmapByteArray(Bitmap bitmap) {
52 public static void compareBitmap(Bitmap bitmap1, Bitmap bitmap2, CompareValue result) {
107 Bitmap bitmap1 = BitmapFactory.decodeFile(file_path_1);
109 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, stream1);
112 Bitmap bitmap2 = BitmapFactory.decodeFile(file_path_1);
114 bitmap2.compress(Bitmap
[all...]
H A DRenderScriptTask.java6 import android.graphics.Bitmap;
20 * {@code Bitmap result = renderScriptTask.applyRefocusFilter(options);}
58 private Bitmap rgbdImage;
83 public Bitmap applyRefocusFilter(DepthOfFieldOptions options) {
88 Bitmap outputImage = null;
/frameworks/base/core/java/android/webkit/
H A DWebIconDatabase.java21 import android.graphics.Bitmap;
49 public void onReceivedIcon(String url, Bitmap icon);
69 * Request the Bitmap representing the icon for the given page
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
H A DFrameSequenceTest.java19 import android.graphics.Bitmap;
36 HashSet<Bitmap> mBitmaps = new HashSet<Bitmap>();
38 public Bitmap acquireBitmap(int minWidth, int minHeight) {
39 Bitmap bitmap =
40 Bitmap.createBitmap(minWidth + 1, minHeight + 4, Bitmap.Config.ARGB_8888);
46 public void releaseBitmap(Bitmap bitmap) {
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
H A DPhotoBitmapLoaderInterface.java4 import android.graphics.Bitmap;
19 public Bitmap bitmap;
/frameworks/support/v4/api24/android/support/v4/view/
H A DPointerIconCompatApi24.java21 import android.graphics.Bitmap;
29 public static Object create(Bitmap bitmap, float hotSpotX, float hotSpotY) {
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DUploadedTexture.java19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
29 // UploadedTextures use a Bitmap for the content of the texture.
31 // Subclasses should implement onGetBitmap() to provide the Bitmap and
32 // implement onFreeBitmap(mBitmap) which will be called when the Bitmap
47 private static HashMap<BorderKey, Bitmap> sBorderLines =
48 new HashMap<BorderKey, Bitmap>();
62 protected Bitmap mBitmap;
118 private static Bitmap getBorderLine(
124 Bitmap bitma
[all...]
/frameworks/base/core/java/android/service/voice/
H A DIVoiceInteractionSession.aidl22 import android.graphics.Bitmap;
35 void handleScreenshot(in Bitmap screenshot);
/frameworks/base/core/java/android/text/style/
H A DIconMarginSpan.java20 import android.graphics.Bitmap;
28 public IconMarginSpan(Bitmap b) {
32 public IconMarginSpan(Bitmap b, int pad) {
70 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/graphics/java/android/view/
H A DPixelCopy.java21 import android.graphics.Bitmap;
29 * operations from {@link Surface} to {@link Bitmap}
88 * into a provided {@link Bitmap}.
92 * to fit the the bitmap's {@link Bitmap.Config}. The most recently queued buffer
102 public static void request(@NonNull SurfaceView source, @NonNull Bitmap dest,
109 * a provided {@link Bitmap}.
113 * to fit the the bitmap's {@link Bitmap.Config}. The most recently queued buffer
123 public static void request(@NonNull Surface source, @NonNull Bitmap dest,
139 private static void validateBitmapDest(Bitmap bitmap) {
142 throw new IllegalArgumentException("Bitmap canno
[all...]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DIPlayerService.aidl18 import android.graphics.Bitmap;
30 void setIcon(in Bitmap icon);
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DGlifPatternDrawableTest.java19 import android.graphics.Bitmap;
33 final Bitmap bitmap = Bitmap.createBitmap(1366, 768, Bitmap.Config.ARGB_8888);
51 final Bitmap bitmap = Bitmap.createBitmap(1366, 768, Bitmap.Config.ARGB_8888);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFrame.java22 import android.graphics.Bitmap;
88 } else if (object instanceof Bitmap) {
89 setBitmap((Bitmap)object);
117 public abstract void setBitmap(Bitmap bitmap);
119 public abstract Bitmap getBitmap();
180 protected static Bitmap convertBitmapToRGBA(Bitmap bitmap) {
181 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888) {
184 Bitmap result = bitmap.copy(Bitmap
[all...]
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DMediaStoreSaver.java26 import android.graphics.Bitmap;
41 Bitmap image,
44 final Bitmap source = image;
47 source.compress(Bitmap.CompressFormat.JPEG, 50, imageOut);
84 Bitmap miniThumb = Images.Thumbnails.getThumbnail(cr, id, Images.Thumbnails.MINI_KIND, null);
112 private static final Bitmap storeThumbnail(
114 Bitmap source,
128 Bitmap thumb = Bitmap.createBitmap(source, 0, 0,
144 thumb.compress(Bitmap
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.h41 * Bitmap object & SkBitmap along with trying to map a notion of strong/weak
43 * two GC passes to free the byte[] that backs a Bitmap.
48 class Bitmap { class in namespace:android
50 Bitmap(JNIEnv* env, jbyteArray storageObj, void* address,
52 Bitmap(void* address, void* context, FreeFunc freeFunc,
54 Bitmap(void* address, int fd, const SkImageInfo& info, size_t rowBytes,
88 ~Bitmap();
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
H A DDividerItemDecorationTest.java19 import android.graphics.Bitmap;
62 Bitmap bitmap = drawDecoration(decoration, true, true);
65 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444);
106 Bitmap bitmap = drawDecoration(decoration, true, true);
110 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444);
137 private Bitmap drawDecoratio
[all...]

Completed in 797 milliseconds

1234567891011>>