OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:swatches
(Results
1 - 5
of
5
) sorted by null
/frameworks/support/palette/src/androidTest/java/androidx/palette/graphics/
BucketTests.java
57
ArrayList<Palette.Swatch>
swatches
= new ArrayList<>();
local
58
swatches
.add(new Palette.Swatch(Color.BLACK, 40));
59
swatches
.add(new Palette.Swatch(Color.GREEN, 60));
60
swatches
.add(new Palette.Swatch(Color.BLUE, 10));
62
Palette p = Palette.from(
swatches
);
64
assertEquals(
swatches
, p.getSwatches());
169
// First assert that there are 3
swatches
/frameworks/base/core/java/com/android/internal/graphics/palette/
Palette.java
108
* Generate a {@link Palette} from the pre-generated list of {@link Palette.Swatch}
swatches
.
110
* list of
swatches
. Will return null if the {@code
swatches
} is null.
112
public static Palette from(List<Palette.Swatch>
swatches
) {
113
return new Palette.Builder(
swatches
).generate();
158
Palette(List<Palette.Swatch>
swatches
, List<Target> targets) {
159
mSwatches =
swatches
;
169
* Returns all of the
swatches
which make up the palette.
642
public Builder(List<Palette.Swatch>
swatches
) {
643
if (
swatches
== null || swatches.isEmpty())
809
List<Palette.Swatch>
swatches
;
local
[
all
...]
/frameworks/support/palette/src/main/java/androidx/palette/graphics/
Palette.java
107
* Generate a {@link Palette} from the pre-generated list of {@link Palette.Swatch}
swatches
.
109
* list of
swatches
. Will return null if the {@code
swatches
} is null.
112
public static Palette from(@NonNull List<Swatch>
swatches
) {
113
return new Builder(
swatches
).generate();
158
Palette(List<Swatch>
swatches
, List<Target> targets) {
159
mSwatches =
swatches
;
169
* Returns all of the
swatches
which make up the palette.
637
public Builder(@NonNull List<Swatch>
swatches
) {
638
if (
swatches
== null || swatches.isEmpty())
791
List<Swatch>
swatches
;
local
[
all
...]
/frameworks/base/core/java/android/app/
WallpaperColors.java
168
// Remove insignificant colors and sort
swatches
by population
169
final ArrayList<Palette.Swatch>
swatches
= new ArrayList<>(palette.getSwatches());
local
171
swatches
.removeIf(s -> s.getPopulation() < minColorArea);
172
swatches
.sort((a, b) -> b.getPopulation() - a.getPopulation());
174
final int swatchesSize =
swatches
.size();
179
Color color = Color.valueOf(
swatches
.get(i).getRgb());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
MediaNotificationProcessor.java
260
List<Palette.Swatch>
swatches
= palette.getSwatches();
local
263
for (Palette.Swatch swatch:
swatches
) {
Completed in 108 milliseconds