Searched refs:bitmap (Results 251 - 275 of 388) sorted by relevance

<<111213141516

/frameworks/base/services/core/java/com/android/server/am/
H A DCarUserSwitchingDialog.java73 Bitmap bitmap = userManager.getUserIcon(mNewUser.id);
74 if (bitmap != null) {
75 CircleFramedDrawable drawable = CircleFramedDrawable.getInstance(bitmap,
132 // mask in the icon where the bitmap is opaque
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
H A DTestHelper.java167 // 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);
234 Canvas canvas = new Canvas(bitmap);
237 manager.setBitmap(bitmap);
/frameworks/layoutlib/bridge/src/android/graphics/
H A DBitmapShader_Delegate.java82 Bitmap_Delegate bitmap = Bitmap_Delegate.getDelegate(androidBitmap);
83 if (bitmap == null) {
88 bitmap.getImage(),
H A DBitmap_Delegate.java94 public static Bitmap_Delegate getDelegate(@Nullable Bitmap bitmap) { argument
95 return bitmap == null ? null : getDelegate(bitmap.getNativeInstance());
101 * @param input the file from which to read the bitmap content
102 * @param isMutable whether the bitmap is mutable
103 * @param density the density associated with the bitmap
116 * @param input the file from which to read the bitmap content
117 * @param density the density associated with the bitmap
149 * @param input the stream from which to read the bitmap content
150 * @param isMutable whether the bitmap i
[all...]
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A DHealing.java50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8);
52 Canvas c = new Canvas(bitmap);
66 return bitmap;
H A DFindRegion.java172 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8);
174 Canvas c = new Canvas(bitmap);
188 return bitmap;
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/data/
H A DVideoProvider.java107 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
108 Canvas canvas = new Canvas(bitmap);
136 bitmap.compress(CompressFormat.JPEG, 90, outputStream);
/frameworks/support/leanback/src/main/java/androidx/leanback/media/
H A DMediaControllerAdapter.java249 Bitmap bitmap = mController.getMetadata().getDescription().getIconBitmap();
250 return bitmap == null ? null : new BitmapDrawable(context.getResources(), bitmap);
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DThumbsBar.java285 * Get bitmap of given child index.
292 * Set thumb bitmap for a given index of child.
294 public void setThumbBitmap(int index, Bitmap bitmap) { argument
295 mBitmaps.put(index, bitmap);
296 ((ImageView) getChildAt(index)).setImageBitmap(bitmap);
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/data/
H A DVideoProvider.java107 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
108 Canvas canvas = new Canvas(bitmap);
136 bitmap.compress(CompressFormat.JPEG, 90, outputStream);
/frameworks/support/textclassifier/src/androidTest/java/androidx/textclassifier/
H A DTextClassificationTest.java49 final Bitmap bitmap = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888);
50 final BitmapDrawable drawable = new BitmapDrawable(null, bitmap);
51 drawable.setTargetDensity(bitmap.getDensity());
126 // Secondary action 3 (convert non-bitmap drawable with negative size).
/frameworks/base/libs/hwui/tests/unit/
H A DRecordingCanvasTests.cpp277 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(25, 25));
293 canvas.drawBitmap(*bitmap, 0, 0, nullptr);
743 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(100, 100));
746 [&bitmap](RecordingCanvas& canvas) { canvas.drawBitmap(*bitmap, 0, 0, nullptr); });
752 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(100, 100); local
754 100, 100, [&bitmap](RecordingCanvas& canvas) {
757 bitmap->getSkBitmap(&skBitmap);
771 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(100, 100); local
773 100, 100, [&bitmap](RecordingCanva
[all...]
H A DVectorDrawableTests.cpp391 SkBitmap bitmap; local
392 bitmap.allocN32Pixels(5, 5, false);
393 SkCanvas canvas(bitmap);
/frameworks/base/libs/hwui/font/
H A DFont.cpp135 void Font::measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, argument
157 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, argument
175 void Font::drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, argument
204 void Font::drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, argument
225 uint8_t* dst = &(bitmap[bitmapY + dstX + i]);
372 RenderMode mode, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH,
406 (*this.*render)(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH, bounds, positions);
429 // Get the bitmap for the glyph
371 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, RenderMode mode, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
H A DDetailsFragmentTest.java113 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
115 ((FitWidthBitmapDrawable) mParallaxDrawable.getCoverDrawable()).setBitmap(bitmap);
246 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
248 mDetailsBackground.setCoverBitmap(bitmap);
548 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
550 mDetailsBackground.setCoverBitmap(bitmap);
827 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
829 mDetailsBackground.setCoverBitmap(bitmap);
879 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
881 mDetailsBackground.setCoverBitmap(bitmap);
[all...]
H A DDetailsSupportFragmentTest.java110 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
112 ((FitWidthBitmapDrawable) mParallaxDrawable.getCoverDrawable()).setBitmap(bitmap);
243 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
245 mDetailsBackground.setCoverBitmap(bitmap);
545 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
547 mDetailsBackground.setCoverBitmap(bitmap);
824 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
826 mDetailsBackground.setCoverBitmap(bitmap);
876 Bitmap bitmap = BitmapFactory.decodeResource(getActivity().getResources(),
878 mDetailsBackground.setCoverBitmap(bitmap);
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPageContentRepository.java245 // We tired to preload but didn't know the bitmap size, now
402 Bitmap bitmap = page.content.getBitmap();
403 return bitmap.getWidth() == bitmapWidth
404 && bitmap.getHeight() == bitmapHeight;
828 // Reuse bitmap for the page only if the right size.
831 Log.i(LOG_TAG, "Recycling bitmap for page: " + mPageIndex
841 // Try to find a bitmap to reuse.
855 Log.i(LOG_TAG, "Recycling bitmap for page: " + mPageIndex
865 Log.i(LOG_TAG, "Reused bitmap for page: " + mPageIndex + " cache size: "
874 Log.i(LOG_TAG, "Created bitmap fo
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DBackingStore.java559 // As we share the bitmap with other backings (such as object backings), we must not
608 Bitmap bitmap = (Bitmap) backing.lock(ACCESS_BITMAP);
609 mTexture.allocateWithBitmapPixels(bitmap);
729 Bitmap bitmap = (Bitmap) backing.lock(ACCESS_BITMAP);
730 bitmap.copyPixelsToBuffer(mBuffer);
850 Bitmap bitmap = (Bitmap) backing.lock(ACCESS_BITMAP);
851 mAllocation.copyFrom(bitmap);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp144 SkBitmap bitmap;
148 image->asLegacyBitmap(&bitmap, SkImage::kRO_LegacyBitmapMode);
152 const int w = bitmap.width();
153 const int h = bitmap.height();
154 const void* p = bitmap.getPixels();
163 switch (bitmap.colorType()) {
195 SkBitmap bitmap; local
199 image->asLegacyBitmap(&bitmap, SkImage::kRO_LegacyBitmapMode);
206 const int w = bitmap.width();
207 const int h = bitmap
[all...]
/frameworks/base/core/tests/coretests/src/android/transition/
H A DFadeTransitionTest.java148 Bitmap bitmap = background.getBitmap();
149 assertEquals(Bitmap.Config.HARDWARE, bitmap.getConfig());
150 Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false);
/frameworks/base/media/java/android/media/
H A DRemoteControlClient.java502 * @param key the identifier of the bitmap to set. The only valid value is
504 * @param bitmap The bitmap for the artwork, or null if there isn't any.
511 public synchronized MetadataEditor putBitmap(int key, Bitmap bitmap) argument
513 super.putBitmap(key, bitmap);
519 mMetadataBuilder.putBitmap(metadataKey, bitmap);
861 * Cache for the artwork bitmap.
863 * Artwork and metadata are not kept in one Bundle because the bitmap sometimes needs to be
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight);
161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
163 BitmapSerializeUtils.writeBitmapPixels(bitmap, destination);
168 // The error is propagated to the caller when it tries to read the bitmap and
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DSmartCamera.java81 // Function to return the correct image view to display the current bitmap
114 Bitmap bitmap = null;
129 bitmap = ((BitmapDrawable)mImages.get(i).getDrawable()).getBitmap();
131 MediaStore.Images.Media.insertImage(getContentResolver(), bitmap,
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A DHealing.java50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8);
52 Canvas c = new Canvas(bitmap);
66 return bitmap;
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DBitmapUtils.java17 package com.android.bitmap.util;

Completed in 2920 milliseconds

<<111213141516