HomeSort by relevance Sort by last modified time
    Searched defs:mResources (Results 1 - 25 of 108) sorted by null

1 2 3 4 5

  /packages/apps/Dialer/src/com/android/dialer/calllog/
PhoneNumberDisplayHelper.java 31 private final Resources mResources;
34 mResources = resources;
40 mResources = resources;
45 return mResources.getString(R.string.unknown);
48 return mResources.getString(R.string.private_num);
51 return mResources.getString(R.string.payphone);
54 return mResources.getString(R.string.voicemail);
57 return mResources.getString(R.string.unknown);
CallLogListItemHelper.java 38 private final Resources mResources;
50 mResources = resources;
101 mResources.getString(R.string.description_call_details));
111 return mResources.getString(R.string.description_contact_details, getNameOrNumber(details));
165 callDescription.append(mResources.getString(R.string.description_new_voicemail));
170 callDescription.append(mResources.getString(R.string.description_num_calls,
177 callDescription.append(mResources.getString(stringID,
270 mResources.getString(R.string.description_call_log_play_button));
  /cts/tests/tests/content/src/android/content/res/cts/
FractionTest.java 27 private Resources mResources;
33 mResources = mContext.getResources();
78 mResources.getValue(resid, mValue, true);
PluralResourcesTest.java 34 private Resources mResources;
39 mResources = mContext.getResources();
44 config.updateFrom(mResources.getConfiguration());
46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config);
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);
RawResourceTest.java 28 private Resources mResources;
33 mResources = mContext.getResources();
38 final InputStream is = mResources.openRawResource(R.raw.text);
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...]
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),
  /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_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));
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));
  /frameworks/base/core/tests/coretests/src/android/view/
InflateTest.java 33 private Resources mResources;
41 mResources = mContext.getResources();
47 // mResources.flushLayoutCache();
60 mResources.flushLayoutCache();
  /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);
  /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);
  /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);
  /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/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);
  /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;
  /packages/wallpapers/Basic/src/com/android/wallpaper/
RenderScriptScene.java 29 protected Resources mResources;
40 mResources = res;
58 return mResources;
  /packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
RenderScriptScene.java 31 protected Resources mResources;
42 mResources = res;
60 return mResources;

Completed in 951 milliseconds

1 2 3 4 5