/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | RGBZ.java | 41 private Bitmap bitmap; field in class:RGBZ 61 bitmap = setAlphaChannel(preview, depthBitmap); 80 bitmap = setAlphaChannel(preview, depthBitmap); 89 bitmap = setAlphaChannel(preview, depthBitmap); 128 return bitmap; 154 return bitmap.getWidth(); 161 return bitmap.getHeight(); 183 public Bitmap setAlphaChannel(Bitmap bitmap, Bitmap depthBitmap) { argument 184 if (bitmap == null) { 185 return bitmap; [all...] |
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | PlaybackSeekAsyncDataProvider.java | 39 // mCache is for the bitmap requested by user 41 // mPrefetchCache is for the bitmap not requested by user but prefetched by heuristic 71 protected void onPostExecute(Bitmap bitmap) { argument 75 mCache.put(mIndex, bitmap); 76 mResultCallback.onThumbnailLoaded(bitmap, mIndex); 78 mPrefetchCache.put(mIndex, bitmap); 105 Bitmap bitmap = mCache.get(key); 106 if (bitmap != null) { 107 callback.onThumbnailLoaded(bitmap, index); 109 bitmap [all...] |
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/ |
H A D | VectorDrawableTest.java | 158 // Setup VectorDrawable from xml file and draw into the bitmap. 179 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int[] resIds, int index, int[] stateSet) argument 201 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
H A D | PlaybackSeekAsyncDataProvider.java | 39 // mCache is for the bitmap requested by user 41 // mPrefetchCache is for the bitmap not requested by user but prefetched by heuristic 71 protected void onPostExecute(Bitmap bitmap) { argument 75 mCache.put(mIndex, bitmap); 76 mResultCallback.onThumbnailLoaded(bitmap, mIndex); 78 mPrefetchCache.put(mIndex, bitmap); 105 Bitmap bitmap = mCache.get(key); 106 if (bitmap != null) { 107 callback.onThumbnailLoaded(bitmap, index); 109 bitmap [all...] |
/frameworks/av/media/libmedia/ |
H A D | IMediaMetadataRetriever.cpp | 273 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/core/java/android/os/ |
H A D | UserManagerInternal.java | 98 public abstract void setUserIcon(int userId, Bitmap bitmap); argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 164 // Recycle a bitmap if possible. 168 recycledBitmap = &bitmap::toBitmap(env, javaBitmap); 170 ALOGW("Warning: Reusing an immutable bitmap as an image decoder target."); 172 recycledBytes = bitmap::getBitmapAllocationByteCount(env, javaBitmap); 181 // We are required to match the color type of the recycled bitmap. 189 SkBitmap bitmap; local 190 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, 197 env->SetIntField(options, gOptions_widthFieldID, bitmap.width()); 198 env->SetIntField(options, gOptions_heightFieldID, bitmap.height()); 218 // If we may have reused a bitmap, w [all...] |
H A D | GraphicBuffer.cpp | 185 SkBitmap bitmap; local 186 bitmap.setInfo(SkImageInfo::Make(buffer->getWidth(), buffer->getHeight(), 193 bitmap.setPixels(bits); 195 bitmap.setPixels(NULL); 199 nativeCanvas->setBitmap(bitmap);
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfRenderer.cpp | 90 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(), local 93 if (isExceptionPending || bitmap == NULL) { 94 ALOGE("Error creating bitmap"); 133 FPDF_RenderPageBitmapWithMatrix(bitmap, page, &transform, &clip, renderFlags);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 20 * The NinePatch class permits drawing a bitmap in nine or more sections. 35 * Struct of inset information attached to a 9 patch bitmap. 37 * Present on a 9 patch bitmap if it optical insets were manually included, 93 * Create a drawable projection from a bitmap to nine patches. 95 * @param bitmap The bitmap describing the patches. 96 * @param chunk The 9-patch data chunk describing how the underlying bitmap 99 public NinePatch(Bitmap bitmap, byte[] chunk) { argument 100 this(bitmap, chunk, null); 104 * Create a drawable projection from a bitmap t 111 NinePatch(Bitmap bitmap, byte[] chunk, String srcName) argument 280 nativeGetTransparentRegion(Bitmap bitmap, long chunk, Rect location) argument [all...] |
H A D | Picture.java | 194 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(Bitmap* bitmap) { argument 185 return mCaches.textureCache.get(bitmap);
|
H A D | OpenGLReadback.cpp | 35 SkBitmap* bitmap) { 62 return copyGraphicBufferInto(sourceBuffer.get(), texTransform, srcRect, bitmap); 66 Matrix4& texTransform, const Rect& srcRect, SkBitmap* bitmap) { 93 srcRect, bitmap); 103 CopyResult OpenGLReadback::copyGraphicBufferInto(GraphicBuffer* graphicBuffer, SkBitmap* bitmap) { argument 108 return copyGraphicBufferInto(graphicBuffer, transform, srcRect, bitmap); 125 SkBitmap* bitmap) { 126 int destWidth = bitmap->width(); 127 int destHeight = bitmap->height(); 130 ALOGW("Can't copy surface into bitmap, 34 copySurfaceInto(Surface& surface, const Rect& srcRect, SkBitmap* bitmap) argument 65 copyGraphicBufferInto(GraphicBuffer* graphicBuffer, Matrix4& texTransform, const Rect& srcRect, SkBitmap* bitmap) argument 123 copyTextureInto(Caches& caches, RenderState& renderState, Texture& sourceTexture, const Matrix4& texTransform, const Rect& srcRect, SkBitmap* bitmap) argument 243 copyImageInto(EGLImageKHR eglImage, const Matrix4& imgTransform, int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) argument 270 copyLayerInto(renderthread::RenderThread& renderThread, GlLayer& layer, SkBitmap* bitmap) argument [all...] |
H A D | SkiaShader.cpp | 203 SkBitmap bitmap; local 205 if (!shader.isABitmap(&bitmap, nullptr, xy)) { 210 Bitmap* hwuiBitmap = static_cast<Bitmap*>(bitmap.pixelRef()); 278 // The shader is not a gradient. Check for a bitmap shader. 290 "failed storing bitmap shader data");
|
H A D | Texture.cpp | 171 // With OpenGL ES 2.0 we need to copy the bitmap in a temporary buffer 206 // intermediate Skia bitmap needs to be ARGB_8888 242 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", colorType); 247 SkBitmap Texture::uploadToN32(const SkBitmap& bitmap, bool hasLinearBlending, argument 250 rgbaBitmap.allocPixels(SkImageInfo::MakeN32(bitmap.width(), bitmap.height(), 251 bitmap.info().alphaType(), hasLinearBlending ? sRGB : nullptr)); 254 if (bitmap.colorType() == kRGBA_F16_SkColorType) { 256 bitmap.readPixels(rgbaBitmap.info() 261 canvas.drawBitmap(bitmap, 0. 277 upload(Bitmap& bitmap) argument [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaOpenGLPipeline.cpp | 125 bool SkiaOpenGLPipeline::copyLayerInto(DeferredLayerUpdater* deferredLayer, SkBitmap* bitmap) { argument 134 SkCanvas canvas(*bitmap);
|
H A D | SkiaRecordingCanvas.cpp | 130 SkBitmap bitmap; variable 131 hwuiBitmap.getSkBitmap(&bitmap); 133 canvas->drawBitmapRect(bitmap, mRoot->mutateProperties()->getBounds(), paint); 170 void SkiaRecordingCanvas::drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) { argument 172 bitmap.getSkBitmap(&skBitmap); 184 SkBitmap bitmap; local 185 hwuiBitmap.getSkBitmap(&bitmap); 188 sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(bitmap, kNever_SkCopyPixelsMode); 189 if (!bitmap.isImmutable()) { 199 SkBitmap bitmap; local 213 SkBitmap bitmap; local [all...] |
H A D | SkiaVulkanPipeline.cpp | 115 bool SkiaVulkanPipeline::copyLayerInto(DeferredLayerUpdater* layer, SkBitmap* bitmap) { argument
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | VectorDrawableTests.cpp | 403 SkBitmap bitmap; local 405 bitmap.setInfo(info); 406 bitmap.allocPixels(info); 407 SkCanvas canvas(bitmap);
|
/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" 210 jobject bitmap, 213 if (frame && bitmap) { 215 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); 219 AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESULT_SUCCESS); 227 jobject bitmap) { 229 if (frame && bitmap) { 231 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels)); 234 return (AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESULT_SUCCESS); 208 Java_android_filterfw_core_GLFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size) argument 225 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" 169 jobject bitmap, 173 if (frame && bitmap) { 174 // Make sure frame size matches bitmap size 181 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&src_ptr)); 211 return (AndroidBitmap_unlockPixels(env, bitmap) == ANDROID_BITMAP_RESULT_SUCCESS); 219 jobject bitmap, 223 if (frame && bitmap) { 225 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&dst_ptr)); 227 // Make sure frame size matches bitmap siz 167 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument 217 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument [all...] |