OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getDrawable
(Results
1 - 25
of
475
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DirectoryEntry.java
37
public Drawable
getDrawable
(Resources res) {
38
return res.
getDrawable
(resID);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
BitmapDrawableTest.java
35
BitmapDrawable drawable = (BitmapDrawable) resources.
getDrawable
(R.drawable.an_image);
41
BitmapDrawable drawable = (BitmapDrawable) resources.
getDrawable
(R.drawable.an_image);
57
BitmapDrawable drawable = (BitmapDrawable) resources.
getDrawable
(R.drawable.an_image);
68
Drawable drawable1a = resources.
getDrawable
(R.drawable.an_image);
69
Drawable drawable1b = resources.
getDrawable
(R.drawable.an_image);
70
Drawable drawable2 = resources.
getDrawable
(R.drawable.an_other_image);
78
Drawable drawable1a = resources.
getDrawable
(R.drawable.an_image);
79
Drawable drawable1b = resources.
getDrawable
(R.drawable.an_image);
92
Drawable drawable = resources.
getDrawable
(R.drawable.an_image);
98
BitmapDrawable drawable = (BitmapDrawable) resources.
getDrawable
(R.drawable.an_image)
[
all
...]
ImageViewTest.java
73
assertTrue("Drawable", imageView.
getDrawable
() instanceof Drawable);
75
imageView.
getDrawable
() instanceof LayerDrawable);
81
Drawable animation = imageView.
getDrawable
();
89
AnimationDrawable animation = (AnimationDrawable) imageView.
getDrawable
();
96
assertTrue("Drawable", imageView.
getDrawable
() instanceof Drawable);
98
imageView.
getDrawable
() instanceof LayerDrawable);
99
assertThat(shadowOf(imageView.
getDrawable
()).getLoadedFromResourceId(), is(R.drawable.rainbow));
ResourcesTest.java
71
assertThat( resources.
getDrawable
( TestR.anim.test_anim_1 ), instanceOf( BitmapDrawable.class ) );
80
assertThat( resources.
getDrawable
( TestR.anim.test_anim_1 ), instanceOf( AnimationDrawable.class ) );
96
assertThat( resources.
getDrawable
( TestR.color.test_color_1 ), instanceOf( ColorDrawable.class ) );
105
assertThat( resources.
getDrawable
( TestR.drawable.test_drawable_1 ), instanceOf( BitmapDrawable.class ) );
113
assertThat( resources.
getDrawable
( R.drawable.nine_patch_drawable ), instanceOf( NinePatchDrawable.class ) );
122
assertThat( resources.
getDrawable
( Integer.MAX_VALUE ), instanceOf( BitmapDrawable.class ) );
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
InsetDrawableTest.java
41
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
50
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
80
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
87
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
102
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
117
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
133
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
144
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
186
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
195
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass)
[
all
...]
RotateDrawableTest.java
48
mRotateDrawable = (RotateDrawable) resources.
getDrawable
(R.drawable.rotatedrawable);
72
assertEquals(100, ((BitmapDrawable) mRotateDrawable.
getDrawable
()).getPaint().getAlpha());
75
assertEquals(255, ((BitmapDrawable) mRotateDrawable.
getDrawable
()).getPaint().getAlpha());
82
((BitmapDrawable) mRotateDrawable.
getDrawable
()).getPaint().getColorFilter());
85
assertNull(((BitmapDrawable) mRotateDrawable.
getDrawable
()).getPaint().getColorFilter());
93
Drawable drawable = mContext.getResources().
getDrawable
(R.drawable.pass);
182
Drawable drawable = mContext.getResources().
getDrawable
(R.drawable.testimage);
213
RotateDrawable d1 = (RotateDrawable) resources.
getDrawable
(R.drawable.rotatedrawable);
214
RotateDrawable d2 = (RotateDrawable) resources.
getDrawable
(R.drawable.rotatedrawable);
215
RotateDrawable d3 = (RotateDrawable) resources.
getDrawable
(R.drawable.rotatedrawable)
[
all
...]
LayerDrawableTest.java
55
assertSame(bitmapDrawable, layerDrawable.
getDrawable
(0));
56
assertSame(colorDrawable, layerDrawable.
getDrawable
(1));
79
assertEquals(ColorDrawable.class, layerDrawable.
getDrawable
(0).getClass());
80
assertEquals(0x88, (((ColorDrawable) layerDrawable.
getDrawable
(0)).getAlpha()));
82
assertEquals(BitmapDrawable.class, layerDrawable.
getDrawable
(1).getClass());
84
assertEquals(RotateDrawable.class, layerDrawable.
getDrawable
(2).getClass());
86
assertEquals(GradientDrawable.class, layerDrawable.
getDrawable
(3).getClass());
211
assertSame(bitmapDrawable, layerDrawable.
getDrawable
(0));
212
assertSame(colorDrawable, layerDrawable.
getDrawable
(1));
220
assertEquals(d1, layerDrawable.
getDrawable
(0))
[
all
...]
/frameworks/base/core/tests/coretests/src/android/view/
MutateDrawable.java
34
ok.setBackgroundDrawable(getResources().
getDrawable
(
39
cancel.setBackgroundDrawable(getResources().
getDrawable
(
/packages/apps/ContactsCommon/src/com/android/contacts/common/
ContactPresenceIconUtil.java
40
return context.getResources().
getDrawable
(
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
ContactPresenceIconUtil.java
40
return context.getResources().
getDrawable
(
/packages/apps/Contacts/src/com/android/contacts/detail/
TransformableImageView.java
47
int dwidth =
getDrawable
().getIntrinsicWidth();
48
int dheight =
getDrawable
().getIntrinsicHeight();
66
getDrawable
().draw(canvas);
/cts/tests/tests/widget/src/android/widget/cts/
ImageSwitcherTest.java
67
Drawable drawable = resources.
getDrawable
(R.drawable.scenery);
70
(BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).
getDrawable
();
75
drawable = resources.
getDrawable
(R.drawable.testimage);
78
(BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).
getDrawable
();
82
assertNull(((ImageView) imageSwitcher.getCurrentView()).
getDrawable
());
106
(BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).
getDrawable
();
120
(BitmapDrawable) ((ImageView) imageSwitcher.getCurrentView()).
getDrawable
();
137
Drawable drawable = resources.
getDrawable
(R.drawable.scenery);
140
assertSame(drawable, ((ImageView) imageSwitcher.getCurrentView()).
getDrawable
());
142
drawable = resources.
getDrawable
(R.drawable.testimage)
[
all
...]
SimpleCursorTreeAdapterTest.java
131
assertNull(view.
getDrawable
());
134
BitmapDrawable d = (BitmapDrawable) mContext.getResources().
getDrawable
(
137
((BitmapDrawable) view.
getDrawable
()).getBitmap());
141
assertNull(view.
getDrawable
());
143
assertNull(view.
getDrawable
());
147
assertNull(view.
getDrawable
());
157
assertNull(view.
getDrawable
());
162
Bitmap actualBitmap = ((BitmapDrawable) view.
getDrawable
()).getBitmap();
SimpleAdapterTest.java
282
assertNull(view.
getDrawable
());
284
BitmapDrawable d = (BitmapDrawable) mContext.getResources().
getDrawable
(
287
((BitmapDrawable) view.
getDrawable
()).getBitmap());
291
assertNull(view.
getDrawable
());
293
assertNull(view.
getDrawable
());
297
assertNull(view.
getDrawable
());
307
assertNull(view.
getDrawable
());
310
.
getDrawable
(com.android.cts.stub.R.drawable.scenery);
312
((BitmapDrawable) view.
getDrawable
()).getBitmap());
316
assertNull(view.
getDrawable
());
[
all
...]
/cts/tests/tests/text/src/android/text/style/cts/
ImageSpanTest.java
43
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
73
Drawable d = mContext.getResources().
getDrawable
(R.drawable.pass);
88
Drawable drawable = mContext.getResources().
getDrawable
(R.drawable.pass);
91
assertSame(drawable, imageSpan.
getDrawable
());
95
BitmapDrawable resultDrawable = (BitmapDrawable) imageSpan.
getDrawable
();
99
assertNull(imageSpan.
getDrawable
());
102
assertNull(imageSpan.
getDrawable
());
DynamicDrawableSpanTest.java
51
Rect rect = dynamicDrawableSpan.
getDrawable
().getBounds();
89
public Drawable
getDrawable
() {
91
return getContext().getResources().
getDrawable
(R.drawable.scenery);
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
ColorLEDController.java
62
mRed = res.
getDrawable
(R.drawable.scrubber_vertical_red_holo_dark);
64
.
getDrawable
(R.drawable.scrubber_vertical_green_holo_dark);
66
.
getDrawable
(R.drawable.scrubber_vertical_blue_holo_dark);
69
.
getDrawable
(R.drawable.scrubber_horizontal_red_holo_dark);
71
.
getDrawable
(R.drawable.scrubber_horizontal_green_holo_dark);
73
.
getDrawable
(R.drawable.scrubber_horizontal_blue_holo_dark);
RelayController.java
29
.
getDrawable
(R.drawable.toggle_button_off_holo_dark);
30
mOnBackground = res.
getDrawable
(R.drawable.toggle_button_on_holo_dark);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
MoreNinePatchesActivity.java
53
mDrawable1 = res.
getDrawable
(R.drawable.progress_vertical_holo_dark);
54
mDrawable2 = res.
getDrawable
(R.drawable.scrubber_progress_vertical_holo_dark);
55
mDrawable3 = res.
getDrawable
(R.drawable.scrubber_vertical_primary_holo);
StackActivity.java
41
getResources().
getDrawable
(R.drawable.sunset1),
42
getResources().
getDrawable
(R.drawable.sunset2),
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
ContactsMockPackageManager.java
41
public Drawable
getDrawable
(String packageName, int resid, ApplicationInfo appInfo) {
/packages/apps/Dialer/src/com/android/dialer/calllog/
CallTypeIconsView.java
119
incoming = r.
getDrawable
(R.drawable.ic_call_incoming_holo_dark);
120
outgoing = r.
getDrawable
(R.drawable.ic_call_outgoing_holo_dark);
121
missed = r.
getDrawable
(R.drawable.ic_call_missed_holo_dark);
122
voicemail = r.
getDrawable
(R.drawable.ic_call_voicemail_holo_dark);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
FocusIndicatorView.java
32
setBackgroundDrawable(getResources().
getDrawable
(resid));
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/ui/
RecyclingImageView.java
58
final Drawable previousDrawable =
getDrawable
();
84
notifyDrawable(layerDrawable.
getDrawable
(i), isDisplayed);
/frameworks/ex/chips/src/com/android/ex/chips/recipientchip/
VisibleRecipientChip.java
87
return
getDrawable
().getBounds();
92
getDrawable
().draw(canvas);
Completed in 1739 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>