OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:color2
(Results
1 - 25
of
75
) sorted by null
1
2
3
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
WeightedPixelDifference.java
57
private static float errorBetweenPixels(int color1, int
color2
) {
59
error += Math.abs(Color.red(color1) - Color.red(
color2
));
60
error += Math.abs(Color.green(color1) - Color.green(
color2
));
61
error += Math.abs(Color.blue(color1) - Color.blue(
color2
));
62
error += Math.abs(Color.alpha(color1) - Color.alpha(
color2
));
/external/chromium_org/ui/views/
background.cc
102
SkColor
color2
) {
104
true, Painter::CreateVerticalGradient(color1,
color2
));
106
color_utils::AlphaBlend(color1,
color2
, 128));
/external/chromium_org/ui/gfx/image/
image_unittest_util.cc
38
bool ColorsClose(SkColor color1, SkColor
color2
) {
40
return ColorComponentsClose(SkColorGetR(color1), SkColorGetR(
color2
)) &&
41
ColorComponentsClose(SkColorGetG(color1), SkColorGetG(
color2
)) &&
42
ColorComponentsClose(SkColorGetB(color1), SkColorGetB(
color2
)) &&
43
ColorComponentsClose(SkColorGetA(color1), SkColorGetA(
color2
));
238
void CheckColors(SkColor color1, SkColor
color2
) {
239
EXPECT_TRUE(ColorsClose(color1,
color2
));
image_unittest_util.h
77
void CheckColors(SkColor color1, SkColor
color2
);
/external/pdfium/core/src/fxge/Microsoft SDK/include/
GdiPlusBrush.h
462
IN const Color&
color2
)
469
color2
.GetValue(),
479
IN const Color&
color2
)
486
color2
.GetValue(),
495
IN const Color&
color2
,
502
color2
.GetValue(),
512
IN const Color&
color2
,
519
color2
.GetValue(),
529
IN const Color&
color2
,
537
color2
.GetValue(),
[
all
...]
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/gdiplus/
gdiplusbrush.h
145
const Color& color1, const Color&
color2
)
150
color1.GetValue(),
color2
.GetValue(),
155
const Color& color1, const Color&
color2
)
160
color1.GetValue(),
color2
.GetValue(),
165
const Color&
color2
, LinearGradientMode mode)
169
&rect, color1.GetValue(),
color2
.GetValue(),
174
const Color&
color2
, LinearGradientMode mode)
178
&rect, color1.GetValue(),
color2
.GetValue(),
183
const Color&
color2
, REAL angle,
188
&rect, color1.GetValue(),
color2
.GetValue()
[
all
...]
/cts/hostsidetests/theme/src/android/theme/cts/
ComparisonTask.java
131
int
color2
= Color.WHITE.getRGB();
135
color2
= image2.getRGB(i, j);
136
color3 = color1 ==
color2
? color1 : Color.RED.getRGB();
141
color2
= image2.getRGB(i, j);
149
diff.setRGB(x, j,
color2
);
/external/pdfium/core/include/fpdfdoc/
fpdf_ap.h
36
CPVT_Color(FX_INT32 type = 0, FX_FLOAT color1 = 0.0f, FX_FLOAT
color2
= 0.0f, FX_FLOAT color3 = 0.0f, FX_FLOAT color4 = 0.0f)
37
: nColorType(type), fColor1(color1), fColor2(
color2
), fColor3(color3), fColor4(color4)
/developers/build/prebuilts/gradle/AdapterTransition/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/build/prebuilts/gradle/BasicTransition/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/build/prebuilts/gradle/FragmentTransition/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/build/prebuilts/gradle/SlidingTabsBasic/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/build/prebuilts/gradle/SlidingTabsColors/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/developers/samples/android/common/src/java/com/example/android/common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/AdapterTransition/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/FragmentTransition/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
SlidingTabStrip.java
173
* Blend {@code color1} and {@code
color2
} using the given ratio.
176
* 0.0 will return {@code
color2
}.
178
private static int blendColors(int color1, int
color2
, float ratio) {
180
float r = (Color.red(color1) * ratio) + (Color.red(
color2
) * inverseRation);
181
float g = (Color.green(color1) * ratio) + (Color.green(
color2
) * inverseRation);
182
float b = (Color.blue(color1) * ratio) + (Color.blue(
color2
) * inverseRation);
Completed in 717 milliseconds
1
2
3