Searched defs:bitmap (Results 1 - 25 of 171) sorted by last modified time

1234567

/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBackgroundManager.java78 * <p>BackgroundManager holds references to potentially large bitmap Drawables.
150 BitmapDrawable(Resources resources, Bitmap bitmap) { argument
151 this(resources, bitmap, null);
154 BitmapDrawable(Resources resources, Bitmap bitmap, Matrix matrix) { argument
155 mState.mBitmap = bitmap;
1027 * Sets the given bitmap into the background. When using setBitmap to set the
1028 * background, the provided bitmap will be scaled and cropped to correctly
1032 public void setBitmap(Bitmap bitmap) { argument
1034 Log.v(TAG, "setBitmap " + bitmap);
1037 if (bitmap
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackControlsRow.java590 private static Bitmap createBitmap(Bitmap bitmap, int color) { argument
591 Bitmap dst = bitmap.copy(bitmap.getConfig(), true);
595 canvas.drawBitmap(bitmap, 0, 0, paint);
670 * @param bm The bitmap to set.
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java27 protected RoundedBitmapDrawable21(Resources res, Bitmap bitmap) { argument
28 super(res, bitmap);
/frameworks/support/v4/api24/android/support/v4/view/
H A DPointerIconCompatApi24.java29 public static Object create(Bitmap bitmap, float hotSpotX, float hotSpotY) { argument
30 return PointerIcon.create(bitmap, hotSpotX, hotSpotY);
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java34 * A Drawable that wraps a bitmap and can be drawn with rounded corners. You can create a
39 * transformation of raw bitmap graphics, and should be used when drawing to a
72 * Returns the bitmap used by this drawable to render. May be null.
128 * Get the gravity used to position/stretch the bitmap within its bounds.
130 * @return the gravity applied to the bitmap
139 * Set the gravity used to position/stretch the bitmap within its bounds.
154 * Enables or disables the mipmap hint for this drawable's bitmap.
157 * If the bitmap is null, or the current API version does not support setting a mipmap hint,
160 * @param mipMap True if the bitmap should use mipmaps, false otherwise.
169 * Indicates whether the mipmap hint is enabled on this drawable's bitmap
375 RoundedBitmapDrawable(Resources res, Bitmap bitmap) argument
[all...]
/frameworks/support/v4/honeycomb_mr1/android/support/v4/graphics/
H A DBitmapCompatHoneycombMr1.java25 static int getAllocationByteCount(Bitmap bitmap) { argument
26 return bitmap.getByteCount();
/frameworks/support/v4/java/android/support/v4/graphics/
H A DBitmapCompat.java29 public boolean hasMipMap(Bitmap bitmap); argument
30 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap); argument
31 public int getAllocationByteCount(Bitmap bitmap); argument
36 public boolean hasMipMap(Bitmap bitmap) { argument
41 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument
45 public int getAllocationByteCount(Bitmap bitmap) { argument
46 return bitmap.getRowBytes() * bitmap.getHeight();
52 public int getAllocationByteCount(Bitmap bitmap) { argument
53 return BitmapCompatHoneycombMr1.getAllocationByteCount(bitmap);
59 hasMipMap(Bitmap bitmap) argument
64 setHasMipMap(Bitmap bitmap, boolean hasMipMap) argument
71 getAllocationByteCount(Bitmap bitmap) argument
93 hasMipMap(Bitmap bitmap) argument
97 setHasMipMap(Bitmap bitmap, boolean hasMipMap) argument
108 getAllocationByteCount(Bitmap bitmap) argument
[all...]
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java37 DefaultRoundedBitmapDrawable(Resources res, Bitmap bitmap) { argument
38 super(res, bitmap);
63 * Returns a new drawable by creating it from a bitmap, setting initial target density based on
66 public static RoundedBitmapDrawable create(Resources res, Bitmap bitmap) { argument
68 return new RoundedBitmapDrawable21(res, bitmap);
70 return new DefaultRoundedBitmapDrawable(res, bitmap);
74 * Returns a new drawable, creating it by opening a given file path and decoding the bitmap.
87 * Returns a new drawable, creating it by decoding a bitmap from the given input stream.
/frameworks/support/v4/java/android/support/v4/print/
H A DPrintHelper.java106 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback); argument
146 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback) { argument
196 public void printBitmap(String jobName, Bitmap bitmap, argument
207 mPrintHelper.printBitmap(jobName, bitmap, delegateCallback);
353 * Prints a bitmap.
356 * @param bitmap The bitmap to print.
358 public void printBitmap(String jobName, Bitmap bitmap) { argument
359 mImpl.printBitmap(jobName, bitmap, null);
363 * Prints a bitmap
369 printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback) argument
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DPointerIconCompat.java114 Object create(Bitmap bitmap, float hotSpotX, float hotSpotY); argument
125 public Object create(Bitmap bitmap, float hotSpotX, float hotSpotY) { argument
142 public Object create(Bitmap bitmap, float hotSpotX, float hotSpotY) { argument
143 return PointerIconCompatApi24.create(bitmap, hotSpotX, hotSpotY);
176 * Creates a custom pointer from the given bitmap and hotspot information.
178 * @param bitmap The bitmap for the icon.
179 * @param hotSpotX The X offset of the pointer icon hotspot in the bitmap.
180 * Must be within the [0, bitmap.getWidth()) range.
181 * @param hotSpotY The Y offset of the pointer icon hotspot in the bitmap
188 create(Bitmap bitmap, float hotSpotX, float hotSpotY) argument
[all...]
/frameworks/support/v4/jellybean-mr2/android/support/v4/graphics/
H A DBitmapCompatJellybeanMR2.java21 public static boolean hasMipMap(Bitmap bitmap) { argument
22 return bitmap.hasMipMap();
25 public static void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { argument
26 bitmap.setHasMipMap(hasMipMap);
/frameworks/support/v4/kitkat/android/support/v4/graphics/
H A DBitmapCompatKitKat.java25 static int getAllocationByteCount(Bitmap bitmap) { argument
26 return bitmap.getAllocationByteCount();
/frameworks/support/v4/kitkat/android/support/v4/print/
H A DPrintHelperKitkat.java186 * Check if the supplied bitmap should best be printed on a portrait orientation paper.
188 * @param bitmap The bitmap to be printed.
191 private static boolean isPortrait(Bitmap bitmap) { argument
192 if (bitmap.getWidth() <= bitmap.getHeight()) {
220 * Prints a bitmap.
223 * @param bitmap The bitmap to print.
226 public void printBitmap(final String jobName, final Bitmap bitmap, argument
321 writeBitmap(PrintAttributes attributes, int fittingMode, Bitmap bitmap, ParcelFileDescriptor fileDescriptor, PrintDocumentAdapter.WriteResultCallback writeResultCallback) argument
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java38 * This method takes a view and returns a single bitmap that is the layered combination
54 // Create a bitmap
55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
57 // Create a canvas that wraps the bitmap
58 final Canvas canvas = new Canvas(bitmap);
89 // the topmost ancestor) and draw their backgrounds into our combined bitmap. At each step
102 return bitmap;
116 // Create a bitmap
117 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight,
119 // Create a canvas that wraps the bitmap
144 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, int bitmapWidth, int bitmapHeight, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DOverlayListView.java86 BitmapDrawable bitmap = object.getBitmapDrawable();
87 if (bitmap != null) {
88 bitmap.draw(canvas);
115 public OverlayObject(BitmapDrawable bitmap, Rect startRect) { argument
116 mBitmap = bitmap;
126 * Returns the bitmap that this object represents.
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java63 * Palette p = Palette.from(bitmap).generate();
66 * Palette.from(bitmap).generate(new PaletteAsyncListener() {
99 public static Builder from(Bitmap bitmap) { argument
100 return new Builder(bitmap);
116 public static Palette generate(Bitmap bitmap) { argument
117 return from(bitmap).generate();
124 public static Palette generate(Bitmap bitmap, int numColors) { argument
125 return from(bitmap).maximumColorCount(numColors).generate();
133 Bitmap bitmap, PaletteAsyncListener listener) {
134 return from(bitmap)
132 generateAsync( Bitmap bitmap, PaletteAsyncListener listener) argument
141 generateAsync( final Bitmap bitmap, final int numColors, final PaletteAsyncListener listener) argument
585 Builder(Bitmap bitmap) argument
849 getPixelsFromBitmap(Bitmap bitmap) argument
877 scaleBitmapDown(final Bitmap bitmap) argument
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DImageLoader.java76 public void putBitmap(String url, Bitmap bitmap); argument
136 * as the bitmap (if it is loaded).
175 * The ImageContainer will contain either the specified default bitmap or the loaded bitmap.
195 * Issues a bitmap request with the given URL if that image is not available
196 * in the cache, and returns a bitmap container that contains all of the data
218 // Return the cached bitmap.
224 // The bitmap did not exist in the cache, fetch it!
228 // Update the caller to let them know that they should use the default bitmap.
277 * @param response The bitmap tha
337 ImageContainer(Bitmap bitmap, String requestUrl, String cacheKey, ImageListener listener) argument
[all...]
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DMediaStoreSaver.java35 public static final String save(Bitmap bitmap, argument
59 bitmap.compress(format, 100, fOut);
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DImageCompare.java18 Bitmap bitmap = BitmapFactory.decodeFile(file_path);
20 bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
39 private static byte[] loadBitmapByteArray(Bitmap bitmap) { argument
40 int bytes = bitmap.getByteCount();
42 bitmap.copyPixelsToBuffer(buffer);
H A DMediaStoreSaver.java35 public static final String savePNG(Bitmap bitmap, argument
52 bitmap.compress(Bitmap.CompressFormat.PNG, 0, fOut);
H A DRGBZ.java27 private Bitmap bitmap; field in class:RGBZ
46 this.bitmap = setAlphaChannel(preview, this.depthBitmap);
61 return bitmap;
87 return bitmap.getWidth();
94 return bitmap.getHeight();
116 public Bitmap setAlphaChannel(Bitmap bitmap, Bitmap depthBitmap) { argument
117 if (bitmap == null) {
118 return bitmap;
120 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, true);
121 // set the alpha channel of depthBitmap to alpha of bitmap
[all...]
/frameworks/rs/
H A DrsFont.cpp114 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) {
134 bitmap[bY * bitmapW + bX] = tempCol;
164 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) {
208 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH);
252 FT_Bitmap *bitmap = &mFace->glyph->bitmap; local
254 // Now copy the bitmap into the cache texture
258 // Let the font state figure out where to put the bitmap
260 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY);
266 uint32_t endX = startX + bitmap
113 drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) argument
161 renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t start, int32_t numGlyphs, RenderMode mode, Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument
416 cacheBitmap(FT_Bitmap *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument
745 renderText(const char *text, uint32_t len, int32_t x, int32_t y, uint32_t startIndex, int32_t numGlyphs, Font::RenderMode mode, Font::Rect *bounds, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) argument
840 fitBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument
[all...]
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
H A DAnimatedVectorDrawableTest.java82 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int resId) throws IOException { argument
102 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
190 final Bitmap bitmap = Bitmap.createBitmap(imageButton.getWidth(), imageButton.getHeight(),
192 final Canvas c = new Canvas(bitmap);
209 verifyRedOnly(pixelX, pixelY, imageButton, bitmap, c, latch);
211 verifyRedOnly(1, 1, imageButton, bitmap, c, latch);
220 final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) throws Throwable {
225 int pixel = bitmap.getPixel(pixelX, pixelY);
219 verifyRedOnly(final int pixelX, final int pixelY, final View button, final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) argument
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
H A DVectorDrawableTest.java142 // Setup VectorDrawable from xml file and draw into the bitmap.
163 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int[] resIds, int index, int[] stateSet) argument
185 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
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...]

Completed in 4951 milliseconds

1234567