HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 176 - 200 of 352) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.java 34 import android.graphics.Bitmap;
194 Bitmap thumbnail = createThumbnail(type, in);
198 thumbnail = Bitmap.createScaledBitmap(thumbnail, width, height, true);
200 thumbnail.compress(Bitmap.CompressFormat.PNG, 100, out);
307 private Bitmap createThumbnail(String type, InputStream data) {
314 private Bitmap createImageThumbnail(InputStream data) {
316 Bitmap bitmap = BitmapFactory.decodeStream(data); local
317 return bitmap;
  /packages/apps/Gallery/tests/src/com/android/camera/
BitmapManagerUnitTests.java 23 import android.graphics.Bitmap;
36 Bitmap bitmap; field in class:BitmapManagerUnitTests.DecodeThread
43 bitmap = mImage.thumbBitmap(IImage.ROTATE_AS_NEEDED);
46 public Bitmap getBitmap() {
47 return bitmap;
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
SlideshowDataAdapter.java 19 import android.graphics.Bitmap;
129 Bitmap bitmap = item local
133 if (bitmap != null) {
136 new Slide(item, mLoadIndex, bitmap));
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
LocalVideo.java 29 import android.graphics.Bitmap;
76 private static Bitmap sOverlay;
142 public Job<Bitmap> requestImage(int type) {
156 public Bitmap onDecodeOriginal(JobContext jc, int type) {
157 Bitmap bitmap = BitmapUtils.createVideoThumbnail(mLocalFilePath); local
158 if (bitmap == null || jc.isCancelled()) return null;
159 return bitmap;
UriImage.java 27 import android.graphics.Bitmap;
28 import android.graphics.Bitmap.Config;
80 public Job<Bitmap> requestImage(int type) {
191 private class BitmapJob implements Job<Bitmap> {
198 public Bitmap run(JobContext jc) {
203 Bitmap bitmap = DecodeUtils.requestDecode(jc, local
205 if (jc.isCancelled() || bitmap == null) {
210 bitmap = BitmapUtils.resizeDownAndCropCenter(bitmap,
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
PhotoAppWidgetProvider.java 27 import android.graphics.Bitmap;
95 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
96 views.setImageViewBitmap(R.id.photo, bitmap);
WidgetConfigure.java 28 import android.graphics.Bitmap;
107 Bitmap bitmap = (Bitmap) data.getParcelableExtra("data"); local
110 helper.setPhoto(mAppWidgetId, mPickedItem, bitmap);
WidgetService.java 28 import android.graphics.Bitmap;
60 public Bitmap getImage(int index) {
145 Bitmap bitmap = mSource.getImage(position); local
146 if (bitmap == null) return getLoadingView();
150 views.setImageViewBitmap(R.id.appwidget_photo_item, bitmap);
  /packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
DoodleView.java 20 import android.graphics.Bitmap;
52 private Bitmap bitmap; field in class:DoodleView
71 if ((bitmap == null) && !r.isEmpty()) {
72 bitmap = Bitmap.createBitmap((int) r.width(), (int) r.height(),
73 Bitmap.Config.ARGB_8888);
74 bitmapCanvas = new Canvas(bitmap);
76 // Set up a matrix that maps back normalized paths to be drawn on the bitmap or canvas.
103 // Update the finished non-empty doodle to the bitmap
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/
DoodleFilter.java 19 import android.graphics.Bitmap;
57 Bitmap bitmap = Bitmap.createBitmap(src.width(), src.height(), Bitmap.Config.ARGB_8888); local
58 Canvas canvas = new Canvas(bitmap);
62 new RectF(0, 0, bitmap.getWidth(), bitmap.getHeight()), Matrix.ScaleToFit.FILL);
73 effect.setParameter("bitmap", bitmap);
    [all...]
  /packages/apps/Mms/src/com/android/mms/ui/
BasicSlideEditorView.java 23 import android.graphics.Bitmap;
100 public void setImage(String name, Bitmap bitmap) {
102 if (null == bitmap) {
103 bitmap = BitmapFactory.decodeResource(getResources(),
106 mImageView.setImageBitmap(bitmap);
135 Bitmap bitmap = VideoAttachmentView.createVideoThumbnail(mContext, video); local
136 if (null == bitmap) {
137 bitmap = BitmapFactory.decodeResource(getResources()
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CubeMapActivity.java 34 import android.graphics.Bitmap;
147 Bitmap bitmap; local
149 bitmap = BitmapFactory.decodeStream(is);
158 bitmap, 0);
159 bitmap.recycle();
  /packages/apps/Email/tests/src/com/android/email/provider/
AttachmentProviderTests.java 33 import android.graphics.Bitmap;
680 Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), local
683 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
NinePatchDrawableTest.java 33 import android.graphics.Bitmap;
43 import android.graphics.Bitmap.Config;
71 args = {Bitmap.class, byte[].class, Rect.class, String.class}
86 Bitmap bmp = BitmapFactory.decodeResource(mResources, R.drawable.ninepatch_0);
111 Bitmap bmp = Bitmap.createBitmap(9, 9, Config.ARGB_8888);
264 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0);
280 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0);
296 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0);
312 Bitmap bmp = getBitmapUnscaled(R.drawable.ninepatch_0)
387 Bitmap bitmap = Bitmap.createBitmap(COLOR, width, height, Bitmap.Config.RGB_565); local
441 Bitmap bitmap = getBitmapUnscaled(resId); local
449 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resId, opts); local
    [all...]
  /development/samples/BrowserPlugin/jni/background/
BackgroundPlugin.cpp 60 //initialize bitmap transparency variables
148 ANPBitmap bitmap; local
151 !gSurfaceI.lock(env, m_surface, &bitmap, NULL)) {
157 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap);
308 // BITMAP TESTS
353 gLogI.log(kDebug_ANPLogType, "BEGIN: testing bitmap transparency");
356 if (evt->data.draw.data.bitmap.format == kRGBA_8888_ANPBitmapFormat) {
357 gLogI.log(kError_ANPLogType, "bitmap default format is transparent");
374 if (evt->data.draw.data.bitmap.format != kRGBA_8888_ANPBitmapFormat) {
375 gLogI.log(kError_ANPLogType, "bitmap did not change to transparent format")
    [all...]
  /development/samples/XmlAdapters/src/com/example/android/xmladapters/
ImageDownloader.java 24 import android.graphics.Bitmap;
61 private final HashMap<String, Bitmap> sHardBitmapCache =
62 new LinkedHashMap<String, Bitmap>(HARD_CACHE_CAPACITY / 2, 0.75f, true) {
65 protected boolean removeEldestEntry(LinkedHashMap.Entry<String, Bitmap> eldest) {
68 sSoftBitmapCache.put(eldest.getKey(), new SoftReference<Bitmap>(eldest.getValue()));
76 // Soft cache for bitmap kicked out of hard cache
77 private final static ConcurrentHashMap<String, SoftReference<Bitmap>> sSoftBitmapCache =
78 new ConcurrentHashMap<String, SoftReference<Bitmap>>(HARD_CACHE_CAPACITY / 2);
91 * otherwise. A null bitmap will be associated to the ImageView if an error occurs.
110 Bitmap bitmap = getBitmapFromCache(url) local
205 final Bitmap bitmap = sHardBitmapCache.get(url); local
218 final Bitmap bitmap = bitmapReference.get(); local
277 final Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local
    [all...]
  /external/freetype/src/sfnt/
ttsbit0.c 5 /* TrueType and OpenType embedded bitmap support (body). */
164 FT_Bitmap* bitmap; member in struct:TT_SBitDecoderRec_
200 decoder->bitmap = &face->root.glyph->bitmap;
254 FT_Bitmap* map = decoder->bitmap;
379 FT_Bitmap* bitmap; local
389 /* check that we can write the glyph into the bitmap */
390 bitmap = decoder->bitmap;
391 bit_width = bitmap->width
517 FT_Bitmap* bitmap; local
    [all...]
  /external/openssl/include/openssl/
dtls1.h 189 DTLS1_BITMAP bitmap; member in struct:dtls1_state_st
  /external/openssl/ssl/
d1_pkt.c 171 static int dtls1_record_replay_check(SSL *s, DTLS1_BITMAP *bitmap);
172 static void dtls1_record_bitmap_update(SSL *s, DTLS1_BITMAP *bitmap);
505 dtls1_record_bitmap_update(s, &(s->d1->bitmap));/* Mark receipt of record. */
531 DTLS1_BITMAP *bitmap; local
651 bitmap = dtls1_get_bitmap(s, rr, &is_next_epoch);
652 if ( bitmap == NULL)
667 !dtls1_record_replay_check(s, bitmap))
    [all...]
dtls1.h 189 DTLS1_BITMAP bitmap; member in struct:dtls1_state_st
  /external/skia/bench/
benchmain.cpp 167 SkBitmap bitmap; local
168 bitmap.setConfig(config, size.fX, size.fY);
172 bitmap.allocPixels();
173 erase(bitmap);
174 device = new SkDevice(NULL, bitmap, true);
177 device = new SkGpuDevice(context, bitmap, SkGpuDevice::Current3DApiRenderTarget());
  /external/skia/src/gpu/
SkGpuDevice.cpp 54 const SkBitmap& bitmap,
59 *texture = this->set(device, bitmap, sampler);
67 const SkBitmap& bitmap,
73 GrTexture* texture = (GrTexture*)bitmap.getTexture();
79 fTex = device->lockCachedTexture(bitmap, sampler, &texture, false);
108 const SkBitmap& bitmap,
110 : SkDevice(NULL, bitmap, (NULL == renderTargetOrNull)) {
124 SkBitmap::Config c = bitmap.config();
158 // wrap the bitmap with a pixelref to expose our texture
219 bool SkGpuDevice::readPixels(const SkIRect& srcRect, SkBitmap* bitmap) {
421 SkBitmap bitmap; local
    [all...]
  /external/webkit/Source/WebKit/android/plugins/
PluginWidgetAndroid.cpp 233 const SkBitmap& bitmap = update.bitmap(); local
247 if (SkANP::SetBitmap(&event.data.draw.data.bitmap,
248 bitmap) &&
252 SkBitmap bm(bitmap);
401 // TODO update the bitmap size based on the zoom? (for kBitmap_ANPDrawingModel)
  /external/webkit/Source/WebKit2/PluginProcess/
PluginControllerProxy.cpp 484 RefPtr<ShareableBitmap> bitmap = m_plugin->snapshot(); local
485 if (!bitmap)
488 bitmap->createHandle(backingStoreHandle);
  /frameworks/base/cmds/bootanimation/
BootAnimation.cpp 99 SkBitmap bitmap;
101 &bitmap, SkBitmap::kNo_Config, SkImageDecoder::kDecodePixels_Mode);
106 // bitmap will go out of scope when we return from this method.
107 bitmap.lockPixels();
109 const int w = bitmap.width();
110 const int h = bitmap.height();
111 const void* p = bitmap.getPixels();
120 switch (bitmap.getConfig()) {
153 SkBitmap bitmap; local
158 codec->decode(&stream, &bitmap,
    [all...]

Completed in 3062 milliseconds

1 2 3 4 5 6 78 91011>>