/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | GraphicsPerformanceTests.java | 93 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 …]
|
D | BitmapTest.java | 27 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/ |
D | GridLayoutManagerCachedBordersTest.java | 36 public static List<Config> params() { in params() 37 List<Config> testConfigurations = createBaseVariations(); in params() 42 private final Config mConfig; 44 public GridLayoutManagerCachedBordersTest(Config config) { in GridLayoutManagerCachedBordersTest() 68 private static List<Config> cachedBordersTestConfigs() { in cachedBordersTestConfigs() 69 ArrayList<Config> configs = new ArrayList<Config>(); in cachedBordersTestConfigs() 75 Config config = new Config(spanCounts[i], orientation, reverseLayout); in cachedBordersTestConfigs()
|
D | LinearLayoutManagerSavedStateTest.java | 39 final Config mConfig; 45 public LinearLayoutManagerSavedStateTest(Config config, boolean waitForLayout, in LinearLayoutManagerSavedStateTest() 147 void onAfterRestore(Config config) throws Throwable { in params() 154 boolean shouldLayoutMatch(Config config) { in params() 165 void onAfterRestore(Config config) throws Throwable { in params() 171 boolean shouldLayoutMatch(Config config) { in params() 182 void onAfterRestore(Config config) throws Throwable { in params() 188 boolean shouldLayoutMatch(Config config) { in params() 199 void onAfterRestore(Config config) throws Throwable { in params() 205 boolean shouldLayoutMatch(Config config) { in params() [all …]
|
D | LinearLayoutManagerResizeTest.java | 38 final Config mConfig; 40 public LinearLayoutManagerResizeTest(Config config) { in LinearLayoutManagerResizeTest() 45 public static List<Config> testResize() throws Throwable { in testResize() 46 List<Config> configs = new ArrayList<>(); in testResize() 47 for (Config config : addConfigVariation(createBaseVariations(), "mItemCount", 5 in testResize() 48 , Config.DEFAULT_ITEM_COUNT)) { in testResize() 57 final Config config = (Config) mConfig.clone(); in resize()
|
D | LinearLayoutManagerTest.java | 63 new Config().orientation(VERTICAL).stackFromBottom(false).reverseLayout( in removeAnchorItem() 70 new Config().orientation(VERTICAL).stackFromBottom(false).reverseLayout(true), 100, in removeAnchorItemReverse() 77 new Config().orientation(VERTICAL).stackFromBottom(true).reverseLayout(false), 100, in removeAnchorItemStackFromEnd() 84 new Config().orientation(VERTICAL).stackFromBottom(true).reverseLayout(true), 100, in removeAnchorItemStackFromEndAndReverse() 91 new Config().orientation(HORIZONTAL).stackFromBottom(false).reverseLayout( in removeAnchorItemHorizontal() 98 new Config().orientation(HORIZONTAL).stackFromBottom(false).reverseLayout(true), in removeAnchorItemReverseHorizontal() 105 new Config().orientation(HORIZONTAL).stackFromBottom(true).reverseLayout(false), in removeAnchorItemStackFromEndHorizontal() 112 new Config().orientation(HORIZONTAL).stackFromBottom(true).reverseLayout(true), 100, in removeAnchorItemStackFromEndAndReverseHorizontal() 121 public void removeAnchorItemTest(final Config config, int adapterSize, in removeAnchorItemTest() 209 setupByConfig(new Config(VERTICAL, false, false).itemCount(500), true); in keepFocusOnRelayout() [all …]
|
D | BaseLinearLayoutManagerTest.java | 48 protected static List<Config> createBaseVariations() { in createBaseVariations() 49 List<Config> variations = new ArrayList<>(); in createBaseVariations() 55 new Config(orientation, reverseLayout, stackFromBottom).wrap(wrap)); in createBaseVariations() 67 protected static List<Config> addConfigVariation(List<Config> base, String fieldName, in addConfigVariation() 70 List<Config> newConfigs = new ArrayList<Config>(); in addConfigVariation() 71 Field field = Config.class.getDeclaredField(fieldName); in addConfigVariation() 72 for (Config config : base) { in addConfigVariation() 74 Config newConfig = (Config) config.clone(); in addConfigVariation() 82 void setupByConfig(Config config, boolean waitForFirstLayout) throws Throwable { in setupByConfig() 109 setupByConfig(new Config(VERTICAL, false, false), true); in scrollToPositionWithPredictive() [all …]
|
D | StaggeredGridLayoutManagerTest.java | 68 setupByConfig(new Config(VERTICAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in forceLayoutOnDetach() 81 setupByConfig(new Config(VERTICAL, false, 3, GAP_HANDLING_NONE).itemCount(300)); in areAllStartsTheSame() 93 setupByConfig(new Config(VERTICAL, true, 3, GAP_HANDLING_NONE).itemCount(300)); in areAllEndsTheSame() 105 setupByConfig(new Config(VERTICAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in getPositionsBeforeInitialization() 114 setupByConfig(new Config(VERTICAL, false, 2, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS) in findLastInUnevenDistribution() 155 new Config(HORIZONTAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in customWidthInHorizontal() 161 new Config(VERTICAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS)); in customHeightInVertical() 164 public void customSizeInScrollDirectionTest(final Config config) throws Throwable { in customSizeInScrollDirectionTest() 216 Config config = new Config(VERTICAL, false, 2, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS); in gapHandlingWhenItemMovesToTopTest() 265 setupByConfig(new Config(VERTICAL, false, 3, GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS), in focusSearchFailureFromSubChild() [all …]
|
D | StaggeredGridLayoutManagerSavedStateTest.java | 39 private final Config mConfig; 45 Config config, boolean waitForLayout, boolean loadDataAfterRestore, in StaggeredGridLayoutManagerSavedStateTest() 47 this.mConfig = (Config) config.clone(); in StaggeredGridLayoutManagerSavedStateTest() 59 List<Config> variations = createBaseVariations(); in getParams() 117 List<Config> testVariations = new ArrayList<Config>(); in getParams() 119 for (Config config : variations) { in getParams() 123 final Config clone = (Config) config.clone(); in getParams() 129 for (Config config : testVariations) { in getParams()
|
D | BaseGridLayoutManagerTest.java | 43 public RecyclerView setupBasic(Config config) throws Throwable { in setupBasic() 47 public RecyclerView setupBasic(Config config, GridTestAdapter testAdapter) throws Throwable { in setupBasic() 58 public static List<Config> createBaseVariations() { in createBaseVariations() 59 List<Config> variations = new ArrayList<>(); in createBaseVariations() 63 variations.add(new Config(spanCount, orientation, reverseLayout)); in createBaseVariations() 87 static class Config implements Cloneable { class in BaseGridLayoutManagerTest 95 Config(int spanCount, int itemCount) { in Config() method in BaseGridLayoutManagerTest.Config 100 public Config(int spanCount, int orientation, boolean reverseLayout) { in Config() method in BaseGridLayoutManagerTest.Config 106 Config orientation(int orientation) { in orientation() 121 public Config reverseLayout(boolean reverseLayout) { in reverseLayout()
|
D | LinearLayoutManagerBaseConfigSetTest.java | 59 private final Config mConfig; 61 public LinearLayoutManagerBaseConfigSetTest(Config config) { in LinearLayoutManagerBaseConfigSetTest() 67 public static List<Config> configs() throws CloneNotSupportedException { in configs() 68 List<Config> result = new ArrayList<>(); in configs() 69 for (Config config : createBaseVariations()) { in configs() 77 Config config = ((Config) mConfig.clone()).itemCount(300); in scrollToPositionWithOffsetTest() 161 final Config config = ((Config) mConfig.clone()).itemCount(300); in getFirstLastChildrenTest() 237 final Config config = ((Config) mConfig.clone()).itemCount(1000); in dontRecycleViewsTranslatedOutOfBoundsFromStart() 271 final Config config = ((Config) mConfig.clone()).itemCount(1000); in dontRecycleViewsTranslatedOutOfBoundsFromEnd() 303 private TargetTuple findInvisibleTarget(Config config) { in findInvisibleTarget()
|
D | BaseStaggeredGridLayoutManagerTest.java | 44 protected static List<Config> createBaseVariations() { in createBaseVariations() 45 List<Config> variations = new ArrayList<>(); in createBaseVariations() 52 variations.add(new Config(orientation, reverseLayout, spanCount, in createBaseVariations() 63 protected static List<Config> addConfigVariation(List<Config> base, String fieldName, in addConfigVariation() 66 List<Config> newConfigs = new ArrayList<Config>(); in addConfigVariation() 67 Field field = Config.class.getDeclaredField(fieldName); in addConfigVariation() 68 for (Config config : base) { in addConfigVariation() 70 Config newConfig = (Config) config.clone(); in addConfigVariation() 78 void setupByConfig(Config config) throws Throwable { in setupByConfig() 82 void setupByConfig(Config config, GridTestAdapter adapter) throws Throwable { in setupByConfig() [all …]
|
D | GridLayoutManagerBaseConfigSetTest.java | 37 public static List<Config> params() { in params() 41 private final Config mConfig; 43 public GridLayoutManagerBaseConfigSetTest(Config config) { in GridLayoutManagerBaseConfigSetTest() 49 Config config = (Config) mConfig.clone(); in scrollBackAndPreservePositions() 54 public void scrollBackAndPreservePositionsTest(final Config config) throws Throwable { in scrollBackAndPreservePositionsTest()
|
D | LinearLayoutManagerWrapContentTest.java | 19 import static android.support.v7.widget.BaseLinearLayoutManagerTest.Config; 40 Config mConfig; 42 public LinearLayoutManagerWrapContentTest(Config config, in LinearLayoutManagerWrapContentTest() 124 new Config(orientation, reverseLayout, stackFromBottom), in data() 130 new Config(orientation, reverseLayout, stackFromBottom), in data()
|
D | StaggeredGridLayoutManagerGapTest.java | 36 private final Config mConfig; 40 public StaggeredGridLayoutManagerGapTest(Config config, int deletePosition, int deleteCount) { in StaggeredGridLayoutManagerGapTest() 48 List<Config> variations = createBaseVariations(); in getParams() 50 for (Config config : variations) { in getParams()
|
D | GridLayoutManagerTest.java | 79 RecyclerView recyclerView = setupBasic(new Config(2, 100).reverseLayout(reverseLayout), in scrollToBadOffset() 119 final RecyclerView recyclerView = setupBasic(new Config(3, 31).reverseLayout(!scrollDown) in focusSearchFailure() 170 final RecyclerView recyclerView = setupBasic(new Config(3, 100)); in scrollWithoutLayout() 179 final RecyclerView recyclerView = setupBasic(new Config(3, 100)); in scrollWithoutLayoutAfterInvalidate() 211 RecyclerView recyclerView = setupBasic(new Config(3, 10)); in predictiveSpanLookupTest() 246 final RecyclerView rv = setupBasic(new Config(3, 100)); in movingAGroupOffScreenForAddedItems() 297 final RecyclerView recyclerView = setupBasic(new Config(3, orientation, false)); in accessibilitySpanIndicesTest() 342 final RecyclerView rv = setupBasic(new Config(3, 100).orientation(orientation), in layoutParamsTest() 542 new Config(3, 0).orientation(VERTICAL).reverseLayout(false), 100, 0); in removeAnchorItem() 548 new Config(3, 0).orientation(VERTICAL).reverseLayout(true), 100, in removeAnchorItemReverse() [all …]
|
D | LinearLayoutManagerPrepareForDropTest.java | 38 final BaseLinearLayoutManagerTest.Config mConfig; 42 Config config, SelectTargetChildren selectTargetChildren) { in LinearLayoutManagerPrepareForDropTest() 90 for (BaseLinearLayoutManagerTest.Config config : createBaseVariations()) { in params() 101 final Config config = (Config) mConfig.clone(); in prepareForDropTest()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 251 public void reconfigure(int width, int height, Config config) { in reconfigure() 313 public void setConfig(Config config) { in setConfig() 422 public enum Config { enum in Bitmap 483 private static Config sConfigs[] = { 487 Config(int ni) { in Config() method in Bitmap.Config 491 static Config nativeToConfig(int ni) { in nativeToConfig() 590 public Bitmap copy(Config config, boolean isMutable) { in copy() 622 public Bitmap createAshmemBitmap(Config config) { in createAshmemBitmap() 755 Config newConfig = Config.ARGB_8888; in createBitmap() 756 final Config config = source.getConfig(); in createBitmap() [all …]
|
/frameworks/base/core/java/android/view/animation/ |
D | BaseInterpolator.java | 19 import android.content.pm.ActivityInfo.Config; 25 private @Config int mChangingConfiguration; 29 public @Config int getChangingConfiguration() { in getChangingConfiguration() 36 void setChangingConfiguration(@Config int changingConfiguration) { in setChangingConfiguration()
|
/frameworks/base/core/java/android/animation/ |
D | Animator.java | 20 import android.content.pm.ActivityInfo.Config; 55 @Config int mChangingConfigurations = 0; 349 public @Config int getChangingConfigurations() { in getChangingConfigurations() 363 public void setChangingConfigurations(@Config int configs) { in setChangingConfigurations() 373 public void appendChangingConfigurations(@Config int configs) { in appendChangingConfigurations() 573 @Config int mChangingConf; 583 public @Config int getChangingConfigurations() { in getChangingConfigurations()
|
D | StateListAnimator.java | 19 import android.content.pm.ActivityInfo.Config; 57 private @Config int mChangingConfigurations; 227 public @Config int getChangingConfigurations() { in getChangingConfigurations() 241 public void setChangingConfigurations(@Config int configs) { in setChangingConfigurations() 251 public void appendChangingConfigurations(@Config int configs) { in appendChangingConfigurations() 313 @Config int mChangingConf; 322 public @Config int getChangingConfigurations() { in getChangingConfigurations()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MffContext.java | 50 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()
|
D | FrameImage2D.java | 117 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/core/java/android/content/res/ |
D | ThemedResourceCache.java | 21 import android.content.pm.ActivityInfo.Config; 119 public void onConfigurationChange(@Config int configChanges) { in onConfigurationChange() 196 private boolean prune(@Config int configChanges) { in prune() 215 @Config int configChanges) { in pruneEntriesLocked() 230 private boolean pruneEntryLocked(@Nullable T entry, @Config int configChanges) { in pruneEntryLocked()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Bitmap_Delegate.java | 31 import android.graphics.Bitmap.Config; 76 private final Config mConfig; 142 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap() 175 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888); in createBitmap() 207 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap() 227 public Config getConfig() { in getConfig() 236 return mHasAlpha && mConfig != Config.RGB_565; in hasAlpha() 263 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCreate() 292 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCopy() 511 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ALPHA_8); in nativeExtractAlpha() [all …]
|