/external/skia/src/core/ |
SkDevice.cpp | 26 SkDevice::SkDevice(const SkBitmap& bitmap) 27 : fBitmap(bitmap), fLeakyProperties(SkDeviceProperties::MakeDefault()) 36 SkDevice::SkDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProperties) 37 : fBitmap(bitmap), fLeakyProperties(deviceProperties) 135 const SkBitmap& bitmap = this->onAccessBitmap(&fBitmap); local 137 bitmap.notifyPixelsChanged(); 139 return bitmap; 153 const SkBitmap& SkDevice::onAccessBitmap(SkBitmap* bitmap) {return *bitmap;} 175 bool SkDevice::readPixels(SkBitmap* bitmap, int x, int y [all...] |
/external/skia/src/effects/ |
SkTableColorFilter.cpp | 381 SkBitmap bitmap; local 382 this->asComponentTable(&bitmap); 384 GrTexture* texture = GrLockAndRefCachedBitmapTexture(context, bitmap, NULL);
|
/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 105 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect); 301 static bool isConfigCompatible(SkBitmap* bitmap) { 302 SkBitmap::Config config = bitmap->config(); 325 // 2. bitmap's config is compatible 326 // 3. bitmap's size is same as the required region (after sampled) 333 SkBitmap *bitmap = decodedBitmap; local 336 // allocates a temp bitmap 337 bitmap = new SkBitmap; 338 adb.reset(bitmap); 341 if (bitmap->isNull()) [all...] |
/external/skia/tests/ |
AAClipTest.cpp | 74 SkBitmap bitmap; local 75 bitmap.setConfig(SkBitmap::kA8_Config, mask->fBounds.width(), 77 bitmap.setPixels(mask->fImage); 85 SkCanvas canvas(bitmap);
|
/external/skia/tools/ |
PictureRenderer.cpp | 103 SkBitmap bitmap; local 104 sk_tools::setup_bitmap(&bitmap, width, height); 105 canvas = SkNEW_ARGS(SkCanvas, (bitmap)); 213 SkBitmap bitmap; local 215 sk_tools::setup_bitmap(&bitmap, size.width(), size.height()); 217 canvas->readPixels(&bitmap, 0, 0); 218 sk_tools::force_all_opaque(bitmap); 222 return SkImageEncoder::EncodeFile(path.c_str(), bitmap, SkImageEncoder::kPNG_Type, 100); 514 SkBitmap bitmap; local 518 setup_bitmap(&bitmap, fTileWidth, fTileHeight) 597 SkBitmap bitmap; variable [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/context/ |
GraphicsContextAndroid.cpp | 105 SkBitmap bitmap; local 106 bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height); 107 bitmap.allocPixels(); 108 bitmap.eraseColor(0); 111 new PlatformGraphicsContextSkia(new SkCanvas(bitmap), true); 532 // If we instead draw into bitmap tiles, we should then perform this 629 // TODO: record this, so we can know when to use bitmap-filtering when we draw
|
/external/webkit/Source/WebKit/android/plugins/ |
PluginWidgetAndroid.cpp | 233 const SkBitmap& bitmap = update.bitmap(); local 247 if (SkANP::SetBitmap(&event.data.draw.data.bitmap, 248 bitmap) && 252 SkBitmap bm(bitmap); 402 // TODO update the bitmap size based on the zoom? (for kBitmap_ANPDrawingModel)
|
/external/webkit/Source/WebKit2/PluginProcess/ |
PluginControllerProxy.cpp | 484 RefPtr<ShareableBitmap> bitmap = m_plugin->snapshot(); local 485 if (!bitmap) 488 bitmap->createHandle(backingStoreHandle);
|
/frameworks/base/cmds/bootanimation/ |
BootAnimation.cpp | 105 SkBitmap bitmap; 107 &bitmap, SkBitmap::kNo_Config, SkImageDecoder::kDecodePixels_Mode); 112 // bitmap will go out of scope when we return from this method. 113 bitmap.lockPixels(); 115 const int w = bitmap.width(); 116 const int h = bitmap.height(); 117 const void* p = bitmap.getPixels(); 126 switch (bitmap.getConfig()) { 159 SkBitmap bitmap; local 164 codec->decode(&stream, &bitmap, [all...] |
/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 225 SkBitmap bitmap;
local 227 bitmap.setConfig(config, width, height);
229 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
236 0, 0, width, height, bitmap);
239 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL, NULL);
254 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) {
257 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap);
261 delete bitmap;
264 static jboolean Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) {
267 return android::uirenderer::Caches::getInstance().resourceCache.recycle(bitmap);
391 SkBitmap* bitmap = new SkBitmap; local [all...] |
/frameworks/base/core/jni/ |
android_view_SurfaceControl.cpp | 153 bitmap.setIsOpaque(true) on the resulting SkBitmap (as an accelerator) 185 SkBitmap* bitmap = new SkBitmap(); local 186 bitmap->setConfig(convertPixelFormat(f), w, h, bpr); 188 bitmap->setIsOpaque(true); 192 bitmap->setPixelRef(pixels)->unref(); 193 bitmap->lockPixels(); 195 // be safe with an empty bitmap. 197 bitmap->setPixels(NULL); 200 return GraphicsJNI::createBitmap(env, bitmap, false, NULL); 414 {"nativeScreenshot", "(Landroid/os/IBinder;IIIIZ)Landroid/graphics/Bitmap;", [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
NinePatchDrawable.java | 21 import android.graphics.Bitmap; 42 * A resizeable bitmap, with stretchable areas that you define. This type of image 74 * @deprecated Use {@link #NinePatchDrawable(Resources, Bitmap, byte[], Rect, String)} 78 public NinePatchDrawable(Bitmap bitmap, byte[] chunk, Rect padding, String srcName) { 79 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); 86 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, 88 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); 98 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk 303 Bitmap bitmap = null; local [all...] |
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
SafeSaxTest.java | 19 import android.graphics.Bitmap; 529 public Bitmap bitmap; // cached bitmap of the thumbnail field in class:SafeSaxTest.YouTubeVideo
|
/frameworks/base/services/input/ |
SpriteController.h | 59 inline SpriteIcon(const SkBitmap& bitmap, float hotSpotX, float hotSpotY) : 60 bitmap(bitmap), hotSpotX(hotSpotX), hotSpotY(hotSpotY) { } 62 SkBitmap bitmap; member in struct:android::SpriteIcon 68 bitmap.copyTo(&bitmapCopy, SkBitmap::kARGB_8888_Config); 73 bitmap.reset(); 79 return !bitmap.isNull() && !bitmap.empty(); 102 /* Sets the bitmap that is drawn by the sprite. 103 * The sprite retains a copy of the bitmap for subsequent rendering. * [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Bitmap_Delegate.java | 25 import android.graphics.Bitmap.Config; 40 * Delegate implementing the native methods of android.graphics.Bitmap 42 * Through the layoutlib_create tool, the original native methods of Bitmap have been replaced 47 * it and the original Bitmap class. 73 public static Bitmap_Delegate getDelegate(Bitmap bitmap) { 74 return sManager.getDelegate(bitmap.mNativeBitmap); 78 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object. 85 * Creates and returns a {@link Bitmap} initialized with the given file content. 87 * @param input the file from which to read the bitmap conten 446 Bitmap_Delegate bitmap = sManager.getDelegate(nativeBitmap); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
PhotoSelectionHandler.java | 25 import android.graphics.Bitmap; 122 Bitmap bitmap = BitmapFactory.decodeFile(path); local 123 listener.onPhotoSelected(bitmap); 157 * Utility method to retrieve the entity delta for attaching the given bitmap to the contact. 160 * @return An entity delta list that can be applied to associate the bitmap with the contact, 252 * Constructs an intent for picking a photo from Gallery, cropping it and returning the bitmap. 320 * @param bitmap The selected and cropped photo. 322 public abstract void onPhotoSelected(Bitmap bitmap); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalImage.java | 23 import android.graphics.Bitmap; 177 public Job<Bitmap> requestImage(int type) { 191 public Bitmap onDecodeOriginal(JobContext jc, final int type) { 193 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 209 Bitmap bitmap = DecodeUtils.decodeIfBigEnough( local 211 if (bitmap != null) return bitmap;
|
UriImage.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 70 public Job<Bitmap> requestImage(int type) { 183 private class BitmapJob implements Job<Bitmap> { 191 public Bitmap run(JobContext jc) { 196 Bitmap bitmap = DecodeUtils.decodeThumbnail(jc, local 199 if (jc.isCancelled() || bitmap == null) { 204 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
SaveCopyTask.java | 23 import android.graphics.Bitmap; 152 public boolean putExifData(File file, ExifInterface exif, Bitmap image) { 166 * The task should be executed with one given bitmap to be saved. 182 // Try to do bitmap operations, downsample if low-memory 183 Bitmap bitmap = ImageLoader.loadMutableBitmap(context, sourceUri, options); local 184 if (bitmap == null) { 188 bitmap = pipeline.renderFinalImage(bitmap, preset); 203 // If we succeed in writing the bitmap as a jpeg, return a uri [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetDatabaseHelper.java | 25 import android.graphics.Bitmap; 191 * Store the given bitmap in this database for the given appWidgetId. 193 public boolean setPhoto(int appWidgetId, Uri imageUri, Bitmap bitmap) { 198 int size = bitmap.getWidth() * bitmap.getHeight() * 4; 200 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 298 * Remove any bitmap associated with the given appWidgetId.
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
UploadedTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 29 // UploadedTextures use a Bitmap for the content of the texture. 31 // Subclasses should implement onGetBitmap() to provide the Bitmap and 32 // implement onFreeBitmap(mBitmap) which will be called when the Bitmap 47 private static HashMap<BorderKey, Bitmap> sBorderLines = 48 new HashMap<BorderKey, Bitmap>(); 62 protected Bitmap mBitmap; 118 private static Bitmap getBorderLine( 124 Bitmap bitmap = sBorderLines.get(key) local 129 sBorderLines.put(key.clone(), bitmap); local 193 Bitmap bitmap = getBitmap(); local 212 Bitmap bitmap = getBitmap(); local [all...] |
/packages/apps/Gallery2/tests/src/com/android/photos/data/ |
MediaCacheTest.java | 20 import android.graphics.Bitmap; 173 Bitmap bitmap = BitmapFactory.decodeStream(mReady.mInputStream); local 175 assertNotNull(bitmap); 176 Bitmap original = BitmapFactory.decodeFile(mImage.getPath()); 177 assertTrue(bitmap.getWidth() < original.getWidth()); 178 assertTrue(bitmap.getHeight() < original.getHeight()); 179 int maxDimension = Math.max(bitmap.getWidth(), bitmap.getHeight()); 193 Bitmap bitmap = BitmapFactory.decodeStream(mReady.mInputStream) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 23 import android.graphics.Bitmap; 66 * Returns a bitmap suitable for the all apps view. Used to convert pre-ICS 70 static Bitmap createIconBitmap(Bitmap icon, Context context) { 77 return Bitmap.createBitmap(icon, 85 // Icon is too small, render to a larger bitmap 92 * Returns a bitmap suitable for the all apps view. 94 static Bitmap createIconBitmap(Drawable icon, Context context) { 108 // Ensure the bitmap has a density. 110 Bitmap bitmap = bitmapDrawable.getBitmap() local 138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
ProjectPickerAdapter.java | 21 import android.graphics.Bitmap; 60 private LruCache<String, Bitmap> mPreviewBitmapCache; 77 mPreviewBitmapCache = new LruCache<String, Bitmap>(15); 138 Bitmap thumbnail; 164 * Draws transparent black bottom overlay with movie title and duration on the bitmap. 166 public void drawBottomOverlay(Bitmap bitmap, String title, String duration) { 168 final Canvas canvas = new Canvas(bitmap); 172 final int left = 0, top = bitmap.getHeight() - mOverlayHeight, 173 right = bitmap.getWidth(), bottom = bitmap.getHeight() 211 final Bitmap bitmap = Bitmap.createBitmap(mItemWidth, mItemHeight, local 280 final Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, local [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
ImageUtils.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 65 * Resize a bitmap to the specified width and height. 72 * @return The resized bitmap 74 public static Bitmap scaleImage(String filename, int width, int height, int match) 83 final Bitmap srcBitmap; 92 // Create the bitmap from file. 105 // Create the canvas bitmap. 106 final Bitmap bitmap = Bitmap.createBitmap(Math.round(scaledWidth) local [all...] |