/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | GraphicsPerformanceTests.java | 89 mDestBitmap = Bitmap.createBitmap(SCREEN_WIDTH, SCREEN_HEIGHT, in setUp() 168 mBitmap = createBitmap(); in setUp() 176 public abstract Bitmap createBitmap(); in createBitmap() method in GraphicsPerformanceTests.DrawBitmapTest 201 public Bitmap createBitmap() { in createBitmap() method in GraphicsPerformanceTests.DrawBitmap7x7 202 return Bitmap.createBitmap(7, 7, Bitmap.Config.RGB_565); in createBitmap() 219 public Bitmap createBitmap() { in createBitmap() method in GraphicsPerformanceTests.DrawBitmap15x15 220 return Bitmap.createBitmap(15, 15, Bitmap.Config.RGB_565); in createBitmap() 237 public Bitmap createBitmap() { in createBitmap() method in GraphicsPerformanceTests.DrawBitmap31x31 238 return Bitmap.createBitmap(31, 31, Bitmap.Config.RGB_565); in createBitmap() 255 public Bitmap createBitmap() { in createBitmap() method in GraphicsPerformanceTests.DrawBitmap63x63 [all …]
|
D | BitmapTest.java | 33 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testBasic() 34 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testBasic() 35 Bitmap bm3 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_4444); in testBasic() 68 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testMutability() 69 Bitmap bm2 = Bitmap.createBitmap(new int[100 * 200], 100, 200, in testMutability() 92 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, in testGetPixelsWithAlpha() 118 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); in testGetPixelsWithoutAlpha() 136 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config); in testSetPixelsWithAlpha() 137 Bitmap bm2 = Bitmap.createBitmap(10, 10, config); in testSetPixelsWithAlpha() 162 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config); in testSetPixelsWithoutAlpha() [all …]
|
D | ThreadBitmapTest.java | 41 b = Bitmap.createBitmap(300, 300, Bitmap.Config.RGB_565); in MThread()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | RotationAnimationUtilsTest.java | 43 Bitmap swBitmap = createBitmap(0); in blackLuma() 52 Bitmap swBitmap = createBitmap(1); in whiteLuma() 60 Bitmap swBitmap = createBitmap(1, BITMAP_WIDTH + 1, BITMAP_HEIGHT + 1); in unevenBitmapDimens() 68 Bitmap swBitmap = createBitmap(1); in whiteImageBlackBorderLuma() 77 Bitmap swBitmap = createBitmap(0); in blackImageWhiteBorderLuma() 84 private Bitmap createBitmap(float luma) { in createBitmap() method in RotationAnimationUtilsTest 85 return createBitmap(luma, BITMAP_WIDTH, BITMAP_HEIGHT); in createBitmap() 88 private Bitmap createBitmap(float luma, int width, int height) { in createBitmap() method in RotationAnimationUtilsTest 89 Bitmap bitmap = Bitmap.createBitmap(width, height, ARGB_8888); in createBitmap()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | BitmapRenderer.java | 37 Bitmap result = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in createSoftwareBitmap() 52 return Bitmap.createBitmap(picture); in createHardwareBitmap() 59 static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) { in createBitmap() method 65 return Bitmap.createBitmap(source, x, y, width, height); in createBitmap()
|
/frameworks/base/tests/Internal/src/android/app/ |
D | WallpaperColorsTest.java | 55 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in whiteSurfaceColorHintsTest() 80 Bitmap xsmall_image = Bitmap.createBitmap(1, 5, Bitmap.Config.ARGB_8888); in xSmallWhiteSurfaceColorHintsTest() 98 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in blackSurfaceColorHintsTest() 115 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in bitmapHintsTest() 144 Bitmap image = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); in wallpaperRecycleBitmapTest() 156 Bitmap image = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); in testParcelUnparcel()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 854 return Bitmap.createBitmap(src, 0, 0, width, height, m, filter); in createScaledBitmap() 863 public static Bitmap createBitmap(@NonNull Bitmap src) { in createBitmap() method in Bitmap 864 return createBitmap(src, 0, 0, src.getWidth(), src.getHeight()); in createBitmap() 884 public static Bitmap createBitmap(@NonNull Bitmap source, int x, int y, int width, int height) { in createBitmap() method in Bitmap 885 return createBitmap(source, x, y, width, height, null, false); in createBitmap() 920 public static Bitmap createBitmap(@NonNull Bitmap source, int x, int y, int width, int height, in createBitmap() method in Bitmap 982 bitmap = createBitmap(null, neww, newh, newConfig, source.hasAlpha(), cs); in createBitmap() 1002 bitmap = createBitmap(null, neww, newh, transformedConfig, in createBitmap() 1092 public static Bitmap createBitmap(int width, int height, @NonNull Config config) { in createBitmap() method in Bitmap 1093 return createBitmap(width, height, config, true); in createBitmap() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/ |
D | NotificationMemoryMeterTest.kt | 82 val icon = Icon.createWithBitmap(Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888)) in currentNotificationMemoryUse_plainNotification_dontDoubleCountSameBitmap() 145 Icon.createWithBitmap(Bitmap.createBitmap(600, 400, Bitmap.Config.ARGB_8888)) in currentNotificationMemoryUse_bigPictureStyle() 147 Icon.createWithAdaptiveBitmap(Bitmap.createBitmap(386, 432, Bitmap.Config.ARGB_8888)) in currentNotificationMemoryUse_bigPictureStyle() 174 Icon.createWithBitmap(Bitmap.createBitmap(386, 432, Bitmap.Config.ARGB_8888)) in currentNotificationMemoryUse_callingStyle() 200 Icon.createWithBitmap(Bitmap.createBitmap(386, 432, Bitmap.Config.ARGB_8888)) in currentNotificationMemoryUse_messagingStyle() 204 Icon.createWithBitmap(Bitmap.createBitmap(348, 382, Bitmap.Config.ARGB_8888)) in currentNotificationMemoryUse_messagingStyle() 237 val carIcon = Bitmap.createBitmap(432, 322, Bitmap.Config.ARGB_8888) in currentNotificationMemoryUse_carExtender() 258 val wearBackground = Bitmap.createBitmap(443, 433, Bitmap.Config.ARGB_8888) in currentNotificationMemoryUse_tvWearExtender() 278 Icon.createWithBitmap(Bitmap.createBitmap(250, 250, Bitmap.Config.ARGB_8888)) in createBasicNotification() 280 Icon.createWithBitmap(Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888)) in createBasicNotification()
|
D | NotificationMemoryViewWalkerTest.kt | 53 val icon = Icon.createWithBitmap(Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)) in testViewWalker_plainNotification_withPublicView() 54 val publicIcon = Icon.createWithBitmap(Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_8888)) in testViewWalker_plainNotification_withPublicView() 125 val bigPicture = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888) in testViewWalker_bigPictureNotification() 126 val icon = Icon.createWithBitmap(Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)) in testViewWalker_bigPictureNotification() 127 val largeIcon = Icon.createWithBitmap(Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888)) in testViewWalker_bigPictureNotification() 185 val icon = Icon.createWithBitmap(Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)) in testViewWalker_customView() 186 val bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888) in testViewWalker_customView()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | GlifPatternDrawableTest.java | 50 final Bitmap bitmap = Bitmap.createBitmap(1366, 768, Bitmap.Config.ARGB_8888); in testDraw() 67 final Bitmap bitmap = Bitmap.createBitmap(1366, 768, Bitmap.Config.ARGB_8888); in testDrawTwice() 90 Bitmap mockBitmapCache = Bitmap.createBitmap(1366, 768, Bitmap.Config.ALPHA_8); in testScaleToCanvasSquare() 106 Bitmap mockBitmapCache = Bitmap.createBitmap(1366, 768, Bitmap.Config.ALPHA_8); in testScaleToCanvasTall() 123 Bitmap mockBitmapCache = Bitmap.createBitmap(1366, 768, Bitmap.Config.ALPHA_8); in testScaleToCanvasWide() 140 Bitmap mockBitmapCache = Bitmap.createBitmap(2049, 1152, Bitmap.Config.ALPHA_8); in testScaleToCanvasMaxSize()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | DrawIntoHwBitmapActivity.java | 35 view.setImageBitmap(createBitmap()); in onCreate() 38 Bitmap createBitmap() { in createBitmap() method in DrawIntoHwBitmapActivity 50 return Bitmap.createBitmap(picture); in createBitmap()
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/ |
D | GainmapTransformsTest.kt | 79 Bitmap.createBitmap(it, 0, 0, width, height, m, false) in <lambda>() 91 Bitmap.createBitmap(it, 0, 0, width, height, m, false) in <lambda>() 99 Bitmap.createBitmap(it, width / 2, height / 2, in <lambda>() 111 Bitmap.createBitmap(it, width / 2, height / 2, in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 80 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap() 81 final Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testWithBitmap() 98 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmap() 100 final Bitmap test2 = Bitmap.createBitmap(draw2.getIntrinsicWidth(), in testWithBitmap() 102 final Bitmap test3 = Bitmap.createBitmap(draw3.getIntrinsicWidth(), in testWithBitmap() 147 final Bitmap bm = Bitmap.createBitmap(4321, 78, Bitmap.Config.ARGB_8888); in testScaleDownIfNecessary() 160 final Bitmap bm1 = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888); in testWithAdaptiveBitmap() 169 final Bitmap test1 = Bitmap.createBitmap( in testWithAdaptiveBitmap() 199 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmapResource() 239 final Bitmap referenceBitmap = Bitmap.createBitmap( in testWithStatSysAdbResource() [all …]
|
D | AdaptiveIconDrawableTest.java | 66 final Bitmap bm_test = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888); in testDraw_withoutBounds() 95 final Bitmap bm_org = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in testDraw_withBounds() 101 final Bitmap bm_test = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in testDraw_withBounds() 190 Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testSetAlpha()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/ |
D | DreamOverlayDotImageView.java | 93 mDotBitmap = createBitmap(mBounds.width(), mBounds.height()); in draw() 120 private Bitmap createBitmap(int width, int height) { in createBitmap() method in DreamOverlayDotImageView.DotDrawable 121 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in createBitmap()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/ |
D | UserIconDrawableTest.java | 56 final Bitmap b = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in setTintList_shouldBeApplied() 65 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in setTintList_shouldBeApplied()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/drawable/ |
D | DrawableSizeTest.kt | 38 Bitmap.createBitmap(resources.displayMetrics, 150, 150, Bitmap.Config.ARGB_8888) in testDownscaleToSize_drawableSmallerThanRequirement_unchanged() 51 Bitmap.createBitmap(resources.displayMetrics, 150, 75, Bitmap.Config.ARGB_8888) in testDownscaleToSize_drawableLargerThanRequirementWithDensity_resized()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
D | DecorViewTest.java | 53 Bitmap expectedBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in setBackgroundDrawableSameAsSetWindowBackground() 63 Bitmap resultBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in setBackgroundDrawableSameAsSetWindowBackground()
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | Healing.java | 50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); in buildMask() 100 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(), in heal() 177 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(), in heal_orig() 190 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height); in createMutableBitmap()
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | Healing.java | 50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); in buildMask() 133 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(), in heal() 146 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height); in createMutableBitmap()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ListViewAnimation.cpp | 45 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(size, size, &skBitmap)); in createRandomCharIcon() 73 auto bitmap = TestUtils::createBitmap(size, size, &skBitmap); in createBoxBitmap()
|
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | DividerItemDecorationTest.java | 72 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444); in testShouldDrawDividerBelowWithEitherCondition() 116 Bitmap expectedBitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444); in testShouldDrawDividerBelowWithBothCondition() 148 Bitmap bitmap = Bitmap.createBitmap(20, 20, Bitmap.Config.ARGB_4444); in drawDecoration()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | NotificationRowIconView.java | 112 Bitmap result = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); in makeCircularDrawable() 140 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in drawableToBitmap()
|
/frameworks/base/libs/hwui/jni/ |
D | Bitmap.h | 36 jobject createBitmap(JNIEnv* env, Bitmap* bitmap,
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); in resizeBitmapByScale() 157 Bitmap target = Bitmap.createBitmap(size, size, getConfig(bitmap)); in resizeAndCropCenter() 184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); in rotateBitmap()
|