HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 526 - 550 of 1029) sorted by null

<<21222324252627282930>>

  /frameworks/opt/bitmap/src/com/android/bitmap/
UnrefedPooledCache.java 17 package com.android.bitmap;
22 import com.android.bitmap.util.Trace;
  /frameworks/opt/bitmap/src/com/android/bitmap/drawable/
TileDrawable.java 17 package com.android.bitmap.drawable;
27 import com.android.bitmap.drawable.ExtendedBitmapDrawable.ExtendedOptions;
  /frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DepthImage.java 20 import android.graphics.Bitmap;
33 private final Bitmap mDepthBitmap;
42 Bitmap depthBitmap, double blurAtInfinity,
74 Bitmap bitmap = BitmapFactory.decodeStream(context.getContentResolver().openInputStream(uriDepthmap)); local
75 if (bitmap == null) {
85 bitmap, // depthmap
151 Bitmap bitmap = Bitmap.createBitmap(intPixels, width, height, Bitmap.Config.ARGB_8888) local
    [all...]
RGBZ.java 21 import android.graphics.Bitmap;
41 private Bitmap bitmap; field in class:RGBZ
42 private Bitmap preview;
43 private Bitmap depthBitmap;
61 bitmap = setAlphaChannel(preview, depthBitmap);
80 bitmap = setAlphaChannel(preview, depthBitmap);
85 public RGBZ(Bitmap image, DepthImage depthImage) {
89 bitmap = setAlphaChannel(preview, depthBitmap);
96 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage))
    [all...]
  /frameworks/support/compat/src/main/java/androidx/core/app/
SharedElementCallback.java 19 import android.graphics.Bitmap;
45 private static final String BUNDLE_SNAPSHOT_BITMAP = "sharedElement:snapshot:bitmap";
173 Bitmap bitmap = createDrawableBitmap(d); local
174 if (bitmap != null) {
176 bundle.putParcelable(BUNDLE_SNAPSHOT_BITMAP, bitmap);
191 Bitmap bitmap = null; local
202 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888)
226 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); local
260 Bitmap bitmap = (Bitmap) bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP); local
276 Bitmap bitmap = (Bitmap) snapshot; local
    [all...]
  /frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
BackgroundManagerTest.java 24 import android.graphics.Bitmap;
89 void setBitmapAndVerify(final BackgroundManager manager, final Bitmap bitmap)
94 manager.setBitmap(bitmap);
98 assertIsBitmapDrawable(manager, bitmap);
188 void assertIsBitmapDrawable(BackgroundManager manager, Bitmap bitmap) {
194 .mState.mBitmap, bitmap);
196 .mState.mBitmap, bitmap);
208 Bitmap createBitmap(int width, int height, int color)
209 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
218 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
420 final Bitmap bitmap = createBitmap(200, 100, Color.BLUE); local
443 final Bitmap bitmap = createBitmap(200, 100, Color.BLUE); local
513 final Bitmap bitmap = createBitmap(200, 100, Color.BLUE); local
561 final Bitmap bitmap = createBitmap(200, 100, Color.BLUE); local
614 final Bitmap bitmap = createBitmap(200, 100, Color.BLUE); local
662 final Bitmap bitmap = createBitmap(200, 100, Color.BLUE); local
    [all...]
DetailsFragmentTest.java 29 import android.graphics.Bitmap;
113 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(), local
115 ((FitWidthBitmapDrawable) mParallaxDrawable.getCoverDrawable()).setBitmap(bitmap);
246 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(), local
248 mDetailsBackground.setCoverBitmap(bitmap);
548 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
550 mDetailsBackground.setCoverBitmap(bitmap);
    [all...]
DetailsSupportFragmentTest.java 25 import android.graphics.Bitmap;
110 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(), local
112 ((FitWidthBitmapDrawable) mParallaxDrawable.getCoverDrawable()).setBitmap(bitmap);
243 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(), local
245 mDetailsBackground.setCoverBitmap(bitmap);
545 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
547 mDetailsBackground.setCoverBitmap(bitmap);
    [all...]
  /frameworks/support/leanback/src/main/java/androidx/leanback/graphics/
