/external/skia/src/effects/ |
SkTableColorFilter.cpp | 345 static const GrFragmentProcessor* Create(GrContext* context, SkBitmap bitmap, unsigned flags); 461 const GrFragmentProcessor* ColorTableEffect::Create(GrContext* context, SkBitmap bitmap, 465 desc.fWidth = bitmap.width(); 467 desc.fRowHeight = bitmap.height(); 469 desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info()); 471 int row = atlas->lockRow(bitmap); 475 texture.reset(GrRefCachedBitmapTexture(context, bitmap, GrTextureParams::ClampNoFilter())); 569 SkBitmap bitmap; local 570 this->asComponentTable(&bitmap); 572 return ColorTableEffect::Create(context, bitmap, fFlags) [all...] |
/external/skia/src/views/win/ |
SkOSWindow_win.cpp | 198 const SkBitmap& bitmap = this->getBitmap(); local 203 bmi.bmiHeader.biWidth = bitmap.width(); 204 bmi.bmiHeader.biHeight = -bitmap.height(); // top-down image 217 // seems to be to copy the bitmap to a temporary (contiguous) 219 SkASSERT(bitmap.width() * bitmap.bytesPerPixel() == bitmap.rowBytes()); 220 bitmap.lockPixels(); 223 bitmap.width(), bitmap.height() [all...] |
/external/skia/tests/ |
BlurTest.cpp | 268 SkBitmap bitmap; local 269 bitmap.allocN32Pixels(resultCount, 30); 270 SkCanvas canvas(bitmap);
|
ImageTest.cpp | 118 SkBitmap bitmap; local 119 bitmap.installPixels(info, data->writable_data(), info.minRowBytes()); 121 SkImageEncoder::EncodeData(bitmap, SkImageEncoder::kPNG_Type, 100)); 563 const SkBitmap& bitmap, SkImage::LegacyBitmapMode mode) { 564 REPORTER_ASSERT(reporter, image->width() == bitmap.width()); 565 REPORTER_ASSERT(reporter, image->height() == bitmap.height()); 566 REPORTER_ASSERT(reporter, image->isOpaque() == bitmap.isOpaque()); 569 REPORTER_ASSERT(reporter, bitmap.isImmutable()); 572 SkAutoLockPixels alp(bitmap); 573 REPORTER_ASSERT(reporter, bitmap.getPixels()) 582 SkBitmap bitmap; local [all...] |
ReadPixelsTest.cpp | 132 static void fill_dst_bmp_with_init_data(SkBitmap* bitmap) { 133 SkASSERT(bitmap->lockPixelsAreWritable()); 134 SkAutoLockPixels alp(*bitmap); 135 int w = bitmap->width(); 136 int h = bitmap->height(); 137 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap->getPixels()); 140 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel()); 166 // checks the bitmap contains correct pixels after the readPixels 167 // if the bitmap was prefilled with pixels it checks that these weren' 580 SkBitmap bitmap; local [all...] |
/external/skia/tools/debugger/ |
SkDebugCanvas.cpp | 112 SkBitmap bitmap; local 113 bitmap.allocPixels(SkImageInfo::MakeN32Premul(1, 1)); 115 SkCanvas canvas(bitmap); 120 SkColor prev = bitmap.getColor(0,0); 126 if (prev != bitmap.getColor(0,0)) { 129 prev = bitmap.getColor(0,0); 396 void SkDebugCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, 398 this->addDrawCommand(new SkDrawBitmapCommand(bitmap, left, top, paint)); 401 void SkDebugCanvas::onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst, 403 this->addDrawCommand(new SkDrawBitmapRectCommand(bitmap, src, dst, paint [all...] |
/external/tcpdump/ |
appletalk.h | 76 uint8_t bitmap; member in struct:atATP
|
/frameworks/base/cmds/bootanimation/ |
BootAnimation.cpp | 110 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/transition/ |
ChangeBounds.java | 29 import android.graphics.Bitmap; 444 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 445 Canvas canvas = new Canvas(bitmap); 447 final BitmapDrawable drawable = new BitmapDrawable(bitmap);
|
/frameworks/base/core/jni/android/graphics/ |
BitmapFactory.cpp | 102 // if the collision avoidance above put some divs outside the bounds of the bitmap, 145 virtual bool allocPixelRef(SkBitmap* bitmap, SkColorTable* ctable) { 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 546 jobject bitmap = NULL; local [all...] |
/frameworks/base/core/jni/ |
android_graphics_Canvas.cpp | 27 #include "Bitmap.h" 47 // Native wrapper constructor used by Canvas(Bitmap) 49 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 376 SkBitmap bitmap; local 412 SkBitmap bitmap; local 424 SkBitmap bitmap; local 449 SkBitmap bitmap; local 471 SkBitmap bitmap; local [all...] |
android_view_SurfaceControl.cpp | 21 #include "android/graphics/Bitmap.h" 187 Bitmap* bitmap = new Bitmap( local 191 bitmap->peekAtPixelRef()->setImmutable(); 193 return GraphicsJNI::createBitmap(env, bitmap, 656 {"nativeScreenshot", "(Landroid/os/IBinder;Landroid/graphics/Rect;IIIIZZI)Landroid/graphics/Bitmap;",
|
/frameworks/base/libs/hwui/ |
RecordedOp.h | 216 BitmapOp(BASE_PARAMS, const SkBitmap* bitmap) 218 , bitmap(bitmap) {} 219 const SkBitmap* bitmap; member in struct:android::uirenderer::BitmapOp 224 BitmapMeshOp(BASE_PARAMS, const SkBitmap* bitmap, int meshWidth, int meshHeight, 227 , bitmap(bitmap) 232 const SkBitmap* bitmap; member in struct:android::uirenderer::BitmapMeshOp 240 BitmapRectOp(BASE_PARAMS, const SkBitmap* bitmap, const Rect& src) 242 , bitmap(bitmap 244 const SkBitmap* bitmap; member in struct:android::uirenderer::BitmapRectOp 298 const SkBitmap* bitmap; member in struct:android::uirenderer::PatchOp [all...] |
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 20 import android.graphics.Bitmap; 43 /* Maximum pixels size for created bitmap. */ 54 * {@link #extractThumbnail(Bitmap, int, int, int)} unless the output is the input. 80 * @return Bitmap, or null on failures 84 public static Bitmap createImageThumbnail(String filePath, int kind) { 93 Bitmap bitmap = null; local 98 bitmap = sizedThumbnailBitmap.mBitmap; 101 if (bitmap == null) { 119 options.inPreferredConfig = Bitmap.Config.ARGB_8888 154 Bitmap bitmap = null; local [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
ExifInterfaceTest.java | 22 import android.graphics.Bitmap; 202 Bitmap bitmap = BitmapFactory.decodeByteArray( local 204 if (bitmap == null) { 207 Log.v(TAG, fileName + " Thumbnail size: " + bitmap.getWidth() + ", " 208 + bitmap.getHeight()); 270 Bitmap thumbnailBitmap =
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
PdfManipulationService.java | 22 import android.graphics.Bitmap; 79 private Bitmap mBitmap; 160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); local 161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); 163 BitmapSerializeUtils.writeBitmapPixels(bitmap, destination); 168 // The error is propagated to the caller when it tries to read the bitmap and 188 private Bitmap getBitmapForSize(int width, int height) { 196 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) [all...] |
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
ActivityTestMain.java | 45 import android.graphics.Bitmap; 120 private void addThumbnail(LinearLayout container, Bitmap bm, 537 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon); local 539 desc.setIcon(bitmap); 541 int taskId = am.addAppTask(this, intent, desc, bitmap);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
ImageGoodnessFilter.java | 20 import android.graphics.Bitmap; 171 Bitmap bitmap = inputImage.toBitmap(); local 173 new AsyncOperation().execute(bitmap); 196 private class AsyncOperation extends AsyncTask<Bitmap, Void, String> { 197 private Bitmap b; 204 protected String doInBackground(Bitmap... params) {
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Bitmap_Delegate.java | 31 import android.graphics.Bitmap.Config; 49 * Delegate implementing the native methods of android.graphics.Bitmap 51 * Through the layoutlib_create tool, the original native methods of Bitmap have been replaced 56 * it and the original Bitmap class. 87 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object. 94 public static Bitmap_Delegate getDelegate(@Nullable Bitmap bitmap) { 96 return bitmap == null ? null : getDelegate(bitmap.refSkPixelRef()); 100 * Creates and returns a {@link Bitmap} initialized with the given file content 493 Bitmap_Delegate bitmap = sManager.getDelegate(nativeBitmap); local [all...] |
/frameworks/ex/framesequence/src/android/support/rastermill/ |
FrameSequenceDrawable.java | 19 import android.graphics.Bitmap; 71 * Called by FrameSequenceDrawable to aquire an 8888 Bitmap with minimum dimensions. 73 public abstract Bitmap acquireBitmap(int minWidth, int minHeight); 76 * Called by FrameSequenceDrawable to release a Bitmap it no longer needs. The Bitmap 81 public abstract void releaseBitmap(Bitmap bitmap); 86 public Bitmap acquireBitmap(int minWidth, int minHeight) { 87 return Bitmap.createBitmap(minWidth, minHeight, Bitmap.Config.ARGB_8888) 217 Bitmap bitmap = bitmapProvider.acquireBitmap(minWidth, minHeight); local [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
BasicBitmapDrawable.java | 16 package com.android.bitmap.drawable; 28 import com.android.bitmap.BitmapCache; 29 import com.android.bitmap.DecodeTask; 30 import com.android.bitmap.DecodeTask.DecodeCallback; 31 import com.android.bitmap.DecodeTask.DecodeOptions; 32 import com.android.bitmap.NamedThreadFactory; 33 import com.android.bitmap.RequestKey; 34 import com.android.bitmap.RequestKey.Cancelable; 35 import com.android.bitmap.RequestKey.FileDescriptorFactory; 36 import com.android.bitmap.ReusableBitmap [all...] |
StyledCornersBitmapDrawable.java | 17 package com.android.bitmap.drawable; 30 import com.android.bitmap.BitmapCache;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
StreamingTextView.java | 19 import android.graphics.Bitmap; 74 private Bitmap mOneDot; 75 private Bitmap mTwoDot; 98 private Bitmap getScaledBitmap(int resourceId, float scaled) { 99 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId); local 100 return Bitmap.createScaledBitmap(bitmap, (int) (bitmap.getWidth() * scaled), 101 (int) (bitmap.getHeight() * scaled), false) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
SuggestedMemberListAdapter.java | 21 import android.graphics.Bitmap; 150 Bitmap bitmap = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); local 151 icon.setImageBitmap(bitmap);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ShortcutIntentBuilder.java | 24 import android.graphics.Bitmap; 256 Bitmap bitmap = BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length, null); local 257 return new BitmapDrawable(mContext.getResources(), bitmap); 289 final Bitmap icon = generateQuickContactIcon(drawable); 309 Bitmap bitmap; local 314 bitmap = generatePhoneNumberIcon(drawable, phoneType, phoneLabel, 318 bitmap = generatePhoneNumberIcon(drawable, phoneType, phoneLabel, 326 intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, bitmap); 346 Bitmap bitmap = Bitmap.createBitmap(mIconSize, mIconSize, Bitmap.Config.ARGB_8888); local [all...] |