Searched refs:bmp (Results 1 - 15 of 15) 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;
451 Log.d(TAG, "placed result in cache: key=" + mKey + " bmp="
457 + mKey + " bmp=" + mInBitmap);
523 result.bmp.recycle();
/frameworks/base/core/java/android/hardware/radio/
H A DRadioMetadata.java266 Bitmap bmp = null;
268 bmp = mBundle.getParcelable(key);
273 return bmp;
380 Bitmap bmp = (Bitmap) value;
381 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) {
382 putBitmap(key, scaleBitmap(bmp, maxBitmapSize));
493 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument
495 float widthScale = maxSizeF / bmp.getWidth();
496 float heightScale = maxSizeF / bmp
[all...]
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.h54 bool capturePixels(SkBitmap* bmp);
H A DTestWindowContext.cpp117 bool capturePixels(SkBitmap* bmp) { argument
121 bmp->allocPixels(destinationConfig);
122 sk_memset32((uint32_t*) bmp->getPixels(), SK_ColorRED,
132 bmp->eraseColor(SK_ColorTRANSPARENT);
156 LOG_ALWAYS_FATAL_IF(bmp->colorType() != kRGBA_8888_SkColorType,
159 nativeWrapper.readPixels(destinationConfig, bmp->getPixels(), bmp->rowBytes(), 0, 0);
214 bool TestWindowContext::capturePixels(SkBitmap* bmp) { argument
215 return mData ? mData->capturePixels(bmp) : false;
/frameworks/base/media/java/android/media/
H A DMediaMetadata.java447 Bitmap bmp = null;
449 bmp = mBundle.getParcelable(key);
454 return bmp;
618 Bitmap bmp = (Bitmap) value;
619 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) {
620 putBitmap(key, scaleBitmap(bmp, maxBitmapSize));
794 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument
796 float widthScale = maxSizeF / bmp.getWidth();
797 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.java263 protected void setBitmap(ReusableBitmap bmp) { argument
267 mBitmap = bmp;
410 return mBitmap != null && mBitmap.bmp != null;
419 canvas.drawBitmap(mBitmap.bmp, src, dst, mPaint);
440 return (hasBitmap() && (mBitmap.bmp.hasAlpha() || mPaint.getAlpha() < 255)) ?
H A DExtendedBitmapDrawable.java202 protected void setBitmap(ReusableBitmap bmp) { argument
203 if (bmp != null) {
209 super.setBitmap(bmp);
H A DCircularBitmapDrawable.java95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f);
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java446 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
447 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument
449 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
452 native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, int usage); argument
453 synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, int usage) { argument
455 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
458 native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
459 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument
461 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage);
463 native long rsnAllocationCreateBitmapRef(long con, long type, Bitmap bmp); argument
464 nAllocationCreateBitmapRef(long type, Bitmap bmp) argument
474 rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp) argument
475 nAllocationCopyToBitmap(long alloc, Bitmap bmp) argument
528 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
529 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java380 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
381 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument
383 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
386 native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, int usage); argument
387 synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, int usage) { argument
389 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
393 native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
394 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument
396 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage);
398 native long rsnAllocationCreateBitmapRef(long con, long type, Bitmap bmp); argument
399 nAllocationCreateBitmapRef(long type, Bitmap bmp) argument
409 rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp) argument
410 nAllocationCopyToBitmap(long alloc, Bitmap bmp) argument
454 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument
455 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument
[all...]
/frameworks/support/v4/java/android/support/v4/media/
H A DMediaMetadataCompat.java386 Bitmap bmp = null;
388 bmp = mBundle.getParcelable(key);
393 return bmp;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridge.java670 * @param bmp the Bitmap object
673 public static void setCachedBitmap(String value, Bitmap bmp, Object projectKey) { argument
682 map.put(value, new SoftReference<Bitmap>(bmp));
684 sFrameworkBitmapCache.put(value, new SoftReference<Bitmap>(bmp));
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardUpdateMonitor.java962 public void dispatchSetBackground(Bitmap bmp) { argument
968 cb.onSetBackground(bmp);

Completed in 3812 milliseconds