/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | ResourcesTest.java | 38 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()
|
D | LayerDrawableTest.java | 37 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()
|
D | FragmentTest.java | 27 … 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()
|
D | BitmapFactoryTest.java | 22 …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()
|
D | TypedArrayTest.java | 26 public void getResources() throws Exception { in getResources() method in TypedArrayTest 27 assertNotNull(new Activity().obtainStyledAttributes(null).getResources()); in getResources()
|
D | ViewConfigurationTest.java | 40 assertEquals(1f, context.getResources().getDisplayMetrics().density); in methodsShouldReturnAndroidConstants() 56 shadowOf(context.getResources()).setDensity(1.5f); in methodsShouldReturnScaledAndroidConstantsDependingOnPixelDensity()
|
/external/emma/core/java12/com/vladium/util/ |
D | ResourceLoader.java | 73 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/ |
D | RobolectricTest.java | 145 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/ |
D | ShadowContextWrapper.java | 53 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()
|
D | ShadowListPreference.java | 28 this.entries = context.getResources().getStringArray(entriesResId); in setEntries() 43 this.entryValues = context.getResources().getStringArray(entryValuesResId); in setEntryValues()
|
D | ShadowAlertDialog.java | 285 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()
|
D | ShadowTypedArray.java | 13 public Resources getResources() { in getResources() method in ShadowTypedArray 14 return Robolectric.application.getResources(); in getResources()
|
D | ShadowContext.java | 46 return realContext.getResources().getString(resId); in getString() 51 return realContext.getResources().getText(resId); in getText() 56 return realContext.getResources().getString(resId, formatArgs); in getString()
|
D | ShadowTextView.java | 110 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()
|
D | ShadowFragment.java | 76 public Resources getResources() { in getResources() method in ShadowFragment 80 return activity.getResources(); in getResources()
|
D | ShadowPreference.java | 114 this.summary = context.getResources().getText(summaryResId); in setSummary() 129 this.title = context.getResources().getText(titleResId); in setTitle()
|
D | ShadowView.java | 247 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/ |
D | Configurator.java | 115 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/ |
D | HelpTopicActivity.java | 42 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()
|
D | HelpActivity.java | 52 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/ |
D | android+Utils.java | 24 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/ |
D | TablePage.java | 68 context.getResources().getLink(folder, Resources.SORT_SCRIPT)); in head() 74 context.getResources(), folder); in content()
|
D | SourceFilePage.java | 72 context.getResources().getLink(folder, in head() 76 context.getResources().getLink(folder, in head()
|
D | ReportPage.java | 93 context.getResources().getLink(folder, Resources.STYLESHEET), in head() 96 context.getResources().getLink(folder, "report.gif"), in head()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | KeyboardConfigDialogPreference.java | 123 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()
|