/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 205 protected void throwIfCannotDraw(Bitmap bitmap) { argument 217 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 221 public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { argument 225 public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { argument 239 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument 243 public void drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 93 * This contains graphics, bitmap and layer information. 108 * Creates a layer with a graphics and a bitmap. This is only used to create 112 * @param bitmap the bitmap 114 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { argument 116 mBitmap = bitmap; 204 * Creates the root snapshot associating it with a given bitmap. 206 * If <var>bitmap</var> is null, then {@link GcSnapshot#setBitmap(Bitmap_Delegate)} must be 210 * @param bitmap the image to associate to the snapshot or null. 213 public static GcSnapshot createDefaultSnapshot(Bitmap_Delegate bitmap) { argument 399 setBitmap(Bitmap_Delegate bitmap) argument [all...] |
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequenceDrawable.java | 83 public abstract void releaseBitmap(Bitmap bitmap); argument 93 public void releaseBitmap(Bitmap bitmap) {} 185 Bitmap bitmap; 193 bitmap = mBackBitmap; 200 invalidateTimeMs = mFrameSequenceState.getFrame(nextFrame, bitmap, lastFrame); 227 // destroy the bitmap here, since there's no safe way to get back to 249 Bitmap bitmap = bitmapProvider.acquireBitmap(minWidth, minHeight); 251 if (bitmap.getWidth() < minWidth 252 || bitmap.getHeight() < minHeight 253 || bitmap [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | ExtendedBitmapDrawable.java | 17 package com.android.bitmap.drawable; 33 import com.android.bitmap.BitmapCache; 34 import com.android.bitmap.DecodeAggregator; 35 import com.android.bitmap.DecodeTask; 36 import com.android.bitmap.R; 37 import com.android.bitmap.RequestKey; 38 import com.android.bitmap.ReusableBitmap; 39 import com.android.bitmap.util.Trace; 42 * This class encapsulates all functionality needed to display a single image bitmap, 46 * The actual bitmap decod [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 62 * Palette p = Palette.from(bitmap).generate(); 65 * Palette.from(bitmap).generate(new PaletteAsyncListener() { 98 public static Builder from(Bitmap bitmap) { argument 99 return new Builder(bitmap); 115 public static Palette generate(Bitmap bitmap) { argument 116 return from(bitmap).generate(); 123 public static Palette generate(Bitmap bitmap, int numColors) { argument 124 return from(bitmap).maximumColorCount(numColors).generate(); 132 Bitmap bitmap, PaletteAsyncListener listener) { 133 return from(bitmap) 131 generateAsync( Bitmap bitmap, PaletteAsyncListener listener) argument 140 generateAsync( final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) argument 613 Builder(Bitmap bitmap) argument 876 getPixelsFromBitmap(Bitmap bitmap) argument 904 scaleBitmapDown(final Bitmap bitmap) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 196 * at the time the bitmap is loaded). 206 private FastBitmapDrawable(Bitmap bitmap) { argument 207 mBitmap = bitmap; 208 mWidth = bitmap.getWidth(); 209 mHeight = bitmap.getHeight(); 583 // Do region decoding to get crop bitmap 680 * do match the bitmap bounds, which should not be typical), doesn't 904 * Change the current system wallpaper to the bitmap in the given resource. 912 * @param resid The resource ID of the bitmap to be used as the wallpaper image 925 * @param resid The resource ID of the bitmap t 990 setBitmap(Bitmap bitmap) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | RecordingCanvas.java | 76 public final void drawBitmap(@NonNull Bitmap bitmap, float left, float top, argument 78 throwIfCannotDraw(bitmap); 79 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top, 81 bitmap.mDensity); 85 public final void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix, argument 87 nDrawBitmapMatrix(mNativeCanvasWrapper, bitmap, matrix.ni(), 92 public final void drawBitmap(@NonNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst, argument 97 throwIfCannotDraw(bitmap); 103 right = bitmap.getWidth(); 104 bottom = bitmap 118 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull RectF dst, @Nullable Paint paint) argument 184 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument 536 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 540 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, long nativePaintOrZero, int screenDensity, int bitmapDensity) argument 602 nDrawBitmapMatrix(long nativeCanvas, Bitmap bitmap, long nativeMatrix, long nativePaint) argument 606 nDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument [all...] |
H A D | ThreadedRenderer.java | 810 boolean copyLayerInto(final HardwareLayer layer, final Bitmap bitmap) { argument 812 layer.getDeferredLayerUpdater(), bitmap); 872 public static int copySurfaceInto(Surface surface, Rect srcRect, Bitmap bitmap) { argument 875 return nCopySurfaceInto(surface, 0, 0, 0, 0, bitmap); 878 srcRect.right, srcRect.bottom, bitmap); 883 * Creates a {@link android.graphics.Bitmap.Config#HARDWARE} bitmap from the given 1007 private static native boolean nCopyLayerInto(long nativeProxy, long layer, Bitmap bitmap); argument 1036 int srcLeft, int srcTop, int srcRight, int srcBottom, Bitmap bitmap); 1035 nCopySurfaceInto(Surface surface, int srcLeft, int srcTop, int srcRight, int srcBottom, Bitmap bitmap) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 107 // if the collision avoidance above put some divs outside the bounds of the bitmap, 150 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument 153 colorTypeForScaledOutput(bitmap->colorType())); 155 int(bitmap->width() * mScale + 0.5f) * 156 int(bitmap->height() * mScale + 0.5f); 158 ALOGW("bitmap for alloc reuse (%d bytes) can't fit scaled bitmap (%d bytes)", 162 return SkBitmap::HeapAllocator::allocPixelRef(bitmap, ctable); 171 RecyclingPixelAllocator(android::Bitmap* bitmap, unsigned int size) argument 172 : mBitmap(bitmap), mSiz 178 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument 599 jobject bitmap = NULL; local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BaseCanvas.java | 53 protected void throwIfCannotDraw(Bitmap bitmap) { argument 54 if (bitmap.isRecycled()) { 55 throw new RuntimeException("Canvas: trying to use a recycled bitmap " + bitmap); 57 if (!bitmap.isPremultiplied() && bitmap.getConfig() == Bitmap.Config.ARGB_8888 && 58 bitmap.hasAlpha()) { 59 throw new RuntimeException("Canvas: trying to use a non-premultiplied bitmap " 60 + bitmap); 62 throwIfHwBitmapInSwMode(bitmap); 101 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument 109 drawBitmap(@onNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) argument 115 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst, @Nullable Paint paint) argument 141 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull RectF dst, @Nullable Paint paint) argument 204 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument 529 throwIfHwBitmapInSwMode(Bitmap bitmap) argument 556 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 559 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, long nativePaintOrZero, int screenDensity, int bitmapDensity) argument 605 nDrawBitmapMatrix(long nativeCanvas, Bitmap bitmap, long nativeMatrix, long nativePaint) argument 608 nDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 56 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a 59 * <p>It can be defined in an XML file with the <code><bitmap></code> element. For more 64 * transformation of raw bitmap graphics, and should be used when drawing to a 110 * instead to specify a bitmap to draw with and ensure the correct density is set. 122 * instead to specify a bitmap to draw with. 132 * Create drawable from a bitmap, not dealing with density. 137 public BitmapDrawable(Bitmap bitmap) { argument 138 this(new BitmapState(bitmap), null); 142 * Create drawable from a bitmap, setting initial target density based on 145 public BitmapDrawable(Resources res, Bitmap bitmap) { argument 225 setBitmap(Bitmap bitmap) argument 557 updateShaderMatrix(@onNull Bitmap bitmap, @NonNull Paint paint, @NonNull Shader shader, boolean needMirroring) argument 972 BitmapState(Bitmap bitmap) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | BakedOpDispatcher.cpp | 50 Bitmap* bitmap = (static_cast<const BitmapOp*>(opList.states[0]->op))->bitmap; local 52 Texture* texture = renderer.caches().textureCache.get(bitmap); 72 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType) 102 op.bitmap->width(), op.bitmap->height(), 123 op.bitmap->width(), op.bitmap->height(), 169 Texture* texture = renderer.caches().textureCache.get(firstOp.bitmap); 175 if (firstOp.bitmap [all...] |
H A D | FrameBuilder.cpp | 609 if (op.bitmap->isOpaque()) { 619 && op.bitmap->colorType() != kAlpha_8_SkColorType 621 mergeid_t mergeId = reinterpret_cast<mergeid_t>(op.bitmap->getGenerationID()); 641 Bitmap& bitmap = op.vectorDrawable->getBitmapUpdateIfDirty(); local 647 &bitmap, 648 Rect(bitmap.width(), bitmap.height())); 695 mergeid_t mergeId = reinterpret_cast<mergeid_t>(op.bitmap->getGenerationID());
|
H A D | RecordingCanvas.cpp | 468 void RecordingCanvas::drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) { argument 471 drawBitmap(bitmap, paint); 475 void RecordingCanvas::drawBitmap(Bitmap& bitmap, const SkMatrix& matrix, argument 478 drawBitmap(bitmap, paint); 485 bitmap.getBounds(&src); 487 drawBitmap(bitmap, src.fLeft, src.fTop, src.fRight, src.fBottom, 492 drawBitmap(bitmap, paint); 497 void RecordingCanvas::drawBitmap(Bitmap& bitmap, float srcLeft, float srcTop, argument 501 && srcRight == bitmap.width() 502 && srcBottom == bitmap 520 drawBitmapMesh(Bitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 532 drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& patch, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 575 drawBitmap(Bitmap& bitmap, const SkPaint* paint) argument [all...] |
H A D | SkiaCanvasProxy.cpp | 117 void SkiaCanvasProxy::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, argument 119 sk_sp<Bitmap> hwuiBitmap = Bitmap::createFrom(bitmap.info(), *bitmap.pixelRef()); 120 // HWUI doesn't support extractSubset(), so convert any subsetted bitmap into 121 // a drawBitmapRect(); pass through an un-subsetted bitmap. 122 if (hwuiBitmap && bitmap.dimensions() != hwuiBitmap->info().dimensions()) { 123 SkIPoint origin = bitmap.pixelRefOrigin(); 125 origin.fX + bitmap.dimensions().width(), 126 origin.fY + bitmap.dimensions().height(), 128 left + bitmap 140 Bitmap* bitmap = reinterpret_cast<Bitmap*>(skBitmap.pixelRef()); local 145 onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst, const SkPaint*) argument 163 sk_sp<Bitmap> bitmap = Bitmap::createFrom(skiaBitmap.info(), *skiaBitmap.pixelRef()); local [all...] |
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 299 SkBitmap* bitmap) { 300 bool success = args->context->copyLayerInto(args->layer, args->bitmap); 304 bool RenderProxy::copyLayerInto(DeferredLayerUpdater* layer, SkBitmap& bitmap) { argument 308 args->bitmap = &bitmap; 618 Surface* surface, Rect srcRect, SkBitmap* bitmap) { 620 args->srcRect, args->bitmap); 624 int right, int bottom, SkBitmap* bitmap) { 626 args->bitmap = bitmap; 298 CREATE_BRIDGE3(copyLayerInto, CanvasContext* context, DeferredLayerUpdater* layer, SkBitmap* bitmap) argument 617 CREATE_BRIDGE4(copySurfaceInto, RenderThread* thread, Surface* surface, Rect srcRect, SkBitmap* bitmap) argument 623 copySurfaceInto(sp<Surface>& surface, int left, int top, int right, int bottom, SkBitmap* bitmap) argument 634 CREATE_BRIDGE2(prepareToDraw, RenderThread* thread, Bitmap* bitmap) argument 641 prepareToDraw(Bitmap& bitmap) argument 667 CREATE_BRIDGE2(allocateHardwareBitmap, RenderThread* thread, SkBitmap* bitmap) argument 672 allocateHardwareBitmap(SkBitmap& bitmap) argument 680 CREATE_BRIDGE3(copyGraphicBufferInto, RenderThread* thread, GraphicBuffer* buffer, SkBitmap* bitmap) argument 684 copyGraphicBufferInto(GraphicBuffer* buffer, SkBitmap* bitmap) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | RemoteControlClient.java | 502 * @param key the identifier of the bitmap to set. The only valid value is 504 * @param bitmap The bitmap for the artwork, or null if there isn't any. 511 public synchronized MetadataEditor putBitmap(int key, Bitmap bitmap) argument 513 super.putBitmap(key, bitmap); 519 mMetadataBuilder.putBitmap(metadataKey, bitmap); 861 * Cache for the artwork bitmap. 863 * Artwork and metadata are not kept in one Bundle because the bitmap sometimes needs to be
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 349 // Load bitmap if it is not yet loaded 352 Log.d(TAG, "Reloading bitmap: mBackground, bgw, bgh, dw, dh = " + 415 // the loaded bitmap. Yay! 416 // hw-accelerated renderer retains bitmap for faster rotation 585 // add a filter bitmap? 667 private int loadTexture(Bitmap bitmap) { argument 684 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageRenderer.java | 57 * DECODED --> ACTIVATED - (after the decoded bitmap is uploaded) 79 // The mLevel variable indicates which level of bitmap we should use. 80 // Level 0 means the original full-sized bitmap, and a larger value means 81 // a smaller scaled bitmap (The width and height of each scaled bitmap is 83 // use the bitmap in mScaledBitmaps[mLevel] for display, otherwise the value 104 // The width and height of the full-sized bitmap 353 // If the bitmap is scaled by the given factor "scale", return the 357 // (cX, cY) is the point on the original bitmap which will be put in the 678 protected void onFreeBitmap(Bitmap bitmap) { argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BaseCanvas_Delegate.java | 53 protected BaseCanvas_Delegate(Bitmap_Delegate bitmap) { argument 54 mSnapshot = GcSnapshot.createDefaultSnapshot(mBitmap = bitmap); 78 /*package*/ static void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, argument 81 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 96 /*package*/ static void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, float srcTop, argument 100 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 421 /*package*/ static void nDrawBitmapMatrix(long nCanvas, Bitmap bitmap, argument 433 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap); 453 //FIXME add support for canvas, screen and bitmap densities. 459 /*package*/ static void nDrawBitmapMesh(long nCanvas, Bitmap bitmap, argument 608 drawBitmap(long nativeCanvas, Bitmap_Delegate bitmap, long nativePaintOrZero, final int sleft, final int stop, final int sright, final int sbottom, final int dleft, final int dtop, final int dright, final int dbottom) argument 646 getImageToDraw(Bitmap_Delegate bitmap, Paint_Delegate paint, boolean[] forceSrcMode) argument [all...] |
/frameworks/rs/ |
H A D | rsFont.cpp | 113 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) { 133 bitmap[bY * bitmapW + bX] = tempCol; 163 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { 207 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH); 251 FT_Bitmap *bitmap = &mFace->glyph->bitmap; local 253 // Now copy the bitmap into the cache texture 257 // Let the font state figure out where to put the bitmap 259 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY); 265 uint32_t endX = startX + bitmap 112 drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 160 renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t start, int32_t numGlyphs, RenderMode mode, Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 415 cacheBitmap(FT_Bitmap *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument 744 renderText(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t startIndex, int32_t numGlyphs, Font::RenderMode mode, Font::Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 840 fitBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 76 * <p>BackgroundManager holds references to potentially large bitmap Drawables. 120 ConstantState(Bitmap bitmap, Matrix matrix) { argument 121 mBitmap = bitmap; 152 BitmapDrawable(Resources resources, Bitmap bitmap) { argument 153 this(resources, bitmap, null); 156 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { argument 157 mState = new ConstantState(bitmap, matrix); 715 * overhead when not visible. It's app's responsibility to restore the drawable/bitmap in 888 * Sets the given bitmap into the background. When using setCoverImageBitmap to set the 889 * background, the provided bitmap wil 893 setBitmap(Bitmap bitmap) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | PlaybackControlsRow.java | 737 static Bitmap createBitmap(Bitmap bitmap, int color) { argument 738 Bitmap dst = bitmap.copy(bitmap.getConfig(), true); 742 canvas.drawBitmap(bitmap, 0, 0, paint); 817 * @param bm The bitmap to set.
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 153 SkBitmap bitmap; 157 image->asLegacyBitmap(&bitmap, SkImage::kRO_LegacyBitmapMode); 162 // bitmap will go out of scope when we return from this method. 163 bitmap.lockPixels(); 165 const int w = bitmap.width(); 166 const int h = bitmap.height(); 167 const void* p = bitmap.getPixels(); 176 switch (bitmap.colorType()) { 208 SkBitmap bitmap; local 212 image->asLegacyBitmap(&bitmap, SkImag [all...] |
/frameworks/base/core/java/android/content/ |
H A D | ContextWrapper.java | 348 public void setWallpaper(Bitmap bitmap) throws IOException { argument 349 mBase.setWallpaper(bitmap);
|