HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 401 - 425 of 800) sorted by null

<<11121314151617181920>>

  /external/skia/src/gpu/
SkGr.cpp 31 based bitmap. [palette (colortable) + indices].
41 static void build_index8_data(void* buffer, const SkBitmap& bitmap) {
42 SkASSERT(kIndex_8_SkColorType == bitmap.colorType());
44 SkAutoLockPixels alp(bitmap);
45 if (!bitmap.readyToDraw()) {
46 SkDEBUGFAIL("bitmap not ready to draw!");
50 SkColorTable* ctable = bitmap.getColorTable();
72 if ((unsigned)bitmap.width() == bitmap.rowBytes()) {
73 memcpy(dst, bitmap.getPixels(), bitmap.getSize())
411 const SkBitmap* bitmap = &origBitmap; local
    [all...]
  /external/skia/src/ports/
SkImageDecoder_WIC.cpp 180 //Get the size of the bitmap.
187 //Exit early if we're only looking for the bitmap bounds.
213 piBitmapSourceOriginal.get() //Input bitmap to convert
230 //Copy the pixels into the bitmap.
307 const SkBitmap* bitmap; local
310 bitmap = &bitmapOrig;
315 bitmap = &bitmapCopy;
319 if (!bitmap->isOpaque()) {
320 SkAutoLockPixels alp(*bitmap);
322 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap->getPixels())
    [all...]
  /external/skia/tests/
AAClipTest.cpp 77 SkBitmap bitmap; local
78 bitmap.installPixels(info, mask->fImage, mask->fRowBytes);
86 SkCanvas canvas(bitmap);
DeferredCanvasTest.cpp 42 SkBitmap bitmap; local
43 bitmap.installPixels(SkImageInfo::MakeN32Premul(1, 1), &pixel, 4);
44 SkCanvas canvas(bitmap);
102 // Tests below depend on this bitmap being recognized as opaque
540 // stored bitmap + drawBitmap command
557 // Verify that caching works for avoiding multiple copies of the same bitmap
584 // only one bitmap should have been freed.
619 // This test covers a code path that inserts bitmaps into the bitmap heap through the
620 // flattening of SkBitmapProcShaders. The refcount in the bitmap heap is maintained through
640 // the bitmap heap slots fill up. In the second pass memory allocation should b
    [all...]
  /external/skia/tools/
PictureRenderer.cpp 134 SkBitmap bitmap; local
135 sk_tools::setup_bitmap(&bitmap, width, height);
136 canvas = SkNEW_ARGS(SkCanvas, (bitmap));
296 SkBitmap bitmap; local
298 setup_bitmap(&bitmap, size.width(), size.height());
300 canvas->readPixels(&bitmap, 0, 0);
301 force_all_opaque(bitmap);
302 BitmapAndDigest bitmapAndDigest(bitmap);
342 if (!write_bitmap_to_disk(bitmap, mismatchPath, outputSubdirPtr, outputFilename)) {
351 return write_bitmap_to_disk(bitmap, writePath, outputSubdirPtr, outputFilename)
687 SkBitmap bitmap; local
    [all...]
  /frameworks/base/libs/input/
SpriteController.h 59 inline SpriteIcon(const SkBitmap& bitmap, float hotSpotX, float hotSpotY) :
60 bitmap(bitmap), hotSpotX(hotSpotX), hotSpotY(hotSpotY) { }
62 SkBitmap bitmap; member in struct:android::SpriteIcon
68 bitmap.copyTo(&bitmapCopy, kN32_SkColorType);
73 bitmap.reset();
79 return !bitmap.isNull() && !bitmap.empty();
102 /* Sets the bitmap that is drawn by the sprite.
103 * The sprite retains a copy of the bitmap for subsequent rendering. *
    [all...]
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
UploadedTexture.java 19 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 bitmap = sBorderLines.get(key) local
129 sBorderLines.put(key.clone(), bitmap); local
193 Bitmap bitmap = getBitmap(); local
212 Bitmap bitmap = getBitmap(); local
    [all...]
  /frameworks/base/sax/tests/saxtests/src/android/sax/
SafeSaxTest.java 19 import android.graphics.Bitmap;
529 public Bitmap bitmap; // cached bitmap of the thumbnail field in class:SafeSaxTest.YouTubeVideo
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
SmartCamera.java 21 import android.graphics.Bitmap;
81 // Function to return the correct image view to display the current bitmap
114 Bitmap bitmap = null; local
129 bitmap = ((BitmapDrawable)mImages.get(i).getDrawable()).getBitmap();
131 MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, local
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
Bitmap_Delegate.java 26 import android.graphics.Bitmap.Config;
43 * Delegate implementing the native methods of android.graphics.Bitmap
45 * Through the layoutlib_create tool, the original native methods of Bitmap have been replaced
50 * it and the original Bitmap class.
80 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object.
87 public static Bitmap_Delegate getDelegate(@Nullable Bitmap bitmap) {
89 return bitmap == null ? null : getDelegate(bitmap.refSkPixelRef());
93 * Creates and returns a {@link Bitmap} initialized with the given file content
459 Bitmap_Delegate bitmap = sManager.getDelegate(nativeBitmap); local
    [all...]
  /frameworks/ex/framesequence/src/android/support/rastermill/
FrameSequenceDrawable.java 19 import android.graphics.Bitmap;
59 * Called by FrameSequenceDrawable to aquire an 8888 Bitmap with minimum dimensions.
61 public abstract Bitmap acquireBitmap(int minWidth, int minHeight);
64 * Called by FrameSequenceDrawable to release a Bitmap it no longer needs. The Bitmap
69 public abstract void releaseBitmap(Bitmap bitmap);
74 public Bitmap acquireBitmap(int minWidth, int minHeight) {
75 return Bitmap.createBitmap(minWidth, minHeight, Bitmap.Config.ARGB_8888)
198 Bitmap bitmap = bitmapProvider.acquireBitmap(minWidth, minHeight); local
    [all...]
  /frameworks/support/v4/donut/android/support/v4/graphics/drawable/
RoundedBitmapDrawable.java 19 import android.graphics.Bitmap;
34 * A Drawable that wraps a bitmap and can be drawn with rounded corners. You can create a
36 * {@link android.graphics.Bitmap} object.
38 * Also see the {@link android.graphics.Bitmap} class, which handles the management and
39 * transformation of raw bitmap graphics, and should be used when drawing to a
46 final Bitmap mBitmap;
72 * Returns the bitmap used by this drawable to render. May be null.
74 public final Bitmap getBitmap() {
90 * @see android.graphics.Bitmap#setDensity(int)
91 * @see android.graphics.Bitmap#getDensity(
255 final Bitmap bitmap = mBitmap; local
    [all...]
  /packages/apps/Camera2/src/com/android/camera/
MultiToggleImageButton.java 25 import android.graphics.Bitmap;
166 new AsyncTask<Integer, Void, Bitmap>() {
168 protected Bitmap doInBackground(Integer... params) {
173 protected void onPostExecute(Bitmap bitmap) {
174 if (bitmap == null) {
177 setImageBitmap(bitmap);
367 private Bitmap combine(int oldState, int newState) {
393 Bitmap bitmap = null local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/activities/
AttachPhotoActivity.java 29 import android.graphics.Bitmap;
291 // Create a scaled, compressed bitmap to add to the entity-delta list.
293 Bitmap bitmap; local
295 bitmap = ContactPhotoUtils.getBitmapFromUri(this, mCroppedPhotoUri);
297 Log.w(TAG, "Could not find bitmap");
301 if (bitmap == null) {
302 Log.w(TAG, "Could not decode bitmap");
307 final Bitmap scaled = Bitmap.createScaledBitmap(bitmap, size, size, false)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
CompactPhotoEditorView.java 37 import android.graphics.Bitmap;
137 * Sets the photo bitmap on this view from the given ValuesDelta. Note that the
151 final Bitmap bitmap = BitmapFactory.decodeByteArray( local
153 mPhotoImageView.setImageBitmap(bitmap);
230 * Set the given {@link Bitmap} as the photo in the underlying {@link ValuesDelta}
233 public void setPhoto(Bitmap bitmap) {
238 if (bitmap == null) {
245 final Bitmap scaledBitmap = Bitmap.createScaledBitmap
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
LetterTileDrawable.java 21 import android.graphics.Bitmap;
53 private static Bitmap DEFAULT_PERSON_AVATAR;
54 private static Bitmap DEFAULT_BUSINESS_AVATAR;
55 private static Bitmap DEFAULT_VOICEMAIL_AVATAR;
109 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale.
111 private void drawBitmap(final Bitmap bitmap, final int width, final int height,
113 // The bitmap should be drawn in the middle of the canvas without changing its width to
125 // Source rectangle remains the entire bounds of the source bitmap.
128 canvas.drawBitmap(bitmap, sRect, destRect, mPaint)
163 final Bitmap bitmap = getBitmapForContactType(mContactType); local
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/list/
PhoneFavoriteListView.java 24 import android.graphics.Bitmap;
61 private Bitmap mDragShadowBitmap;
292 private Bitmap createDraggedChildBitmap(View view) {
294 final Bitmap cache = view.getDrawingCache();
296 Bitmap bitmap = null; local
299 bitmap = cache.copy(Bitmap.Config.ARGB_8888, false);
301 Log.w(LOG_TAG, "Failed to copy bitmap from Drawing cache", e);
302 bitmap = null
    [all...]
  /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...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
Action.java 20 import android.graphics.Bitmap;
47 private Bitmap mImage;
54 private Bitmap mPortraitImage;
55 private Bitmap mOverlayBitmap;
124 Bitmap temp = MasterImage.getImage().getTemporaryThumbnailBitmap();
128 Bitmap bitmap = MasterImage.getImage().getThumbnailBitmap(); local
129 if (bitmap != null) {
137 public Bitmap getImage() {
141 public void setImage(Bitmap image)
    [all...]
IconView.java 21 import android.graphics.Bitmap;
48 private Bitmap mBitmap;
59 Bitmap bitmap = BitmapFactory.decodeStream(res.openRawResource(bitmapRsc)); local
60 setBitmap(bitmap);
158 public void setBitmap(Bitmap bitmap) {
159 mBitmap = bitmap;
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
ColorHueView.java 20 import android.graphics.Bitmap;
48 Bitmap mBitmap;
84 mBitmap = Bitmap.createBitmap(256, 2, Bitmap.Config.ARGB_8888);
196 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); local
197 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
ColorOpacityView.java 21 import android.graphics.Bitmap;
96 Bitmap bitmap = Bitmap.createBitmap(colors, imgdim, imgdim, Bitmap.Config.ARGB_8888); local
97 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
EditorDraw.java 22 import android.graphics.Bitmap;
275 Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(), brushIcons[index]); local
276 caller.available(bitmap);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
RenderingRequest.java 20 import android.graphics.Bitmap;
31 private Bitmap mBitmap = null;
48 private static final Bitmap.Config mConfig = Bitmap.Config.ARGB_8888;
50 public static void post(Context context, Bitmap source, ImagePreset preset,
55 public static void post(Context context, Bitmap source, ImagePreset preset, int type,
65 Bitmap bitmap = null; local
71 bitmap = pipeline.renderGeometryIcon(source, preset);
74 bitmap = MasterImage.getImage().getBitmapCache().getBitmap
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
WidgetDatabaseHelper.java 25 import android.graphics.Bitmap;
191 * Store the given bitmap in this database for the given appWidgetId.
193 public boolean setPhoto(int appWidgetId, Uri imageUri, Bitmap bitmap) {
198 int size = bitmap.getWidth() * bitmap.getHeight() * 4;
200 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
298 * Remove any bitmap associated with the given appWidgetId.

Completed in 1175 milliseconds

<<11121314151617181920>>