Searched refs:bitmap (Results 1 - 25 of 139) sorted by path

123456

/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/gesture/
H A DGesture.java176 * Creates a bitmap of the gesture with a transparent background.
178 * @param width width of the target bitmap
179 * @param height height of the target bitmap
183 * @return the bitmap
186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
187 final Canvas canvas = new Canvas(bitmap);
208 return bitmap;
212 * Creates a bitmap of the gesture with a transparent background.
218 * @return the bitmap
221 final Bitmap bitmap
[all...]
/frameworks/base/core/java/android/provider/
H A DMediaStore.java536 Bitmap bitmap = null;
543 bitmap = BitmapFactory.decodeFileDescriptor(
554 return bitmap;
593 * @return Bitmap bitmap of specified thumbnail kind
597 Bitmap bitmap = null;
614 bitmap = BitmapFactory.decodeByteArray(sThumbBuf, 0, sThumbBuf.length);
615 if (bitmap == null) {
620 return bitmap;
625 bitmap = getMiniThumbFromFile(c, baseUri, cr, options);
626 if (bitmap !
[all...]
/frameworks/base/core/java/android/text/style/
H A DImageSpan.java134 Bitmap bitmap = null;
138 bitmap = BitmapFactory.decodeStream(is);
139 drawable = new BitmapDrawable(mContext.getResources(), 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...]
H A DView.java851 * <p>Indicates this view is caching its drawing into a bitmap.</p>
3135 * by a bitmap and causes the view to be rendered using Android's software
6020 * offscreen bitmap. Some views, like an ImageView, must be able to
6021 * bypass this mechanism if they already draw a single bitmap, to avoid
12457 * bitmap. Calling {@link #draw(android.graphics.Canvas)} will not draw from the cache when
12459 * calling {@link #getDrawingCache()} and draw it on screen if the returned bitmap is not
12471 * a bitmap copy of this view, by setting the flag to <code>true</code> and calling
12703 * @return A non-scaled bitmap representing this view or null if cache is disabled.
12712 * <p>Returns the bitmap in which this view drawing is cached. The returned bitmap
[all...]
H A DViewDebug.java547 final Bitmap bitmap = metrics != null ?
550 final Canvas canvas = bitmap != null ? new Canvas(bitmap) : null;
552 bitmap, canvas
705 Log.w("View", "Failed to create capture bitmap!");
736 Log.w("View", "Out of memory for bitmap");
/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...]
H A DStackView.java1415 Bitmap bitmap = Bitmap.createBitmap(v.getResources().getDisplayMetrics(),
1417 mCanvas.setBitmap(bitmap);
1433 drawOutline(mCanvas, bitmap);
1435 return bitmap;
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java277 // bitmaps have the size of the largest bitmap in this group
281 for (Bitmap bitmap : bitmaps) {
282 mBitmapWidth = Math.max(mBitmapWidth, bitmap.getWidth());
283 mBitmapHeight = Math.max(mBitmapHeight, bitmap.getHeight());
1000 // offsets for centering the bitmap in the cell
1006 // coincident with the circle bitmap's top edge.
1011 // the up arrow bitmap is at 12:00, so find the rotation from x axis and add 90 degrees.
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...]
H A DWaveView.java89 private float mRingRadius = 182.0f; // Radius of bitmap ring. Used to snap halo to it
399 Bitmap bitmap = BitmapFactory.decodeResource(res, resId);
400 return new BitmapDrawable(res, bitmap);
/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...]

Completed in 506 milliseconds

123456