/frameworks/base/services/core/java/com/android/server/am/ |
H A D | CarUserSwitchingDialog.java | 73 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 D | TestHelper.java | 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); 234 Canvas canvas = new Canvas(bitmap); 237 manager.setBitmap(bitmap);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapShader_Delegate.java | 82 Bitmap_Delegate bitmap = Bitmap_Delegate.getDelegate(androidBitmap); 83 if (bitmap == null) { 88 bitmap.getImage(),
|
H A D | Bitmap_Delegate.java | 94 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 D | Healing.java | 50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); 52 Canvas c = new Canvas(bitmap); 66 return bitmap;
|
H A D | FindRegion.java | 172 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 D | VideoProvider.java | 107 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 D | MediaControllerAdapter.java | 249 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 D | ThumbsBar.java | 285 * 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 D | VideoProvider.java | 107 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 D | TextClassificationTest.java | 49 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 D | RecordingCanvasTests.cpp | 277 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 D | VectorDrawableTests.cpp | 391 SkBitmap bitmap; local 392 bitmap.allocN32Pixels(5, 5, false); 393 SkCanvas canvas(bitmap);
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 135 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 D | DetailsFragmentTest.java | 113 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 D | DetailsSupportFragmentTest.java | 110 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 D | PageContentRepository.java | 245 // 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 D | BackingStore.java | 559 // 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 D | BootAnimation.cpp | 144 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 D | FadeTransitionTest.java | 148 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 D | RemoteControlClient.java | 502 * @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 D | PdfManipulationService.java | 160 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 D | SmartCamera.java | 81 // 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 D | Healing.java | 50 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 D | BitmapUtils.java | 17 package com.android.bitmap.util;
|