Searched refs:bitmap (Results 1 - 25 of 140) sorted by last modified time

123456

/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
H A DPhotoViewFragment.java336 private void bindPhoto(Bitmap bitmap) { argument
338 mPhotoView.bindPhoto(bitmap);
/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/rs/
H A DrsFont.cpp112 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) {
132 bitmap[bY * bitmapW + bX] = tempCol;
162 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) {
206 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH);
250 FT_Bitmap *bitmap = &mFace->glyph->bitmap; local
252 // Now copy the bitmap into the cache texture
256 // Let the font state figure out where to put the bitmap
258 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY);
264 uint32_t endX = startX + bitmap
111 drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) argument
159 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
410 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
839 fitBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) argument
[all...]
H A DrsFont.h89 uint8_t *bitmap = NULL, uint32_t bitmapW = 0, uint32_t bitmapH = 0);
96 // Location of the cached glyph in the bitmap
111 // Values below contain a glyph's origin in the bitmap
136 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH);
153 uint8_t *bitmap = NULL, uint32_t bitmapW = 0, uint32_t bitmapH = 0);
179 bool fitBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY);
225 bool cacheBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY);
/frameworks/support/renderscript/v8/jni/
H A Dandroid_renderscript_RenderScript.cpp25 #include <android/bitmap.h>
415 //bitmap.notifyPixelsChanged();
/frameworks/support/volley/src/com/android/volley/toolbox/
H A DImageRequest.java61 * @param listener Listener to receive the decoded bitmap
62 * @param maxWidth Maximum width to decode this bitmap to, or zero for none
63 * @param maxHeight Maximum height to decode this bitmap to, or zero for
65 * @param decodeConfig Format to decode the bitmap to
139 Bitmap bitmap = null;
142 bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions);
168 bitmap = Bitmap.createScaledBitmap(tempBitmap,
172 bitmap = tempBitmap;
176 if (bitmap == null) {
179 return Response.success(bitmap, HttpHeaderParse
[all...]
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
H A DImageRequestTest.java68 Bitmap bitmap = response.result;
69 assertNotNull(bitmap);
70 assertEquals(expectedWidth, bitmap.getWidth());
71 assertEquals(expectedHeight, bitmap.getHeight());
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselController.java368 * @param bitmap the bitmap image to show
370 public void setTextureForItem(int n, Bitmap bitmap) { argument
375 mRenderScript.setTexture(n, bitmap);
392 * @param bitmap the bitmap to show as the detail
395 Bitmap bitmap) {
398 mRenderScript.setDetailTexture(n, offx, offy, loffx, loffy, bitmap);
438 * Sets the bitmap to show on a card when the card draws the very first time.
439 * Generally, this bitmap wil
394 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument
445 setDefaultBitmap(Bitmap bitmap) argument
460 setLoadingBitmap(Bitmap bitmap) argument
489 setBackgroundBitmap(Bitmap bitmap) argument
502 setDetailLoadingBitmap(Bitmap bitmap) argument
516 setDetailLineBitmap(Bitmap bitmap) argument
[all...]
H A DCarouselRS.java609 public void setDefaultBitmap(Bitmap bitmap) argument
611 mScript.set_defaultTexture(allocationFromBitmap(bitmap, MIPMAP));
614 public void setLoadingBitmap(Bitmap bitmap) argument
616 mScript.set_loadingTexture(allocationFromBitmap(bitmap, MIPMAP));
649 private Allocation allocationFromBitmap(Bitmap bitmap, Allocation.MipmapControl mipmap) argument
651 if (bitmap == null) return null;
652 Allocation allocation = Allocation.createFromBitmap(mRS, bitmap,
657 private Allocation allocationFromPool(int n, Bitmap bitmap, Allocation.MipmapControl mipmap) argument
670 allocation = allocationFromBitmap(bitmap, mipmap);
672 } else if (bitmap !
718 setTexture(int n, Bitmap bitmap) argument
737 setDetailTexture(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument
849 setBackgroundTexture(Bitmap bitmap) argument
858 setDetailLineTexture(Bitmap bitmap) argument
867 setDetailLoadingTexture(Bitmap bitmap) argument
917 elementForBitmap(Bitmap bitmap, Bitmap.Config defaultConfig) argument
[all...]
H A DCarouselView.java347 * @param bitmap the bitmap image to show
349 public void setTextureForItem(int n, Bitmap bitmap) { argument
350 mController.setTextureForItem(n, bitmap);
365 * @param bitmap the bitmap to show as the detail
368 Bitmap bitmap) {
369 mController.setDetailTextureForItem(n, offx, offy, loffx, loffy, bitmap);
373 * Sets the bitmap to show on a card when the card draws the very first time.
374 * Generally, this bitmap wil
367 setDetailTextureForItem(int n, float offx, float offy, float loffx, float loffy, Bitmap bitmap) argument
380 setDefaultBitmap(Bitmap bitmap) argument
392 setLoadingBitmap(Bitmap bitmap) argument
415 setBackgroundBitmap(Bitmap bitmap) argument
425 setDetailLoadingBitmap(Bitmap bitmap) argument
436 setDetailLineBitmap(Bitmap bitmap) argument
[all...]
H A DCarouselViewHelper.java110 final Bitmap bitmap = getTexture(id);
111 if (bitmap != null) {
112 mSyncHandler.obtainMessage(SET_TEXTURE_N, id, 0, bitmap).sendToTarget();
122 final Bitmap bitmap = getDetailTexture(id);
123 if (bitmap != null) {
124 mSyncHandler.obtainMessage(SET_DETAIL_TEXTURE_N, id, 0, bitmap).sendToTarget();
176 * @return a valid bitmap
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/ex/carousel/test/src/com/android/carouseltest/
H A DCarouselTestActivity.java85 Bitmap bitmap = Bitmap.createBitmap(TEXTURE_WIDTH, TEXTURE_HEIGHT,
87 Canvas canvas = new Canvas(bitmap);
98 return bitmap;
103 Bitmap bitmap = Bitmap.createBitmap(DETAIL_TEXTURE_WIDTH, DETAIL_TEXTURE_HEIGHT,
105 Canvas canvas = new Canvas(bitmap);
110 return bitmap;
H A DTaskSwitcherActivity.java145 Bitmap bitmap = desc.thumbnail == null ? mBlankBitmap : desc.thumbnail;
146 return bitmap;
151 Bitmap bitmap = null;
154 bitmap = Bitmap.createBitmap(DETAIL_TEXTURE_WIDTH, DETAIL_TEXTURE_HEIGHT,
156 Canvas canvas = new Canvas(bitmap);
163 return bitmap;
173 public void newThumbnail(final int id, final Bitmap bitmap, CharSequence description)
175 int w = bitmap.getWidth();
176 int h = bitmap.getHeight();
181 info.thumbnail = bitmap;
[all...]
/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java1933 Bitmap bitmap = null;
1949 bitmap = BitmapFactory.decodeStream(is, padding, null);
1951 bitmap = BitmapFactory.decodeStream(is);
1954 mEST.getContext().getResources(), bitmap);
2627 Bitmap bitmap = null;
2646 bitmap = BitmapFactory.decodeStream(is, padding, null);
2648 bitmap = BitmapFactory.decodeStream(is);
2650 mDrawable = new BitmapDrawable(mContext.getResources(), bitmap);
/frameworks/ex/photoviewer/src/com/android/ex/photo/fragments/
H A DPhotoViewFragment.java315 private void bindPhoto(Bitmap bitmap) { argument
317 mPhotoView.bindPhoto(bitmap);
/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java94 // bitmap url relative to this class
125 // look for a cached bitmap
126 Bitmap bitmap = Bridge.getCachedBitmap(pathOut[0], true /*isFramework*/);
127 if (bitmap == null) {
129 bitmap = Bitmap_Delegate.createBitmap(stream, false /*isMutable*/, density);
130 Bridge.setCachedBitmap(pathOut[0], bitmap, true /*isFramework*/);
136 if (bitmap != null) {
138 bitmap);
/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);
H A DRenderSessionImpl.java423 * @param freshRender whether the render is a new one and should erase the existing bitmap (in
549 // create an Android bitmap around the BufferedImage
550 Bitmap bitmap = Bitmap_Delegate.createBitmap(mImage,
553 // create a Canvas around the Android bitmap
554 mCanvas = new Canvas(bitmap);
H A DResourceHelper.java163 * @param value The value that contains a path to a 9 patch, a bitmap or a xml based drawable,
229 Bitmap bitmap = Bridge.getCachedBitmap(stringValue,
232 if (bitmap == null) {
233 bitmap = Bitmap_Delegate.createBitmap(bmpFile, false /*isMutable*/,
235 Bridge.setCachedBitmap(stringValue, bitmap,
239 return new BitmapDrawable(context.getResources(), bitmap);
264 // see if we still have both the chunk and the bitmap in the caches
267 Bitmap bitmap = Bridge.getCachedBitmap(cacheKey,
270 // if either chunk or bitmap is null, then we reload the 9-patch file.
271 if (chunk == null || bitmap
[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...]
H A Domx_jpeg_decoder.cpp62 extern int storeBitmapToFile(SkBitmap* bitmap, const char* filename) { argument
63 bitmap->lockPixels();
64 uint8_t* data = (uint8_t *)bitmap->getPixels();
65 int size = bitmap->getSize();
H A Domx_jpeg_decoder.h33 extern int storeBitmapToFile(SkBitmap* bitmap, const char* filename);

Completed in 4444 milliseconds

123456