Searched defs:bitmap (Results 1 - 25 of 171) sorted by path

1234567

/frameworks/av/media/libmedia/
H A DIMediaMetadataRetriever.cpp273 sp<IMemory> bitmap = getFrameAtTime(timeUs, option); local
274 if (bitmap != 0) { // Don't send NULL across the binder interface
276 reply->writeStrongBinder(IInterface::asBinder(bitmap));
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp110 SkBitmap bitmap;
112 &bitmap, kUnknown_SkColorType, SkImageDecoder::kDecodePixels_Mode);
117 // bitmap will go out of scope when we return from this method.
118 bitmap.lockPixels();
120 const int w = bitmap.width();
121 const int h = bitmap.height();
122 const void* p = bitmap.getPixels();
131 switch (bitmap.colorType()) {
164 SkBitmap bitmap; local
169 codec->decode(&stream, &bitmap,
[all...]
/frameworks/base/core/java/android/app/
H A DContextImpl.java773 public void setWallpaper(Bitmap bitmap) throws IOException { argument
774 getWallpaperManager().setBitmap(bitmap);
H A DWallpaperManager.java189 * at the time the bitmap is loaded).
199 private FastBitmapDrawable(Bitmap bitmap) { argument
200 mBitmap = bitmap;
201 mWidth = bitmap.getWidth();
202 mHeight = bitmap.getHeight();
566 // Do region decoding to get crop bitmap
663 * do match the bitmap bounds, which should not be typical), doesn't
887 * Change the current system wallpaper to the bitmap in the given resource.
895 * @param resid The resource ID of the bitmap to be used as the wallpaper image
908 * @param resid The resource ID of the bitmap t
972 setBitmap(Bitmap bitmap) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContext.java1517 public abstract void setWallpaper(Bitmap bitmap) throws IOException; argument
H A DContextWrapper.java338 public void setWallpaper(Bitmap bitmap) throws IOException { argument
339 mBase.setWallpaper(bitmap);
/frameworks/base/core/java/android/os/
H A DUserManagerInternal.java94 public abstract void setUserIcon(int userId, Bitmap bitmap); argument
/frameworks/base/core/java/android/view/
H A DAppTransitionAnimationSpec.java18 public final Bitmap bitmap; field in class:AppTransitionAnimationSpec
21 public AppTransitionAnimationSpec(int taskId, Bitmap bitmap, Rect rect) { argument
23 this.bitmap = bitmap;
29 bitmap = in.readParcelable(null);
41 dest.writeParcelable(bitmap, 0 /* flags */);
59 return "{taskId: " + taskId + ", bitmap: " + bitmap + ", rect: " + rect + "}";
H A DDisplayListCanvas.java94 mDensity = 0; // disable bitmap density scaling
116 public void setBitmap(Bitmap bitmap) { argument
256 protected void throwIfCannotDraw(Bitmap bitmap) { argument
257 super.throwIfCannotDraw(bitmap);
258 int bitmapSize = bitmap.getByteCount();
261 "Canvas: trying to draw too large(" + bitmapSize + "bytes) bitmap.");
H A DHardwareLayer.java88 * Copies this layer into the specified bitmap.
90 * @param bitmap The bitmap to copy they layer into
94 public boolean copyInto(Bitmap bitmap) { argument
95 return mRenderer.copyLayerInto(this, bitmap);
H A DPointerIcon.java46 /** {@hide} Type constant: Custom icon with a user-supplied bitmap. */
49 /** Type constant: Null icon. It has no bitmap. */
159 * Gets a special pointer icon that has no bitmap.
245 * Creates a custom pointer icon from the given bitmap and hotspot information.
247 * @param bitmap The bitmap for the icon.
248 * @param hotSpotX The X offset of the pointer icon hotspot in the bitmap.
249 * Must be within the [0, bitmap.getWidth()) range.
250 * @param hotSpotY The Y offset of the pointer icon hotspot in the bitmap.
251 * Must be within the [0, bitmap
257 create(@onNull Bitmap bitmap, float hotSpotX, float hotSpotY) argument
470 validateHotSpot(Bitmap bitmap, float hotSpotX, float hotSpotY) argument
[all...]
H A DTextureView.java519 * <p>The bitmap returned by this method uses the {@link Bitmap.Config#ARGB_8888}
525 * <p>If an error occurs during the copy, an empty bitmap will be returned.</p>
527 * @return A valid {@link Bitmap.Config#ARGB_8888} bitmap, or null if the surface
543 * <p>The bitmap returned by this method uses the {@link Bitmap.Config#ARGB_8888}
549 * <p>If an error occurs during the copy, an empty bitmap will be returned.</p>
551 * @param width The width of the bitmap to create
552 * @param height The height of the bitmap to create
554 * @return A valid {@link Bitmap.Config#ARGB_8888} bitmap, or null if the surface
571 * bitmap. If the surface texture is not available, the copy is not executed.
573 * the specified bitmap
592 getBitmap(Bitmap bitmap) argument
[all...]
H A DThreadedRenderer.java823 boolean copyLayerInto(final HardwareLayer layer, final Bitmap bitmap) { argument
825 layer.getDeferredLayerUpdater(), bitmap);
888 public static int copySurfaceInto(Surface surface, Bitmap bitmap) { argument
889 return nCopySurfaceInto(surface, bitmap);
1000 private static native boolean nCopyLayerInto(long nativeProxy, long layer, Bitmap bitmap); argument
1029 private static native int nCopySurfaceInto(Surface surface, Bitmap bitmap); argument
/frameworks/base/core/java/android/widget/
H A DRemoteViews.java357 // reference the bitmap cache. We don't want to modify the object as it may need to
390 // Because pruning can remove the need for bitmaps, we reconstruct the bitmap cache
1122 Bitmap bitmap; field in class:RemoteViews.BitmapReflectionAction
1125 BitmapReflectionAction(int viewId, String methodName, Bitmap bitmap) { argument
1126 this.bitmap = bitmap;
1129 bitmapId = mBitmapCache.getBitmapId(bitmap);
1136 bitmap = mBitmapCache.getBitmapForId(bitmapId);
1151 bitmap);
1157 bitmapId = bitmapCache.getBitmapId(bitmap);
2575 setImageViewBitmap(int viewId, Bitmap bitmap) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java41 // Size of the smaller bitmap we're actually going to scan.
51 * Checks whether a bitmap is grayscale. Grayscale here means "very close to a perfect
54 * Instead of scanning every pixel in the bitmap, we first resize the bitmap to no more than
58 public boolean isGrayscale(Bitmap bitmap) { argument
59 int height = bitmap.getHeight();
60 int width = bitmap.getWidth();
78 mTempCompactBitmapCanvas.drawBitmap(bitmap, mTempMatrix, mTempCompactBitmapPaint);
79 bitmap = mTempCompactBitmap;
85 bitmap
[all...]
H A DNotificationColorUtil.java80 * @param bitmap The bitmap to test.
81 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
83 public boolean isGrayscaleIcon(Bitmap bitmap) { argument
85 if (bitmap.getWidth() > mGrayscaleIconMaxSize
86 || bitmap.getHeight() > mGrayscaleIconMaxSize) {
91 Pair<Boolean, Integer> cached = mGrayscaleBitmapCache.get(bitmap);
93 if (cached.second == bitmap.getGenerationId()) {
101 result = mImageUtils.isGrayscale(bitmap);
105 // assume that it doesn't modify the bitmap whil
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp64 // to prevent things like a non-opaque RGB565 bitmap
192 "Deleting a bitmap wrapper while there are outstanding strong "
365 "Error, cannot access an invalid/free'd bitmap here!");
480 static FromColorProc ChooseFromColorProc(const SkBitmap& bitmap) { argument
481 switch (bitmap.colorType()) {
483 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw;
485 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444 :
722 SkBitmap bitmap; local
723 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType));
725 Bitmap* nativeBitmap = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NUL
750 Bitmap* bitmap = allocator.getStorageObjAndReset(); local
762 Bitmap* bitmap = allocator.getStorageObjAndReset(); local
771 Bitmap* bitmap = Bitmap_copyAshmemImpl(env, src, dstCT); local
780 Bitmap* bitmap = Bitmap_copyAshmemImpl(env, src, dstCT); local
785 Bitmap_destruct(Bitmap* bitmap) argument
1084 SkBitmap bitmap; local
1191 SkBitmap bitmap; local
1212 SkBitmap bitmap; local
1240 SkBitmap bitmap; local
1260 SkBitmap bitmap; local
1268 SkBitmap bitmap; local
1283 SkBitmap bitmap; local
[all...]
H A DBitmapFactory.cpp102 // if the collision avoidance above put some divs outside the bounds of the bitmap,
145 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { argument
148 colorTypeForScaledOutput(bitmap->colorType()));
150 int(bitmap->width() * mScale + 0.5f) *
151 int(bitmap->height() * mScale + 0.5f);
153 ALOGW("bitmap for alloc reuse (%d bytes) can't fit scaled bitmap (%d bytes)",
157 return SkBitmap::HeapAllocator::allocPixelRef(bitmap, ctable);
166 RecyclingPixelAllocator(android::Bitmap* bitmap, unsigned int size) argument
167 : mBitmap(bitmap), mSiz
173 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument
546 jobject bitmap = NULL; local
[all...]
H A DBitmapRegionDecoder.cpp151 // Recycle a bitmap if possible.
157 ALOGW("Warning: Reusing an immutable bitmap as an image decoder target.");
168 // We are required to match the color type of the recycled bitmap.
178 SkBitmap bitmap; local
179 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, colorType, requireUnpremul)) {
185 env->SetIntField(options, gOptions_widthFieldID, bitmap.width());
186 env->SetIntField(options, gOptions_heightFieldID, bitmap.height());
194 // If we may have reused a bitmap, we need to indicate that the pixels have changed.
H A DGraphics.cpp345 android::Bitmap* GraphicsJNI::getBitmap(JNIEnv* env, jobject bitmap) { argument
347 SkASSERT(bitmap);
348 SkASSERT(env->IsInstanceOf(bitmap, gBitmap_class));
349 jlong bitmapHandle = env->GetLongField(bitmap, gBitmap_nativePtr);
355 void GraphicsJNI::getSkBitmap(JNIEnv* env, jobject bitmap, SkBitmap* outBitmap) { argument
356 getBitmap(env, bitmap)->getSkBitmap(outBitmap);
359 SkPixelRef* GraphicsJNI::refSkPixelRef(JNIEnv* env, jobject bitmap) { argument
360 return getBitmap(env, bitmap)->refPixelRef();
397 // Assert that bitmap's SkAlphaType is consistent with isPremultiplied.
409 jobject GraphicsJNI::createBitmap(JNIEnv* env, android::Bitmap* bitmap, argument
442 createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap) argument
475 computeAllocationSize(const SkBitmap& bitmap, size_t* size) argument
486 allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument
539 allocatePixels(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument
579 allocateAshmemPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument
625 mapAshmemPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable, int fd, void* addr, bool readOnly) argument
671 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument
690 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument
779 allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) argument
[all...]
H A DNinePatch.cpp96 SkBitmap bitmap; local
97 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region);
H A DShader.cpp91 SkBitmap bitmap; local
95 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
97 SkShader* s = SkShader::CreateBitmapShader(bitmap,
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfRenderer.cpp161 static void renderPageBitmap(FPDF_BITMAP bitmap, FPDF_PAGE page, int destLeft, int destTop, argument
178 fxgeDevice->Attach((CFX_DIBitmap*) bitmap, 0, TRUE);
258 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(), local
261 if (!bitmap) {
262 ALOGE("Erorr creating bitmap");
279 renderPageBitmap(bitmap, page, destLeft, destTop, destRight,
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp730 SkBitmap bitmap; local
731 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
732 SkColorType colorType = bitmap.colorType();
742 bitmap.lockPixels();
743 const int w = bitmap.width();
744 const int h = bitmap.height();
745 const void* p = bitmap.getPixels();
751 const size_t size = bitmap.getSize();
757 SkColorTable* ctable = bitmap.getColorTable();
769 bitmap
777 SkBitmap bitmap; local
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp49 SkBitmap bitmap; local
51 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
53 return reinterpret_cast<jlong>(Canvas::create_canvas(bitmap));
56 // Set the given bitmap as the new draw target (wrapped in a new SkCanvas),
59 SkBitmap bitmap; local
61 GraphicsJNI::getSkBitmap(env, jbitmap, &bitmap);
63 get_canvas(canvasHandle)->setBitmap(bitmap);
344 Bitmap* bitmap = reinterpret_cast<Bitmap*>(bitmapHandle); local
346 bitmap->getSkBitmap(&skiaBitmap);
376 SkBitmap bitmap; local
412 SkBitmap bitmap; local
424 SkBitmap bitmap; local
449 SkBitmap bitmap; local
471 SkBitmap bitmap; local
[all...]

Completed in 367 milliseconds

1234567