OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mResources
(Results
1 - 25
of
126
) sorted by null
1
2
3
4
5
6
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
ColorStateListTest.java
32
private Resources
mResources
;
38
mResources
= mContext.getResources();
39
mFailureColor =
mResources
.getColor(R.color.failColor);
44
ColorStateList colorStateList =
mResources
.getColorStateList(R.color.color1);
47
assertEquals(
mResources
.getColor(R.color.testcolor1), focusColor);
52
ColorStateList colorStateList =
mResources
.getColorStateList(R.color.color1);
55
assertEquals(
mResources
.getColor(R.color.testcolor2), defaultColor);
60
int defaultColor =
mResources
.getColor(R.color.color1);
61
assertEquals(
mResources
.getColor(R.color.testcolor2), defaultColor);
66
int defaultColor =
mResources
.getColor(R.color.color_no_default)
[
all
...]
/cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_CommonDataKinds_EmailTest.java
25
private Resources
mResources
;
30
mResources
= mContext.getResources();
46
String label =
mResources
.getString(res);
47
assertEquals(label, Email.getTypeLabel(
mResources
, type, ""));
53
assertEquals(label, Email.getTypeLabel(
mResources
, Email.TYPE_CUSTOM, label));
ContactsContract_CommonDataKinds_OrganizationTest.java
26
private Resources
mResources
;
31
mResources
= mContext.getResources();
45
String label =
mResources
.getString(res);
46
assertEquals(label, Organization.getTypeLabel(
mResources
, type, ""));
52
assertEquals(label, Organization.getTypeLabel(
mResources
, Im.TYPE_CUSTOM, label));
ContactsContract_CommonDataKinds_SipAddressTest.java
25
private Resources
mResources
;
30
mResources
= mContext.getResources();
45
String label =
mResources
.getString(res);
46
assertEquals(label, SipAddress.getTypeLabel(
mResources
, type, ""));
52
assertEquals(label, SipAddress.getTypeLabel(
mResources
, SipAddress.TYPE_CUSTOM, label));
ContactsContract_CommonDataKinds_StructuredPostalTest.java
25
private Resources
mResources
;
30
mResources
= mContext.getResources();
45
String label =
mResources
.getString(res);
46
assertEquals(label, StructuredPostal.getTypeLabel(
mResources
, type, ""));
52
assertEquals(label, StructuredPostal.getTypeLabel(
mResources
,
ContactsContract_CommonDataKinds_ImTest.java
25
private Resources
mResources
;
30
mResources
= mContext.getResources();
59
String label =
mResources
.getString(res);
60
assertEquals(label, Im.getProtocolLabel(
mResources
, type, ""));
66
assertEquals(label, Im.getProtocolLabel(
mResources
, Im.PROTOCOL_CUSTOM, label));
73
String label =
mResources
.getString(res);
74
assertEquals(label, Im.getTypeLabel(
mResources
, type, ""));
80
assertEquals(label, Im.getTypeLabel(
mResources
, Im.TYPE_CUSTOM, label));
ContactsContract_CommonDataKinds_PhoneTest.java
25
private Resources
mResources
;
30
mResources
= mContext.getResources();
62
String label =
mResources
.getString(res);
63
assertEquals(label, Phone.getTypeLabel(
mResources
, type, ""));
69
assertEquals(label, Phone.getTypeLabel(
mResources
, Phone.TYPE_CUSTOM, label));
ContactsContract_CommonDataKinds_RelationTest.java
25
private Resources
mResources
;
30
mResources
= mContext.getResources();
56
String label =
mResources
.getString(res);
57
assertEquals(label, Relation.getTypeLabel(
mResources
, type, ""));
63
assertEquals(label, Relation.getTypeLabel(
mResources
, Relation.TYPE_CUSTOM, label));
/cts/tests/tests/content/src/android/content/res/cts/
ResourcesTest.java
55
private Resources
mResources
;
61
mResources
= getContext().getResources();
78
mResources
.getString(-1, "%s");
84
final String strGo =
mResources
.getString(R.string.go, "%1$s%%", 12);
89
final XmlPullParser parser =
mResources
.getXml(R.xml.test_color);
92
final TypedArray testTypedArray =
mResources
.obtainAttributes(set, R.styleable.Style1);
97
assertEquals(
mResources
, testTypedArray.getResources());
103
mResources
.obtainTypedArray(-1);
109
final TypedArray ta =
mResources
.obtainTypedArray(R.array.string);
114
assertEquals(
mResources
, ta.getResources())
[
all
...]
ArrayTest.java
26
private Resources
mResources
;
31
mResources
= mContext.getResources();
41
final String[] res =
mResources
.getStringArray(resid);
49
final CharSequence[] res =
mResources
.getTextArray(resid);
57
final int[] res =
mResources
.getIntArray(resid);
PrimitiveTest.java
27
private Resources
mResources
;
32
mResources
= mContext.getResources();
117
mResources
.getString(R.string.formattedStringNone),
120
mResources
.getString(R.string.formattedStringOne),
123
mResources
.getString(R.string.formattedStringTwo),
127
mResources
.getString(R.string.formattedStringNone),
130
mResources
.getString(R.string.formattedStringOne, 42),
133
mResources
.getString(R.string.formattedStringTwo, "unused", "hi", 43),
RawResourceTest.java
28
private Resources
mResources
;
33
mResources
= mContext.getResources();
38
final InputStream is =
mResources
.openRawResource(R.raw.text);
/packages/apps/Dialer/src/com/android/dialer/calllog/
PhoneNumberHelper.java
30
private final Resources
mResources
;
33
mResources
= resources;
38
return
mResources
.getString(R.string.unknown);
41
return
mResources
.getString(R.string.private_num);
44
return
mResources
.getString(R.string.payphone);
47
return
mResources
.getString(R.string.voicemail);
50
return
mResources
.getString(R.string.unknown);
CallTypeIconsView.java
39
private Resources
mResources
;
49
mResources
= new Resources(context);
63
mWidth += drawable.getIntrinsicWidth() +
mResources
.iconMargin;
81
return
mResources
.incoming;
83
return
mResources
.outgoing;
85
return
mResources
.missed;
87
return
mResources
.voicemail;
93
return
mResources
.missed;
110
left = right +
mResources
.iconMargin;
CallLogListItemHelper.java
37
private final Resources
mResources
;
49
mResources
= resources;
96
return
mResources
.getString(R.string.description_call, recipient);
105
mResources
.getString(R.string.description_call_log_play_button));
/frameworks/base/core/java/android/view/
ContextThemeWrapper.java
35
private Resources
mResources
;
63
if (
mResources
!= null) {
74
if (
mResources
!= null) {
75
return
mResources
;
78
mResources
= super.getResources();
79
return
mResources
;
82
mResources
= resc.getResources();
83
return
mResources
;
/cts/tests/src/android/opengl/cts/
CompressedTextureStubActivity.java
34
protected Resources
mResources
;
47
mResources
= getResources();
54
Bitmap bitmap = BitmapFactory.decodeResource(
mResources
, R.raw.basetex, optionsRGB);
59
compressed = CompressedTextureLoader.loadTextureDXT(
mResources
, R.raw.ddstex);
61
compressed = CompressedTextureLoader.loadTextureATC(
mResources
, 0); //stub for now
63
compressed = CompressedTextureLoader.loadTexturePVRTC(
mResources
, R.raw.pvrtex);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterBorder.java
33
private Resources
mResources
= null;
77
if (
mResources
!= resources) {
78
mResources
= resources;
85
if (drawable == null &&
mResources
!= null && rsc != 0) {
86
drawable = new BitmapDrawable(
mResources
, BitmapFactory.decodeResource(
mResources
, rsc));
ImageFilterFx.java
28
private Resources
mResources
= null;
60
if (getParameters() == null ||
mResources
== null) {
77
mFxBitmap = BitmapFactory.decodeResource(
mResources
, mFxBitmapId, o);
108
mResources
= resources;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
ResourceContentProvider.java
57
private ResourceRepository
mResources
;
73
Object[] array =
mResources
.getResourceItemsOfType(
92
return
mResources
.hasResourcesOfType((ResourceType)element);
102
if ((ResourceRepository)inputElement ==
mResources
) {
104
List<ResourceType> types =
mResources
.getAvailableResourceTypes();
121
mResources
= (ResourceRepository)newInput;
/cts/tests/tests/preference2/src/android/preference2/cts/
SwitchPreferenceTest.java
30
private Resources
mResources
;
42
mResources
= mActivity.getResources();
47
String titleExp =
mResources
.getString(R.string.title_switch_preference);
53
String summaryExp =
mResources
.getString(R.string.summary_switch_preference);
59
String summaryOnExp =
mResources
.getString(
66
String summaryOffExp =
mResources
.getString(
83
final CharSequence switchOffExp =
mResources
.getString(
101
final CharSequence switchOnExp =
mResources
.getString(
/packages/apps/Email/src/com/android/email/
ResourceHelper.java
32
private final Resources
mResources
;
40
mResources
= mContext.getResources();
42
mAccountColorArray =
mResources
.obtainTypedArray(R.array.combined_view_account_colors);
43
mAccountColors =
mResources
.getIntArray(R.array.combined_view_account_colors);
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
ContactPhotoBinder.java
47
private final Resources
mResources
;
53
mResources
= mContext.getResources();
55
mDefault =
mResources
.getDrawable(R.drawable.ic_contact_picture);
59
mPhotoSize = (int) (PHOTO_SIZE_DIP *
mResources
.getDisplayMetrics().density + 0.5f);
80
d = new BitmapDrawable(
mResources
, bitmap);
/frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
OverlayBaseTest.java
10
private Resources
mResources
;
14
mResources
= getContext().getResources();
20
input =
mResources
.openRawResource(resId);
36
mResources
.updateConfiguration(config,
mResources
.getDisplayMetrics());
41
boolean actual =
mResources
.getBoolean(resId);
47
String actual =
mResources
.getString(resId);
53
int[] actual =
mResources
.getIntArray(resId);
/cts/tests/tests/media/src/android/media/cts/
MediaPlayerSurfaceStubActivity.java
31
protected Resources
mResources
;
40
mResources
= getResources();
44
AssetFileDescriptor afd =
mResources
.openRawResourceFd(R.raw.testvideo);
Completed in 1356 milliseconds
1
2
3
4
5
6