OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:fitIndex
(Results
1 - 2
of
2
) sorted by null
/frameworks/base/core/java/com/android/internal/colorextraction/types/
Tonal.java
167
int
fitIndex
= bestFit(palette, hsl[0], hsl[1], hsl[2]);
168
if (
fitIndex
== -1) {
174
float[] h = fit(palette.h, hsl[0],
fitIndex
,
176
float[] s = fit(palette.s, hsl[1],
fitIndex
, 0.0f, 1.0f);
177
float[] l = fit(palette.l, hsl[2],
fitIndex
, 0.0f, 1.0f);
180
StringBuilder builder = new StringBuilder("Tonal Palette - index: " +
fitIndex
+
181
". Main color: " + Integer.toHexString(getColorInt(
fitIndex
, h, s, l)) +
193
int primaryIndex =
fitIndex
;
219
} else if (
fitIndex
< 2) {
222
primaryIndex = Math.min(
fitIndex
, 3)
[
all
...]
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
ColorExtractionAlgorithm.java
114
int
fitIndex
= bestFit(palette, hsl[0], hsl[1], hsl[2]);
115
if (
fitIndex
== -1) {
121
float[] h = fit(palette.h, hsl[0],
fitIndex
,
123
float[] s = fit(palette.s, hsl[1],
fitIndex
, 0.0f, 1.0f);
124
float[] l = fit(palette.l, hsl[2],
fitIndex
, 0.0f, 1.0f);
126
int primaryIndex =
fitIndex
;
148
} else if (
fitIndex
< 2) {
151
primaryIndex = Math.min(
fitIndex
, 3);
168
private int getColorInt(int
fitIndex
, float[] h, float[] s, float[] l) {
169
mTmpHSL[0] = fract(h[
fitIndex
]) * 360.0f
[
all
...]
Completed in 189 milliseconds