Searched refs:bitmap (Results 101 - 125 of 139) sorted by relevance

123456

/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java31 * Indicates that the bitmap was created for an unknown pixel density.
93 bitmap int (pointer).
106 bitmap int (pointer).
113 throw new RuntimeException("internal error: native bitmap is 0");
130 * <p>Returns the density for this bitmap.</p>
154 * <p>Specifies the density for this bitmap. When the bitmap is
158 * @param density The density scaling factor to use with this bitmap or
192 * Free the native object associated with this bitmap, and clear the
195 * The bitmap i
[all...]
/frameworks/base/services/java/com/android/server/power/
H A DElectronBeam.java377 Bitmap bitmap = Surface.screenshot(mDisplayWidth, mDisplayHeight,
379 if (bitmap == null) {
403 GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);
408 int format = GLUtils.getInternalFormat(bitmap);
416 GLUtils.texSubImage2D(GLES10.GL_TEXTURE_2D, 0, 0, 0, bitmap);
450 bitmap.recycle();
/frameworks/base/libs/hwui/
H A DResourceCache.cpp313 SkBitmap* bitmap = (SkBitmap*) resource; local
315 Caches::getInstance().textureCache.removeDeferred(bitmap);
317 delete bitmap;
H A DOpenGLRenderer.cpp1663 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { argument
1664 const float right = left + bitmap->width();
1665 const float bottom = top + bitmap->height();
1672 Texture* texture = mCaches.textureCache.get(bitmap);
1676 if (CC_UNLIKELY(bitmap->getConfig() == SkBitmap::kA8_Config)) {
1685 status_t OpenGLRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { argument
1686 Rect r(0.0f, 0.0f, bitmap->width(), bitmap->height());
1695 Texture* texture = mCaches.textureCache.get(bitmap);
1703 drawTextureRect(0.0f, 0.0f, bitmap
1709 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument
1726 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument
1805 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument
1862 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, SkPaint* paint) argument
1873 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, int alpha, SkXfermode::Mode mode) argument
[all...]
H A DSkiaShader.h137 * A shader that draws a bitmap.
140 ANDROID_API SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX,
H A DSkiaShader.cpp103 SkiaBitmapShader::SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX, argument
105 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) {
/frameworks/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp266 SkBitmap *bitmap = local
269 bitmap->lockPixels();
270 rotate((uint16_t*)bitmap->getPixels(),
275 bitmap->unlockPixels();
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp530 const SkBitmap& bitmap(*nativeBitmap);
532 bitmap.lockPixels();
533 const void* ptr = bitmap.getPixels();
536 ptr, bitmap.getSize(), usage);
537 bitmap.unlockPixels();
546 const SkBitmap& bitmap(*nativeBitmap);
548 bitmap.lockPixels();
549 const void* ptr = bitmap.getPixels();
552 ptr, bitmap.getSize(), usage);
553 bitmap
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DNinePatch_Delegate.java152 /*package*/ static void validateNinePatchChunk(int bitmap, byte[] chunk) { argument
177 /*package*/ static int nativeGetTransparentRegion(int bitmap, byte[] chunk, Rect location) { argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSerializedFrame.java242 public void setBitmap(Bitmap bitmap) { argument
244 setGenericObjectValue(bitmap);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLTextureViewActivity.java270 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resource);
272 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);
275 bitmap.recycle();
/frameworks/base/core/jni/android/graphics/
H A DMovie.cpp76 const SkBitmap& b = m->bitmap();
H A DShader.cpp85 static SkShader* BitmapShader_constructor(JNIEnv* env, jobject o, const SkBitmap* bitmap, argument
88 SkShader* s = SkShader::CreateBitmapShader(*bitmap,
97 SkBitmap* bitmap, int tileModeX, int tileModeY) {
99 SkiaShader* skiaShader = new SkiaBitmapShader(bitmap, shader,
96 BitmapShader_postConstructor(JNIEnv* env, jobject o, SkShader* shader, SkBitmap* bitmap, int tileModeX, int tileModeY) argument
/frameworks/ex/photoviewer/src/com/android/ex/photo/fragments/
H A DPhotoViewFragment.java315 private void bindPhoto(Bitmap bitmap) { argument
317 mPhotoView.bindPhoto(bitmap);
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
H A DPhotoViewFragment.java320 private void bindPhoto(Bitmap bitmap) { argument
322 mPhotoView.bindPhoto(bitmap);
/frameworks/base/core/java/android/widget/
H A DRemoteViews.java242 // reference the bitmap cache. We don't want to modify the object as it may need to
275 // Because pruning can remove the need for bitmaps, we reconstruct the bitmap cache
863 Bitmap bitmap; field in class:RemoteViews.BitmapReflectionAction
866 BitmapReflectionAction(int viewId, String methodName, Bitmap bitmap) { argument
867 this.bitmap = bitmap;
870 bitmapId = mBitmapCache.getBitmapId(bitmap);
877 bitmap = mBitmapCache.getBitmapForId(bitmapId);
892 bitmap);
898 bitmapId = bitmapCache.getBitmapId(bitmap);
1825 setImageViewBitmap(int viewId, Bitmap bitmap) argument
[all...]
/frameworks/base/media/java/android/media/videoeditor/
H A DMediaArtistNativeHelper.java1949 Bitmap bitmap = null;
1959 if ((bitmap = overlay.getBitmap()) != null) {
1970 if (bitmap.getConfig() == Bitmap.Config.ARGB_8888)
1972 else if (bitmap.getConfig() == Bitmap.Config.ARGB_4444)
1974 else if (bitmap.getConfig() == Bitmap.Config.RGB_565)
1976 else if (bitmap.getConfig() == Bitmap.Config.ALPHA_8)
1979 effectSettings.width = bitmap.getWidth();
1980 effectSettings.height = bitmap.getHeight();
1987 bitmap.getPixels(effectSettings.framingBuffer, 0,
2015 effectSettings.width = bitmap
[all...]
H A DMediaImageItem.java925 * Resize a bitmap to the specified width and height
931 * @return The resized bitmap
972 * Create the bitmap from file
994 * Create the canvas bitmap
996 final Bitmap bitmap = Bitmap.createBitmap((int)bitmapWidth,
999 final Canvas canvas = new Canvas(bitmap);
1006 * Release the source bitmap
1009 return bitmap;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DVideoEditorHelper.java280 Bitmap bitmap, long startTimeMs, long durationMs) {
282 overLayFrame = new OverlayFrame(mediaItem, overlayId, bitmap,
279 createOverlay(MediaItem mediaItem, String overlayId, Bitmap bitmap, long startTimeMs, long durationMs) argument
/frameworks/base/services/java/com/android/server/connectivity/
H A DVpn.java262 // Load the icon and convert it into a bitmap.
264 Bitmap bitmap = null;
271 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
272 Canvas c = new Canvas(bitmap);
315 showNotification(config, label, bitmap);
/frameworks/base/services/java/com/android/server/pm/
H A DUserManagerService.java250 public void setUserIcon(int userId, Bitmap bitmap) { argument
258 writeBitmapLocked(info, bitmap);
364 private void writeBitmapLocked(UserInfo info, Bitmap bitmap) { argument
376 if (bitmap.compress(Bitmap.CompressFormat.PNG, 100, os = new FileOutputStream(file))) {
/frameworks/base/core/java/android/content/
H A DContextWrapper.java268 public void setWallpaper(Bitmap bitmap) throws IOException { argument
269 mBase.setWallpaper(bitmap);
/frameworks/base/core/java/com/android/internal/widget/
H A DWaveView.java89 private float mRingRadius = 182.0f; // Radius of bitmap ring. Used to snap halo to it
399 Bitmap bitmap = BitmapFactory.decodeResource(res, resId);
400 return new BitmapDrawable(res, bitmap);
/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java1933 Bitmap bitmap = null;
1949 bitmap = BitmapFactory.decodeStream(is, padding, null);
1951 bitmap = BitmapFactory.decodeStream(is);
1954 mEST.getContext().getResources(), bitmap);
2627 Bitmap bitmap = null;
2646 bitmap = BitmapFactory.decodeStream(is, padding, null);
2648 bitmap = BitmapFactory.decodeStream(is);
2650 mDrawable = new BitmapDrawable(mContext.getResources(), bitmap);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java332 // Load bitmap if it is not yet loaded or if it was loaded at a different size
335 Log.d(TAG, "Reloading bitmap: mBackground, bgw, bgh, dw, dh = " +
344 Log.d(TAG, "Unable to load bitmap");
350 Log.d(TAG, "Surface != bitmap dimensions: surface w/h, bitmap w/h: " +
391 // the loaded bitmap. Yay!
392 // hw-accelerated path retains bitmap for faster rotation
527 private int loadTexture(Bitmap bitmap) { argument
544 GLUtils.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bitmap, GL_UNSIGNED_BYTE, 0);

Completed in 2415 milliseconds

123456