Home
last modified time | relevance | path

Searched refs:appResources (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerSelfTest.java40 Resources appResources = ApplicationProvider.getApplicationContext().getResources(); in shouldSetUpSystemResources() local
45 .isEqualTo(appResources.getString(android.R.string.copy)); in shouldSetUpSystemResources()
47 assertThat(appResources.getString(R.string.howdy)).named("app resource") in shouldSetUpSystemResources()
DQualifiersTest.java112 Resources appResources = getApplicationContext().getResources(); in setQualifiers_updatesSystemAndAppResources() local
116 assertThat(appResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
122 assertThat(appResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java231 Resources appResources = application.getResources(); in setUpApplicationState() local
232 ReflectionHelpers.setField(loadedApk, "mResources", appResources); in setUpApplicationState()
237 appResources.updateConfiguration(configuration, displayMetrics); in setUpApplicationState()
240 populateAssetPaths(appResources.getAssets(), appManifest); in setUpApplicationState()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowApplicationPackageManager.java1401 Resources appResources = resources.get(appPackageName); in getResourcesForApplication() local
1402 if (appResources == null) { in getResourcesForApplication()
1403 appResources = new Resources(new AssetManager(), null, null); in getResourcesForApplication()
1404 resources.put(appPackageName, appResources); in getResourcesForApplication()
1406 return appResources; in getResourcesForApplication()