OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:colorDrawable
(Results
1 - 6
of
6
) sorted by null
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ColorDrawableTest.java
30
import android.graphics.drawable.
ColorDrawable
;
39
new
ColorDrawable
();
40
new
ColorDrawable
(0);
41
new
ColorDrawable
(1);
48
ColorDrawable
colorDrawable
= new
ColorDrawable
();
49
assertEquals(0,
colorDrawable
.getAlpha());
51
colorDrawable
.setAlpha(128);
52
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
21
import android.graphics.drawable.
ColorDrawable
;
64
Drawable[]
colorDrawable
= new Drawable[]
66
mSwatchImage.setImageDrawable(new ColorStateDrawable(
colorDrawable
, color));
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowResources.java
165
Drawable
colorDrawable
= resLoader.getColorDrawable(drawableResourceId);
166
if (
colorDrawable
!= null) {
167
return
colorDrawable
;
/cts/tests/tests/view/src/android/view/cts/
ViewTest.java
32
import android.graphics.drawable.
ColorDrawable
;
465
ColorDrawable
colorDrawable
;
469
colorDrawable
= (
ColorDrawable
) view.getBackground();
470
assertNotNull(
colorDrawable
);
471
assertEquals(0xFF,
colorDrawable
.getAlpha());
474
colorDrawable
= (
ColorDrawable
) view.getBackground();
475
assertNotNull(
colorDrawable
);
[
all
...]
Completed in 677 milliseconds