Searched defs:bitmap (Results 1 - 25 of 86) sorted by path

1234

/frameworks/av/media/libmedia/
H A DIMediaMetadataRetriever.cpp214 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); local
215 if (bitmap != 0) { // Don't send NULL across the binder interface
217 reply->writeStrongBinder(bitmap->asBinder());
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp153 bitmap = (char*) calloc(1, allocSize);
157 free(bitmap);
163 bitmap[i/8] |= (0x80 >> (i & 7));
172 char *cur = bitmap;
186 char *bitmap; member in struct:android::ReadTracker
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp105 SkBitmap bitmap;
107 &bitmap, SkBitmap::kNo_Config, SkImageDecoder::kDecodePixels_Mode);
112 // bitmap will go out of scope when we return from this method.
113 bitmap.lockPixels();
115 const int w = bitmap.width();
116 const int h = bitmap.height();
117 const void* p = bitmap.getPixels();
126 switch (bitmap.getConfig()) {
159 SkBitmap bitmap; local
164 codec->decode(&stream, &bitmap,
[all...]
/frameworks/base/core/java/android/app/
H A DContextImpl.java914 public void setWallpaper(Bitmap bitmap) throws IOException { argument
915 getWallpaperManager().setBitmap(bitmap);
H A DWallpaperManager.java122 * at the time the bitmap is loaded).
132 private FastBitmapDrawable(Bitmap bitmap) { argument
133 mBitmap = bitmap;
134 mWidth = bitmap.getWidth();
135 mHeight = bitmap.getHeight();
398 * do match the bitmap bounds, which should not be typical), doesn't
468 * Change the current system wallpaper to the bitmap in the given resource.
476 * @param resid The bitmap to save.
508 * Change the current system wallpaper to a bitmap. The given bitmap i
520 setBitmap(Bitmap bitmap) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContext.java878 public abstract void setWallpaper(Bitmap bitmap) throws IOException; argument
H A DContextWrapper.java268 public void setWallpaper(Bitmap bitmap) throws IOException { argument
269 mBase.setWallpaper(bitmap);
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java175 static native boolean nCopyLayer(int layerId, int bitmap); argument
738 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument
739 if (bitmap.isRecycled()) throw new IllegalArgumentException("Cannot draw recycled bitmaps");
744 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, chunks,
751 private static native void nDrawPatch(int renderer, int bitmap, byte[] buffer, byte[] chunks, argument
755 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument
756 if (bitmap.isRecycled()) throw new IllegalArgumentException("Cannot draw recycled bitmaps");
758 int modifiers = paint != null ? setupModifiers(bitmap, paint) : MODIFIER_NONE;
761 nDrawBitmap(mRenderer, bitmap
767 nDrawBitmap( int renderer, int bitmap, byte[] buffer, float left, float top, int paint) argument
771 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument
784 nDrawBitmap(int renderer, int bitmap, byte[] buff, int matrix, int paint) argument
788 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument
815 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
841 nDrawBitmap(int renderer, int bitmap, byte[] buffer, float srcLeft, float srcTop, float srcRight, float srcBottom, float left, float top, float right, float bottom, int paint) argument
890 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
918 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument
[all...]
H A DGLES20Layer.java56 boolean copyInto(Bitmap bitmap) { argument
57 return GLES20Canvas.nCopyLayer(mLayer, bitmap.mNativeBitmap);
H A DGLES20RecordingCanvas.java96 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument
97 super.drawPatch(bitmap, chunks, dst, paint);
98 mDisplayList.mBitmaps.add(bitmap);
103 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument
104 super.drawBitmap(bitmap, left, top, paint);
105 mDisplayList.mBitmaps.add(bitmap);
110 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument
111 super.drawBitmap(bitmap, matrix, paint);
112 mDisplayList.mBitmaps.add(bitmap);
117 public void drawBitmap(Bitmap bitmap, Rec argument
124 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
145 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
[all...]
H A DHardwareCanvas.java36 public void setBitmap(Bitmap bitmap) { argument
H A DHardwareLayer.java168 * Copies this layer into the specified bitmap.
170 * @param bitmap The bitmap to copy they layer into
174 abstract boolean copyInto(Bitmap bitmap); argument
H A DPointerIcon.java44 /** Style constant: Custom icon with a user-supplied bitmap. */
47 /** Style constant: Null icon. It has no bitmap. */
82 * Gets a special pointer icon that has no bitmap.
149 * Creates a custom pointer from the given bitmap and hotspot information.
151 * @param bitmap The bitmap for the icon.
152 * @param hotspotX The X offset of the pointer icon hotspot in the bitmap.
153 * Must be within the [0, bitmap.getWidth()) range.
154 * @param hotspotY The Y offset of the pointer icon hotspot in the bitmap.
155 * Must be within the [0, bitmap
161 createCustomIcon(Bitmap bitmap, float hotSpotX, float hotSpotY) argument
412 validateHotSpot(Bitmap bitmap, float hotSpotX, float hotSpotY) argument
[all...]
H A DTextureView.java509 * <p>The bitmap returned by this method uses the {@link Bitmap.Config#ARGB_8888}
515 * <p>If an error occurs during the copy, an empty bitmap will be returned.</p>
517 * @return A valid {@link Bitmap.Config#ARGB_8888} bitmap, or null if the surface
533 * <p>The bitmap returned by this method uses the {@link Bitmap.Config#ARGB_8888}
539 * <p>If an error occurs during the copy, an empty bitmap will be returned.</p>
541 * @param width The width of the bitmap to create
542 * @param height The height of the bitmap to create
544 * @return A valid {@link Bitmap.Config#ARGB_8888} bitmap, or null if the surface
561 * bitmap. If the surface texture is not available, the copy is not executed.
563 * the specified bitmap
582 getBitmap(Bitmap bitmap) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DRemoteViews.java242 // reference the bitmap cache. We don't want to modify the object as it may need to
275 // Because pruning can remove the need for bitmaps, we reconstruct the bitmap cache
863 Bitmap bitmap; field in class:RemoteViews.BitmapReflectionAction
866 BitmapReflectionAction(int viewId, String methodName, Bitmap bitmap) { argument
867 this.bitmap = bitmap;
870 bitmapId = mBitmapCache.getBitmapId(bitmap);
877 bitmap = mBitmapCache.getBitmapForId(bitmapId);
892 bitmap);
898 bitmapId = bitmapCache.getBitmapId(bitmap);
1825 setImageViewBitmap(int viewId, Bitmap bitmap) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DTransportControlView.java108 if (mMetadata.bitmap != null) {
109 mMetadata.bitmap.recycle();
111 mMetadata.bitmap = (Bitmap) msg.obj;
112 mAlbumArt.setImageBitmap(mMetadata.bitmap);
168 public void setArtwork(int generationId, Bitmap bitmap) { argument
171 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget();
175 public void setAllMetadata(int generationId, Bundle metadata, Bitmap bitmap) { argument
179 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget();
248 // Log.v(TAG, "setting max bitmap size: " + dim + "x" + dim);
256 private Bitmap bitmap; field in class:TransportControlView.Metadata
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp225 SkBitmap bitmap; local
227 bitmap.setConfig(config, width, height);
229 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
236 0, 0, width, height, bitmap);
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL);
254 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) { argument
257 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap);
261 delete bitmap;
264 static jboolean Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) { argument
267 return android::uirenderer::Caches::getInstance().resourceCache.recycle(bitmap);
281 Bitmap_compress(JNIEnv* env, jobject clazz, SkBitmap* bitmap, int format, int quality, jobject jstream, jbyteArray jstorage) argument
323 Bitmap_erase(JNIEnv* env, jobject, SkBitmap* bitmap, jint color) argument
327 Bitmap_width(JNIEnv* env, jobject, SkBitmap* bitmap) argument
331 Bitmap_height(JNIEnv* env, jobject, SkBitmap* bitmap) argument
335 Bitmap_rowBytes(JNIEnv* env, jobject, SkBitmap* bitmap) argument
339 Bitmap_config(JNIEnv* env, jobject, SkBitmap* bitmap) argument
343 Bitmap_getGenerationId(JNIEnv* env, jobject, SkBitmap* bitmap) argument
347 Bitmap_hasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap) argument
351 Bitmap_setHasAlpha(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasAlpha) argument
356 Bitmap_hasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap) argument
360 Bitmap_setHasMipMap(JNIEnv* env, jobject, SkBitmap* bitmap, jboolean hasMipMap) argument
391 SkBitmap* bitmap = new SkBitmap; local
432 Bitmap_writeToParcel(JNIEnv* env, jobject, const SkBitmap* bitmap, jboolean isMutable, jint density, jobject parcel) argument
512 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y) argument
530 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
557 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color) argument
573 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height) argument
580 Bitmap_copyPixelsToBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
593 Bitmap_copyPixelsFromBuffer(JNIEnv* env, jobject, const SkBitmap* bitmap, jobject jbuffer) argument
653 Bitmap_prepareToDraw(JNIEnv* env, jobject, SkBitmap* bitmap) argument
[all...]
H A DBitmapFactory.cpp139 static SkPixelRef* installPixelRef(SkBitmap* bitmap, SkStream* stream, argument
144 if (bitmap->getSize() >= 32 * 1024) {
145 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize);
147 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize);
150 bitmap->setPixelRef(pr)->unref();
151 pr->isOpaque(bitmap);
197 return nullObjectReturn("Cannot pre-scale a reused bitmap");
212 SkBitmap* bitmap; local
214 bitmap = new SkBitmap;
217 return nullObjectReturn("SkImageDecoder: Cannot reuse bitmap wit
398 jobject bitmap = NULL; local
[all...]
H A DBitmapRegionDecoder.cpp204 // Get the bitmap for re-use if it exists.
224 SkBitmap* bitmap = NULL; local
228 // Re-use bitmap.
229 bitmap = GraphicsJNI::getNativeBitmap(env, tileBitmap);
231 if (bitmap == NULL) {
232 bitmap = new SkBitmap;
233 adb.reset(bitmap);
236 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
242 env->SetIntField(options, gOptions_widthFieldID, bitmap->width());
243 env->SetIntField(options, gOptions_heightFieldID, bitmap
[all...]
H A DCanvas.cpp64 static SkCanvas* initRaster(JNIEnv* env, jobject, SkBitmap* bitmap) { argument
65 return bitmap ? new SkCanvas(*bitmap) : new SkCanvas;
96 static void setBitmap(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap) { argument
97 if (bitmap) {
98 canvas->setBitmapDevice(*bitmap);
455 SkCanvas* canvas, SkBitmap* bitmap,
470 canvas->drawBitmap(*bitmap, left_, top_, &filteredPaint);
472 canvas->drawBitmap(*bitmap, left_, top_, paint);
486 canvas->drawBitmap(*bitmap,
454 drawBitmap__BitmapFFPaint(JNIEnv* env, jobject jcanvas, SkCanvas* canvas, SkBitmap* bitmap, jfloat left, jfloat top, SkPaint* paint, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument
492 doDrawBitmap(JNIEnv* env, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, const SkRect& dst, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument
514 drawBitmapRF(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, jobject dstRectF, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument
524 drawBitmapRR(JNIEnv* env, jobject, SkCanvas* canvas, SkBitmap* bitmap, jobject srcIRect, jobject dstRect, SkPaint* paint, jint screenDensity, jint bitmapDensity) argument
539 SkBitmap bitmap; local
556 drawBitmapMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, const SkMatrix* matrix, const SkPaint* paint) argument
562 drawBitmapMesh(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, int meshWidth, int meshHeight, jfloatArray jverts, int vertIndex, jintArray jcolors, int colorIndex, const SkPaint* paint) argument
[all...]
H A DGraphics.cpp284 SkBitmap* GraphicsJNI::getNativeBitmap(JNIEnv* env, jobject bitmap) { argument
286 SkASSERT(bitmap);
287 SkASSERT(env->IsInstanceOf(bitmap, gBitmap_class));
288 SkBitmap* b = (SkBitmap*)env->GetIntField(bitmap, gBitmap_nativeInstanceID);
347 jobject GraphicsJNI::createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer, argument
351 SkASSERT(bitmap);
352 SkASSERT(bitmap->pixelRef());
354 static_cast<jint>(reinterpret_cast<uintptr_t>(bitmap)),
360 jobject GraphicsJNI::createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, argument
363 return createBitmap(env, bitmap, NUL
367 createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap) argument
481 allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument
518 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument
[all...]
H A DNinePatch.cpp31 const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
69 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
105 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
113 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
118 SkASSERT(bitmap);
125 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensity, srcDensity);
129 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint,
134 SkASSERT(bitmap);
140 draw(env, canvas, bounds, bitmap, chunkOb
68 draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
112 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
128 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument
143 getTransparentRegion(JNIEnv* env, jobject, const SkBitmap* bitmap, jbyteArray chunkObj, jobject boundsRect) argument
[all...]
H A DNinePatchImpl.cpp40 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { argument
41 switch (bitmap.getConfig()) {
43 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y));
46 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y));
50 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y)));
53 SkColorTable* ctable = bitmap.getColorTable();
55 (*ctable)[*bitmap.getAddr8(x, y)]);
71 const SkBitmap& bitmap, const SkPaint& paint,
80 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) {
91 canvas->drawBitmapRect(bitmap,
70 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument
105 NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument
[all...]
H A DShader.cpp85 static SkShader* BitmapShader_constructor(JNIEnv* env, jobject o, const SkBitmap* bitmap, argument
88 SkShader* s = SkShader::CreateBitmapShader(*bitmap,
97 SkBitmap* bitmap, int tileModeX, int tileModeY) {
99 SkiaShader* skiaShader = new SkiaBitmapShader(bitmap, shader,
96 BitmapShader_postConstructor(JNIEnv* env, jobject o, SkShader* shader, SkBitmap* bitmap, int tileModeX, int tileModeY) argument
/frameworks/base/core/jni/
H A Dandroid_emoji_EmojiFactory.cpp173 SkBitmap *bitmap = new SkBitmap; local
174 if (!SkImageDecoder::DecodeMemory(bytes, size, bitmap)) {
180 static_cast<jint>(reinterpret_cast<uintptr_t>(bitmap)), NULL, false, NULL, -1);

Completed in 338 milliseconds

1234