Home
last modified time | relevance | path

Searched refs:Config (Results 1 – 25 of 154) sorted by relevance

1234567

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DGraphicsPerformanceTests.java93 Bitmap.Config.RGB_565); in setUp()
205 return Bitmap.createBitmap(7, 7, Bitmap.Config.RGB_565); in createBitmap()
223 return Bitmap.createBitmap(15, 15, Bitmap.Config.RGB_565); in createBitmap()
241 return Bitmap.createBitmap(31, 31, Bitmap.Config.RGB_565); in createBitmap()
259 return Bitmap.createBitmap(63, 63, Bitmap.Config.RGB_565); in createBitmap()
277 return Bitmap.createBitmap(127, 127, Bitmap.Config.RGB_565); in createBitmap()
295 return Bitmap.createBitmap(319, 239, Bitmap.Config.RGB_565); in createBitmap()
313 return Bitmap.createBitmap(319, 479, Bitmap.Config.RGB_565); in createBitmap()
331 return Bitmap.createBitmap(8, 8, Bitmap.Config.RGB_565); in createBitmap()
349 return Bitmap.createBitmap(16, 16, Bitmap.Config.RGB_565); in createBitmap()
[all …]
DBitmapTest.java27 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testBasic()
28 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testBasic()
29 Bitmap bm3 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_4444); in testBasic()
55 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888); in testBasic()
56 assertTrue("getConfig", bm2.getConfig() == Bitmap.Config.RGB_565); in testBasic()
57 assertTrue("getConfig", bm3.getConfig() == Bitmap.Config.ARGB_4444); in testBasic()
62 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testMutability()
64 Bitmap.Config.ARGB_8888); in testMutability()
87 Bitmap.Config.ARGB_8888); in testGetPixelsWithAlpha()
112 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); in testGetPixelsWithoutAlpha()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerTest.java63 final List<Config> mBaseVariations = new ArrayList<Config>();
71 mBaseVariations.add(new Config(orientation, reverseLayout, stackFromBottom)); in setUp()
77 protected List<Config> addConfigVariation(List<Config> base, String fieldName, in addConfigVariation()
80 List<Config> newConfigs = new ArrayList<Config>(); in addConfigVariation()
81 Field field = Config.class.getDeclaredField(fieldName); in addConfigVariation()
82 for (Config config : base) { in addConfigVariation()
84 Config newConfig = (Config) config.clone(); in addConfigVariation()
92 void setupByConfig(Config config, boolean waitForFirstLayout) throws Throwable { in setupByConfig()
111 new Config().orientation(VERTICAL).stackFromBottom(false).reverseLayout( in testRemoveAnchorItem()
117 new Config().orientation(VERTICAL).stackFromBottom(false).reverseLayout(true), 100, in testRemoveAnchorItemReverse()
[all …]
DGridLayoutManagerTest.java54 final List<Config> mBaseVariations = new ArrayList<Config>();
62 mBaseVariations.add(new Config(spanCount, orientation, reverseLayout)); in setUp()
68 public RecyclerView setupBasic(Config config) throws Throwable { in setupBasic()
72 public RecyclerView setupBasic(Config config, GridTestAdapter testAdapter) throws Throwable { in setupBasic()
106 RecyclerView recyclerView = setupBasic(new Config(3, 10)); in predictiveSpanLookupTest()
140 customSizeInScrollDirectionTest(new Config(3, HORIZONTAL, false)); in testCustomWidthInHorizontal()
144 customSizeInScrollDirectionTest(new Config(3, VERTICAL, false)); in testCustomHeightInVertical()
147 public void customSizeInScrollDirectionTest(final Config config) throws Throwable { in customSizeInScrollDirectionTest()
156 public void customSizeInScrollDirectionTest(final Config config, boolean addDecorOffsets, in customSizeInScrollDirectionTest()
219 for (Config config : mBaseVariations) { in testRTL()
[all …]
DStaggeredGridLayoutManagerTest.java63 final List<Config> mBaseVariations = new ArrayList<Config>();
73 mBaseVariations.add(new Config(orientation, reverseLayout, spanCount, in setUp()
81 void setupByConfig(Config config) throws Throwable { in setupByConfig()
108 setupByConfig(new Config(VERTICAL, false, 3, GAP_HANDLING_NONE).itemCount(300)); in testAreAllStartsTheSame()
119 setupByConfig(new Config(VERTICAL, true, 3, GAP_HANDLING_NONE).itemCount(300)); in testAreAllEndsTheSame()
130 setupByConfig(new Config(VERTICAL, false, 2, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS) in testFindLastInUnevenDistribution()
170 new Config(HORIZONTAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in testCustomWidthInHorizontal()
175 new Config(VERTICAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in testCustomHeightInVertical()
178 public void customSizeInScrollDirectionTest(final Config config) throws Throwable { in customSizeInScrollDirectionTest()
216 for (Config config : mBaseVariations) { in testRTL()
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmap.java219 public void reconfigure(int width, int height, Config config) { in reconfigure()
281 public void setConfig(Config config) { in setConfig()
390 public enum Config { enum in Bitmap
451 private static Config sConfigs[] = {
455 Config(int ni) { in Config() method in Bitmap.Config
459 static Config nativeToConfig(int ni) { in nativeToConfig()
558 public Bitmap copy(Config config, boolean isMutable) { in copy()
707 Config newConfig = Config.ARGB_8888; in createBitmap()
708 final Config config = source.getConfig(); in createBitmap()
713 newConfig = Config.RGB_565; in createBitmap()
[all …]
DFontListParser.java36 public static class Config { class in FontListParser
37 Config() { in Config() method in FontListParser.Config
77 public static Config parse(InputStream in) throws XmlPullParserException, IOException { in parse()
88 private static Config readFamilies(XmlPullParser parser) in readFamilies()
90 Config config = new Config(); in readFamilies()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMffContext.java50 public static class Config { class in MffContext
135 init(context, new Config()); in MffContext()
154 public MffContext(Context context, Config config) { in MffContext()
339 private void init(Context context, Config config) { in init()
347 private void fetchDummySurfaceView(Context context, Config config) { in fetchDummySurfaceView()
355 private void determineGLSupport(Context context, Config config) { in determineGLSupport()
367 private void determineCameraSupport(Config config) { in determineCameraSupport()
DFrameImage2D.java117 Bitmap.Config config = bitmap.getConfig(); in convertToFrameType()
121 if (config != Bitmap.Config.ARGB_8888) { in convertToFrameType()
122 result = bitmap.copy(Bitmap.Config.ARGB_8888, false); in convertToFrameType()
170 Bitmap.Config config = Bitmap.Config.ARGB_8888; in cpuImageCopy()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java26 import android.graphics.Bitmap.Config;
69 private final Config mConfig;
120 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888); in createBitmap()
153 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888); in createBitmap()
185 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap()
205 public Config getConfig() { in getConfig()
214 return mHasAlpha && mConfig != Config.RGB_565; in hasAlpha()
241 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCreate()
270 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCopy()
477 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ALPHA_8); in nativeExtractAlpha()
[all …]
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
DRSTest_v11.java29 import android.util.Config;
45 private static final boolean LOG_ENABLED = DEBUG ? Config.LOGD : Config.LOGV;
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
DFountain_v11.java29 import android.util.Config;
45 private static final boolean LOG_ENABLED = DEBUG ? Config.LOGD : Config.LOGV;
/frameworks/base/core/java/android/util/
DConfig.java24 public final class Config { class
25 /** @hide */ public Config() {} in Config() method in Config
/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DStatusBar.java75 setBackgroundColor(color == 0 ? Config.getStatusBarColor(simulatedPlatformVersion) : color); in StatusBar()
82 + Config.getWifiIconType(simulatedPlatformVersion), density); in StatusBar()
84 setText(3, Config.getTime(simulatedPlatformVersion), false) in StatusBar()
85 .setTextColor(Config.getTimeColor(simulatedPlatformVersion)); in StatusBar()
/frameworks/volley/src/test/java/com/android/volley/toolbox/
DImageRequestTest.java20 import android.graphics.Bitmap.Config;
128 Config.RGB_565, null); in verifyResize()
167 int.class, int.class, Bitmap.Config.class, Response.ErrorListener.class)); in publicMethods()
169 int.class, int.class, ImageView.ScaleType.class, Bitmap.Config.class, in publicMethods()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
DIconTest.java45 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap()
46 final Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testWithBitmap()
64 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
66 draw2.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
68 draw3.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmap()
118 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithBitmapResource()
145 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testWithFile()
178 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testAsync()
251 draw1.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in testParcel()
/frameworks/compile/mclinker/
Dmcld-host-build.mk4 -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
Dmcld-device-build.mk9 -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DImageRequest.java27 import android.graphics.Bitmap.Config;
46 private final Config mDecodeConfig;
73 ScaleType scaleType, Config decodeConfig, Response.ErrorListener errorListener) { in ImageRequest()
90 Config decodeConfig, Response.ErrorListener errorListener) { in ImageRequest()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java20 import android.graphics.Bitmap.Config;
66 COMPACT_BITMAP_SIZE, COMPACT_BITMAP_SIZE, Bitmap.Config.ARGB_8888 in isGrayscale()
150 Bitmap result = Bitmap.createBitmap(scaledWidth, scaledHeight, Config.ARGB_8888); in buildScaledBitmap()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffTestCase.java46 MffContext.Config config = new MffContext.Config(); in setUp()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DUploadedTexture.java20 import android.graphics.Bitmap.Config;
87 public Config config;
119 boolean vertical, Config config, int length) { in getBorderLine()
233 Config config = bitmap.getConfig(); in uploadToCanvas()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java23 import android.graphics.Bitmap.Config;
131 Bitmap.Config.ARGB_8888); in decodeRegion()
186 opts.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadInBackground()
387 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888; in BitmapRegionTileSource()
446 bitmap = Bitmap.createBitmap(tileSize, tileSize, Bitmap.Config.ARGB_8888); in getTile()
485 Bitmap result = Bitmap.createBitmap(tileSize, tileSize, Config.ARGB_8888); in getTileWithoutReusingBitmap()
521 Bitmap newBitmap = bitmap.copy(Config.ARGB_8888, false); in ensureGLCompatibleBitmap()
/frameworks/compile/mclinker/include/mcld/Config/
DTargets.def1 /*===- llvm/Config/Targets.def - MCLD Target Architectures ------*- C++ -*-===*\
31 #include <llvm/Config/Targets.def>

1234567