/frameworks/base/libs/hwui/utils/ |
H A D | TestWindowContext.cpp | 111 bool capturePixels(SkBitmap* bmp) { argument 116 bmp->allocPixels(destinationConfig); 117 android_memset32((uint32_t*) bmp->getPixels(), SK_ColorRED, 127 bmp->eraseColor(SK_ColorTRANSPARENT); 151 LOG_ALWAYS_FATAL_IF(bmp->colorType() != kRGBA_8888_SkColorType, 154 nativeWrapper.readPixels(destinationConfig, bmp->getPixels(), bmp->rowBytes(), 0, 0); 205 bool TestWindowContext::capturePixels(SkBitmap* bmp) { argument 206 return mData ? mData->capturePixels(bmp) : false;
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | ReusableBitmap.java | 27 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 */);
|
/frameworks/base/core/java/android/hardware/radio/ |
H A D | RadioMetadata.java | 272 Bitmap bmp = null; 274 bmp = mBundle.getParcelable(key); 279 return bmp; 410 Bitmap bmp = (Bitmap) value; 411 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) { 412 putBitmap(key, scaleBitmap(bmp, maxBitmapSize)); 519 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument 521 float widthScale = maxSizeF / bmp.getWidth(); 522 float heightScale = maxSizeF / bmp [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaMetadata.java | 475 Bitmap bmp = null; 477 bmp = mBundle.getParcelable(key); 482 return bmp; 659 Bitmap bmp = (Bitmap) value; 660 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) { 661 putBitmap(key, scaleBitmap(bmp, maxBitmapSize)); 836 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument 838 float widthScale = maxSizeF / bmp.getWidth(); 839 float heightScale = maxSizeF / bmp [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
H A D | Bridge.java | 613 * @param bmp the Bitmap object 616 public static void setCachedBitmap(String value, Bitmap bmp, Object projectKey) { argument 621 map.put(value, new SoftReference<>(bmp)); 623 sFrameworkBitmapCache.put(value, new SoftReference<>(bmp));
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | BasicBitmapDrawable.java | 263 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 D | ExtendedBitmapDrawable.java | 202 protected void setBitmap(ReusableBitmap bmp) { argument 203 if (bmp != null) { 209 super.setBitmap(bmp);
|
/frameworks/support/media-compat/java/android/support/v4/media/ |
H A D | MediaMetadataCompat.java | 455 Bitmap bmp = null; 457 bmp = mBundle.getParcelable(key); 462 return bmp; 693 Bitmap bmp = (Bitmap) value; 694 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) { 695 putBitmap(key, scaleBitmap(bmp, maxBitmapSize)); 873 private Bitmap scaleBitmap(Bitmap bmp, int maxSize) { argument 875 float widthScale = maxSizeF / bmp.getWidth(); 876 float heightScale = maxSizeF / bmp [all...] |
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardUpdateMonitor.java | 1078 public void dispatchSetBackground(Bitmap bmp) { argument 1084 cb.onSetBackground(bmp);
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | RenderScript.java | 446 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/rs/support/java/src/android/support/v8/renderscript/ |
H A D | RenderScript.java | 392 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument 393 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument 395 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage); 398 native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, int usage); argument 399 synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, int usage) { argument 401 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage); 405 native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument 406 synchronized long nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument 408 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage); 410 native long rsnAllocationCreateBitmapRef(long con, long type, Bitmap bmp); argument 411 nAllocationCreateBitmapRef(long type, Bitmap bmp) argument 421 rsnAllocationCopyToBitmap(long con, long alloc, Bitmap bmp) argument 422 nAllocationCopyToBitmap(long alloc, Bitmap bmp) argument 466 rsnAllocationCopyFromBitmap(long con, long alloc, Bitmap bmp) argument 467 nAllocationCopyFromBitmap(long alloc, Bitmap bmp) argument [all...] |