Home
last modified time | relevance | path

Searched refs:createBitmap (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/base/core/tests/coretests/src/android/graphics/
DGraphicsPerformanceTests.java89 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 …]
DBitmapTest.java33 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 …]
DThreadBitmapTest.java41 b = Bitmap.createBitmap(300, 300, Bitmap.Config.RGB_565); in MThread()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java807 return Bitmap.createBitmap(src, 0, 0, width, height, m, filter); in createScaledBitmap()
815 public static Bitmap createBitmap(@NonNull Bitmap src) { in createBitmap() method in Bitmap
816 return createBitmap(src, 0, 0, src.getWidth(), src.getHeight()); in createBitmap()
835 public static Bitmap createBitmap(@NonNull Bitmap source, int x, int y, int width, int height) { in createBitmap() method in Bitmap
836 return createBitmap(source, x, y, width, height, null, false); in createBitmap()
870 public static Bitmap createBitmap(@NonNull Bitmap source, int x, int y, int width, int height, in createBitmap() method in Bitmap
932 bitmap = createBitmap(null, neww, newh, newConfig, source.hasAlpha(), cs); in createBitmap()
952 bitmap = createBitmap(null, neww, newh, transformedConfig, in createBitmap()
990 public static Bitmap createBitmap(int width, int height, @NonNull Config config) { in createBitmap() method in Bitmap
991 return createBitmap(width, height, config, true); in createBitmap()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DDrawIntoHwBitmapActivity.java35 view.setImageBitmap(createBitmap()); in onCreate()
38 Bitmap createBitmap() { in createBitmap() method in DrawIntoHwBitmapActivity
50 return Bitmap.createBitmap(picture); in createBitmap()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java50 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/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java106 public static Bitmap createBitmap(@Nullable InputStream input, boolean isMutable, in createBitmap() method in Bitmap_Delegate
108 return createBitmap(input, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
121 static Bitmap createBitmap(@Nullable InputStream input, Set<BitmapCreateFlags> createFlags, in createBitmap() method in Bitmap_Delegate
146 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
159 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) { in createBitmap() method in Bitmap_Delegate
160 return createBitmap(image, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
173 public static Bitmap createBitmap(BufferedImage image, Set<BitmapCreateFlags> createFlags, in createBitmap() method in Bitmap_Delegate
179 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
236 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCreate()
266 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCopy()
[all …]
DBitmapFactory_Delegate.java76 bm = Bitmap_Delegate.createBitmap(ninePatch.getImage(), bitmapCreateFlags, in nativeDecodeStream()
93 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density); in nativeDecodeStream()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DCompareActivity.java67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in onCreateCommon()
68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in onCreateCommon()
83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in loadBitmaps()
84 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in loadBitmaps()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java48 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap()
49 final Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testWithBitmap()
66 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmap()
68 final Bitmap test2 = Bitmap.createBitmap(draw2.getIntrinsicWidth(), in testWithBitmap()
70 final Bitmap test3 = Bitmap.createBitmap(draw3.getIntrinsicWidth(), in testWithBitmap()
115 final Bitmap bm = Bitmap.createBitmap(4321, 78, Bitmap.Config.ARGB_8888); in testScaleDownIfNecessary()
128 final Bitmap bm1 = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888); in testWithAdaptiveBitmap()
137 final Bitmap test1 = Bitmap.createBitmap( in testWithAdaptiveBitmap()
167 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithBitmapResource()
194 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth(), in testWithFile()
[all …]
DAdaptiveIconDrawableTest.java66 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()
196 Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testSetAlpha()
/frameworks/rs/tests/lldb/java/NoDebugWaitAttach/src/com/android/rs/waitattachnodebug/
DMainActivity.java41 mBitmapIn = Bitmap.createBitmap(8, 8, Bitmap.Config.ARGB_8888); in onCreate()
42 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), in onCreate()
/frameworks/rs/tests/lldb/java/DebugWaitAttach/src/com/android/rs/waitattachdebug/
DMainActivity.java41 mBitmapIn = Bitmap.createBitmap(8, 8, Bitmap.Config.ARGB_8888); in onCreate()
42 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), in onCreate()
/frameworks/rs/tests/lldb/java/MultipleRSFiles/src/com/android/rs/multiplersfiles/
DMainActivity.java42 mBitmapIn = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888); in onCreate()
43 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), in onCreate()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/
DUserIconDrawableTest.java56 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/statusbar/notification/
DMediaNotificationProcessorTest.java62 private Bitmap mBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888);
130 mArtwork = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Bitmap.Config.ARGB_8888); in findBackgroundSwatch_white()
142 mArtwork = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Bitmap.Config.ARGB_8888); in findBackgroundSwatch_red()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DHealing.java50 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/lldb/java/InfiniteLoop/src/com/android/rs/infiniteloop/
DMainActivity.java56 mBitmapIn = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888); in onCreate()
59 mBitmapsOut[i] = Bitmap.createBitmap(mBitmapIn.getWidth(), in onCreate()
/frameworks/base/tests/Internal/src/android/app/
DWallpaperColorsTest.java54 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in colorHintsTest()
95 Bitmap image = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); in wallpaperRecycleBitmapTest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DImageGradientColorizer.java43 Bitmap newBitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); in colorize()
76 Bitmap fadeIn = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); in colorize()
/frameworks/rs/tests/lldb/java/KernelVariables/src/com/android/rs/kernelvariables/
DMainActivity.java42 mBitmapIn = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888); in onCreate()
43 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), in onCreate()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DHealing.java50 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/
DListViewAnimation.cpp36 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(size, size, &skBitmap)); in createRandomCharIcon()
64 auto bitmap = TestUtils::createBitmap(size, size, &skBitmap); in createBoxBitmap()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DDividerItemDecorationTest.java72 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/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java121 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()

1234567