Home | History | Annotate | Download | only in cts

Lines Matching refs:Configuration

23 import android.content.res.Configuration;
46 int expectedSize = expectedScreenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;
47 int expectedLong = expectedScreenLayout & Configuration.SCREENLAYOUT_LONG_MASK;
49 // Check that all four orientations report the same configuration value.
57 Configuration mConfig = activity.getResources().getConfiguration();
58 int actualSize = mConfig.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;
59 int actualLong = mConfig.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK;
70 * @return expected value of {@link Configuration#screenLayout} with the
71 * {@link Configuration#SCREENLAYOUT_LONG_MASK} and
72 * {@link Configuration#SCREENLAYOUT_SIZE_MASK} defined
75 // 1. Start with the biggest configuration possible.
79 int screenLayout = Configuration.SCREENLAYOUT_SIZE_XLARGE
80 | Configuration.SCREENLAYOUT_LONG_YES;
113 screenLayoutSize = Configuration.SCREENLAYOUT_SIZE_SMALL;
117 screenLayoutSize = Configuration.SCREENLAYOUT_SIZE_XLARGE;
119 screenLayoutSize = Configuration.SCREENLAYOUT_SIZE_LARGE;
121 screenLayoutSize = Configuration.SCREENLAYOUT_SIZE_NORMAL;
132 screenLayout = (screenLayout & ~Configuration.SCREENLAYOUT_LONG_MASK)
133 | Configuration.SCREENLAYOUT_LONG_NO;
135 int curSize = screenLayout&Configuration.SCREENLAYOUT_SIZE_MASK;
137 screenLayout = (screenLayout&~Configuration.SCREENLAYOUT_SIZE_MASK)