/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ResourcesWrapper.java | 43 private final Resources mResources; 47 mResources = resources; 52 return mResources.getText(id); 57 return mResources.getQuantityText(id, quantity); 62 return mResources.getString(id); 67 return mResources.getString(id, formatArgs); 73 return mResources.getQuantityString(id, quantity, formatArgs); 78 return mResources.getQuantityString(id, quantity); 83 return mResources.getText(id, def); 88 return mResources.getTextArray(id) [all...] |
/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_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_OrganizationTest.java | 29 private Resources mResources; 34 mResources = mContext.getResources(); 48 String label = mResources.getString(res); 49 assertEquals(label, Organization.getTypeLabel(mResources, type, "")); 55 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));
|
/frameworks/support/compat/tests/java/android/support/v4/content/res/ |
ResourcesCompatTest.java | 34 private Resources mResources; 38 mResources = InstrumentationRegistry.getContext().getResources(); 44 ResourcesCompat.getColor(mResources, R.color.text_color, null), 50 final Resources.Theme yellowTheme = mResources.newTheme(); 53 ResourcesCompat.getColor(mResources, R.color.simple_themed_selector, 56 final Resources.Theme lilacTheme = mResources.newTheme(); 59 ResourcesCompat.getColor(mResources, R.color.simple_themed_selector, 67 ResourcesCompat.getColorStateList(mResources, R.color.complex_unthemed_selector, 81 final Resources.Theme yellowTheme = mResources.newTheme(); 84 ResourcesCompat.getColorStateList(mResources, R.color.complex_themed_selector [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
PhoneCallDetailsTest.java | 21 private Resources mResources; 26 mResources = mContext.getResources(); 31 CharSequence result = PhoneCallDetails.createAccountLabelDescription(mResources, "",""); 37 String msg = mResources.getString(R.string.description_via_number_phone_account, 41 CharSequence result = PhoneCallDetails.createAccountLabelDescription(mResources, VIA_NUMBER, 48 CharSequence viaNumberLabel = ContactDisplayUtils.getTtsSpannedPhoneNumber(mResources, 50 CharSequence result = PhoneCallDetails.createAccountLabelDescription(mResources, VIA_NUMBER, 58 mResources.getString(R.string.description_phone_account), PHONE_ACCOUNT_LABEL); 59 CharSequence result = PhoneCallDetails.createAccountLabelDescription(mResources, "",
|
/packages/apps/Dialer/tests/src/com/android/dialer/util/ |
DialerUtilsTest.java | 35 private Resources mResources; 46 mResources = context.getResources(); 54 CharSequence joined = DialerUtils.join(mResources, mItems); 64 CharSequence joined = DialerUtils.join(mResources, mItems); 75 CharSequence joined = DialerUtils.join(mResources, mItems);
|
/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);
|
/cts/tests/tests/security/src/android/security/cts/ |
MediaMetadataRetrieverTest.java | 29 protected Resources mResources; 35 mResources = getContext().getResources(); 47 AssetFileDescriptor afd = mResources.openRawResourceFd(resid);
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
ResourceRequestKey.java | 29 private Resources mResources; 44 mResources = res; 55 return mResources.openRawResource(mResId);
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/ |
ContextWrapperFrameLayout.java | 39 private final Resources mResources; 43 mResources = new CustomResources(base.getResources()); 48 return mResources;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
SettingsHelper.java | 33 private final Resources mResources; 36 mResources = context.getResources(); 41 return mResources.getString(descResId);
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
CompressedTextureCtsActivity.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); //cts 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));
|
/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/Dialer/src/com/android/dialer/calllog/ |
CallLogListItemHelper.java | 39 private final Resources mResources; 54 mResources = resources; 103 mResources.getString(R.string.description_video_call_action), 108 mResources.getString(R.string.description_create_new_contact_action), 113 mResources.getString(R.string.description_add_to_existing_contact_action), 118 mResources.getString(R.string.description_details_action), nameOrNumber)); 128 return mResources.getString(R.string.description_contact_details, getNameOrNumber(details)); 182 callDescription.append(mResources.getString(R.string.description_num_calls, 188 callDescription.append(mResources.getString(R.string.description_video_call)); 192 CharSequence onAccountLabel = PhoneCallDetails.createAccountLabelDescription(mResources, [all...] |
/packages/apps/Email/provider_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);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/preference/ |
ContactsPreferencesTest.java | 40 @Mock private Resources mResources; 52 Mockito.when(mContext.getResources()).thenReturn(mResources); 53 Mockito.when(mResources.getString(Mockito.anyInt())) 67 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 76 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 86 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 95 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 105 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 121 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 137 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn [all...] |