/frameworks/base/graphics/java/android/graphics/ |
H A D | Picture.java | 199 public void setBitmap(Bitmap bitmap) { argument
|
/frameworks/base/graphics/java/android/graphics/pdf/ |
H A D | PdfDocument.java | 256 public void setBitmap(Bitmap bitmap) { argument
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpRenderer.cpp | 184 Texture* BakedOpRenderer::getTexture(const SkBitmap* bitmap) { argument 185 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef()); 187 return mCaches.textureCache.get(bitmap);
|
H A D | DisplayListCanvas.h | 111 virtual void setBitmap(const SkBitmap& bitmap) override { 112 LOG_ALWAYS_FATAL("DisplayListCanvas is not backed by a bitmap."); 198 virtual void drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) override; 199 virtual void drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, 201 virtual void drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, 204 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, 206 virtual void drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& chunk, 231 void drawBitmap(const SkBitmap* bitmap, const SkPaint* paint); 319 inline const SkBitmap* refBitmap(const SkBitmap& bitmap) { argument 320 // Note that this assumes the bitmap i [all...] |
H A D | RecordingCanvas.h | 88 virtual void setBitmap(const SkBitmap& bitmap) override { 89 LOG_ALWAYS_FATAL("RecordingCanvas is not backed by a bitmap."); 179 virtual void drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) override; 180 virtual void drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, 182 virtual void drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, 185 virtual void drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, 187 virtual void drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& chunk, 207 void drawBitmap(const SkBitmap* bitmap, const SkPaint* paint); 289 inline const SkBitmap* refBitmap(const SkBitmap& bitmap) { argument 290 // Note that this assumes the bitmap i [all...] |
H A D | SkiaShader.cpp | 205 SkBitmap bitmap; local 207 if (!shader.isABitmap(&bitmap, nullptr, xy)) { 217 outData->bitmapTexture = caches.textureCache.getAndBypassAtlas(&bitmap); 274 // The shader is not a gradient. Check for a bitmap shader. 286 "failed storing bitmap shader data");
|
H A D | Texture.cpp | 144 // With OpenGL ES 2.0 we need to copy the bitmap in a temporary buffer 168 static void uploadSkBitmapToTexture(const SkBitmap& bitmap, argument 170 uploadToTexture(resize, format, type, bitmap.rowBytesAsPixels(), bitmap.bytesPerPixel(), 171 bitmap.width(), bitmap.height(), bitmap.getPixels()); 197 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", colorType); 202 void Texture::upload(const SkBitmap& bitmap) { argument 203 SkAutoLockPixels alp(bitmap); [all...] |
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.h | 137 SkBitmap bitmap; local 140 bitmap.setInfo(info); 141 bitmap.allocPixels(info); 142 return bitmap;
|
/frameworks/base/libs/hwui/utils/ |
H A D | NinePatchImpl.cpp | 34 static bool getColor(const SkBitmap& bitmap, int x, int y, SkColor* c) { argument 35 switch (bitmap.colorType()) { 37 *c = SkUnPreMultiply::PMColorToColor(*bitmap.getAddr32(x, y)); 40 *c = SkPixel16ToPixel32(*bitmap.getAddr16(x, y)); 44 SkPixel4444ToPixel32(*bitmap.getAddr16(x, y))); 47 SkColorTable* ctable = bitmap.getColorTable(); 49 (*ctable)[*bitmap.getAddr8(x, y)]); 65 const SkBitmap& bitmap, const SkPaint& paint, 74 if (!getColor(bitmap, src.fLeft, src.fTop, &c)) { 85 canvas->drawBitmapRect(bitmap, SkRec 64 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument 98 Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 33 * of a face in a bitmap. 127 * face found. The bitmap must be in 565 format (for now). 129 * @param bitmap the {@link android.graphics.Bitmap} graphic to be analyzed 139 public int findFaces(Bitmap bitmap, Face[] faces) argument 144 if (bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) { 146 "bitmap size doesn't match initialization"); 153 int numFaces = fft_detect(bitmap); 190 native private int fft_detect(Bitmap bitmap); argument
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | NativeFrame.java | 168 public void setBitmap(Bitmap bitmap) { argument 172 } else if (getFormat().getWidth() != bitmap.getWidth() || 173 getFormat().getHeight() != bitmap.getHeight()) { 176 Bitmap rgbaBitmap = convertBitmapToRGBA(bitmap); 180 throw new RuntimeException("Could not set native frame bitmap data!"); 196 throw new RuntimeException("Could not get bitmap data from native frame!"); 256 private native boolean setNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument 258 private native boolean getNativeBitmap(Bitmap bitmap, int size, int bytesPerSample); argument
|
H A D | SerializedFrame.java | 238 public void setBitmap(Bitmap bitmap) { argument 240 setGenericObjectValue(bitmap);
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 17 #include "android/bitmap.h" 218 jobject bitmap, 221 if (frame && bitmap) { 223 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); 227 AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESULT_SUCCESS); 235 jobject bitmap) { 237 if (frame && bitmap) { 239 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); 242 return (AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESULT_SUCCESS); 216 Java_android_filterfw_core_GLFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size) argument 233 Java_android_filterfw_core_GLFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap) argument
|
H A D | jni_native_frame.cpp | 17 #include "android/bitmap.h" 168 jobject bitmap, 172 if (frame && bitmap) { 173 // Make sure frame size matches bitmap size 180 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&src_ptr)); 210 return (AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESULT_SUCCESS); 218 jobject bitmap, 222 if (frame && bitmap) { 224 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&dst_ptr)); 226 // Make sure frame size matches bitmap siz 166 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument 216 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardUpdateMonitorCallback.java | 145 * @param bitmap 147 public void onSetBackground(Bitmap bitmap) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenWallpaper.java | 91 mCache = result.bitmap; 182 mCache = result.bitmap; 193 public final Bitmap bitmap; field in class:LockscreenWallpaper.LoaderResult 195 LoaderResult(boolean success, Bitmap bitmap) { argument 197 this.bitmap = bitmap;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | UploadedTexture.java | 124 Bitmap bitmap = sBorderLines.get(key); 125 if (bitmap == null) { 126 bitmap = vertical 129 sBorderLines.put(key.clone(), bitmap); 131 return bitmap; 166 protected abstract void onFreeBitmap(Bitmap bitmap); argument 193 Bitmap bitmap = getBitmap(); 194 int format = GLUtils.getInternalFormat(bitmap); 195 int type = GLUtils.getType(bitmap); 196 canvas.texSubImage2D(this, mBorder, mBorder, bitmap, forma [all...] |
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
H A D | SafeSaxTest.java | 529 public Bitmap bitmap; // cached bitmap of the thumbnail field in class:SafeSaxTest.YouTubeVideo
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | DecodeTask.java | 17 package com.android.bitmap; 28 import com.android.bitmap.RequestKey.FileDescriptorFactory; 29 import com.android.bitmap.util.BitmapUtils; 30 import com.android.bitmap.util.Exif; 31 import com.android.bitmap.util.RectUtils; 32 import com.android.bitmap.util.Trace; 43 * and allow bitmap reuse on Jellybean 4.1 and later. 143 Trace.beginSection("poll for reusable bitmap"); 187 // disable inBitmap-- bitmap reuse doesn't work with different decode regions due 260 Log.e(TAG, "decode thread wants a bitmap [all...] |
/frameworks/support/v4/java/android/support/v4/print/ |
H A D | PrintHelper.java | 106 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback); argument 146 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback) { argument 196 public void printBitmap(String jobName, Bitmap bitmap, argument 207 mPrintHelper.printBitmap(jobName, bitmap, delegateCallback); 353 * Prints a bitmap. 356 * @param bitmap The bitmap to print. 358 public void printBitmap(String jobName, Bitmap bitmap) { argument 359 mImpl.printBitmap(jobName, bitmap, null); 363 * Prints a bitmap 369 printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback) argument [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PointerIconCompat.java | 114 Object create(Bitmap bitmap, float hotSpotX, float hotSpotY); argument 125 public Object create(Bitmap bitmap, float hotSpotX, float hotSpotY) { argument 142 public Object create(Bitmap bitmap, float hotSpotX, float hotSpotY) { argument 143 return PointerIconCompatApi24.create(bitmap, hotSpotX, hotSpotY); 176 * Creates a custom pointer from the given bitmap and hotspot information. 178 * @param bitmap The bitmap for the icon. 179 * @param hotSpotX The X offset of the pointer icon hotspot in the bitmap. 180 * Must be within the [0, bitmap.getWidth()) range. 181 * @param hotSpotY The Y offset of the pointer icon hotspot in the bitmap 188 create(Bitmap bitmap, float hotSpotX, float hotSpotY) argument [all...] |
/frameworks/support/v4/kitkat/android/support/v4/print/ |
H A D | PrintHelperKitkat.java | 186 * Check if the supplied bitmap should best be printed on a portrait orientation paper. 188 * @param bitmap The bitmap to be printed. 191 private static boolean isPortrait(Bitmap bitmap) { argument 192 if (bitmap.getWidth() <= bitmap.getHeight()) { 220 * Prints a bitmap. 223 * @param bitmap The bitmap to print. 226 public void printBitmap(final String jobName, final Bitmap bitmap, argument 321 writeBitmap(PrintAttributes attributes, int fittingMode, Bitmap bitmap, ParcelFileDescriptor fileDescriptor, PrintDocumentAdapter.WriteResultCallback writeResultCallback) argument [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | OverlayListView.java | 86 BitmapDrawable bitmap = object.getBitmapDrawable(); 87 if (bitmap != null) { 88 bitmap.draw(canvas); 115 public OverlayObject(BitmapDrawable bitmap, Rect startRect) { argument 116 mBitmap = bitmap; 126 * Returns the bitmap that this object represents.
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | ImageLoader.java | 76 public void putBitmap(String url, Bitmap bitmap); argument 136 * as the bitmap (if it is loaded). 175 * The ImageContainer will contain either the specified default bitmap or the loaded bitmap. 195 * Issues a bitmap request with the given URL if that image is not available 196 * in the cache, and returns a bitmap container that contains all of the data 218 // Return the cached bitmap. 224 // The bitmap did not exist in the cache, fetch it! 228 // Update the caller to let them know that they should use the default bitmap. 277 * @param response The bitmap tha 337 ImageContainer(Bitmap bitmap, String requestUrl, String cacheKey, ImageListener listener) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | DisplayListCanvas.java | 94 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.");
|