Home
last modified time | relevance | path

Searched refs:GradientColors (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/types/
DTonalTest.java31 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
47 GradientColors normal = new GradientColors(); in extractInto_usesFallback()
49 tonal.extractInto(null, normal, new GradientColors(), in extractInto_usesFallback()
50 new GradientColors()); in extractInto_usesFallback()
57 GradientColors normal = new GradientColors(); in extractInto_usesFallbackWhenTooLightOrDark()
60 normal, new GradientColors(), new GradientColors()); in extractInto_usesFallbackWhenTooLightOrDark()
66 normal, new GradientColors(), new GradientColors()); in extractInto_usesFallbackWhenTooLightOrDark()
74 GradientColors normal = new GradientColors(); in extractInto_fromBitmap()
75 GradientColors dark = new GradientColors(); in extractInto_fromBitmap()
76 GradientColors extraDark = new GradientColors(); in extractInto_fromBitmap()
[all …]
/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java48 protected final SparseArray<GradientColors[]> mGradientColors;
68 GradientColors[] colors = new GradientColors[sGradientTypes.length]; in ColorExtractor()
71 colors[type] = new GradientColors(); in ColorExtractor()
115 GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in extractWallpaperColors()
116 GradientColors[] lockColors = mGradientColors.get(WallpaperManager.FLAG_LOCK); in extractWallpaperColors()
134 public GradientColors getColors(int which) { in getColors()
146 public GradientColors getColors(int which, int type) { in getColors()
182 GradientColors[] lockColors = mGradientColors.get(WallpaperManager.FLAG_LOCK); in onColorsChanged()
189 GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in onColorsChanged()
216 GradientColors outGradientColorsNormal, GradientColors outGradientColorsDark, in extractInto()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTonalCompat.java21 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
33 GradientColors darkColors = new GradientColors(); in extractDarkColors()
34 mTonal.extractInto(colors, new GradientColors(), darkColors, new GradientColors()); in extractDarkColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/
DSysuiColorExtractor.java49 private final GradientColors mNeutralColorsLock;
50 private final GradientColors mBackdropColors;
64 mNeutralColorsLock = new GradientColors(); in SysuiColorExtractor()
67 mBackdropColors = new GradientColors(); in SysuiColorExtractor()
107 public GradientColors getColors(int which, int type) { in getColors()
122 public GradientColors getNeutralColors() { in getNeutralColors()
141 GradientColors[] system = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); in dump()
142 GradientColors[] lock = mGradientColors.get(WallpaperManager.FLAG_LOCK); in dump()
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/
DColorExtractorTest.java35 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
73 GradientColors colorsExpectedNormal = new GradientColors(); in getColors_usesExtractedColors()
77 GradientColors colorsExpectedDark = new GradientColors(); in getColors_usesExtractedColors()
81 GradientColors colorsExpectedExtraDark = new GradientColors(); in getColors_usesExtractedColors()
94 GradientColors colors = extractor.getColors(WallpaperManager.FLAG_SYSTEM, in getColors_usesExtractedColors()
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DExtractionType.java43 ColorExtractor.GradientColors outGradientColorsNormal, in extractInto()
44 ColorExtractor.GradientColors outGradientColorsDark, in extractInto()
45 ColorExtractor.GradientColors outGradientColorsExtraDark); in extractInto()
DTonal.java31 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
86 @NonNull GradientColors outColorsNormal, @NonNull GradientColors outColorsDark, in extractInto()
87 @NonNull GradientColors outColorsExtraDark) { in extractInto()
105 @NonNull GradientColors outColorsNormal, @NonNull GradientColors outColorsDark, in runTonalExtraction()
106 @NonNull GradientColors outColorsExtraDark) { in runTonalExtraction()
236 GradientColors outColorsNormal, GradientColors outColorsDark, in applyFallback()
237 GradientColors outColorsExtraDark) { in applyFallback()
250 @NonNull GradientColors outGradientColors) { in applyFallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScrimView.java40 private final ColorExtractor.GradientColors mColors;
64 mColors = new ColorExtractor.GradientColors(); in ScrimView()
100 public void setColors(@NonNull ColorExtractor.GradientColors colors) { in setColors()
104 public void setColors(@NonNull ColorExtractor.GradientColors colors, boolean animated) { in setColors()
120 public ColorExtractor.GradientColors getColors() { in getColors()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/
DSysuiColorExtractorTests.java63 private ColorExtractor.GradientColors mColors;
69 mColors = new ColorExtractor.GradientColors(); in setUp()
100 ColorExtractor.GradientColors fallbackColors = mColorExtractor.getNeutralColors(); in getColors_fallbackWhenMediaIsVisible()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsImpl.java31 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
130 GradientColors colors = Dependency.get(SysuiColorExtractor.class).getNeutralColors(); in showShutdownUi()
DGlobalActionsDialog.java77 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
1667 GradientColors colors = mColorExtractor.getNeutralColors();
1677 private void updateColors(GradientColors colors, boolean animate) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DScrimViewTest.java74 ColorExtractor.GradientColors colors = mView.getColors(); in testCreation_initialColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLightBarController.java27 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
180 GradientColors scrimInFrontColor) { in setScrimState()
DScrimController.java38 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
135 private GradientColors mColors;
161 private final TriConsumer<ScrimState, Float, GradientColors> mScrimStateListener;
178 TriConsumer<ScrimState, Float, GradientColors> scrimStateListener, in ScrimController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIFactory.java30 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
139 TriConsumer<ScrimState, Float, GradientColors> scrimStateListener, in createScrimController()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DDefaultClockController.java126 ColorExtractor.GradientColors colors = mColorExtractor.getColors( in getPreview()
DBubbleClockController.java132 ColorExtractor.GradientColors colors = mColorExtractor.getColors( in getPreview()
DAnalogClockController.java132 ColorExtractor.GradientColors colors = mColorExtractor.getColors( in getPreview()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DScrimControllerTest.java46 import com.android.internal.colorextraction.ColorExtractor.GradientColors;
73 private GradientColors mScrimInFrontColor;
681 TriConsumer<ScrimState, Float, GradientColors> scrimStateListener, in SynchronousScrimController()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsActivity.java373 ColorExtractor.GradientColors systemColors = mColorExtractor.getNeutralColors(); in onStart()
397 ColorExtractor.GradientColors colors = mColorExtractor.getNeutralColors(); in onColorsChanged()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java381 ColorExtractor.GradientColors colors = mSysuiColorExtractor.getColors( in updateColors()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DRecentsView.java396 public void setScrimColors(ColorExtractor.GradientColors scrimColors, boolean animated) {