Searched defs:bitmap (Results 51 - 75 of 171) sorted by relevance

1234567

/frameworks/base/core/java/android/view/
H A DHardwareLayer.java88 * Copies this layer into the specified bitmap.
90 * @param bitmap The bitmap to copy they layer into
94 public boolean copyInto(Bitmap bitmap) { argument
95 return mRenderer.copyLayerInto(this, bitmap);
/frameworks/base/core/jni/
H A Dandroid_view_PointerIcon.h71 SkBitmap bitmap; member in struct:android::PointerIcon
83 bitmap.reset();
95 /* Loads the bitmap associated with a pointer icon.
105 /* Loads the bitmap associated with a pointer icon by style.
H A Dandroid_view_TextureView.cpp157 SkBitmap bitmap; local
158 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
161 bitmap.setPixels(buffer.bits);
163 bitmap.setPixels(NULL);
167 nativeCanvas->setBitmap(bitmap);
H A Dandroid_view_GraphicBuffer.cpp182 SkBitmap bitmap; local
183 bitmap.setInfo(SkImageInfo::Make(buffer->getWidth(), buffer->getHeight(),
189 bitmap.setPixels(bits);
191 bitmap.setPixels(NULL);
195 nativeCanvas->setBitmap(bitmap);
/frameworks/base/libs/hwui/
H A DTextureCache.cpp100 bool TextureCache::canMakeTextureFromBitmap(const SkBitmap* bitmap) { argument
101 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) {
103 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize);
111 Texture* TextureCache::getCachedTexture(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) { argument
113 AssetAtlas::Entry* entry = mAssetAtlas->getEntry(bitmap->pixelRef());
119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID());
122 if (!canMakeTextureFromBitmap(bitmap)) {
126 const uint32_t size = bitmap
162 prefetchAndMarkInUse(void* ownerToken, const SkBitmap* bitmap) argument
170 get(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaMetadataEditor.java250 * @param key the identifier of the bitmap to set. The only valid value is
252 * @param bitmap The bitmap for the artwork, or null if there isn't any.
258 public synchronized MediaMetadataEditor putBitmap(int key, Bitmap bitmap) argument
267 mEditorArtwork = bitmap;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrame.java121 public void setBitmap(Bitmap bitmap) { argument
123 setGenericObjectValue(bitmap);
H A DVertexFrame.java104 public void setBitmap(Bitmap bitmap) { argument
105 throw new RuntimeException("Unsupported: Cannot set vertex frame bitmap value!");
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DUserAvatarView.java89 public void setBitmap(Bitmap bitmap) { argument
90 setAvatar(bitmap);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java43 * bitmap.
51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
116 Bitmap bitmap, float scale, boolean recycle) {
117 int width = Math.round(bitmap.getWidth() * scale);
118 int height = Math.round(bitmap.getHeight() * scale);
119 if (width == bitmap.getWidth()
120 && height == bitmap.getHeight()) return bitmap;
121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap));
125 canvas.drawBitmap(bitmap,
115 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument
130 getConfig(Bitmap bitmap) argument
138 resizeDownBySideLength( Bitmap bitmap, int maxLength, boolean recycle) argument
148 resizeAndCropCenter(Bitmap bitmap, int size, boolean recycle) argument
169 recycleSilently(Bitmap bitmap) argument
237 compressToBytes(Bitmap bitmap) argument
241 compressToBytes(Bitmap bitmap, int quality) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_AssetAtlasService.cpp67 SkBitmap bitmap; local
68 GraphicsJNI::getSkBitmap(env, bitmapHandle, &bitmap);
69 SkAutoLockPixels alp(bitmap);
71 // The goal of this method is to copy the bitmap into the GraphicBuffer
160 // Upload the content of the bitmap in the GraphicBuffer
161 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap.bytesPerPixel());
162 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bitmap.width(), bitmap.height(),
163 GL_RGBA, GL_UNSIGNED_BYTE, bitmap.getPixels());
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGLToolbox.java107 public static void setTexturePixels(int texId, int target, Bitmap bitmap) { argument
109 GLUtils.texImage2D(target, 0, bitmap, 0);
H A DTextureSource.java75 public void allocateWithBitmapPixels(Bitmap bitmap) { argument
77 GLToolbox.setTexturePixels(mTexId, mTarget, bitmap);
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java89 addLabelToRoot(root, "Prescaled bitmap in drawable");
96 addLabelToRoot(root, "Autoscaled bitmap in drawable");
118 addLabelToRoot(root, "Prescaled bitmap");
125 addLabelToRoot(root, "Autoscaled bitmap");
165 Bitmap bitmap;
166 bitmap = loadAndPrintDpi(resource, scale);
170 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
191 Bitmap bitmap;
192 bitmap = loadAndPrintDpi(resource, scale);
194 ScaledBitmapView view = new ScaledBitmapView(this, bitmap);
229 ScaledBitmapView(Context context, Bitmap bitmap) argument
[all...]
/frameworks/ex/framesequence/jni/
H A DFrameSequenceJNI.cpp17 #include <android/bitmap.h>
113 jobject bitmap, jint previousFrameNr) {
119 if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) {
126 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) {
136 AndroidBitmap_unlockPixels(env, bitmap);
111 nativeGetFrame( JNIEnv* env, jobject clazz, jlong frameSequenceStateLong, jint frameNr, jobject bitmap, jint previousFrameNr) argument
/frameworks/minikin/sample/
H A Dexample_skia.cpp131 SkBitmap bitmap; local
132 bitmap.allocN32Pixels(width, height);
133 SkCanvas canvas(bitmap);
144 SkImageEncoder::EncodeFile("/data/local/tmp/foo.png", bitmap, SkImageEncoder::kPNG_Type, 100);
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DTileDrawable.java17 package com.android.bitmap.drawable;
27 import com.android.bitmap.drawable.ExtendedBitmapDrawable.ExtendedOptions;
/frameworks/opt/bitmap/src/com/android/bitmap/view/
H A DBitmapDrawableImageView.java17 package com.android.bitmap.view;
27 import com.android.bitmap.drawable.BasicBitmapDrawable;
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
H A DRGBZ.java27 private Bitmap bitmap; field in class:RGBZ
46 this.bitmap = setAlphaChannel(preview, this.depthBitmap);
61 return bitmap;
87 return bitmap.getWidth();
94 return bitmap.getHeight();
116 public Bitmap setAlphaChannel(Bitmap bitmap, Bitmap depthBitmap) { argument
117 if (bitmap == null) {
118 return bitmap;
120 Bitmap result = bitmap.copy(Bitmap.Config.ARGB_8888, true);
121 // set the alpha channel of depthBitmap to alpha of bitmap
[all...]
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
H A DAnimatedVectorDrawableTest.java82 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int resId) throws IOException { argument
102 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
190 final Bitmap bitmap = Bitmap.createBitmap(imageButton.getWidth(), imageButton.getHeight(),
192 final Canvas c = new Canvas(bitmap);
209 verifyRedOnly(pixelX, pixelY, imageButton, bitmap, c, latch);
211 verifyRedOnly(1, 1, imageButton, bitmap, c, latch);
220 final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) throws Throwable {
225 int pixel = bitmap.getPixel(pixelX, pixelY);
219 verifyRedOnly(final int pixelX, final int pixelY, final View button, final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) argument
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
H A DVectorDrawableTest.java142 // Setup VectorDrawable from xml file and draw into the bitmap.
163 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int[] resIds, int index, int[] stateSet) argument
185 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
/frameworks/av/media/libmedia/
H A DIMediaMetadataRetriever.cpp273 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/jni/android/graphics/
H A DBitmapRegionDecoder.cpp151 // Recycle a bitmap if possible.
157 ALOGW("Warning: Reusing an immutable bitmap as an image decoder target.");
168 // We are required to match the color type of the recycled bitmap.
178 SkBitmap bitmap; local
179 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, colorType, requireUnpremul)) {
185 env->SetIntField(options, gOptions_widthFieldID, bitmap.width());
186 env->SetIntField(options, gOptions_heightFieldID, bitmap.height());
194 // If we may have reused a bitmap, we need to indicate that the pixels have changed.
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfRenderer.cpp161 static void renderPageBitmap(FPDF_BITMAP bitmap, FPDF_PAGE page, int destLeft, int destTop, argument
178 fxgeDevice->Attach((CFX_DIBitmap*) bitmap, 0, TRUE);
258 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(), local
261 if (!bitmap) {
262 ALOGE("Erorr creating bitmap");
279 renderPageBitmap(bitmap, page, destLeft, destTop, destRight,
/frameworks/base/graphics/java/android/graphics/
H A DNinePatch.java20 * 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...]

Completed in 496 milliseconds

1234567