Home
last modified time | relevance | path

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

123456789

/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/stmt/
DTryStmtTest.java22 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in simpleTest()
28 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in multipleTest()
35 assertInstanceOf(VariableDeclarationExpr.class, tryStmt.getResources().get(0)); in modifiersTest()
42 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in simpleVariable()
49 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(0)); in twoSimpleVariables()
50 assertInstanceOf(NameExpr.class, tryStmt.getResources().get(1)); in twoSimpleVariables()
57 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in complexVariable()
64 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in superAccess()
71 assertInstanceOf(FieldAccessExpr.class, tryStmt.getResources().get(0)); in outerClassAccess()
/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()
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()
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()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDrawableTest.java40 …rawable drawable = Drawable.createFromResourceStream(RuntimeEnvironment.application.getResources(), in createFromResourceStream_shouldWorkWithoutSourceName()
121 assertThat(RuntimeEnvironment.application.getResources() in shouldLoadNinePatchFromDrawableXml()
134 …final Drawable anImage = RuntimeEnvironment.application.getResources().getDrawable(R.drawable.an_i… in drawableIntrinsicWidthAndHeightShouldBeCorrect()
143 …final Drawable anImage = RuntimeEnvironment.application.getResources().getDrawable(R.drawable.robo… in drawableShouldLoadImageOfCorrectSizeWithMdpiQualifier()
152 …final Drawable anImage = RuntimeEnvironment.application.getResources().getDrawable(R.drawable.robo… in drawableShouldLoadImageOfCorrectSizeWithHdpiQualifier()
161 final Drawable aDrawable = RuntimeEnvironment.application.getResources() in testGetBitmapOrVectorDrawableAt19()
169 final Drawable aDrawable = RuntimeEnvironment.application.getResources() in testGetBitmapOrVectorDrawableAt21()
DShadowLayerDrawableTest.java37 RuntimeEnvironment.application.getResources(), R.drawable.an_image)); in setUp()
39 RuntimeEnvironment.application.getResources(), R.drawable.an_other_image)); in setUp()
41 RuntimeEnvironment.application.getResources(), R.drawable.third_image)); in setUp()
43 RuntimeEnvironment.application.getResources(), R.drawable.fourth_image)); in setUp()
DShadowBitmapFactoryTest.java27 …Bitmap bitmap = BitmapFactory.decodeResource(RuntimeEnvironment.application.getResources(), R.draw… in decodeResource_shouldSetDescriptionAndCreatedFrom()
37 …Bitmap bitmap = BitmapFactory.decodeResource(RuntimeEnvironment.application.getResources(), R.draw… in decodeResource_shouldSetDefaultBitmapConfig()
44 …assertThat(BitmapFactory.decodeResource(RuntimeEnvironment.application.getResources(), 0)).isNull(… in withResId0_decodeResource_shouldReturnNull()
51 …Bitmap bitmap = BitmapFactory.decodeResource(RuntimeEnvironment.application.getResources(), R.draw… in decodeResource_shouldPassABitmapConfig()
101 …Bitmap bitmap = BitmapFactory.decodeResource(RuntimeEnvironment.application.getResources(), R.draw… in decodeResource_shouldGetWidthAndHeightFromHints()
111 …Bitmap bitmap = BitmapFactory.decodeResource(RuntimeEnvironment.application.getResources(), R.draw… in decodeResource_canTakeOptions()
120 …Bitmap bitmap = BitmapFactory.decodeResourceStream(RuntimeEnvironment.application.getResources(), … in decodeResourceStream_canTakeOptions()
DShadowResourcesTest.java48 resources = RuntimeEnvironment.application.getResources(); in setup()
415 …assertThat(RuntimeEnvironment.application.getResources().getDisplayMetrics().density).isEqualTo(1f… in testDensity()
417 shadowOf(RuntimeEnvironment.application.getResources()).setDensity(1.5f); in testDensity()
418 …assertThat(RuntimeEnvironment.application.getResources().getDisplayMetrics().density).isEqualTo(1.… in testDensity()
421 assertThat(activity.getResources().getDisplayMetrics().density).isEqualTo(1.5f); in testDensity()
426 …assertThat(RuntimeEnvironment.application.getResources().getDisplayMetrics().heightPixels).isEqual… in displayMetricsShouldNotHaveLotsOfZeros()
427 …assertThat(RuntimeEnvironment.application.getResources().getDisplayMetrics().widthPixels).isEqualT… in displayMetricsShouldNotHaveLotsOfZeros()
442 …assertThat(RuntimeEnvironment.application.getResources().getString(android.R.string.copy)).isEqual… in applicationResourcesShouldHaveBothSystemAndLocalValues()
443 …assertThat(RuntimeEnvironment.application.getResources().getString(R.string.copy)).isEqualTo("Loca… in applicationResourcesShouldHaveBothSystemAndLocalValues()
698 XmlResourceParser xml = RuntimeEnvironment.application.getResources().getXml(R.drawable.vector); in obtainStyledAttributes_shouldCheckXmlFirst_fromXmlLoadedFromResources()
[all …]
/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-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTest.java102 assertThat(context.getResources().getDisplayMetrics().density).isEqualTo(1.0f); in shouldUseSetDensityForContexts()
105 assertThat(context.getResources().getDisplayMetrics().density).isEqualTo(1.5f); in shouldUseSetDensityForContexts()
111 assertThat(context.getResources().getDisplayMetrics().widthPixels) in shouldUseSetDisplayForContexts()
113 assertThat(context.getResources().getDisplayMetrics().heightPixels) in shouldUseSetDisplayForContexts()
126 assertThat(context.getResources().getDisplayMetrics().widthPixels).isEqualTo(100); in shouldUseSetDisplayForContexts()
127 assertThat(context.getResources().getDisplayMetrics().heightPixels).isEqualTo(200); in shouldUseSetDisplayForContexts()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DSettingsActivity.java141 mBufferTestDurationUI.setTitle(getResources().getString(R.string.labelBufferTestDuration, in onCreate()
157 mWavePlotDurationUI.setTitle(getResources().getString( in onCreate()
174 mPlayerBufferUI.setTitle(getResources().getString( in onCreate()
196 mRecorderBufferUI.setTitle(getResources().getString(R.string.labelRecorderBuffer, in onCreate()
211 mLoadThreadUI.setTitle(getResources().getString(R.string.loadThreadsLabel)); in onCreate()
225 mNumCapturesUI.setTitle(getResources().getString(R.string.numCapturesSetting)); in onCreate()
256 mIgnoreFirstFramesUI.setTitle(getResources().getString(R.string.labelIgnoreFirstFrames, in onCreate()
397 helpText.setText(getResources().getString(R.string.systraceHelp)); in onButtonHelp()
399 helpText.setText(getResources().getString(R.string.calibrateSoundLevelHelp)); in onButtonHelp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java219 …Configuration config = new Configuration(RuntimeEnvironment.application.getResources().getConfigur… in configurationChange_callsLifecycleMethodsAndAppliesConfig()
226 … assertThat(controller.get().getResources().getConfiguration().fontScale).isEqualTo(newFontScale); in configurationChange_callsLifecycleMethodsAndAppliesConfig()
231 …Configuration config = new Configuration(RuntimeEnvironment.application.getResources().getConfigur… in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
239 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
244 …Configuration config = new Configuration(RuntimeEnvironment.application.getResources().getConfigur… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
253 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
254 …assertThat(configController.get().getResources().getConfiguration().orientation).isEqualTo(newOrie… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
271 …Configuration config = new Configuration(RuntimeEnvironment.application.getResources().getConfigur… in configurationChange_restoresTheme()
285 …Configuration config = new Configuration(RuntimeEnvironment.application.getResources().getConfigur… in configurationChange_reattachesRetainedFragments()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DDrawableResourceLoaderTest.java32 resources = RuntimeEnvironment.application.getResources(); in setup()
37 assertNotNull(RuntimeEnvironment.application.getResources().getDrawable(R.drawable.rainbow)); in testGetDrawable_rainbow()
71 …assertEquals(6, ((LayerDrawable) RuntimeEnvironment.application.getResources().getDrawable(R.drawa… in testLayerDrawable_xlarge()
76 …assertEquals(8, ((LayerDrawable) RuntimeEnvironment.application.getResources().getDrawable(R.drawa… in testLayerDrawable()
DResourceLoaderTest.java29 …assertThat(RuntimeEnvironment.application.getResources().getBoolean(R.bool.different_resource_bool… in checkDefaultBooleanValue()
35 …assertThat(RuntimeEnvironment.application.getResources().getBoolean(R.bool.different_resource_bool… in checkQualifiedBooleanValue()
79 …assertThat(RuntimeEnvironment.application.getResources().getString(resId)).isEqualTo("The old PIN … in shouldMakeInternalResourcesAvailable()
/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()
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()
DShadowListPreference.java28 this.entries = context.getResources().getStringArray(entriesResId); in setEntries()
43 this.entryValues = context.getResources().getStringArray(entryValuesResId); in setEntryValues()
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()
/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.java41 this.setTitle(String.format("%s: %s - %s", getResources().getText(R.string.application_title), in onCreate()
42 getResources().getText(R.string.title_help), topic)); in onCreate()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_TryWithResourceContext.txt1 Line 45) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources()
13 Line 63) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/
DJava7Validator.java13 && n.getResources().isEmpty()
17 for (Expression resource : n.getResources()) {

123456789