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

12345

/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.cpp81 SkBitmap* bitmap = GraphicsJNI::getNativeBitmap(env, bitmapObj); local
82 if (bitmap) {
83 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
35 * Call this to create a new shader that will draw with a bitmap.
37 * @param bitmap The bitmap to use inside the shader
38 * @param tileX The tiling mode for x to draw the bitmap in.
39 * @param tileY The tiling mode for y to draw the bitmap in.
41 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) { argument
42 mBitmap = bitmap;
45 final int b = bitmap
[all...]
H A DNinePatch.java21 * The NinePatch class permits drawing a bitmap in nine or more sections.
48 * Create a drawable projection from a bitmap to nine patches.
50 * @param bitmap The bitmap describing the patches.
51 * @param chunk The 9-patch data chunk describing how the underlying bitmap
54 public NinePatch(Bitmap bitmap, byte[] chunk) { argument
55 this(bitmap, chunk, null);
59 * Create a drawable projection from a bitmap to nine patches.
61 * @param bitmap The bitmap describin
66 NinePatch(Bitmap bitmap, byte[] chunk, String srcName) argument
239 validateNinePatchChunk(int bitmap, byte[] chunk) argument
245 nativeGetTransparentRegion(int bitmap, int chunk, Rect location) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DBitmapTexture.java31 public BitmapTexture(Bitmap bitmap) { argument
32 this(bitmap, false);
35 public BitmapTexture(Bitmap bitmap, boolean hasBorder) { argument
37 Assert.assertTrue(bitmap != null && !bitmap.isRecycled());
38 mContentBitmap = bitmap;
42 protected void onFreeBitmap(Bitmap bitmap) { argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
H A DPhotoBitmapLoaderInterface.java15 public Bitmap bitmap; field in class:PhotoBitmapLoaderInterface.BitmapResult
H A DPhotoBitmapLoader.java32 * Loader for the bitmap of a photo.
58 if (result.bitmap != null) {
59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM);
77 Bitmap bitmap = result != null ? result.bitmap : null;
81 if (bitmap != null) {
82 onReleaseResources(bitmap);
87 mBitmap = bitmap;
98 if (oldBitmap != null && oldBitmap != bitmap && !oldBitmap.isRecycled()) {
113 result.bitmap
168 onReleaseResources(Bitmap bitmap) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20Layer.java56 public boolean copyInto(Bitmap bitmap) { argument
57 return GLES20Canvas.nCopyLayer(mLayer, bitmap.mNativeBitmap);
H A DHardwareCanvas.java38 public void setBitmap(Bitmap bitmap) { argument
H A DHardwareLayer.java181 * Copies this layer into the specified bitmap.
183 * @param bitmap The bitmap to copy they layer into
187 abstract boolean copyInto(Bitmap bitmap); argument
/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
280 native_getInternalFormat(Bitmap bitmap) argument
281 native_getType(Bitmap bitmap) argument
282 native_texImage2D(int target, int level, int internalformat, Bitmap bitmap, int type, int border) argument
284 native_texSubImage2D(int target, int level, int xoffset, int yoffset, Bitmap bitmap, int format, int type) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameImage2D.java51 * Assigns the pixel data of the specified bitmap.
53 * The RGBA pixel data will be extracted from the bitmap and assigned to the frame data. Note,
58 * @param bitmap The bitmap pixels to assign.
60 public void setBitmap(Bitmap bitmap) { argument
61 bitmap = convertToFrameType(bitmap, mBackingStore.getFrameType());
62 validateBitmapSize(bitmap, mBackingStore.getDimensions());
64 backing.setData(bitmap);
116 private static Bitmap convertToFrameType(Bitmap bitmap, FrameTyp argument
136 validateBitmapSize(Bitmap bitmap, int[] dimensions) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DNinePatch_Delegate.java161 /*package*/ static int validateNinePatchChunk(int bitmap, byte[] chunk) { argument
193 /*package*/ static int nativeGetTransparentRegion(int bitmap, int chunk, Rect location) { argument
/frameworks/support/v4/java/android/support/v4/print/
H A DPrintHelper.java78 public void printBitmap(String jobName, Bitmap bitmap); argument
112 public void printBitmap(String jobName, Bitmap bitmap) { argument
151 public void printBitmap(String jobName, Bitmap bitmap) { argument
152 printHelper.printBitmap(jobName, bitmap);
221 * Prints a bitmap.
224 * @param bitmap The bitmap to print.
226 public void printBitmap(String jobName, Bitmap bitmap) { argument
227 mImpl.printBitmap(jobName, bitmap);
/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp32 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap,
89 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, argument
95 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
112 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
119 const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint,
123 SkASSERT(bitmap);
130 draw(env, canvas, bounds, bitmap, chunk, paint, destDensity, srcDensity);
134 const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint,
138 SkASSERT(bitmap);
144 draw(env, canvas, bounds, bitmap, chun
118 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) argument
133 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) argument
147 getTransparentRegion(JNIEnv* env, jobject, const SkBitmap* bitmap, Res_png_9patch* chunk, jobject boundsRect) argument
[all...]
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp77 AssetAtlas::Entry* AssetAtlas::getEntry(SkBitmap* const bitmap) const {
78 ssize_t index = mEntries.indexOfKey(bitmap);
82 Texture* AssetAtlas::getEntryTexture(SkBitmap* const bitmap) const {
83 ssize_t index = mEntries.indexOfKey(bitmap);
116 SkBitmap* bitmap = (SkBitmap*) map[i++]; local
122 if (!bitmap) continue;
125 x / width, (x + bitmap->width()) / width,
126 y / height, (y + bitmap->height()) / height);
130 texture->blend = !bitmap->isOpaque();
131 texture->width = bitmap
[all...]
H A DAssetAtlas.h41 * texture. Each bitmap is associated with a location, defined in pixels,
49 * bitmap inside the atlas.
53 * The bitmap that generated this atlas entry.
55 SkBitmap* bitmap; member in struct:android::uirenderer::AssetAtlas::Entry
58 * Location of the bitmap inside the atlas, in pixels.
64 * If set, the bitmap is rotated 90 degrees (clockwise)
96 Entry(SkBitmap* bitmap, int x, int y, bool rotated, argument
98 bitmap(bitmap), x(x), y(y), rotated(rotated),
161 * bitmap
[all...]
H A DResourceCache.cpp355 SkBitmap* bitmap = (SkBitmap*) resource; local
357 Caches::getInstance().textureCache.removeDeferred(bitmap);
359 delete bitmap;
/frameworks/base/media/java/android/media/
H A DMediaMetadataEditor.java242 * @param key the identifier of the bitmap to set. The only valid value is
244 * @param bitmap The bitmap for the artwork, or null if there isn't any.
250 public synchronized MediaMetadataEditor putBitmap(int key, Bitmap bitmap) argument
259 mEditorArtwork = bitmap;
/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/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardUpdateMonitorCallback.java143 * @param bitmap
145 public void onSetBackground(Bitmap bitmap) { argument

Completed in 6139 milliseconds

12345