FitWidthBitmapDrawable.java 18 import android.graphics.Bitmap;
33 * Subclass of {@link Drawable} that can be used to draw a bitmap into a region. Bitmap
36 * position of the bitmap can be controlled by {@link #setVerticalOffset(int)} call or
43 Bitmap mBitmap;
99 * Sets the bitmap.
101 public void setBitmap(Bitmap bitmap) {
102 mBitmapState.mBitmap = bitmap;
103 if (bitmap != null)
193 final Bitmap bitmap = mBitmapState.mBitmap; local
    [all...]
  /frameworks/support/leanback/src/main/java/androidx/leanback/media/
MediaControllerAdapter.java 28 import android.graphics.Bitmap;
249 Bitmap bitmap = mController.getMetadata().getDescription().getIconBitmap(); local
250 return bitmap == null ? null : new BitmapDrawable(context.getResources(), bitmap);
  /frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
OverlayListView.java 86 BitmapDrawable bitmap = object.getBitmapDrawable(); local
87 if (bitmap != null) {
88 bitmap.draw(canvas);
115 public OverlayObject(BitmapDrawable bitmap, Rect startRect) {
116 mBitmap = bitmap;
126 * Returns the bitmap that this object represents.
  /frameworks/support/preference/src/main/java/androidx/preference/
PreferenceDialogFragment.java 27 import android.graphics.Bitmap;
101 final Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), local
102 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
103 final Canvas canvas = new Canvas(bitmap);
106 mDialogIcon = new BitmapDrawable(getResources(), bitmap);
114 final Bitmap bitmap = savedInstanceState.getParcelable(SAVE_STATE_ICON); local
115 if (bitmap != null)
    [all...]
PreferenceDialogFragmentCompat.java 24 import android.graphics.Bitmap;
101 final Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), local
102 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
103 final Canvas canvas = new Canvas(bitmap);
106 mDialogIcon = new BitmapDrawable(getResources(), bitmap);
114 final Bitmap bitmap = savedInstanceState.getParcelable(SAVE_STATE_ICON); local
115 if (bitmap != null)
    [all...]
  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
AlbumArtCache.java 19 import android.graphics.Bitmap;
50 private final LruCache<String, Bitmap[]> mCache;
63 mCache = new LruCache<String, Bitmap[]>(maxSize) {
65 protected int sizeOf(String key, Bitmap[] value) {
72 public Bitmap getBigImage(String artUrl) {
73 Bitmap[] result = mCache.get(artUrl);
77 public Bitmap getIconImage(String artUrl) {
78 Bitmap[] result = mCache.get(artUrl);
85 // requests and bitmap rescales. For production-level apps, we recommend you use
87 Bitmap[] bitmap = mCache.get(artUrl) local
100 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local
    [all...]
  /frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
PlaybackSeekAsyncDataProvider.java 19 import android.graphics.Bitmap;
40 // mCache is for the bitmap requested by user
41 final LruCache<Integer, Bitmap> mCache;
42 // mPrefetchCache is for the bitmap not requested by user but prefetched by heuristic
45 final LruCache<Integer, Bitmap> mPrefetchCache;
53 protected abstract Bitmap doInBackground(Object task, int index, long position);
55 class LoadBitmapTask extends AsyncTask<Object, Object, Bitmap> {
66 protected Bitmap doInBackground(Object[] params) {
72 protected void onPostExecute(Bitmap bitmap) {
106 Bitmap bitmap = mCache.get(key); local
    [all...]
  /frameworks/support/transition/src/main/java/androidx/transition/
TransitionUtils.java 22 import android.graphics.Bitmap;
43 * Creates a View using the bitmap copy of <code>view</code>. If <code>view</code> is large,
44 * the copy will use a scaled bitmap of the given view.
64 Bitmap bitmap = createViewBitmap(view, matrix, bounds, sceneRoot); local
65 if (bitmap != null) {
66 copy.setImageBitmap(bitmap);
76 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local
77 * coordinates. <code>matrix</code> will be modified during the bitmap creation.
79 * <p>If the bitmap is large, it will be scaled uniformly down to at most 1MB size.</p
110 Bitmap bitmap = null; local
    [all...]
  /frameworks/support/wear/src/main/java/androidx/wear/widget/
RoundedDrawable.java 20 import android.graphics.Bitmap;
280 Bitmap bitmap = drawableToBitmap(mDrawable, bounds.width(), bounds.height()); local
282 Shader shader = new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);
287 /** Converts a drawable to a bitmap of specified width and height. */
288 private Bitmap drawableToBitmap(Drawable drawable, int width, int height) {
289 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) local
    [all...]
  /frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/imageprocessing/
ImageProcessingWorker.java 19 import android.graphics.Bitmap;
56 Bitmap image = retrieveImage(uriString);
84 private Bitmap retrieveImage(String uriString) {
91 options.inMutable = true; // Allow editing of bitmap
108 private void invertColors(Bitmap bitmap) {
109 int w = bitmap.getWidth();
110 int h = bitmap.getHeight();
113 int color = bitmap.getPixel(x, y);
115 bitmap.setPixel(x, y, reversedColor)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/data/
PhotoItem.java 21 import android.graphics.Bitmap;
66 private Optional<Bitmap> mSessionPlaceholderBitmap = Optional.absent();
75 * A bitmap that if present, is a high resolution bitmap from a temporary
79 * @param sessionPlaceholderBitmap a Bitmap to set as a placeholder
81 public void setSessionPlaceholderBitmap(Optional<Bitmap> sessionPlaceholderBitmap) {
202 Log.v(TAG, "using session bitmap as placeholder");
207 // If we do not have a placeholder bitmap, render a thumbnail with
220 public Optional<Bitmap> generateThumbnail(int boundingWidthPx, int boundingHeightPx) {
222 final Bitmap bitmap local
    [all...]
  /packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
BitmapDownloader.java 20 import android.graphics.Bitmap;
45 // 1/4 of max memory is used for bitmap mem cache
48 // hard limit for bitmap mem cache in MB
52 * bitmap cache item structure saved in LruCache
56 * cached bitmap
58 Bitmap mBitmap;
60 * indicate if the bitmap is scaled down from original source (never scale up)
64 public BitmapItem(Bitmap bitmap, boolean scaled) {
65 mBitmap = bitmap;
127 Bitmap bitmap = null; local
157 Bitmap bitmap = null; local
190 final Bitmap bitmap = hasAccountImageUri ? null : getBitmapFromMemCache(options); local
287 Bitmap bitmap = bitmapItem.mBitmap; local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
PhotoEditorView.java 20 import android.graphics.Bitmap;
120 * Tries to bind a full size photo or a bitmap loaded from the given ValuesDelta,
135 // Use the bitmap image from the values delta
136 final Bitmap bitmap = EditorUiUtils.getPhotoBitmap(valuesDelta); local
137 if (bitmap != null) {
138 setPhoto(bitmap);
177 * Binds the given bitmap.
179 private void setPhoto(Bitmap bitmap) {
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
BitmapUtil.java 19 import android.graphics.Bitmap;
79 * Decodes the bitmap with the given sample size
81 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) {
104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId);
105 Bitmap rotated = Bitmap.createBitmap(
106 original.getWidth(), original.getHeight(), Bitmap.Config.ARGB_8888);
117 * Given an input bitmap, scales it to the given width/height and makes it round.
119 * @param input {@link Bitmap} to scale and crop
122 * @return output bitmap scaled to the target width/height and cropped to an oval. Th
173 final Bitmap bitmap = local
    [all...]
ContactPhotoUtils.java 23 import android.graphics.Bitmap;
93 * Given a uri pointing to a bitmap, reads it into a bitmap and returns it.
96 public static Bitmap getBitmapFromUri(Context context, Uri uri) throws FileNotFoundException {
106 * Creates a byte[] containing the PNG-compressed bitmap, or null if
109 public static byte[] compressBitmap(Bitmap bitmap) {
110 final int size = bitmap.getWidth() * bitmap.getHeight() * 4;
113 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out)
    [all...]
  /packages/apps/Gallery/tests/src/com/android/camera/
BitmapManagerUnitTests.java 23 import android.graphics.Bitmap;
36 Bitmap bitmap; field in class:BitmapManagerUnitTests.DecodeThread
43 bitmap = mImage.thumbBitmap(IImage.ROTATE_AS_NEEDED);
46 public Bitmap getBitmap() {
47 return bitmap;
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
SlideshowDataAdapter.java 19 import android.graphics.Bitmap;
130 Bitmap bitmap = item local
134 if (bitmap != null) {
137 new Slide(item, mLoadIndex, bitmap));

Completed in 1806 milliseconds

<<21222324252627282930>>