Home
last modified time | relevance | path

Searched refs:screenLayout (Results 1 – 12 of 12) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable_config.java142 int screenLayout = 0; in createConfig() local
154 screenLayout = UnsignedBytes.toInt(buffer.get()); in createConfig()
182 sdkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, in createConfig()
637 screenWidth, screenHeight, sdkVersion, minorVersion, screenLayout, uiMode, in withSdkVersion()
644 int screenWidth, int screenHeight, int sdkVersion, int minorVersion, int screenLayout, in ResTable_config() argument
663 this.screenLayout = screenLayout; in ResTable_config()
684 public int screenLayout; field in ResTable_config
687 return screenLayout & SCREENLAYOUT_LAYOUTDIR_MASK; in screenLayoutDirection()
691 screenLayout = (screenLayout & ~SCREENLAYOUT_LAYOUTDIR_MASK) | value; in screenLayoutDirection()
695 return screenLayout & SCREENLAYOUT_SIZE_MASK; in screenLayoutSize()
[all …]
DConfigDescription.java388 out.screenLayout = in parseLayoutDirection()
389 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | in parseLayoutDirection()
395 out.screenLayout = in parseLayoutDirection()
396 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | in parseLayoutDirection()
402 out.screenLayout = in parseLayoutDirection()
403 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | in parseLayoutDirection()
463 out.screenLayout = in parseScreenLayoutSize()
464 (out.screenLayout & ~ResTable_config.MASK_SCREENSIZE) | in parseScreenLayoutSize()
470 out.screenLayout = in parseScreenLayoutSize()
471 (out.screenLayout & ~ResTable_config.MASK_SCREENSIZE) | in parseScreenLayoutSize()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DDeviceConfig.java143 configuration.screenLayout = in applyToConfiguration()
283 if ((configuration.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) in applyRules()
405 return configuration.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; in getScreenLayoutSize()
409 configuration.screenLayout = in setScreenLayoutSize()
410 (configuration.screenLayout & ~Configuration.SCREENLAYOUT_SIZE_MASK) in setScreenLayoutSize()
415 return configuration.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK; in getScreenLayoutLong()
419 configuration.screenLayout = in setScreenLayoutLong()
420 (configuration.screenLayout & ~Configuration.SCREENLAYOUT_LONG_MASK) in setScreenLayoutLong()
425 return configuration.screenLayout & Configuration.SCREENLAYOUT_LAYOUTDIR_MASK; in getScreenLayoutLayoutDir()
429 configuration.screenLayout = in setScreenLayoutLayoutDir()
[all …]
DConfigurationV25.java92 switch (config.screenLayout & Configuration.SCREENLAYOUT_LAYOUTDIR_MASK) { in resourceQualifierString()
115 switch (config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) { in resourceQualifierString()
132 switch (config.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) { in resourceQualifierString()
143 switch (config.screenLayout & Configuration.SCREENLAYOUT_ROUND_MASK) { in resourceQualifierString()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java158 …assertThat(configuration.screenLayout & SCREENLAYOUT_LAYOUTDIR_MASK).isEqualTo(SCREENLAYOUT_LAYOUT… in applyQualifiers_shouldAddDefaults()
162 …assertThat(configuration.screenLayout & SCREENLAYOUT_SIZE_MASK).isEqualTo(SCREENLAYOUT_SIZE_NORMAL… in applyQualifiers_shouldAddDefaults()
163 assertThat(configuration.screenLayout & SCREENLAYOUT_LONG_MASK).isEqualTo(SCREENLAYOUT_LONG_NO); in applyQualifiers_shouldAddDefaults()
164 … assertThat(configuration.screenLayout & SCREENLAYOUT_ROUND_MASK).isEqualTo(SCREENLAYOUT_ROUND_NO); in applyQualifiers_shouldAddDefaults()
221 assertThat(configuration.screenLayout & SCREENLAYOUT_LAYOUTDIR_MASK) in applyQualifiers_shouldHonorSpecifiedQualifiers()
225 assertThat(configuration.screenLayout & SCREENLAYOUT_LAYOUTDIR_MASK) in applyQualifiers_shouldHonorSpecifiedQualifiers()
231 …assertThat(configuration.screenLayout & SCREENLAYOUT_SIZE_MASK).isEqualTo(SCREENLAYOUT_SIZE_XLARGE… in applyQualifiers_shouldHonorSpecifiedQualifiers()
232 … assertThat(configuration.screenLayout & SCREENLAYOUT_LONG_MASK).isEqualTo(SCREENLAYOUT_LONG_YES); in applyQualifiers_shouldHonorSpecifiedQualifiers()
233 …assertThat(configuration.screenLayout & SCREENLAYOUT_ROUND_MASK).isEqualTo(SCREENLAYOUT_ROUND_YES); in applyQualifiers_shouldHonorSpecifiedQualifiers()
257 assertThat(configuration.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) in applyQualifiers_longShouldMakeScreenTaller()
[all …]
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/
DConfigDescriptionTest.java81 assertThat(config.screenLayout).isEqualTo(LAYOUTDIR_LTR); in parse_layoutDirection_leftToRight()
88 assertThat(config.screenLayout).isEqualTo(LAYOUTDIR_RTL); in parse_layoutDirection_rightToLeft()
95 assertThat(config.screenLayout).isEqualTo(LAYOUTDIR_ANY); in parse_layoutDirection_any()
102 assertThat(config.screenLayout).isEqualTo(SCREENSIZE_SMALL); in parse_screenSize_small()
109 assertThat(config.screenLayout).isEqualTo(SCREENSIZE_NORMAL); in parse_screenSize_normal()
116 assertThat(config.screenLayout).isEqualTo(SCREENSIZE_LARGE); in parse_screenSize_large()
123 assertThat(config.screenLayout).isEqualTo(SCREENSIZE_XLARGE); in parse_screenSize_xlarge()
148 assertThat(config.screenLayout).isEqualTo(SCREENLONG_NO); in parse_screenLayoutLong_notlong()
DResTableConfigTest.java131 int screenLayout; field in ResTableConfigTest.ResTableConfigBuilder
144 …screenHeight, sdkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp… in build()
165 screenLayout = layoutDirection; in setLayoutDirection()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowConfigurationTest.java29 assertThat(configuration.screenLayout).isEqualTo(SCREENLAYOUT_UNDEFINED); in setToDefaultsShouldSetRealDefaults()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager.java136 int screenLayout, int uiMode, int sdkVersion) { in setConfiguration() argument
141 screenLayout, uiMode, 0, sdkVersion); in setConfiguration()
149 int screenLayout, int uiMode, int colorMode, int sdkVersion) { in setConfiguration() argument
177 config.screenLayout = screenLayout; in setConfiguration()
187 (byte) ((screenLayout & kScreenLayoutRoundMask) >> kScreenLayoutRoundShift); in setConfiguration()
DShadowLegacyAssetManager.java674 int screenLayout, int uiMode, int sdkVersion) { in setConfiguration() argument
679 screenLayout, uiMode, 0, sdkVersion); in setConfiguration()
687 int screenLayout, int uiMode, int colorMode, int majorVersion) { in setConfiguration() argument
709 config.screenLayout = screenLayout; in setConfiguration()
719 (byte)((screenLayout & kScreenLayoutRoundMask) >> kScreenLayoutRoundShift); in setConfiguration()
DShadowArscAssetManager10.java585 configuration.screenLayout = (byte) (screen_layout); in nativeSetConfiguration()
DShadowArscAssetManager9.java581 configuration.screenLayout = (byte) (screen_layout); in nativeSetConfiguration()