Searched refs:bitmap (Results 76 - 100 of 140) sorted by relevance

123456

/frameworks/base/media/tests/omxjpegdecoder/
H A Domx_jpeg_decoder.h33 extern int storeBitmapToFile(SkBitmap* bitmap, const char* filename);
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp17 #include <android/bitmap.h>
/frameworks/base/core/jni/android/graphics/
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...]
/frameworks/base/media/java/android/media/videoeditor/
H A DMediaItem.java411 * or if the bitmap is not specified or if the dimensions of the
412 * bitmap do not match the dimensions of the media item
436 final Bitmap bitmap = frame.getBitmap();
437 if (bitmap == null) {
438 throw new IllegalArgumentException("Overlay bitmap not specified");
451 * The dimensions of the overlay bitmap must be the same as the
454 if (bitmap.getWidth() != scaledWidth || bitmap.getHeight() != scaledHeight) {
580 public void onThumbnail(Bitmap bitmap, int index); argument
595 public void onThumbnail(Bitmap bitmap, in
[all...]
H A DOverlayFrame.java77 * @param bitmap The bitmap to be used as an overlay. The size of the
78 * bitmap must equal to the size of the media item to which it is
79 * added. The bitmap is typically a decoded PNG file.
86 public OverlayFrame(MediaItem mediaItem, String overlayId, Bitmap bitmap, argument
89 mBitmap = bitmap;
120 * Get the overlay bitmap.
122 * @return Get the overlay bitmap
129 * Get the overlay bitmap.
131 * @return Get the overlay bitmap a
141 setBitmap(Bitmap bitmap) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java72 public static Bitmap_Delegate getDelegate(Bitmap bitmap) { argument
73 return sManager.getDelegate(bitmap.mNativeBitmap);
86 * @param input the file from which to read the bitmap content
87 * @param isMutable whether the bitmap is mutable
88 * @param density the density associated with the bitmap
104 * @param input the stream from which to read the bitmap content
105 * @param isMutable whether the bitmap is mutable
106 * @param density the density associated with the bitmap
122 * @param image the bitmap content
123 * @param isMutable whether the bitmap i
140 getImage(Bitmap bitmap) argument
[all...]
H A DCanvas_Delegate.java320 // create a new Canvas_Delegate with the given bitmap and return its new native int.
333 /*package*/ static void native_setBitmap(int nativeCanvas, int bitmap) { argument
341 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap);
823 /*package*/ static void native_drawBitmap(Canvas thisCanvas, int nativeCanvas, int bitmap, argument
830 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap);
845 /*package*/ static void native_drawBitmap(Canvas thisCanvas, int nativeCanvas, int bitmap, argument
851 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap);
870 /*package*/ static void native_drawBitmap(int nativeCanvas, int bitmap, argument
876 Bitmap_Delegate bitmapDelegate = Bitmap_Delegate.getDelegate(bitmap);
955 //FIXME add support for canvas, screen and bitmap densitie
1212 Canvas_Delegate(Bitmap_Delegate bitmap) argument
1273 setBitmap(Bitmap_Delegate bitmap) argument
1279 drawBitmap( int nativeCanvas, Bitmap_Delegate bitmap, int 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
1323 getImageToDraw(Bitmap_Delegate bitmap, Paint_Delegate paint, boolean[] forceSrcMode) argument
[all...]
H A DBitmapShader_Delegate.java70 Bitmap_Delegate bitmap = Bitmap_Delegate.getDelegate(native_bitmap);
71 if (bitmap == null) {
76 bitmap.getImage(),
/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/libs/hwui/font/
H A DFont.cpp63 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) {
85 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) {
104 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) {
126 bitmap[bY * bitmapW + bX] = tempCol;
187 int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) {
188 if (bitmap != NULL && bitmapW > 0 && bitmapH > 0) {
189 render(paint, text, start, len, numGlyphs, x, y, BITMAP, bitmap,
285 int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap,
322 bitmap, bitmapW, bitmapH, bounds, positions);
361 bitmap, bitmap
62 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
84 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
103 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument
186 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument
284 render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardTransportControlView.java104 if (mMetadata.bitmap != null) {
105 mMetadata.bitmap.recycle();
107 mMetadata.bitmap = (Bitmap) msg.obj;
108 mAlbumArt.setImageBitmap(mMetadata.bitmap);
165 public void setArtwork(int generationId, Bitmap bitmap) { argument
168 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget();
172 public void setAllMetadata(int generationId, Bundle metadata, Bitmap bitmap) { argument
176 handler.obtainMessage(MSG_SET_ARTWORK, generationId, 0, bitmap).sendToTarget();
267 private Bitmap bitmap; field in class:KeyguardTransportControlView.Metadata
323 mAlbumArt.setImageBitmap(mMetadata.bitmap);
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.h583 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint);
584 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint);
585 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop,
588 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint);
589 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight,
591 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
824 inline void addBitmap(SkBitmap* bitmap) { argument
825 // Note that this assumes the bitmap is immutable. There are cases this won't handle
826 // correctly, such as creating the bitmap from scratch, drawing with it, changing its
829 addInt((int) bitmap);
834 addBitmapData(SkBitmap* bitmap) argument
[all...]
H A DOpenGLRenderer.h173 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint);
174 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint);
175 virtual status_t drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop,
178 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint);
179 virtual status_t drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight,
181 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
184 status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
516 * Draws the specified texture as an alpha bitmap. Alpha bitmaps obey
520 * @param left The x coordinate of the bitmap
521 * @param top The y coordinate of the bitmap
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp364 bitmap.setIsOpaque(true) on the resulting SkBitmap (as an accelerator)
414 SkBitmap bitmap; local
416 bitmap.setConfig(convertPixelFormat(info.format), info.w, info.h, bpr);
418 bitmap.setIsOpaque(true);
421 bitmap.setPixels(info.bits);
423 // be safe with an empty bitmap.
424 bitmap.setPixels(NULL);
426 nativeCanvas->setBitmapDevice(bitmap);
504 SkBitmap* bitmap = new SkBitmap(); local
505 bitmap
[all...]
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);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_frame.h82 jobject bitmap,
86 Java_android_filterfw_core_GLFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapsActivity.java71 Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts);
72 Log.d("Bitmap", "bitmap.isMutable() = " + bitmap.isMutable());
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java89 * This contains graphics, bitmap and layer information.
104 * Creates a layer with a graphics and a bitmap. This is only used to create
108 * @param bitmap the bitmap
110 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { argument
112 mBitmap = bitmap;
200 * Creates the root snapshot associating it with a given bitmap.
202 * If <var>bitmap</var> is null, then {@link GcSnapshot#setBitmap(Bitmap_Delegate)} must be
209 public static GcSnapshot createDefaultSnapshot(Bitmap_Delegate bitmap) { argument
211 if (bitmap !
395 setBitmap(Bitmap_Delegate bitmap) argument
[all...]
H A DRenderDrawable.java102 // create an Android bitmap around the BufferedImage
103 Bitmap bitmap = Bitmap_Delegate.createBitmap(image,
106 // create a Canvas around the Android bitmap
107 Canvas canvas = new Canvas(bitmap);
/frameworks/base/core/java/android/view/
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/graphics/java/android/graphics/
H A DPicture.java180 public void setBitmap(Bitmap bitmap) { argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DVertexFrame.java104 public void setBitmap(Bitmap bitmap) { argument
105 throw new RuntimeException("Unsupported: Cannot set vertex frame bitmap value!");
/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/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DObjectViewer.java153 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length);
154 if (bitmap != null) {
156 thumbView.setImageBitmap(bitmap);
/frameworks/base/core/java/android/app/
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...]

Completed in 877 milliseconds

123456