Home
last modified time | relevance | path

Searched refs:getConfiguration (Results 1 – 25 of 100) sorted by relevance

1234

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DQualifiersTest.java48 …assertThat(resources.getConfiguration().orientation).isEqualTo(Configuration.ORIENTATION_LANDSCAPE… in orientation()
53 Locale locale = resources.getConfiguration().locale; in shouldBeEnglish()
59 Locale locale = resources.getConfiguration().locale; in shouldBeJapanese()
65 Locale locale = resources.getConfiguration().locale; in shouldBeFrench()
86 assertThat(resources.getConfiguration().smallestScreenWidthDp).isEqualTo(320); in inflateLayout_defaultsTo_sw320dp()
95 assertThat(resources.getConfiguration().smallestScreenWidthDp).isEqualTo(720); in inflateLayout_overridesTo_sw720dp()
106 assertThat(resources.getConfiguration().screenWidthDp).isEqualTo(320); in defaultScreenWidth()
114 assertThat(systemResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
116 assertThat(appResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
120 assertThat(systemResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/
DQualifiersTest.java50 …assertThat(resources.getConfiguration().orientation).isEqualTo(Configuration.ORIENTATION_LANDSCAPE… in orientation()
55 Locale locale = resources.getConfiguration().locale; in shouldBeEnglish()
61 Locale locale = resources.getConfiguration().locale; in shouldBeJapanese()
67 Locale locale = resources.getConfiguration().locale; in shouldBeFrench()
88 assertThat(resources.getConfiguration().smallestScreenWidthDp).isEqualTo(320); in inflateLayout_defaultsTo_sw320dp()
97 assertThat(resources.getConfiguration().smallestScreenWidthDp).isEqualTo(720); in inflateLayout_overridesTo_sw720dp()
108 assertThat(resources.getConfiguration().screenWidthDp).isEqualTo(320); in defaultScreenWidth()
116 assertThat(systemResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
118 assertThat(appResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
122 assertThat(systemResources.getConfiguration().orientation).isEqualTo( in setQualifiers_updatesSystemAndAppResources()
[all …]
DRuntimeEnvironmentTest.java107 assertThat(app.getResources().getConfiguration().orientation) in testSetQualifiersAddPropagateToApplicationResources()
115 assertThat(app.getResources().getConfiguration().orientation) in testSetQualifiersReplacePropagateToApplicationResources()
124 assertThat(context.getResources().getConfiguration().fontScale).isEqualTo(1.0f); in testSetFontScale_updatesFontScale()
130 assertThat(context.getResources().getConfiguration().fontScale).isEqualTo(1.3f); in testSetFontScale_updatesFontScale()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java175 return getQualifiers(systemResources.getConfiguration(), systemResources.getDisplayMetrics()); in getQualifiers()
209 configuration = new Configuration(Resources.getSystem().getConfiguration()); in setQualifiers()
225 Configuration configuration = systemResources.getConfiguration(); in setFontScale()
235 return systemResources.getConfiguration().fontScale; in getFontScale()
243 && ResourcesManager.getInstance().getConfiguration() != null) { in updateConfiguration()
244 ResourcesManager.getInstance().getConfiguration().updateFrom(configuration); in updateConfiguration()
/external/libtextclassifier/java/src/com/android/textclassifier/common/base/
DLocaleCompat.java59 return context.getResources().getConfiguration().getLocales().toLanguageTags(); in getResourceLanguageTags()
67 return context.getResources().getConfiguration().locale.toLanguageTag(); in getResourceLanguageTags()
79 return context.getResources().getConfiguration().locale.getLanguage(); in getResourceLanguageTags()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
D_Activity_.java198 application.getResources().getConfiguration()); in callAttach()
213 application.getResources().getConfiguration(), in callAttach()
229 application.getResources().getConfiguration(), in callAttach()
246 application.getResources().getConfiguration(), in callAttach()
264 application.getResources().getConfiguration(), in callAttach()
283 application.getResources().getConfiguration(), in callAttach()
303 application.getResources().getConfiguration(), in callAttach()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java227 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfig()
234 … assertThat(controller.get().getResources().getConfiguration().fontScale).isEqualTo(newFontScale); in configurationChange_callsLifecycleMethodsAndAppliesConfig()
241 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
249 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
256 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
265 …assertThat(configController.get().getResources().getConfiguration().fontScale).isEqualTo(newFontSc… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
266 …assertThat(configController.get().getResources().getConfiguration().orientation).isEqualTo(newOrie… in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
285 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_restoresTheme()
301 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_reattachesRetainedFragments()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/base/
DLocaleCompatTest.java58 .getConfiguration() in getResourceLanguageTags_minApi24()
72 .getConfiguration() in getResourceLanguageTags_minApi21()
84 ApplicationProvider.getApplicationContext().getResources().getConfiguration().locale = in getResourceLanguageTags_base()
/external/robolectric/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java267 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfig()
284 assertThat(controller.get().getResources().getConfiguration().fontScale) in configurationChange_callsLifecycleMethodsAndAppliesConfig()
292 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
300 assertThat(configController.get().getResources().getConfiguration().fontScale) in configurationChange_callsOnConfigurationChangedAndAppliesConfigWhenAllManaged()
309 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_windowConfigurationChanges_doesNotRecreateActivity()
323 .getConfiguration() in configurationChange_windowConfigurationChanges_doesNotRecreateActivity()
358 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_restoresTheme()
374 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_reattachesRetainedFragments()
531 ApplicationProvider.getApplicationContext().getResources().getConfiguration()); in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
549 assertThat(configController.get().getResources().getConfiguration().fontScale) in configurationChange_callsLifecycleMethodsAndAppliesConfigWhenAnyNonManaged()
[all …]
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/
DSecureUberspector.java51 String [] badPackages = rsvc.getConfiguration() in init()
54 String [] badClasses = rsvc.getConfiguration() in init()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DFieldsResolutionTest.java124 …StaticJavaParser.getConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolve… in resolveClassFieldThroughThis()
146 …StaticJavaParser.getConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolve… in resolveClassFieldThroughSuper()
169 …StaticJavaParser.getConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolve… in resolveClassFieldOfClassExtendingUnknownClass1()
191 …StaticJavaParser.getConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolve… in resolveClassFieldOfClassExtendingUnknownClass2()
213 …StaticJavaParser.getConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolve… in resolveInheritedFieldFromInterface()
DAnonymousClassesResolutionTest.java36 StaticJavaParser.getConfiguration().setSymbolResolver(new JavaSymbolSolver(typeSolver)); in configureSymbolSolver()
42 StaticJavaParser.getConfiguration().setSymbolResolver(null); in unConfigureSymbolSolver()
DTypeResolutionWithSameNameTest.java35 .getConfiguration() in testTypesWithSameNameInPackageAndNested_directExtends()
66 .getConfiguration() in testTypesWithSameNameInPackageAndNested_directImplements()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowTimeManagerTest.java45 assertThat(capabilitiesAndConfig.getConfiguration()).isEqualTo(configuration); in updateConfigurationOverridesPreviousValues()
57 assertThat(capabilitiesAndConfig.getConfiguration()).isEqualTo(updatedConfiguration); in updateConfigurationOverridesPreviousValues()
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()
DShadowResourcesTest.java259 Configuration newConfig = new Configuration(resources.getConfiguration()); in addConfigurationChangeListener_callsOnConfigurationChange()
271 Configuration newConfig = new Configuration(resources.getConfiguration()); in removeConfigurationChangeListener_doesNotCallOnConfigurationChange()
289 resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration()) { in subclassWithNpeGetConfiguration_constructsCorrectly()
291 public Configuration getConfiguration() { in subclassWithNpeGetConfiguration_constructsCorrectly()
DShadowUsbRequestTest.java52 when(usbDevice.getConfiguration(0)).thenReturn(usbConfiguration); in setUp()
121 UsbConfiguration configuration = device.getConfiguration(i); in selectInterface()
DShadowUsbDeviceConnectionTest.java51 when(usbDevice.getConfiguration(0)).thenReturn(usbConfiguration); in setUp()
155 UsbConfiguration configuration = device.getConfiguration(i); in selectInterface()
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/app/event/implement/
DReportInvalidReferences.java181 … Boolean b = rs.getConfiguration().getBoolean(OLD_EVENTHANDLER_INVALIDREFERENCE_EXCEPTION, null); in setRuntimeServices()
184 b = rs.getConfiguration().getBoolean(EVENTHANDLER_INVALIDREFERENCE_EXCEPTION, false); in setRuntimeServices()
/external/robolectric/robolectric/src/main/java/org/robolectric/
DRobolectricTestRunner.java166 Configuration configuration = ((RobolectricFrameworkMethod) method).getConfiguration(); in createClassLoaderConfig()
221 Configuration configuration = getConfiguration(frameworkMethod.getMethod()); in getChildren()
344 .setUpApplicationState(bootstrappedMethod, roboMethod.getConfiguration(), appManifest); in beforeTest()
497 private Configuration getConfiguration(Method method) { in getConfiguration() method in RobolectricTestRunner
553 Config config = roboFrameworkMethod.getConfiguration().get(Config.class); in getExtraShadows()
757 public Configuration getConfiguration() {
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowActivity.java118 Configuration.class, application.getResources().getConfiguration())); in callAttach()
138 Configuration.class, application.getResources().getConfiguration()), in callAttach()
159 Configuration.class, application.getResources().getConfiguration()), in callAttach()
182 Configuration.class, application.getResources().getConfiguration()), in callAttach()
206 Configuration.class, application.getResources().getConfiguration()), in callAttach()
232 Configuration.class, application.getResources().getConfiguration()), in callAttach()
259 Configuration.class, application.getResources().getConfiguration()), in callAttach()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java98 return getQualifiers(systemResources.getConfiguration(), systemResources.getDisplayMetrics()); in getQualifiers()
125 configuration = new Configuration(Resources.getSystem().getConfiguration()); in setQualifiers()
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/runtime/
DRuntimeSingleton.java510 public static ExtProperties getConfiguration() in getConfiguration() method in RuntimeSingleton
512 return ri.getConfiguration(); in getConfiguration()
/external/swiftshader/src/System/
DSwiftConfig.hpp54 const Configuration &getConfiguration();
/external/cronet/base/android/java/src/org/chromium/base/
DLocaleUtils.java254 return getConfigurationLanguage(context.getResources().getConfiguration()); in getContextLanguage()
291 language, base.getResources().getConfiguration().getLocales()); in setConfigLocales()

1234