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

<<21222324252627282930>>

  /frameworks/base/libs/hwui/
SkiaCanvasProxy.cpp 34 #include "hwui/Bitmap.h"
117 void SkiaCanvasProxy::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
119 sk_sp<Bitmap> hwuiBitmap = Bitmap::createFrom(bitmap.info(), *bitmap.pixelRef());
120 // HWUI doesn't support extractSubset(), so convert any subsetted bitmap into
121 // a drawBitmapRect(); pass through an un-subsetted bitmap.
122 if (hwuiBitmap && bitmap.dimensions() != hwuiBitmap->info().dimensions()) {
123 SkIPoint origin = bitmap.pixelRefOrigin()
137 Bitmap* bitmap = reinterpret_cast<Bitmap*>(skBitmap.pixelRef()); local
162 sk_sp<Bitmap> bitmap = Bitmap::createFrom(skiaBitmap.info(), *skiaBitmap.pixelRef()); local
    [all...]
  /frameworks/base/libs/hwui/renderthread/
OpenGLPipeline.cpp 116 bool OpenGLPipeline::copyLayerInto(DeferredLayerUpdater* layer, SkBitmap* bitmap) {
122 static_cast<GlLayer&>(*layer->backingLayer()), bitmap);
253 bool OpenGLPipeline::pinImages(LsaVector<sk_sp<Bitmap>>& images) {
273 void OpenGLPipeline::prepareToDraw(const RenderThread& thread, Bitmap* bitmap) {
275 ATRACE_NAME("Bitmap#prepareToDraw task");
276 Caches::getInstance().textureCache.prefetch(bitmap);
342 static bool uploadBitmapToGraphicBuffer(uirenderer::Caches& caches, SkBitmap& bitmap,
361 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bitmap.width(), bitmap.height(), format, type
435 SkBitmap bitmap; local
    [all...]
  /frameworks/base/libs/input/
SpriteController.h 59 inline SpriteIcon(const SkBitmap& bitmap, float hotSpotX, float hotSpotY) :
60 bitmap(bitmap), hotSpotX(hotSpotX), hotSpotY(hotSpotY) { }
62 SkBitmap bitmap; member in struct:android::SpriteIcon
68 if (bitmapCopy.tryAllocPixels(bitmap.info().makeColorType(kN32_SkColorType))) {
69 bitmap.readPixels(bitmapCopy.info(), bitmapCopy.getPixels(), bitmapCopy.rowBytes(),
76 bitmap.reset();
82 return !bitmap.isNull() && !bitmap.empty();
105 /* Sets the bitmap that is drawn by the sprite
    [all...]
  /frameworks/base/media/jni/
android_media_MediaMetadataRetriever.cpp 304 ALOGE("getBitmapFromVideoFrame: create Bitmap failed!");
308 SkBitmap bitmap; local
309 GraphicsJNI::getSkBitmap(env, jBitmap, &bitmap);
312 rotate((uint16_t*)bitmap.getPixels(),
318 rotate((uint32_t*)bitmap.getPixels(),
336 ALOGV("Bitmap dimension is scaled from %dx%d to %dx%d",
515 "java/lang/IllegalStateException", "Can't create bitmap array");
616 clazz.reset(env->FindClass("android/graphics/Bitmap"));
626 "(IILandroid/graphics/Bitmap$Config;)"
627 "Landroid/graphics/Bitmap;");
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
UserManagerHelper.java 25 import android.graphics.Bitmap;
398 * @return a Bitmap for the icon
400 public Bitmap getUserIcon(UserInfo userInfo) {
401 Bitmap picture = mUserManager.getUserIcon(userInfo.id);
411 * Method for scaling a Bitmap icon to a desirable size.
413 * @param icon Bitmap to scale.
417 public Drawable scaleUserIcon(Bitmap icon, int desiredSize) {
418 Bitmap scaledIcon = Bitmap.createScaledBitmap(
434 * Gets a bitmap representing the user's default avatar
472 Bitmap bitmap = userInfo.isGuest() ? getGuestDefaultIcon() : getUserDefaultIcon(userInfo); local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
LockscreenWallpaper.java 26 import android.graphics.Bitmap;
61 private Bitmap mCache;
84 public Bitmap getBitmap() {
97 mUpdateMonitor.setHasLockscreenWallpaper(result.bitmap != null);
98 mCache = result.bitmap;
194 mCache = result.bitmap;
195 mUpdateMonitor.setHasLockscreenWallpaper(result.bitmap != null);
206 public final Bitmap bitmap; field in class:LockscreenWallpaper.LoaderResult
208 LoaderResult(boolean success, Bitmap bitmap)
    [all...]
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
UploadedTexture.java 19 import android.graphics.Bitmap;
20 import android.graphics.Bitmap.Config;
29 // UploadedTextures use a Bitmap for the content of the texture.
31 // Subclasses should implement onGetBitmap() to provide the Bitmap and
32 // implement onFreeBitmap(mBitmap) which will be called when the Bitmap
47 private static HashMap<BorderKey, Bitmap> sBorderLines =
48 new HashMap<BorderKey, Bitmap>();
62 protected Bitmap mBitmap;
118 private static Bitmap getBorderLine(
124 Bitmap bitmap = sBorderLines.get(key) local
129 sBorderLines.put(key.clone(), bitmap); local
193 Bitmap bitmap = getBitmap(); local
212 Bitmap bitmap = getBitmap(); local
    [all...]
  /frameworks/base/sax/tests/saxtests/src/android/sax/
SafeSaxTest.java 19 import android.graphics.Bitmap;
529 public Bitmap bitmap; // cached bitmap of the thumbnail field in class:SafeSaxTest.YouTubeVideo
  /frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
ActivityTestMain.java 45 import android.graphics.Bitmap;
497 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon); local
499 desc.setIcon(bitmap);
501 int taskId = am.addAppTask(this, intent, desc, bitmap);
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
SmartCamera.java 21 import android.graphics.Bitmap;
81 // Function to return the correct image view to display the current bitmap
114 Bitmap bitmap = null; local
129 bitmap = ((BitmapDrawable)mImages.get(i).getDrawable()).getBitmap();
131 MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, local
  /frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
TestHelper.java 20 import android.graphics.Bitmap;
167 // when doing bitmap upload, use different id so each card has different bitmap
168 // otherwise all cards share the same bitmap
233 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local
234 Canvas canvas = new Canvas(bitmap);
237 manager.setBitmap(bitmap);
    [all...]
  /frameworks/layoutlib/bridge/src/android/graphics/
ImageDecoder.java 43 * Class for decoding images as {@link Bitmap}s or {@link Drawable}s.
58 int getDensity() { return Bitmap.DENSITY_NONE; }
64 return Bitmap.getDefaultDensity();
128 mInputDensity = res != null ? inputDensity : Bitmap.DENSITY_NONE;
163 mDensity = Bitmap.DENSITY_NONE;
189 mResDensity = Bitmap.DENSITY_NONE;
310 * a partial {@link Drawable}/{@link Bitmap}.
314 * @return True to create and return a {@link Drawable}/{@link Bitmap}
410 return new InputStreamSource(res, is, Bitmap.getDefaultDensity());
473 * Will typically result in a {@link Bitmap.Config#HARDWARE
659 Bitmap bitmap = decodeBitmap(src, listener); local
    [all...]
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
GlifPatternDrawable.java 22 import android.graphics.Bitmap;
66 // Cap the bitmap size, such that it won't hurt the performance too much
75 private static SoftReference<Bitmap> sBitmapCache;
108 Bitmap bitmap = null; local
110 bitmap = sBitmapCache.get();
112 if (bitmap != null) {
113 final int bitmapWidth = bitmap.getWidth();
114 final int bitmapHeight = bitmap.getHeight();
119 bitmap = null
161 Bitmap bitmap = Bitmap.createBitmap( local
    [all...]
  /frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
FindRegion.java 19 import android.graphics.Bitmap;
42 Bitmap mMaskBitmap;
47 public FindRegion(float[] xy, Bitmap img) {
84 public Rect findMatch(ScriptC_find_region findRegion, RenderScript mRs, Bitmap image) {
171 private static Bitmap buildMask(Rect rec, float[] xy) {
172 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); local
174 Canvas c = new Canvas(bitmap);
    [all...]
Healing.java 19 import android.graphics.Bitmap;
40 Bitmap mUndoBitmap;
49 private static Bitmap buildMask(Rect rec, float[] xy) {
50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); local
52 Canvas c = new Canvas(bitmap);
66 return bitmap;
76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output)
    [all...]
  /frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Healing.java 19 import android.graphics.Bitmap;
40 Bitmap mUndoBitmap;
49 private static Bitmap buildMask(Rect rec, float[] xy) {
50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); local
52 Canvas c = new Canvas(bitmap);
66 return bitmap;
76 public void heal(ScriptC_healing healing, RenderScript rs, Bitmap image, Bitmap output)
    [all...]
  /frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
RoundedBitmapDrawable.java 19 import android.graphics.Bitmap;
37 * A Drawable that wraps a bitmap and can be drawn with rounded corners. You can create a
39 * {@link android.graphics.Bitmap} object.
41 * Also see the {@link android.graphics.Bitmap} class, which handles the management and
42 * transformation of raw bitmap graphics, and should be used when drawing to a
49 final Bitmap mBitmap;
76 * Returns the bitmap used by this drawable to render. May be null.
79 public final Bitmap getBitmap() {
95 * @see android.graphics.Bitmap#setDensity(int)
96 * @see android.graphics.Bitmap#getDensity(
260 final Bitmap bitmap = mBitmap; local
    [all...]
  /frameworks/support/graphics/drawable/static/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/
VectorDrawableTest.java 27 import android.graphics.Bitmap;
134 private Bitmap mBitmap;
143 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
159 // Setup VectorDrawable from xml file and draw into the bitmap.
173 Bitmap golden = BitmapFactory.decodeResource(mResources, goldenImages[i]);
180 private void saveVectorDrawableIntoPNG(Bitmap bitmap, int[] resIds, int index, int[] stateSet)
202 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out)
    [all...]
  /frameworks/support/leanback/src/main/java/androidx/leanback/widget/
StreamingTextView.java 18 import android.graphics.Bitmap;
74 Bitmap mOneDot;
75 Bitmap mTwoDot;
98 private Bitmap getScaledBitmap(int resourceId, float scaled) {
99 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId); local
100 return Bitmap.createScaledBitmap(bitmap, (int) (bitmap.getWidth() * scaled),
101 (int) (bitmap.getHeight() * scaled), false)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/
MultiToggleImageButton.java 25 import android.graphics.Bitmap;
166 new AsyncTask<Integer, Void, Bitmap>() {
168 protected Bitmap doInBackground(Integer... params) {
173 protected void onPostExecute(Bitmap bitmap) {
174 if (bitmap == null) {
177 setImageBitmap(bitmap);
367 private Bitmap combine(int oldState, int newState) {
393 Bitmap bitmap = null local
    [all...]
  /packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DrawableDownloader.java 22 import android.graphics.Bitmap;
42 * and LRUCache removes the refcount, the underlying bitmap will be used for decoding new bitmap.
44 * If the URI does not point to a bitmap (e.g. point to a drawable xml, we won't cache it and we
66 // 1/4 of max memory is used for bitmap mem cache
69 // hard limit for bitmap mem cache in MB
73 * bitmap cache item structure saved in LruCache
85 // get bitmap from the list
141 public abstract void onBitmapRetrieved(Drawable bitmap);
166 private static String getBucketKey(String baseKey, Bitmap.Config bitmapConfig)
220 Drawable bitmap = null; local
249 Drawable bitmap = null; local
282 final Drawable bitmap = hasAccountImageUri ? null : getBitmapFromMemCache(options); local
    [all...]
DrawableLoader.java 25 import android.graphics.Bitmap;
43 * AsyncTask which loads a bitmap.
70 mRecycledBitmaps.addRecycledBitmap((Bitmap) object.getObject());
112 Log.e(TAG, "Error loading bitmap - unknown resource URI! "
116 Log.e(TAG, "Error loading bitmap - no source!");
130 protected void onPostExecute(Drawable bitmap) {
134 imageView.setImageDrawable(bitmap);
143 // still holds one to the bitmap
222 Log.d("BitmapWorkerTask", "Source bitmap: (" + bitmapOptions.outWidth + "x"
230 Bitmap bitmap = null local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/activities/
AttachPhotoActivity.java 29 import android.graphics.Bitmap;
301 // Create a scaled, compressed bitmap to add to the entity-delta list.
303 Bitmap bitmap; local
305 bitmap = ContactPhotoUtils.getBitmapFromUri(this, mCroppedPhotoUri);
307 Log.w(TAG, "Could not find bitmap");
311 if (bitmap == null) {
312 Log.w(TAG, "Could not decode bitmap");
317 final Bitmap scaled = Bitmap.createScaledBitmap(bitmap, size, size, false)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/lettertiles/
LetterTileDrawable.java 21 import android.graphics.Bitmap;
52 private static Bitmap DEFAULT_PERSON_AVATAR;
53 private static Bitmap DEFAULT_BUSINESS_AVATAR;
54 private static Bitmap DEFAULT_VOICEMAIL_AVATAR;
112 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale.
114 private void drawBitmap(final Bitmap bitmap, final int width, final int height,
116 // The bitmap should be drawn in the middle of the canvas without changing its width to
128 // Source rectangle remains the entire bounds of the source bitmap.
135 canvas.drawBitmap(bitmap, sRect, destRect, sPaint)
172 final Bitmap bitmap = getBitmapForContactType(mContactType); local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/app/list/
PhoneFavoriteListView.java 23 import android.graphics.Bitmap;
70 private Bitmap dragShadowBitmap;
278 private Bitmap createDraggedChildBitmap(View view) {
280 final Bitmap cache = view.getDrawingCache();
282 Bitmap bitmap = null; local
285 bitmap = cache.copy(Bitmap.Config.ARGB_8888, false);
287 LogUtil.w(LOG_TAG, "Failed to copy bitmap from Drawing cache", e);
288 bitmap = null
    [all...]

Completed in 1735 milliseconds

<<21222324252627282930>>