Home
last modified time | relevance | path

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

123456

/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()
109 setupByConfig(new Config(VERTICAL, false, false).itemCount(500), true); in testKeepFocusOnRelayout()
136 for(Config config : addConfigVariation(mBaseVariations, "mItemCount", 5 in testResize()
[all …]
DStaggeredGridLayoutManagerTest.java61 final List<Config> mBaseVariations = new ArrayList<Config>();
71 mBaseVariations.add(new Config(orientation, reverseLayout, spanCount, in setUp()
79 void setupByConfig(Config config) throws Throwable { in setupByConfig()
106 setupByConfig(new Config(VERTICAL, false, 3, GAP_HANDLING_NONE).itemCount(300)); in testAreAllStartsTheSame()
117 setupByConfig(new Config(VERTICAL, true, 3, GAP_HANDLING_NONE).itemCount(300)); in testAreAllEndsTheSame()
128 setupByConfig(new Config(VERTICAL, false, 2, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS) in testFindLastInUnevenDistribution()
167 new Config(HORIZONTAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in testCustomWidthInHorizontal()
172 new Config(VERTICAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in testCustomHeightInVertical()
175 public void customSizeInScrollDirectionTest(final Config config) throws Throwable { in customSizeInScrollDirectionTest()
212 setupByConfig(new Config(VERTICAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in testGrowLookup()
[all …]
DGridLayoutManagerTest.java50 final List<Config> mBaseVariations = new ArrayList<Config>();
58 mBaseVariations.add(new Config(spanCount, orientation, reverseLayout)); in setUp()
64 public RecyclerView setupBasic(Config config) throws Throwable { in setupBasic()
68 public RecyclerView setupBasic(Config config, GridTestAdapter testAdapter) throws Throwable { in setupBasic()
86 customSizeInScrollDirectionTest(new Config(3, HORIZONTAL, false)); in testCustomWidthInHorizontal()
90 customSizeInScrollDirectionTest(new Config(3, VERTICAL, false)); in testCustomHeightInVertical()
93 public void customSizeInScrollDirectionTest(final Config config) throws Throwable { in customSizeInScrollDirectionTest()
145 final RecyclerView recyclerView = setupBasic(new Config(3, orientation, false)); in accessibilitySpanIndicesTest()
190 final RecyclerView rv = setupBasic(new Config(3, 100).orientation(orientation), in layoutParamsTest()
384 final RecyclerView recyclerView = setupBasic(new Config(3, 100)); in testNotifyDataSetChange()
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmap.java218 public void reconfigure(int width, int height, Config config) { in reconfigure()
280 public void setConfig(Config config) { in setConfig()
386 public enum Config { enum in Bitmap
448 private static Config sConfigs[] = {
452 Config(int ni) { in Config() method in Bitmap.Config
456 static Config nativeToConfig(int ni) { in nativeToConfig()
555 public Bitmap copy(Config config, boolean isMutable) { in copy()
688 Config newConfig = Config.ARGB_8888; in createBitmap()
689 final Config config = source.getConfig(); in createBitmap()
694 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.java25 import android.graphics.Bitmap.Config;
68 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()
204 switch (Config.nativeToConfig(nativeBitmapConfig)) { in getBufferedImageType()
229 public Config getConfig() { in getConfig()
238 return mHasAlpha && mConfig != Config.RGB_565; in hasAlpha()
269 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCreate()
298 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCopy()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DStatusBar.java54 setBackgroundColor(Config.getStatusBarColor(simulatedPlatformVersion)); in StatusBar()
61 + Config.getWifiIconType(simulatedPlatformVersion), density); in StatusBar()
63 setText(3, Config.getTime(simulatedPlatformVersion), false) in StatusBar()
64 .setTextColor(Config.getTimeColor(simulatedPlatformVersion)); in StatusBar()
/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/compile/mclinker/
Dmcld-device-build.mk9 -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
Dmcld-host-build.mk6 -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
/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/volley/src/com/android/volley/toolbox/
DImageRequest.java27 import android.graphics.Bitmap.Config;
45 private final Config mDecodeConfig;
70 Config decodeConfig, Response.ErrorListener errorListener) { in ImageRequest()
/frameworks/compile/mclinker/include/mcld/Config/
DTargets.def1 /*===- llvm/Config/Targets.def - MCLD Target Architectures ------*- C++ -*-===*\
31 #include <llvm/Config/Targets.def>
DLinkers.def1 //===- llvm/Config/Linkers.def - MCLinkers ----------------------*- C++ -*-===//
31 #include <llvm/Config/Targets.def>
/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/base/services/core/java/com/android/server/net/
DNetworkStatsService.java183 public static class Config { class
188 public Config(long bucketDuration, long rotateAgeMillis, long deleteAgeMillis) { in Config() method in NetworkStatsService.NetworkStatsSettings.Config
195 public Config getDevConfig(); in getDevConfig()
196 public Config getXtConfig(); in getXtConfig()
197 public Config getUidConfig(); in getUidConfig()
198 public Config getUidTagConfig(); in getUidTagConfig()
337 String prefix, NetworkStatsSettings.Config config, boolean includeTags) { in buildRecorder()
1272 public Config getDevConfig() { in getDevConfig()
1273 return new Config(getGlobalLong(NETSTATS_DEV_BUCKET_DURATION, HOUR_IN_MILLIS), in getDevConfig()
1278 public Config getXtConfig() { in getXtConfig()
[all …]
/frameworks/volley/tests/src/com/android/volley/toolbox/
DImageRequestTest.java21 import android.graphics.Bitmap.Config;
64 "", null, maxWidth, maxHeight, Config.RGB_565, null); in verifyResize()

123456