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

1234

/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselViewUtilities.java16 * Debug utility to write the given bitmap to a file.
19 * @param bitmap the bitmap to write
23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) { argument
31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
/frameworks/base/core/jni/
H A Dandroid_view_PointerIcon.h48 SkBitmap bitmap; member in struct:android::PointerIcon
58 bitmap.reset();
68 /* Loads the bitmap associated with a pointer icon.
73 /* Loads the bitmap associated with a pointer icon by style.
H A Dandroid_view_PointerIcon.cpp80 SkBitmap* bitmap = GraphicsJNI::getNativeBitmap(env, bitmapObj); local
81 if (bitmap) {
82 outPointerIcon->bitmap = *bitmap; // use a shared pixel ref
/frameworks/base/graphics/java/android/graphics/
H A DBitmapShader.java20 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or
32 * Call this to create a new shader that will draw with a bitmap.
34 * @param bitmap The bitmap to use inside the shader
35 * @param tileX The tiling mode for x to draw the bitmap in.
36 * @param tileY The tiling mode for y to draw the bitmap in.
38 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) { argument
39 mBitmap = bitmap;
40 final int b = bitmap
[all...]
H A DNinePatch.java21 * The NinePatch class permits drawing a bitmap in nine sections.
45 * Create a drawable projection from a bitmap to nine patches.
47 * @param bitmap The bitmap describing the patches.
49 * bitmap is split apart and drawn.
50 * @param srcName The name of the source for the bitmap. Might be null.
52 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { argument
53 mBitmap = bitmap;
77 * Draw a bitmap of nine patches.
79 * @param canvas A container for the current matrix and clip used to draw the bitmap
156 validateNinePatchChunk(int bitmap, byte[] chunk) argument
163 nativeGetTransparentRegion( int bitmap, byte[] chunk, Rect location) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20Layer.java56 boolean copyInto(Bitmap bitmap) { argument
57 return GLES20Canvas.nCopyLayer(mLayer, bitmap.mNativeBitmap);
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...]
/frameworks/ex/photoviewer/src/com/android/ex/photo/loaders/
H A DPhotoBitmapLoader.java31 * Loader for the bitmap of a photo.
53 Bitmap bitmap = ImageUtils.createLocalBitmap(resolver, Uri.parse(mPhotoUri),
55 if (bitmap != null) {
56 bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM);
58 return bitmap;
70 public void deliverResult(Bitmap bitmap) { argument
74 if (bitmap != null) {
75 onReleaseResources(bitmap);
79 mBitmap = bitmap;
84 super.deliverResult(bitmap);
125 onCanceled(Bitmap bitmap) argument
155 onReleaseResources(Bitmap bitmap) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
H A DPhotoBitmapLoader.java31 * Loader for the bitmap of a photo.
53 Bitmap bitmap = ImageUtils.createLocalBitmap(resolver, Uri.parse(mPhotoUri),
55 if (bitmap != null) {
56 bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM);
58 return bitmap;
70 public void deliverResult(Bitmap bitmap) { argument
74 if (bitmap != null) {
75 onReleaseResources(bitmap);
79 mBitmap = bitmap;
84 super.deliverResult(bitmap);
125 onCanceled(Bitmap bitmap) argument
155 onReleaseResources(Bitmap bitmap) argument
[all...]
/frameworks/base/media/tests/omxjpegdecoder/
H A Djpeg_decoder_bench.cpp53 SkBitmap* bitmap) {
58 // Decode the input stream and then use the bitmap.
59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
63 printf("WidthxHeight: %dx%d\n", bitmap->width(), bitmap->height());
70 SkBitmap* bitmap) {
75 // Decode the input stream and then use the bitmap.
76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) {
82 return storeBitmapToFile(bitmap, filename);
89 SkBitmap* bitmap local
52 testDecodeBounds(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument
69 testDecodePixels(SkImageDecoder* decoder, SkStream* stream, SkBitmap* bitmap) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLUtils.java44 * return the internal format as defined by OpenGL ES of the supplied bitmap.
45 * @param bitmap
46 * @return the internal format of the bitmap.
48 public static int getInternalFormat(Bitmap bitmap) { argument
49 if (bitmap == null) {
52 if (bitmap.isRecycled()) {
53 throw new IllegalArgumentException("bitmap is recycled");
55 int result = native_getInternalFormat(bitmap);
63 * Return the type as defined by OpenGL ES of the supplied bitmap, if there
64 * is one. If the bitmap i
70 getType(Bitmap bitmap) argument
106 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int border) argument
132 texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
154 texImage2D(int target, int level, Bitmap bitmap, int border) argument
189 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap) argument
214 texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
282 native_getInternalFormat(Bitmap bitmap) argument
283 native_getType(Bitmap bitmap) argument
284 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
286 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DNinePatch_Delegate.java152 /*package*/ static void validateNinePatchChunk(int bitmap, byte[] chunk) { argument
177 /*package*/ static int nativeGetTransparentRegion(int bitmap, byte[] chunk, Rect location) { argument
/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/core/jni/android/graphics/
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...]
/frameworks/base/libs/hwui/
H A DResourceCache.cpp313 SkBitmap* bitmap = (SkBitmap*) resource; local
315 Caches::getInstance().textureCache.removeDeferred(bitmap);
317 delete bitmap;
H A DShapeCache.cpp119 SkBitmap bitmap; local
120 initBitmap(bitmap, rectWidth, rectHeight);
125 SkCanvas canvas(bitmap);
130 addTexture(entry, &bitmap, texture);
H A DTextureCache.cpp106 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { argument
124 Texture* TextureCache::get(SkBitmap* bitmap) { argument
125 Texture* texture = mCache.get(bitmap);
128 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) {
130 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize);
134 const uint32_t size = bitmap->rowBytes() * bitmap->height();
135 // Don't even try to cache a bitmap tha
164 getTransient(SkBitmap* bitmap) argument
174 remove(SkBitmap* bitmap) argument
178 removeDeferred(SkBitmap* bitmap) argument
212 generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate) argument
285 uploadLoFiTexture(bool resize, SkBitmap* bitmap, uint32_t width, uint32_t height) argument
[all...]
/frameworks/base/media/java/android/media/videoeditor/
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/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrame.java123 public void setBitmap(Bitmap bitmap) { argument
125 setGenericObjectValue(bitmap);
H A DVertexFrame.java104 public void setBitmap(Bitmap bitmap) { argument
105 throw new RuntimeException("Unsupported: Cannot set vertex frame bitmap value!");
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardCircleFramedDrawable.java52 public KeyguardCircleFramedDrawable(Bitmap bitmap, int size, argument
67 final int width = bitmap.getWidth();
68 final int height = bitmap.getHeight();
88 // mask in the icon where the bitmap is opaque
90 canvas.drawBitmap(bitmap, cropRect, circleRect, mPaint);
/frameworks/base/tests/BrowserTestPlugin/jni/event/
H A DEventPlugin.cpp47 void EventPlugin::drawPlugin(const ANPBitmap& bitmap, const ANPRectI& clip) { argument
50 inst(), bitmap.width, bitmap.height);
58 const float zoomFactorW = static_cast<float>(bitmap.width) / W;
59 const float zoomFactorH = static_cast<float>(bitmap.height) / H;
71 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap);
147 drawPlugin(evt->data.draw.data.bitmap, evt->data.draw.clip);
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java89 addLabelToRoot(root, "Prescaled bitmap in drawable");
96 addLabelToRoot(root, "Autoscaled bitmap in drawable");
118 addLabelToRoot(root, "Prescaled bitmap");
125 addLabelToRoot(root, "Autoscaled bitmap");
165 Bitmap bitmap;
166 bitmap = loadAndPrintDpi(resource, scale);
170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
191 Bitmap bitmap;
192 bitmap = loadAndPrintDpi(resource, scale);
194 ScaledBitmapView view = new ScaledBitmapView(this, bitmap);
229 ScaledBitmapView(Context context, Bitmap bitmap) argument
[all...]

Completed in 5979 milliseconds

1234