HomeSort by relevance Sort by last modified time
    Searched refs:bitmap (Results 376 - 400 of 1127) sorted by null

<<11121314151617181920>>

  /packages/apps/Gallery2/src/com/android/gallery3d/data/
UriImage.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
70 public Job<Bitmap> requestImage(int type) {
183 private class BitmapJob implements Job<Bitmap> {
191 public Bitmap run(JobContext jc) {
196 Bitmap bitmap = DecodeUtils.decodeThumbnail(jc, local
199 if (jc.isCancelled() || bitmap == null) {
204 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true)
    [all...]
DecodeUtils.java 20 import android.graphics.Bitmap;
21 import android.graphics.Bitmap.Config;
61 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) {
78 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) {
82 public static Bitmap decode(JobContext jc, byte[] bytes, int offset,
100 public static Bitmap decodeThumbnail(
115 public static Bitmap decodeThumbnail(
149 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options);
163 * Decodes the bitmap from the given byte array if the image size is larger than the given
169 public static Bitmap decodeIfBigEnough(JobContext jc, byte[] data
258 Bitmap bitmap = decode(jc, data, offset, length, options); local
285 Bitmap bitmap = DecodeUtils.decode(jc, fileDescriptor, options); local
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
CornerPathEffectTest.java 19 import android.graphics.Bitmap;
28 import android.graphics.Bitmap.Config;
55 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local
56 Canvas canvas = new Canvas(bitmap);
81 int pixel = bitmap.getPixel(x, y);
  /development/samples/Snake/src/com/example/android/snake/
TileView.java 21 import android.graphics.Bitmap;
54 private Bitmap[] mTileArray;
100 Bitmap bitmap = Bitmap.createBitmap(mTileSize, mTileSize, Bitmap.Config.ARGB_8888); local
101 Canvas canvas = new Canvas(bitmap);
105 mTileArray[key] = bitmap;
130 mTileArray = new Bitmap[tilecount];
  /external/skia/legacy/include/core/
SkCanvas.h 32 A Canvas encapsulates all of the state about drawing into a device (bitmap).
55 /** Deprecated - Construct a canvas with the specified bitmap to draw into.
56 @param bitmap Specifies a bitmap for the canvas to draw into. Its
59 explicit SkCanvas(const SkBitmap& bitmap);
77 the bitmap of the pixels that the canvas draws into. The reference count
101 SkDevice* setBitmapDevice(const SkBitmap& bitmap);
149 * On success (returns true), copy the canvas pixels into the bitmap.
150 * On failure, the bitmap parameter is left unchanged and false is
153 * The canvas' pixels are converted to the bitmap's config. The onl
    [all...]
  /external/skia/legacy/src/core/
SkBlitBWMaskTemplate.h 19 SK_BLITBWMASK_NAME name of function(const SkBitmap& bitmap, const SkMask& mask, const SkIRect& clip, SK_BLITBWMASK_ARGS)
26 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip SK_BLITBWMASK_ARGS)
34 unsigned bitmap_rowBytes = bitmap.rowBytes();
42 SK_BLITBWMASK_DEVTYPE* device = bitmap.SK_BLITBWMASK_GETADDR(cx, cy);
  /external/skia/src/core/
SkBlitBWMaskTemplate.h 19 SK_BLITBWMASK_NAME name of function(const SkBitmap& bitmap, const SkMask& mask, const SkIRect& clip, SK_BLITBWMASK_ARGS)
26 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip SK_BLITBWMASK_ARGS)
34 unsigned bitmap_rowBytes = bitmap.rowBytes();
42 SK_BLITBWMASK_DEVTYPE* device = bitmap.SK_BLITBWMASK_GETADDR(cx, cy);
  /external/zxing/qr_scanner/src/com/google/zxing/client/android/
PlanarYUVLuminanceSource.java 21 import android.graphics.Bitmap;
109 public Bitmap renderCroppedGreyscaleBitmap() {
125 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
126 bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
127 return bitmap;
  /frameworks/base/core/java/android/text/style/
ImageSpan.java 20 import android.graphics.Bitmap;
37 * @deprecated Use {@link #ImageSpan(Context, Bitmap)} instead.
40 public ImageSpan(Bitmap b) {
45 * @deprecated Use {@link #ImageSpan(Context, Bitmap, int) instead.
48 public ImageSpan(Bitmap b, int verticalAlignment) {
52 public ImageSpan(Context context, Bitmap b) {
60 public ImageSpan(Context context, Bitmap b, int verticalAlignment) {
134 Bitmap bitmap = null; local
138 bitmap = BitmapFactory.decodeStream(is)
    [all...]
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 21 import android.graphics.Bitmap;
42 * A resizeable bitmap, with stretchable areas that you define. This type of image
74 * @deprecated Use {@link #NinePatchDrawable(Resources, Bitmap, byte[], Rect, String)}
78 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) {
79 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
86 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk,
88 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
98 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk
303 Bitmap bitmap = null; local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
ResourceHelper.java 34 import android.graphics.Bitmap;
163 * @param value The value that contains a path to a 9 patch, a bitmap or a xml based drawable,
229 Bitmap bitmap = Bridge.getCachedBitmap(stringValue, local
232 if (bitmap == null) {
233 bitmap = Bitmap_Delegate.createBitmap(bmpFile, false /*isMutable*/,
235 Bridge.setCachedBitmap(stringValue, bitmap,
239 return new BitmapDrawable(context.getResources(), bitmap);
264 // see if we still have both the chunk and the bitmap in the caches
267 Bitmap bitmap = Bridge.getCachedBitmap(cacheKey local
    [all...]
  /frameworks/ex/carousel/test/src/com/android/carouseltest/
TaskSwitcherActivity.java 39 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,
143 public Bitmap getTexture(int n) {
145 Bitmap bitmap = desc.thumbnail == null ? mBlankBitmap : desc.thumbnail; local
146 return bitmap;
151 Bitmap bitmap = null; local
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ShortcutIntentBuilder.java 24 import android.graphics.Bitmap;
242 private Bitmap getPhotoBitmap(byte[] bitmapData) {
243 Bitmap bitmap; local
245 bitmap = BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length, null);
247 bitmap = ((BitmapDrawable) mContext.getResources().getDrawableForDensity(
250 return bitmap;
255 Bitmap bitmap = getPhotoBitmap(bitmapData); local
274 final Bitmap icon = generateQuickContactIcon(bitmap)
291 Bitmap bitmap = getPhotoBitmap(bitmapData); local
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
BitmapUtilTests.java 19 import android.graphics.Bitmap;
100 private void assertBitmapSize(int expectedWidth, int expectedHeight, Bitmap bitmap) {
101 assertEquals(expectedWidth, bitmap.getWidth());
102 assertEquals(expectedHeight, bitmap.getHeight());
106 return createRawData(Bitmap.CompressFormat.JPEG, sourceWidth, sourceHeight);
110 return createRawData(Bitmap.CompressFormat.PNG, sourceWidth, sourceHeight);
113 private byte[] createRawData(Bitmap.CompressFormat format, int sourceWidth,
115 // Create a temp bitmap as our source
116 Bitmap b = Bitmap.createBitmap(sourceWidth, sourceHeight, Bitmap.Config.ARGB_8888)
    [all...]
  /packages/apps/Gallery/tests/src/com/android/camera/
BitmapManagerUnitTests.java 23 import android.graphics.Bitmap;
36 Bitmap bitmap; field in class:BitmapManagerUnitTests.DecodeThread
43 bitmap = mImage.thumbBitmap(IImage.ROTATE_AS_NEEDED);
46 public Bitmap getBitmap() {
47 return bitmap;
  /packages/apps/Gallery2/jni/filters/
fx.c 32 void JNIFUNCF(ImageFilterFx, nativeApplyFilter, jobject bitmap, jint width, jint height, jobject lutbitmap,jint lutwidth, jint lutheight )
36 AndroidBitmap_lockPixels(env, bitmap, (void**) &destination);
86 AndroidBitmap_unlockPixels(env, bitmap);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
ImagePreset.java 19 import android.graphics.Bitmap;
62 private Bitmap mPreviewImage;
443 public Bitmap apply(Bitmap original, FilterEnvironment environment) {
444 Bitmap bitmap = original; local
445 bitmap = applyFilters(bitmap, -1, -1, environment);
446 return applyBorder(bitmap, environment);
449 public Bitmap applyGeometry(Bitmap bitmap, FilterEnvironment environment)
    [all...]
  /cts/tests/tests/effect/src/android/effect/cts/
EffectTest.java 19 import android.graphics.Bitmap;
101 Bitmap bitmap = createTestBitmap(); local
102 int inputTexture = mEnv.bitmapToTexture(bitmap);
105 effect.apply(inputTexture, bitmap.getWidth(), bitmap.getHeight(), outputTexture);
118 private Bitmap createTestBitmap() {
119 Bitmap testBitmap = Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
ShapeTest.java 20 import android.graphics.Bitmap;
24 import android.graphics.Bitmap.Config;
97 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local
98 Canvas canvas = new Canvas(bitmap);
105 assertEquals(0, bitmap.getPixel(0, 0));
109 assertEquals(0, bitmap.getPixel(0, 0));
  /development/ndk/platforms/android-8/samples/bitmap-plasma/src/com/example/plasma/
Plasma.java 22 import android.graphics.Bitmap;
42 private Bitmap mBitmap;
46 private static native void renderPlasma(Bitmap bitmap, long time_ms);
54 mBitmap = Bitmap.createBitmap(W, H, Bitmap.Config.RGB_565);
  /external/chromium/chrome/browser/ui/views/location_bar/
icon_label_bubble_view.h 38 void SetImage(const SkBitmap& bitmap);
  /external/skia/include/utils/
SkDumpCanvas.h 95 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
97 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
99 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
101 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
SkProxyCanvas.h 54 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
56 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
58 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
60 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
  /external/skia/legacy/include/utils/
SkDumpCanvas.h 83 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
85 virtual void drawBitmapRect(const SkBitmap& bitmap, const SkIRect* src,
87 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
89 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
SkProxyCanvas.h 51 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
53 virtual void drawBitmapRect(const SkBitmap& bitmap, const SkIRect* src,
55 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
57 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,

Completed in 801 milliseconds

<<11121314151617181920>>