Searched refs:bmp (Results 1 - 14 of 14) sorted by relevance

/frameworks/opt/bitmap/src/com/android/bitmap/
H A DReusableBitmap.java27 public final Bitmap bmp; field in class:ReusableBitmap
40 bmp = bitmap;
74 return bmp.getByteCount();
103 sb.append(" bmp=");
104 sb.append(bmp);
109 if (bmp != null) {
111 sb.append(bmp.getByteCount() >> 10);
120 * ReusableBitmap with a null bmp field because that will render that ReusableBitmap useless
137 super(null /* bmp */, false /* reusable */);
H A DDecodeTask.java284 mOpts.inBitmap = mInBitmap.bmp;
448 Log.d(TAG, "placed result in cache: key=" + mKey + " bmp="
454 + mKey + " bmp=" + mInBitmap);
520 result.bmp.recycle();
/frameworks/base/media/java/android/media/
H A DMediaMetadata.java411 Bitmap bmp = null;
413 bmp = mBundle.getParcelable(key);
418 return bmp;
582 Bitmap bmp = (Bitmap) value;
583 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) {
584 putBitmap(key, scaleBitmap(bmp, maxBitmapSize));
758 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument
760 float widthScale = maxSizeF / bmp.getWidth();
761 float heightScale = maxSizeF / bmp
[all...]
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/
H A DGenImage.java256 Bitmap bmp = Bitmap.createBitmap(512, 512, Bitmap.Config.ARGB_8888);
257 bmp.setPixels(ib.array(), 0, 512, 0, 0, 512, 512);
263 bmp.compress(Bitmap.CompressFormat.PNG, 95, out);
268 bmp.recycle();
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DBasicBitmapDrawable.java231 protected void setBitmap(ReusableBitmap bmp) { argument
235 mBitmap = bmp;
354 return mBitmap != null && mBitmap.bmp != null;
363 canvas.drawBitmap(mBitmap.bmp, src, dst, mPaint);
384 return (hasBitmap() && (mBitmap.bmp.hasAlpha() || mPaint.getAlpha() < 255)) ?
H A DExtendedBitmapDrawable.java200 protected void setBitmap(ReusableBitmap bmp) { argument
201 setLoadState((bmp != null) ? LOAD_STATE_LOADED : LOAD_STATE_FAILED);
203 super.setBitmap(bmp);
H A DCircularBitmapDrawable.java95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f);
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java365 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
366 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument
368 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
371 native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, int usage); argument
372 synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, int usage) { argument
374 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
377 native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
378 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument
380 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage);
382 native long rsnAllocationCreateBitmapRef(long con, long type, Bitmap bmp); argument
383 nAllocationCreateBitmapRef(long type, Bitmap bmp) argument
393 rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp) argument
394 nAllocationCopyToBitmap(long alloc, Bitmap bmp) argument
432 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
433 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java311 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
312 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
314 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
317 native int rsnAllocationCreateBitmapBackedAllocation(int con, int type, int mip, Bitmap bmp, int usage); argument
318 synchronized int nAllocationCreateBitmapBackedAllocation(int type, int mip, Bitmap bmp, int usage) { argument
320 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
324 native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
325 synchronized int nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
327 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage);
329 native int rsnAllocationCreateBitmapRef(int con, int type, Bitmap bmp); argument
330 nAllocationCreateBitmapRef(int type, Bitmap bmp) argument
340 rsnAllocationCopyToBitmap(int con, int alloc, Bitmap bmp) argument
341 nAllocationCopyToBitmap(int alloc, Bitmap bmp) argument
369 rsnAllocationCopyFromBitmap(int con, int alloc, Bitmap bmp) argument
370 nAllocationCopyFromBitmap(int alloc, Bitmap bmp) argument
[all...]
/frameworks/support/v4/java/android/support/v4/media/
H A DMediaMetadataCompat.java342 Bitmap bmp = null;
344 bmp = mBundle.getParcelable(key);
349 return bmp;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridge.java555 * @param bmp the Bitmap object
558 public static void setCachedBitmap(String value, Bitmap bmp, Object projectKey) { argument
567 map.put(value, new SoftReference<Bitmap>(bmp));
569 sFrameworkBitmapCache.put(value, new SoftReference<Bitmap>(bmp));
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardTransportControlView.java408 void setBadgeIcon(Drawable bmp) { argument
409 mBadge.setImageDrawable(bmp);
H A DKeyguardUpdateMonitor.java653 public void dispatchSetBackground(Bitmap bmp) { argument
659 cb.onSetBackground(bmp);
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp673 static void ReleaseBitmapCallback(void *bmp) argument
675 SkBitmap const * nativeBitmap = (SkBitmap const *)bmp;

Completed in 693 milliseconds