OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:colorDrawable
(Results
1 - 7
of
7
) sorted by null
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ColorDrawableTest.java
24
import android.graphics.drawable.
ColorDrawable
;
38
new
ColorDrawable
();
39
new
ColorDrawable
(0);
40
new
ColorDrawable
(1);
47
ColorDrawable
colorDrawable
= new
ColorDrawable
();
48
assertEquals(0,
colorDrawable
.getAlpha());
50
colorDrawable
.setAlpha(128);
51
assertEquals(0,
colorDrawable
.getAlpha())
[
all
...]
LayerDrawableTest.java
33
import android.graphics.drawable.
ColorDrawable
;
51
Drawable
colorDrawable
= new
ColorDrawable
(Color.BLUE);
52
Drawable[] array = new Drawable[] { bitmapDrawable,
colorDrawable
};
56
assertSame(
colorDrawable
, layerDrawable.getDrawable(1));
79
assertEquals(
ColorDrawable
.class, layerDrawable.getDrawable(0).getClass());
126
Drawable
colorDrawable
= new
ColorDrawable
(Color.BLUE);
127
Drawable[] array = new Drawable[] { bitmapDrawable,
colorDrawable
};
133
assertSame(
colorDrawable
, layerDrawable.findDrawableByLayerId(20))
[
all
...]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
CalendarColorSquare.java
43
Drawable[]
colorDrawable
= new Drawable[] {
45
setImageDrawable(new ColorStateDrawable(
colorDrawable
, color));
/frameworks/opt/colorpicker/src/com/android/colorpicker/
ColorPickerSwatch.java
61
Drawable[]
colorDrawable
= new Drawable[]
63
mSwatchImage.setImageDrawable(new ColorStateDrawable(
colorDrawable
, color));
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowResources.java
167
Drawable
colorDrawable
= resLoader.getColorDrawable(drawableResourceId);
168
if (
colorDrawable
!= null) {
169
return
colorDrawable
;
/packages/apps/Camera2/src/com/android/camera/ui/
BottomBar.java
23
import android.graphics.drawable.
ColorDrawable
;
86
private
ColorDrawable
mColorDrawable;
122
ColorDrawable
intentBackground = (
ColorDrawable
) mIntentReviewLayout
140
} else if (d instanceof
ColorDrawable
) {
141
ColorDrawable
colorDrawable
= (
ColorDrawable
) d;
143
colorDrawable
.setColor(color);
145
colorDrawable
.setAlpha(alpha)
[
all
...]
/cts/tests/tests/view/src/android/view/cts/
ViewTest.java
35
import android.graphics.drawable.
ColorDrawable
;
499
ColorDrawable
colorDrawable
;
503
colorDrawable
= (
ColorDrawable
) view.getBackground();
504
assertNotNull(
colorDrawable
);
505
assertEquals(0xFF,
colorDrawable
.getAlpha());
508
colorDrawable
= (
ColorDrawable
) view.getBackground();
509
assertNotNull(
colorDrawable
);
[
all
...]
Completed in 1341 milliseconds