Home
last modified time | relevance | path

Searched refs:getSystem (Results 1 – 25 of 43) sorted by relevance

12

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java97 Resources systemResources = Resources.getSystem(); in getQualifiers()
125 configuration = new Configuration(Resources.getSystem().getConfiguration()); in setQualifiers()
126 displayMetrics.setTo(Resources.getSystem().getDisplayMetrics()); in setQualifiers()
132 Resources systemResources = Resources.getSystem(); in setQualifiers()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java174 Resources systemResources = Resources.getSystem(); in getQualifiers()
209 configuration = new Configuration(Resources.getSystem().getConfiguration()); in setQualifiers()
210 displayMetrics.setTo(Resources.getSystem().getDisplayMetrics()); in setQualifiers()
246 Resources.getSystem().updateConfiguration(configuration, displayMetrics); in updateConfiguration()
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/util/
DTestSourceLocation.java17 assertEquals("c/d.xml", location.getSystem(path_b)); in testSourcePath()
18 assertEquals("c/d.xml", location.getSystem(path_b + "/")); // with trailing slash in testSourcePath()
DTestCLDRFile.java159 assertEquals(testfile.toPath().toString(), location.getSystem(), "system for " + xpath); in testSourceLocale()
168 assertEquals(testfile.toPath().toString(), location.getSystem(), "system for " + xpath); in testSourceLocale()
177 assertEquals(rootfile.toPath().toString(), location.getSystem(), "system for " + xpath); in testSourceLocale()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowUiAutomationTest.java81 assertThat(Resources.getSystem().getConfiguration().orientation) in setRotation_freeze90_rotatesToLandscape()
92 assertThat(Resources.getSystem().getConfiguration().orientation) in setRotation_freeze180_rotatesToPortrait()
103 assertThat(Resources.getSystem().getConfiguration().orientation) in setRotation_freezeCurrent_doesNothing()
DLazyApplicationShadowTest.java22 Resources.getSystem(); in testResourcesGetSystem_doesNotCrash_whenLazyLoading()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DResourceLoaderTest.java82 Configuration configuration = Resources.getSystem().getConfiguration(); in checkForPollutionHelper()
89 Resources.getSystem().updateConfiguration(configuration, null); in checkForPollutionHelper()
DDrawableResourceLoaderTest.java51 assertNotNull(Resources.getSystem().getDrawable(android.R.drawable.ic_menu_help)); in testGetDrawable_red()
/external/robolectric/robolectric/src/test/java/org/robolectric/android/
DResourceLoaderTest.java86 Configuration configuration = Resources.getSystem().getConfiguration(); in checkForPollutionHelper()
93 Resources.getSystem().updateConfiguration(configuration, null); in checkForPollutionHelper()
DDrawableResourceLoaderTest.java51 assertNotNull(Resources.getSystem().getDrawable(android.R.drawable.ic_menu_help)); in testGetDrawable_red()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLocaleManager.java61 Configuration configuration = Resources.getSystem().getConfiguration(); in getSystemLocales()
DShadowAssetManager.java83 AssetManager getSystem(); in getSystem() method
DShadowResources.java81 protected static Resources getSystem() { in getSystem() method in ShadowResources
83 AssetManager assetManager = AssetManager.getSystem(); in getSystem()
/external/lottie/snapshot-tests/src/androidTest/java/com/airbnb/lottie/snapshots/tests/
DScaleTypesTestCase.kt94 …private val Number.dp get() = this.toFloat() * (Resources.getSystem().displayMetrics.densityDpi.to… in <lambda>()
/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/content/res/
DCopiedResourcesTest.java511 int id = Resources.getSystem().getIdentifier("btn_check_material_anim", "drawable", "android"); in getIdentifier_material()
546 assertThat(Resources.getSystem()).isInstanceOf(Resources.class); in getSystemShouldReturnSystemResources()
551 assertThat(Resources.getSystem()).isEqualTo(Resources.getSystem()); in multipleCallsToGetSystemShouldReturnSameInstance()
562 assertThat(Resources.getSystem().getIdentifier("copy", "string", "android")) in systemResourcesShouldReturnCorrectSystemId()
568 assertThat(Resources.getSystem().getIdentifier("copy", "string", context.getPackageName())) in systemResourcesShouldReturnZeroForLocalId()
DResourcesTest.java510 int id = Resources.getSystem().getIdentifier("btn_check_material_anim", "drawable", "android"); in getIdentifier_material()
545 assertThat(Resources.getSystem()).isInstanceOf(Resources.class); in getSystemShouldReturnSystemResources()
550 assertThat(Resources.getSystem()).isEqualTo(Resources.getSystem()); in multipleCallsToGetSystemShouldReturnSameInstance()
561 assertThat(Resources.getSystem().getIdentifier("copy", "string", "android")) in systemResourcesShouldReturnCorrectSystemId()
567 assertThat(Resources.getSystem().getIdentifier("copy", "string", context.getPackageName())) in systemResourcesShouldReturnZeroForLocalId()
/external/robolectric/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerSelfTest.java41 Resources systemResources = Resources.getSystem(); in shouldSetUpSystemResources()
DQualifiersTest.java113 Resources systemResources = Resources.getSystem(); in setQualifiers_updatesSystemAndAppResources()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerSelfTest.java39 Resources systemResources = Resources.getSystem(); in shouldSetUpSystemResources()
DQualifiersTest.java111 Resources systemResources = Resources.getSystem(); in setQualifiers_updatesSystemAndAppResources()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/android/
DBootstrap.java44 AssetManager.getSystem(), Bootstrap.displayMetrics, Bootstrap.configuration); in updateDisplayResources()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DXMLSource.java84 public String getSystem() { in getSystem() method in XMLSource.SourceLocation
118 return getSystem(basePath) + ":" + getLine() + ":" + getColumn() + ": "; in toString()
128 return "file=" + getSystem(basePath) + ",line=" + getLine() + ",col=" + getColumn(); in forGitHub()
144 public String getSystem(String basePath) { in getSystem() method in XMLSource.SourceLocation
145 String path = getSystem(); in getSystem()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowResources.java74 protected static Resources getSystem() { in getSystem() method in ShadowResources
76 AssetManager assetManager = AssetManager.getSystem(); in getSystem()
/external/robolectric/robolectric/src/test/java/org/robolectric/android/internal/
DAndroidTestEnvironmentTest.java294 Configuration configuration = Resources.getSystem().getConfiguration(); in whenDimensAndSizeSpecified_setQualifiers_should()
352 DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics(); in systemResources_getDisplayMetrics_correctValues()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitleView.java212 resources = Resources.getSystem(); in setFixedTextSize()

12