/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 310 SkBitmap* bitmap) { 311 bool success = args->context->copyLayerInto(args->layer, args->bitmap); 315 bool RenderProxy::copyLayerInto(DeferredLayerUpdater* layer, SkBitmap& bitmap) { argument 319 args->bitmap = &bitmap; 621 Surface* surface, SkBitmap* bitmap) { 623 *args->surface, args->bitmap); 626 int RenderProxy::copySurfaceInto(sp<Surface>& surface, SkBitmap* bitmap) { argument 628 args->bitmap = bitmap; 309 CREATE_BRIDGE3(copyLayerInto, CanvasContext* context, DeferredLayerUpdater* layer, SkBitmap* bitmap) argument 620 CREATE_BRIDGE3(copySurfaceInto, RenderThread* thread, Surface* surface, SkBitmap* bitmap) argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 226 public void setBitmap(Bitmap bitmap) { argument 229 if (getFormat().getWidth() != bitmap.getWidth() || 230 getFormat().getHeight() != bitmap.getHeight()) { 233 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap); 235 throw new RuntimeException("Could not set GL frame bitmap data!"); 248 throw new RuntimeException("Could not get bitmap data from GL frame!"); 392 private native boolean setNativeBitmap(Bitmap bitmap, int size); argument 394 private native boolean getNativeBitmap(Bitmap bitmap); argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Bitmap_Delegate.java | 94 public static Bitmap_Delegate getDelegate(@Nullable Bitmap bitmap) { argument 96 return bitmap == null ? null : getDelegate(bitmap.refSkPixelRef()); 102 * @param input the file from which to read the bitmap content 103 * @param isMutable whether the bitmap is mutable 104 * @param density the density associated with the bitmap 117 * @param input the file from which to read the bitmap content 118 * @param density the density associated with the bitmap 150 * @param input the stream from which to read the bitmap content 151 * @param isMutable whether the bitmap i [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 201 protected void throwIfCannotDraw(Bitmap bitmap) { argument 213 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 217 public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { argument 221 public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { argument 235 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument 239 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 | 91 * This contains graphics, bitmap and layer information. 106 * Creates a layer with a graphics and a bitmap. This is only used to create 110 * @param bitmap the bitmap 112 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { argument 114 mBitmap = bitmap; 202 * Creates the root snapshot associating it with a given bitmap. 204 * If <var>bitmap</var> is null, then {@link GcSnapshot#setBitmap(Bitmap_Delegate)} must be 208 * @param bitmap the image to associate to the snapshot or null. 211 public static GcSnapshot createDefaultSnapshot(Bitmap_Delegate bitmap) { argument 397 setBitmap(Bitmap_Delegate bitmap) argument [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/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | PlaybackControlsRow.java | 590 private static Bitmap createBitmap(Bitmap bitmap, int color) { argument 591 Bitmap dst = bitmap.copy(bitmap.getConfig(), true); 595 canvas.drawBitmap(bitmap, 0, 0, paint); 670 * @param bm The bitmap to set.
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 63 * Palette p = Palette.from(bitmap).generate(); 66 * Palette.from(bitmap).generate(new PaletteAsyncListener() { 99 public static Builder from(Bitmap bitmap) { argument 100 return new Builder(bitmap); 116 public static Palette generate(Bitmap bitmap) { argument 117 return from(bitmap).generate(); 124 public static Palette generate(Bitmap bitmap, int numColors) { argument 125 return from(bitmap).maximumColorCount(numColors).generate(); 133 Bitmap bitmap, PaletteAsyncListener listener) { 134 return from(bitmap) 132 generateAsync( Bitmap bitmap, PaletteAsyncListener listener) argument 141 generateAsync( final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) argument 585 Builder(Bitmap bitmap) argument 849 getPixelsFromBitmap(Bitmap bitmap) argument 877 scaleBitmapDown(final Bitmap bitmap) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 110 SkBitmap bitmap; 112 &bitmap, kUnknown_SkColorType, SkImageDecoder::kDecodePixels_Mode); 117 // bitmap will go out of scope when we return from this method. 118 bitmap.lockPixels(); 120 const int w = bitmap.width(); 121 const int h = bitmap.height(); 122 const void* p = bitmap.getPixels(); 131 switch (bitmap.colorType()) { 164 SkBitmap bitmap; local 169 codec->decode(&stream, &bitmap, [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 189 * at the time the bitmap is loaded). 199 private FastBitmapDrawable(Bitmap bitmap) { argument 200 mBitmap = bitmap; 201 mWidth = bitmap.getWidth(); 202 mHeight = bitmap.getHeight(); 566 // Do region decoding to get crop bitmap 663 * do match the bitmap bounds, which should not be typical), doesn't 887 * Change the current system wallpaper to the bitmap in the given resource. 895 * @param resid The resource ID of the bitmap to be used as the wallpaper image 908 * @param resid The resource ID of the bitmap t 972 setBitmap(Bitmap bitmap) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 102 // if the collision avoidance above put some divs outside the bounds of the bitmap, 145 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument 148 colorTypeForScaledOutput(bitmap->colorType())); 150 int(bitmap->width() * mScale + 0.5f) * 151 int(bitmap->height() * mScale + 0.5f); 153 ALOGW("bitmap for alloc reuse (%d bytes) can't fit scaled bitmap (%d bytes)", 157 return SkBitmap::HeapAllocator::allocPixelRef(bitmap, ctable); 166 RecyclingPixelAllocator(android::Bitmap* bitmap, unsigned int size) argument 167 : mBitmap(bitmap), mSiz 173 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument 546 jobject bitmap = NULL; local [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_SurfaceControl.cpp | 187 Bitmap* bitmap = new Bitmap( local 191 bitmap->peekAtPixelRef()->setImmutable(); 193 return GraphicsJNI::createBitmap(env, bitmap,
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 55 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a 58 * <p>It can be defined in an XML file with the <code><bitmap></code> element. For more 63 * transformation of raw bitmap graphics, and should be used when drawing to a 109 * instead to specify a bitmap to draw with and ensure the correct density is set. 121 * instead to specify a bitmap to draw with. 131 * Create drawable from a bitmap, not dealing with density. 136 public BitmapDrawable(Bitmap bitmap) { argument 137 this(new BitmapState(bitmap), null); 141 * Create drawable from a bitmap, setting initial target density based on 144 public BitmapDrawable(Resources res, Bitmap bitmap) { argument 224 setBitmap(Bitmap bitmap) argument 917 BitmapState(Bitmap bitmap) argument [all...] |
H A D | Drawable.java | 113 * bitmap, allowing it to resize better in some cases. 169 * guide. For information and examples of creating drawable resources (XML or bitmap files that 1136 the pad rect, but if the bitmap does not had a ninepatch chunk, 1293 * share a unique bitmap stored in their ConstantState. 1309 * properties, such as pixel dimensions or bitmap images, will not be 1369 protected final boolean isAtlasable(@Nullable Bitmap bitmap) { argument 1370 return bitmap != null && bitmap.getConfig() == Bitmap.Config.ARGB_8888;
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpDispatcher.cpp | 49 const SkBitmap* bitmap = (static_cast<const BitmapOp*>(opList.states[0]->op))->bitmap; local 51 AssetAtlas::Entry* entry = renderer.renderState().assetAtlas().getEntry(bitmap->pixelRef()); 52 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(bitmap); 76 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType) 96 firstOp.bitmap->pixelRef()); 108 entry, op.bitmap->width(), op.bitmap->height(), 129 entry, op.bitmap->width(), op.bitmap [all...] |
H A D | DisplayListCanvas.cpp | 229 void DisplayListCanvas::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { argument 230 bitmap = refBitmap(*bitmap); 233 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, paint)); 236 void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top, argument 240 drawBitmap(&bitmap, paint); 244 void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, argument 247 drawBitmap(&bitmap, paint); 254 bitmap.getBounds(&src); 256 drawBitmap(bitmap, sr 266 drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 312 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 323 drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& patch, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument [all...] |
H A D | FrameBuilder.cpp | 602 if (op.bitmap->isOpaque()) { 612 && op.bitmap->colorType() != kAlpha_8_SkColorType 614 mergeid_t mergeId = reinterpret_cast<mergeid_t>(op.bitmap->getGenerationID()); 635 const SkBitmap& bitmap = op.vectorDrawable->getBitmapUpdateIfDirty(); local 641 &bitmap, 642 Rect(bitmap.width(), bitmap.height())); 689 mergeid_t mergeId = reinterpret_cast<mergeid_t>(op.bitmap->getGenerationID());
|
H A D | RecordingCanvas.cpp | 453 void RecordingCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) { argument 456 drawBitmap(&bitmap, paint); 460 void RecordingCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, argument 463 drawBitmap(&bitmap, paint); 470 bitmap.getBounds(&src); 472 drawBitmap(bitmap, src.fLeft, src.fTop, src.fRight, src.fBottom, 477 drawBitmap(&bitmap, paint); 482 void RecordingCanvas::drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, argument 486 && srcRight == bitmap.width() 487 && srcBottom == bitmap 505 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 517 drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& patch, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 554 drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) 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 | 360 // Load bitmap if it is not yet loaded 363 Log.d(TAG, "Reloading bitmap: mBackground, bgw, bgh, dw, dh = " + 427 // the loaded bitmap. Yay! 428 // hw-accelerated renderer retains bitmap for faster rotation 560 // add a filter bitmap? 642 private int loadTexture(Bitmap bitmap) { argument 659 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/test-runner/src/android/test/mock/ |
H A D | MockContext.java | 288 public void setWallpaper(Bitmap bitmap) throws IOException { argument
|
/frameworks/rs/ |
H A D | rsFont.cpp | 114 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) { 134 bitmap[bY * bitmapW + bX] = tempCol; 164 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { 208 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH); 252 FT_Bitmap *bitmap = &mFace->glyph->bitmap; local 254 // Now copy the bitmap into the cache texture 258 // Let the font state figure out where to put the bitmap 260 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY); 266 uint32_t endX = startX + bitmap 113 drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 161 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 416 cacheBitmap(FT_Bitmap *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument 745 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 | 78 * <p>BackgroundManager holds references to potentially large bitmap Drawables. 150 BitmapDrawable(Resources resources, Bitmap bitmap) { argument 151 this(resources, bitmap, null); 154 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { argument 155 mState.mBitmap = bitmap; 1027 * Sets the given bitmap into the background. When using setBitmap to set the 1028 * background, the provided bitmap will be scaled and cropped to correctly 1032 public void setBitmap(Bitmap bitmap) { argument 1034 Log.v(TAG, "setBitmap " + bitmap); 1037 if (bitmap [all...] |
/frameworks/base/core/java/android/content/ |
H A D | ContextWrapper.java | 338 public void setWallpaper(Bitmap bitmap) throws IOException { argument 339 mBase.setWallpaper(bitmap);
|