Home
last modified time | relevance | path

Searched refs:screenWidthDp (Results 1 – 16 of 16) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DDeviceConfig.java116 if (resTab.screenWidthDp == 0) { in applyToConfiguration()
117 configuration.screenWidthDp = 0; in applyToConfiguration()
169 if (resTab.screenWidthDp != 0) { in applyToConfiguration()
170 configuration.screenWidthDp = resTab.screenWidthDp; in applyToConfiguration()
270 && configuration.screenWidthDp != 0 && configuration.screenHeightDp != 0) { in applyRules()
271 configuration.orientation = (configuration.screenWidthDp > configuration.screenHeightDp) in applyRules()
276 if (configuration.screenWidthDp == 0) { in applyRules()
277 configuration.screenWidthDp = requestedScreenSize.width; in applyRules()
289 int lesserDimenPx = Math.min(configuration.screenWidthDp, configuration.screenHeightDp); in applyRules()
290 int greaterDimenPx = Math.max(configuration.screenWidthDp, configuration.screenHeightDp); in applyRules()
[all …]
DConfigurationV25.java107 if (config.screenWidthDp != 0) { in resourceQualifierString()
108 parts.add("w" + config.screenWidthDp + "dp"); in resourceQualifierString()
DBootstrap.java57 int widthPx = (int) (configuration.screenWidthDp * displayMetrics.density); in fixJellyBean()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable_config.java145 int screenWidthDp = 0; in createConfig() local
160 screenWidthDp = buffer.getShort() & 0xFFFF; in createConfig()
182 sdkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, in createConfig()
638 smallestScreenWidthDp, screenWidthDp, screenHeightDp, localeScript, localeVariant, in withSdkVersion()
645 int uiMode, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in ResTable_config() argument
666 this.screenWidthDp = screenWidthDp; in ResTable_config()
737 public int screenWidthDp; field in ResTable_config
886 dtohs((short) o.screenWidthDp), in fromDtoH()
1085 && screenWidthDp == 0 in isDefault()
1131 result.put(Type.SCREEN_WIDTH_DP, screenWidthDp != 0 ? "w" + screenWidthDp + "dp" : ""); in toStringParts()
[all …]
DConfigDescription.java431 out.screenWidthDp = ResTable_config.SCREENWIDTH_ANY; in parseScreenWidthDp()
438 out.screenWidthDp = Integer.parseInt(matcher.group(1)); in parseScreenWidthDp()
999 || config.screenWidthDp != ResTable_config.SCREENWIDTH_ANY in applyVersionForCompatibility()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/
DResTableConfigTest.java134 int screenWidthDp; field in ResTableConfigTest.ResTableConfigBuilder
144 …dkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, screenHeightD… in build()
DConfigDescriptionTest.java136 assertThat(config.screenWidthDp).isEqualTo(480); in getScreenWidth()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDisplayManager.java50 int widthPx = (int) (configuration.screenWidthDp * displayMetrics.density); in createDisplayInfo()
107 configuration.screenWidthDp = baseDisplayInfo.logicalWidth * DisplayMetrics.DENSITY_DEFAULT in createDisplayInfo()
DShadowArscAssetManager.java135 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument
140 smallestScreenWidthDp, screenWidthDp, screenHeightDp, in setConfiguration()
148 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument
175 config.screenWidthDp = screenWidthDp; in setConfiguration()
DShadowLegacyAssetManager.java673 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument
678 smallestScreenWidthDp, screenWidthDp, screenHeightDp, in setConfiguration()
686 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument
707 config.screenWidthDp = screenWidthDp; in setConfiguration()
DShadowDisplay.java400 int widthPx = (int) (configuration.screenWidthDp * displayMetrics.density); in configureForJBOnly()
DShadowArscAssetManager10.java583 configuration.screenWidthDp = (short) (screen_width_dp); in nativeSetConfiguration()
1291 result.screenWidthDp = config.screenWidthDp; in ConstructConfigurationObject()
DShadowArscAssetManager9.java579 configuration.screenWidthDp = (short) (screen_width_dp); in nativeSetConfiguration()
1287 result.screenWidthDp = config.screenWidthDp; in ConstructConfigurationObject()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java160 assertThat(configuration.screenWidthDp).isEqualTo(320); in applyQualifiers_shouldAddDefaults()
229 assertThat(configuration.screenWidthDp).isEqualTo(480); in applyQualifiers_shouldHonorSpecifiedQualifiers()
255 assertThat(configuration.screenWidthDp).isEqualTo(320); in applyQualifiers_longShouldMakeScreenTaller()
265 assertThat(configuration.screenWidthDp).isEqualTo(400); in whenScreenRationGreatherThan175Percent_applyQualifiers_ShouldSetLong()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DQualifiersTest.java106 assertThat(resources.getConfiguration().screenWidthDp).isEqualTo(320); in defaultScreenWidth()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java228 assertThat(configuration.screenWidthDp).isEqualTo(ScreenSize.xlarge.width); in whenDimensAndSizeSpecified_setQualifiers_should()