Home
last modified time | relevance | path

Searched refs:mGradientColors (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java726 if (mGradientState.mGradientColors == null) { in getColors()
729 int[] colors = new int[mGradientState.mGradientColors.length]; in getColors()
730 for (int i = 0; i < mGradientState.mGradientColors.length; i++) { in getColors()
731 if (mGradientState.mGradientColors[i] != null) { in getColors()
732 colors[i] = mGradientState.mGradientColors[i].getDefaultColor(); in getColors()
1290 if (st.mGradientColors != null) {
1291 gradientColors = new int[st.mGradientColors.length];
1293 if (st.mGradientColors[i] != null) {
1294 gradientColors[i] = st.mGradientColors[i].getDefaultColor();
1459 if (state.mGradientColors != null) {
[all …]
/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java48 protected final SparseArray<GradientColors[]> mGradientColors; field in ColorExtractor
66 mGradientColors = new SparseArray<>(); in ColorExtractor()
69 mGradientColors.append(which, colors); in ColorExtractor()
112 GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in extractWallpaperColors()
113 GradientColors[] lockColors = mGradientColors.get(WallpaperManager.FLAG_LOCK); in extractWallpaperColors()
151 return mGradientColors.get(which)[type]; in getColors()
179 GradientColors[] lockColors = mGradientColors.get(WallpaperManager.FLAG_LOCK); in onColorsChanged()
186 GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in onColorsChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/
DSysuiColorExtractor.java140 GradientColors[] system = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in dump()
141 GradientColors[] lock = mGradientColors.get(WallpaperManager.FLAG_LOCK); in dump()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/
DNotificationShadeWindowControllerImplTest.java101 @Mock private ColorExtractor.GradientColors mGradientColors; field in NotificationShadeWindowControllerImplTest
139 when(mColorExtractor.getNeutralColors()).thenReturn(mGradientColors); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DCentralSurfacesImplTest.java285 @Mock private ColorExtractor.GradientColors mGradientColors; field in CentralSurfacesImplTest
437 when(mGradientColors.supportsDarkText()).thenReturn(true); in setup()
438 when(mColorExtractor.getNeutralColors()).thenReturn(mGradientColors); in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DBubblesTest.java296 ColorExtractor.GradientColors mGradientColors; field in BubblesTest
384 when(mColorExtractor.getNeutralColors()).thenReturn(mGradientColors); in setUp()