HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 551 - 575 of 1117) sorted by null

<<21222324252627282930>>

  /frameworks/base/core/jni/android/graphics/
BitmapRegionDecoder.cpp 62 bool decodeRegion(SkBitmap* bitmap, const SkIRect& rect,
65 return fDecoder->decodeSubset(bitmap, rect, pref);
195 // Get the bitmap for re-use if it exists.
217 SkBitmap* bitmap = NULL; local
221 // Re-use bitmap.
222 bitmap = GraphicsJNI::getNativeBitmap(env, tileBitmap);
224 if (bitmap == NULL) {
225 bitmap = new SkBitmap;
226 adb.reset(bitmap);
229 if (!brd->decodeRegion(bitmap, region, prefColorType, sampleSize))
    [all...]
Shader.cpp 78 const SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(bitmapHandle); local
79 SkShader* s = SkShader::CreateBitmapShader(*bitmap,
  /frameworks/base/core/jni/android/graphics/pdf/
PdfRenderer.cpp 157 static void renderPageBitmap(FPDF_BITMAP bitmap, FPDF_PAGE page, int destLeft, int destTop,
174 fxgeDevice->Attach((CFX_DIBitmap*) bitmap, 0, TRUE);
249 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap->width(), skBitmap->height(), local
252 if (!bitmap) {
253 ALOGE("Erorr creating bitmap");
264 renderPageBitmap(bitmap, page, destLeft, destTop, destRight,
  /frameworks/base/core/jni/
android_emoji_EmojiFactory.cpp 167 SkBitmap *bitmap = new SkBitmap; local
168 if (!SkImageDecoder::DecodeMemory(bytes, size, bitmap)) {
173 return GraphicsJNI::createBitmap(env, bitmap,
241 { "nativeGetBitmapFromAndroidPua", "(JI)Landroid/graphics/Bitmap;",
android_view_GraphicBuffer.cpp 190 SkBitmap bitmap; local
191 bitmap.setInfo(SkImageInfo::Make(buffer->getWidth(), buffer->getHeight(),
197 bitmap.setPixels(bits);
199 bitmap.setPixels(NULL);
203 INVOKEV(canvas, gCanvasClassInfo.setNativeBitmap, reinterpret_cast<jlong>(&bitmap));
android_view_Surface.cpp 184 bitmap.setAlphaType(kOpaque_SkAlphaType) on the resulting SkBitmap
235 SkBitmap bitmap; local
237 bitmap.setInfo(info, bpr);
239 bitmap.setPixels(outBuffer.bits);
241 // be safe with an empty bitmap.
242 bitmap.setPixels(NULL);
246 reinterpret_cast<jlong>(&bitmap));
  /frameworks/base/libs/hwui/
PathCache.cpp 107 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) {
108 bitmap.allocPixels(SkImageInfo::MakeA8(width, height));
109 bitmap.eraseColor(0);
124 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap,
126 initBitmap(bitmap, width, height);
131 SkCanvas canvas(bitmap);
215 SkBitmap* bitmap = task->getResult(); local
242 // Don't even try to cache a bitmap that's bigger than the cache
268 SkBitmap bitmap; local
269 drawPath(path, paint, bitmap, left, top, offset, width, height)
352 SkBitmap* bitmap = new SkBitmap(); local
436 SkBitmap* bitmap = task->getResult(); local
    [all...]
SkiaShader.cpp 81 // Returns true if one is a bitmap and the other is a gradient
102 // The shader is not a gradient. Check for a bitmap shader.
113 // Compose is only supported if one is a bitmap and the other is a
201 // Bitmap shader
215 const SkBitmap& bitmap, SkShader::TileMode tileModes[2]) {
216 Texture* texture = caches->textureCache.get(&bitmap);
255 SkBitmap bitmap; local
257 if (shader.asABitmap(&bitmap, NULL, xy) != SkShader::kDefault_BitmapType) {
260 bitmapShaderHelper(caches, &description, NULL, extensions, bitmap, xy);
265 SkBitmap bitmap; local
    [all...]
  /frameworks/base/media/jni/
android_media_MediaMetadataRetriever.cpp 281 ALOGE("getFrameAtTime: create Bitmap failed!");
285 SkBitmap *bitmap = local
288 bitmap->lockPixels();
289 rotate((uint16_t*)bitmap->getPixels(),
294 bitmap->unlockPixels();
304 ALOGV("Bitmap dimension is scaled from %dx%d to %dx%d",
402 jclass bitmapClazz = env->FindClass("android/graphics/Bitmap");
412 "(IILandroid/graphics/Bitmap$Config;)"
413 "Landroid/graphics/Bitmap;");
419 "(Landroid/graphics/Bitmap;IIZ)
    [all...]
  /frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
ObjectViewer.java 22 import android.graphics.Bitmap;
154 Bitmap bitmap = BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length); local
155 if (bitmap != null) {
157 thumbView.setImageBitmap(bitmap);
  /frameworks/base/policy/src/com/android/internal/policy/impl/
IconUtilities.java 23 import android.graphics.Bitmap;
87 Bitmap scaled = createIconBitmap(src);
102 * Returns a bitmap suitable for the all apps view. The bitmap will be a power
103 * of two sized ARGB_8888 bitmap that can be used as a gl texture.
105 private Bitmap createIconBitmap(Drawable icon) {
114 // Ensure the bitmap has a density.
116 Bitmap bitmap = bitmapDrawable.getBitmap(); local
117 if (bitmap.getDensity() == Bitmap.DENSITY_NONE)
145 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
SurfaceHolderTarget.java 19 import android.graphics.Bitmap;
165 Bitmap bitmap = image.toBitmap(); local
166 Rect sourceRect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
172 canvas.drawBitmap(bitmap, sourceRect, targetRect, new Paint());
  /frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DpiTestActivity.java 24 import android.graphics.Bitmap;
89 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; local
166 bitmap = loadAndPrintDpi(resource, scale);
170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
191 Bitmap bitmap local
215 Bitmap bitmap; local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/view/
ViewGroup_Delegate.java 25 import android.graphics.Bitmap;
82 Bitmap bitmap = Bitmap_Delegate.createBitmap(shadow, false, local
88 canvas.drawBitmap(bitmap, x, 0, null);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
CustomBar.java 35 import android.graphics.Bitmap;
110 // look for a cached bitmap
111 Bitmap bitmap = Bridge.getCachedBitmap(path, true /*isFramework*/); local
112 if (bitmap == null) {
114 bitmap = Bitmap_Delegate.createBitmap(stream, false /*isMutable*/, density);
115 Bridge.setCachedBitmap(path, bitmap, true /*isFramework*/);
121 if (bitmap != null) {
123 bitmap);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
ResourceHelper.java 36 import android.graphics.Bitmap;
165 * @param value The value that contains a path to a 9 patch, a bitmap or a xml based drawable,
175 * @param value The value that contains a path to a 9 patch, a bitmap or a xml based drawable,
245 Bitmap bitmap = Bridge.getCachedBitmap(stringValue, local
248 if (bitmap == null) {
249 bitmap = Bitmap_Delegate.createBitmap(bmpFile, false /*isMutable*/,
251 Bridge.setCachedBitmap(stringValue, bitmap,
255 return new BitmapDrawable(context.getResources(), bitmap);
280 // see if we still have both the chunk and the bitmap in the cache
283 Bitmap bitmap = Bridge.getCachedBitmap(cacheKey, local
    [all...]
  /frameworks/opt/bitmap/src/com/android/bitmap/
ContiguousFIFOAggregator.java 17 package com.android.bitmap;
22 import com.android.bitmap.util.Trace;
UnrefedPooledCache.java 17 package com.android.bitmap;
22 import com.android.bitmap.util.Trace;
  /frameworks/opt/bitmap/src/com/android/bitmap/drawable/
TileDrawable.java 17 package com.android.bitmap.drawable;
27 import com.android.bitmap.drawable.ExtendedBitmapDrawable.ExtendedOptions;
  /frameworks/support/v4/donut/android/support/v4/graphics/drawable/
RoundedBitmapDrawable.java 19 import android.graphics.Bitmap;
33 * A Drawable that wraps a bitmap and can be drawn with rounded corners. You can create a
35 * {@link android.graphics.Bitmap} object.
37 * Also see the {@link android.graphics.Bitmap} class, which handles the management and
38 * transformation of raw bitmap graphics, and should be used when drawing to a
45 Bitmap mBitmap;
69 * Returns the bitmap used by this drawable to render. May be null.
71 public final Bitmap getBitmap() {
87 * @see android.graphics.Bitmap#setDensity(int)
88 * @see android.graphics.Bitmap#getDensity(
229 final Bitmap bitmap = mBitmap; local
    [all...]
  /frameworks/support/v4/java/android/support/v4/app/
SharedElementCallback.java 20 import android.graphics.Bitmap;
46 private static final String BUNDLE_SNAPSHOT_BITMAP = "sharedElement:snapshot:bitmap";
154 Bitmap bitmap = createDrawableBitmap(d); local
155 if (bitmap != null) {
157 bundle.putParcelable(BUNDLE_SNAPSHOT_BITMAP, bitmap);
172 Bitmap bitmap = null; local
183 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888)
207 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); local
241 Bitmap bitmap = (Bitmap) bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP); local
257 Bitmap bitmap = (Bitmap) snapshot; local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
ContactPhotoUtils.java 23 import android.graphics.Bitmap;
93 * Given a uri pointing to a bitmap, reads it into a bitmap and returns it.
96 public static Bitmap getBitmapFromUri(Context context, Uri uri) throws FileNotFoundException {
106 * Creates a byte[] containing the PNG-compressed bitmap, or null if
109 public static byte[] compressBitmap(Bitmap bitmap) {
110 final int size = bitmap.getWidth() * bitmap.getHeight() * 4;
113 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out)
    [all...]
  /packages/apps/Email/provider_src/com/android/email/provider/
AttachmentProvider.java 26 import android.graphics.Bitmap;
198 Bitmap thumbnail = createThumbnail(type, in);
202 thumbnail = Bitmap.createScaledBitmap(thumbnail, width, height, true);
204 thumbnail.compress(Bitmap.CompressFormat.PNG, 100, out);
311 private static Bitmap createThumbnail(String type, InputStream data) {
318 private static Bitmap createImageThumbnail(InputStream data) {
320 Bitmap bitmap = BitmapFactory.decodeStream(data); local
321 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;
130 Bitmap bitmap = item local
134 if (bitmap != null) {
137 new Slide(item, mLoadIndex, bitmap));

Completed in 1280 milliseconds

<<21222324252627282930>>