Home
last modified time | relevance | path

Searched refs:getResources (Results 1 – 25 of 155) sorted by relevance

1234567

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DResourcesTest.java38 resources = new Activity().getResources(); in setup()
127 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1f)); in testDensity()
129 shadowOf(activity.getResources()).setDensity(1.5f); in testDensity()
130 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1.5f)); in testDensity()
133 assertThat(anotherActivity.getResources().getDisplayMetrics().density, equalTo(1.5f)); in testDensity()
139 assertThat(activity.getResources().getDisplayMetrics().heightPixels, equalTo(800)); in displayMetricsShouldNotHaveLotsOfZeros()
140 assertThat(activity.getResources().getDisplayMetrics().widthPixels, equalTo(480)); in displayMetricsShouldNotHaveLotsOfZeros()
DLayerDrawableTest.java37 Robolectric.application.getResources(), 0x00001000)); in setUp()
39 Robolectric.application.getResources(), 0x00002000)); in setUp()
41 Robolectric.application.getResources(), 0x00003000)); in setUp()
43 Robolectric.application.getResources(), 0x00004000)); in setUp()
DFragmentTest.java27 … int id = fragment.getResources().getIdentifier("hello", "string", "com.xtremelabs.robolectric"); in retrieveIdOfResource()
30 String hello = fragment.getResources().getString(id); in retrieveIdOfResource()
39 new TestFragment().getResources(); in unattachedFragmentsCannotGetResources()
DBitmapFactoryTest.java22 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_shouldSetDescription()
31 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResourceWithOpts_shouldSetDescription()
60 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_shouldGetWidthAndHeightFromHints()
71 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResourceWithOpts_shouldGetWidthAndHeightFromHints()
83 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_canTakeOptions()
DTypedArrayTest.java26 public void getResources() throws Exception { in getResources() method in TypedArrayTest
27 assertNotNull(new Activity().obtainStyledAttributes(null).getResources()); in getResources()
DViewConfigurationTest.java40 assertEquals(1f, context.getResources().getDisplayMetrics().density); in methodsShouldReturnAndroidConstants()
56 shadowOf(context.getResources()).setDensity(1.5f); in methodsShouldReturnScaledAndroidConstantsDependingOnPixelDensity()
/external/emma/core/java12/com/vladium/util/
DResourceLoader.java73 public static Enumeration getResources (final String name) in getResources() method in ResourceLoader
80 return loader.getResources (name); in getResources()
108 public static Enumeration getResources (final String name, final ClassLoader loader) in getResources() method in ResourceLoader
112 return loader.getResources (name); in getResources()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
DRobolectricTest.java145 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.0f)); in shouldUseSetDensityForContexts()
147 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.5f)); in shouldUseSetDensityForContexts()
152 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(480)); in shouldUseSetDisplayForContexts()
153 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(800)); in shouldUseSetDisplayForContexts()
161 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(100)); in shouldUseSetDisplayForContexts()
162 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(200)); in shouldUseSetDisplayForContexts()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContextWrapper.java53 return getResources().newTheme(); in getTheme()
57 public Resources getResources() { in getResources() method in ShadowContextWrapper
58 return getApplicationContext().getResources(); in getResources()
150 return getResources().getAssets(); in getAssets()
DShadowListPreference.java28 this.entries = context.getResources().getStringArray(entriesResId); in setEntries()
43 this.entryValues = context.getResources().getStringArray(entryValuesResId); in setEntryValues()
DShadowAlertDialog.java285 this.items = context.getResources().getTextArray(itemsId); in setItems()
350 return setTitle(context.getResources().getString(titleId)); in setTitle()
361 setMessage(context.getResources().getString(messageId)); in setMessage()
385 return setPositiveButton(context.getResources().getText(positiveTextId), listener); in setPositiveButton()
397 return setNegativeButton(context.getResources().getString(negativeTextId), listener); in setNegativeButton()
409 return setNeutralButton(context.getResources().getText(neutralTextId), listener); in setNeutralButton()
DShadowTypedArray.java13 public Resources getResources() { in getResources() method in ShadowTypedArray
14 return Robolectric.application.getResources(); in getResources()
DShadowContext.java46 return realContext.getResources().getString(resId); in getString()
51 return realContext.getResources().getText(resId); in getText()
56 return realContext.getResources().getString(resId, formatArgs); in getString()
DShadowTextView.java110 this.text = getResources().getText(textResourceId); in setText()
181 this.hintText = getResources().getText(resId); in setHint()
394 text = context.getResources().getString(textResId); in applyTextAttribute()
405 setTextColor(context.getResources().getColor(colorResId)); in applyTextColorAttribute()
418 hint = context.getResources().getString(textResId); in applyHintAttribute()
430 setHintTextColor(context.getResources().getColor(colorResId)); in applyHintColorAttribute()
DShadowFragment.java76 public Resources getResources() { in getResources() method in ShadowFragment
80 return activity.getResources(); in getResources()
DShadowPreference.java114 this.summary = context.getResources().getText(summaryResId); in setSummary()
129 this.title = context.getResources().getText(titleResId); in setTitle()
DShadowView.java247 public Resources getResources() { in getResources() method in ShadowView
248 return context.getResources(); in getResources()
254 setBackgroundDrawable(getResources().getDrawable(backgroundResourceId)); in setBackgroundResource()
269 setBackgroundDrawable(new ColorDrawable(getResources().getColor(color))); in setBackgroundColor()
881 contentDescription = context.getResources().getString(resId); in applyContentDescriptionAttribute()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DConfigurator.java115 return ctx.getResources().getIdentifier(name, pack, ctx.getPackageName()); in parseResId()
123 return ctx.getResources().getColor(parseResId(ctx, "@color", value)); in parseIntAttr()
145 return ctx.getResources().getDimension(parseResId(ctx, "@dimen", value)); in parseFloatAttr()
157 return ctx.getResources().getString(parseResId(ctx, "@string", value)); in parseStringAttr()
259 XmlResourceParser xrp = ctx.getResources().getXml(xmlFileId); in configure()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/
DHelpTopicActivity.java42 this.setTitle(String.format("%s: %s - %s", getResources().getText(R.string.application_title), in onCreate()
43 getResources().getText(R.string.title_help), topic)); in onCreate()
DHelpActivity.java52 this.setTitle(String.format("%s: %s", getResources().getText(R.string.application_nice_title), in onCreate()
53 getResources().getText(R.string.title_help))); in onCreate()
/external/opencv3/modules/java/generator/src/java/
Dandroid+Utils.java24 String fullname = context.getResources().getString(resourceId); in exportResource()
27 InputStream is = context.getResources().openRawResource(resourceId); in exportResource()
56 InputStream is = context.getResources().openRawResource(resourceId); in loadResource()
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/page/
DTablePage.java68 context.getResources().getLink(folder, Resources.SORT_SCRIPT)); in head()
74 context.getResources(), folder); in content()
DSourceFilePage.java72 context.getResources().getLink(folder, in head()
76 context.getResources().getLink(folder, in head()
DReportPage.java93 context.getResources().getLink(folder, Resources.STYLESHEET), in head()
96 context.getResources().getLink(folder, "report.gif"), in head()
/external/replicaisland/src/com/replica/replicaisland/
DKeyboardConfigDialogPreference.java123 mUnselectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border); in onBindDialogView()
124 mSelectedBorder = mContext.getResources().getDrawable(R.drawable.key_config_border_active); in onBindDialogView()
142 mKeyLabels = mContext.getResources().getStringArray(R.array.keycode_labels); in getKeyLabel()

1234567