HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 176 - 200 of 864) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
IconUtilities.java 20 import android.graphics.Bitmap;
36 public static Bitmap getFXBitmap(Resources res, int id) {
37 Bitmap ret;
47 public static Bitmap loadBitmap(Resources res, int resource) {
50 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
51 Bitmap bitmap = BitmapFactory.decodeResource( local
55 return bitmap;
58 public static Bitmap applyFX(Bitmap bitmap, final Bitmap fxBitmap)
    [all...]
ImageFilterDownsample.java 19 import android.graphics.Bitmap;
53 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) {
55 return bitmap;
57 int w = bitmap.getWidth();
58 int h = bitmap.getHeight();
67 // scale preview to same size as the resulting bitmap from a "save"
73 return bitmap;
75 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
WidgetUtils.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
47 public static Bitmap createWidgetBitmap(MediaItem image) {
48 Bitmap bitmap = image.requestImage(MediaItem.TYPE_THUMBNAIL) local
50 if (bitmap == null) {
54 return createWidgetBitmap(bitmap, image.getRotation());
57 public static Bitmap createWidgetBitmap(Bitmap bitmap, int rotation)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
NetworkUriImageRequest.java 19 import android.graphics.Bitmap;
83 public Bitmap loadBitmapInternal() throws IOException {
87 Bitmap bitmap = null; local
95 bitmap = BitmapFactory.decodeStream(connection.getInputStream());
118 return bitmap;
DecodedImageResource.java 19 import android.graphics.Bitmap;
33 * Container class for holding a bitmap resource used by the MediaResourceManager. This resource
40 private Bitmap mBitmap;
44 public DecodedImageResource(final String key, final Bitmap bitmap, int orientation) {
46 mBitmap = bitmap;
51 * Gets the contained bitmap.
54 public Bitmap getBitmap() {
64 * Attempt to reuse the bitmap in the image resource and repurpose it for something else.
65 * After this, the image resource will relinquish ownership on the bitmap resource so tha
192 Bitmap bitmap = getBitmap(); local
    [all...]
  /packages/apps/Settings/src/com/android/settings/
CreateShortcut.java 25 import android.graphics.Bitmap;
26 import android.graphics.Bitmap.Config;
68 private Bitmap createIcon(int resource) {
75 Bitmap bitmap = Bitmap.createBitmap(view.getMeasuredWidth(), view.getMeasuredHeight(), local
77 Canvas canvas = new Canvas(bitmap);
80 return bitmap;
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
ContactRequest.java 16 package com.android.mail.bitmap;
20 import com.android.bitmap.RequestKey;
21 import com.android.mail.bitmap.ContactResolver.ContactDrawableInterface;
ContactResolver.java 18 package com.android.mail.bitmap;
25 import com.android.bitmap.BitmapCache;
26 import com.android.bitmap.DecodeTask;
27 import com.android.bitmap.RequestKey;
28 import com.android.bitmap.ReusableBitmap;
32 import com.android.mail.bitmap.ContactRequest.ContactRequestHolder;
258 final ReusableBitmap bitmap = values[0].bitmap; local
261 if (bitmap == null && mCache != null) {
266 request.destination.onDecodeComplete(request.contactRequest, bitmap);
282 public final ReusableBitmap bitmap; field in class:ContactResolver.Result
    [all...]
  /packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/
DemoMediaRenderer.java 19 import android.graphics.Bitmap;
57 Bitmap bitmap = getMetadataBitmap(metadata); local
59 mView.setMediaData(artist, album, track, bitmap);
67 private Bitmap getMetadataBitmap(MediaMetadata metadata) {
68 // Get the best art bitmap we can find
70 Bitmap bitmap = metadata.getBitmap(PREFERRED_BITMAP_ORDER[i]); local
71 if (bitmap != null) {
72 return bitmap;
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
GLArrowSensorTestRenderer.java 22 import android.graphics.Bitmap;
138 Bitmap bitmap; local
140 bitmap = BitmapFactory.decodeStream(is);
149 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
150 bitmap.recycle();
  /cts/tests/tests/graphics2/src/android/graphics2/cts/
TextureViewCameraActivity.java 21 import android.graphics.Bitmap;
95 Bitmap bitmap = mTextureView.getBitmap(); local
96 Assert.assertEquals(mHeight, bitmap.getHeight());
97 Assert.assertEquals(mWidth, bitmap.getWidth());
98 bitmap.recycle();
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
StaticTriangleRenderer.java 32 import android.graphics.Bitmap;
191 Bitmap bitmap; local
193 bitmap = BitmapFactory.decodeStream(is);
202 GLUtils.texImage2D(GL_TEXTURE_2D, 0, bitmap, 0);
203 bitmap.recycle();
TriangleRenderer.java 30 import android.graphics.Bitmap;
93 Bitmap bitmap; local
95 bitmap = BitmapFactory.decodeStream(is);
104 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
105 bitmap.recycle();
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
GlideBitmapDrawable.java 1 package com.bumptech.glide.load.resource.bitmap;
4 import android.graphics.Bitmap;
27 public GlideBitmapDrawable(Resources res, Bitmap bitmap) {
28 this(res, new BitmapState(bitmap));
45 width = state.bitmap.getScaledWidth(targetDensity);
46 height = state.bitmap.getScaledHeight(targetDensity);
101 canvas.drawBitmap(state.bitmap, null, destRect, state.paint);
121 Bitmap bm = state.bitmap;
144 final Bitmap bitmap; field in class:GlideBitmapDrawable.BitmapState
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
SpriteComponent.java 108 // Fire and forget. Allocate a new bitmap for this animation frame, set it up, and
110 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local
111 bitmap.setWidth(mWidth);
112 bitmap.setHeight(mHeight);
113 bitmap.setOpacity(mOpacity);
114 updateFlip(bitmap, parentObject.facingDirection.x < 0.0f,
116 bitmap.setTexture(currentFrame.texture);
117 render.setDrawable(bitmap);
182 protected final void updateFlip(DrawableBitmap bitmap, boolean horzFlip, boolean vertFlip) {
183 bitmap.setFlip(horzFlip, vertFlip)
    [all...]
TextureLibrary.java 27 import android.graphics.Bitmap;
58 sBitmapOptions.inPreferredConfig = Bitmap.Config.RGB_565;
126 /** Loads a bitmap into OpenGL and sets up the common parameters for 2D texture maps. */
161 Bitmap bitmap; local
163 bitmap = BitmapFactory.decodeStream(is);
173 GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
183 mCropWorkspace[1] = bitmap.getHeight();
184 mCropWorkspace[2] = bitmap.getWidth();
185 mCropWorkspace[3] = -bitmap.getHeight()
    [all...]
  /external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
ViESurfaceRenderer.java 21 import android.graphics.Bitmap;
34 // the bitmap used for drawing.
35 private Bitmap bitmap = null; field in class:ViESurfaceRenderer
38 // Rect of the source bitmap to draw
104 bitmap = null;
108 public Bitmap CreateBitmap(int width, int height) {
110 if (bitmap == null) {
118 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565)
    [all...]
  /frameworks/opt/bitmap/src/com/android/bitmap/drawable/
CircularBitmapDrawable.java 17 package com.android.bitmap.drawable;
20 import android.graphics.Bitmap;
32 import com.android.bitmap.BitmapCache;
46 private Bitmap mShaderBitmap;
105 Bitmap bitmap = placeholder.getBitmap(); local
107 mRect.set(0, 0, bitmap.getWidth(), bitmap.getHeight());
108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha);
119 * Call this method with a given bitmap to draw it onto the given canvas, masked by a circula
    [all...]
  /frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
ImageCompare.java 4 import android.graphics.Bitmap;
18 Bitmap bitmap = BitmapFactory.decodeFile(file_path); local
20 bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);
39 private static byte[] loadBitmapByteArray(Bitmap bitmap) {
40 int bytes = bitmap.getByteCount();
42 bitmap.copyPixelsToBuffer(buffer);
52 public static void compareBitmap(Bitmap bitmap1, Bitmap bitmap2, CompareValue result)
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
PhotoAppWidgetProvider.java 29 import android.graphics.Bitmap;
77 Bitmap bitmap = helper.getPhoto(appWidgetId); local
78 if (bitmap != null) {
81 views.setImageViewBitmap(R.id.photo, bitmap);
120 * Store the given bitmap in this database for the given appWidgetId.
122 public boolean setPhoto(int appWidgetId, Bitmap bitmap) {
128 int size = bitmap.getWidth() * bitmap.getHeight() * 4
166 Bitmap bitmap = null; local
    [all...]
ImageViewTouchBase.java 20 import android.graphics.Bitmap;
57 // The current bitmap being displayed.
64 // ImageViewTouchBase will pass a Bitmap to the Recycler if it has finished
65 // its use of that Bitmap.
67 public void recycle(Bitmap b);
120 public void setImageBitmap(Bitmap bitmap) {
121 setImageBitmap(bitmap, 0);
124 private void setImageBitmap(Bitmap bitmap, int rotation)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
HistogramView.java 20 import android.graphics.Bitmap;
33 private Bitmap mBitmap;
40 class ComputeHistogramTask extends AsyncTask<Bitmap, Void, int[]> {
42 protected int[] doInBackground(Bitmap... params) {
44 Bitmap bitmap = params[0]; local
45 int w = bitmap.getWidth();
46 int h = bitmap.getHeight();
48 bitmap.getPixels(pixels, 0, w, 0, 0, w, h);
76 public void setBitmap(Bitmap bitmap)
    [all...]
  /packages/apps/Gallery2/src/com/android/photos/
BitmapRegionTileSource.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.Config;
78 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;
83 // Although this is the same size as the Bitmap that is likely already
85 // thread. Thus to simplify, this source will decode its own bitmap.
86 Bitmap preview = decodePreview(path, previewSize);
125 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) {
134 if (bitmap == null)
164 Bitmap bitmap = mDecoder.decodeRegion(mOverlapRegion, mOptions); local
    [all...]
  /packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/
LogoUtilsTest.java 20 import android.graphics.Bitmap;
43 Bitmap bitmap = createSampleBitmap(20, 30); local
44 File tempFile = writeBitmapToTempFile(bitmap);
46 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 10, 15);
47 // It should have been able to get only the half bitmap.
57 Bitmap bitmap = createSampleBitmap(8, 32); local
58 File tempFile = writeBitmapToTempFile(bitmap);
60 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 8, 8)
71 Bitmap bitmap = createSampleBitmap(16, 32); local
80 Bitmap bitmap = createSampleBitmap(16, 32); local
90 Bitmap bitmap = createSampleBitmap(15, 15); local
98 Bitmap bitmap = createSampleBitmap(7, 5); local
129 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
150 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
NinePatchTexture.java 20 import android.graphics.Bitmap;
47 protected Bitmap onGetBitmap() {
51 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
52 Bitmap bitmap = BitmapFactory.decodeResource( local
54 mBitmap = bitmap;
55 setSize(bitmap.getWidth(), bitmap.getHeight());
56 byte[] chunkData = bitmap.getNinePatchChunk();
59 : NinePatchChunk.deserialize(bitmap.getNinePatchChunk())
    [all...]

Completed in 477 milliseconds

1 2 3 4 5 6 78 91011>>