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
34
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());
80
assertEquals(0x88, (((
ColorDrawable
) layerDrawable.getDrawable(0)).getAlpha()));
126
Drawable
colorDrawable
= new
ColorDrawable
(Color.BLUE);
127
Drawable[] array = new Drawable[] { bitmapDrawable,
colorDrawable
};
[
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
38
import android.graphics.drawable.
ColorDrawable
;
471
ColorDrawable
colorDrawable
;
475
colorDrawable
= (
ColorDrawable
) view.getBackground();
476
assertNotNull(
colorDrawable
);
477
assertEquals(0xFF,
colorDrawable
.getAlpha());
480
colorDrawable
= (
ColorDrawable
) view.getBackground();
481
assertNotNull(
colorDrawable
);
[
all
...]
Completed in 1501 milliseconds