/cts/tests/tests/dpi/src/android/dpi/cts/ |
ConfigurationScreenLayoutTest.java | 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 76 // 2. For each orientation start an activity and compute what it's screenLayout value is 77 // 3. Reduce the screenLayout values if they are smaller 79 int screenLayout = Configuration.SCREENLAYOUT_SIZE_XLARGE 83 screenLayout = reduceScreenLayout(activity, screenLayout); 86 return screenLayout; 97 private int reduceScreenLayout(Context context, int screenLayout) { [all...] |
/frameworks/base/core/tests/coretests/src/android/content/res/ |
ConfigurationTest.java | 40 config.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; 44 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_ROUND_YES); 50 config.screenLayout = Configuration.SCREENLAYOUT_COMPAT_NEEDED; 53 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); 56 assertEquals(config2.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowConfiguration.java | 17 public int screenLayout; 23 realConfiguration.screenLayout = Configuration.SCREENLAYOUT_LONG_NO |
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
ScreenDeviceInfo.java | 52 int screenLayout = configuration.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; 53 String screenSize = String.format("0x%x", screenLayout); 54 switch (screenLayout) {
|
/frameworks/base/core/java/android/content/res/ |
Configuration.java | 194 /** Constant for {@link #screenLayout}: bits that encode the size. */ 196 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} 199 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} 207 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} 215 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} 223 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK} 232 /** Constant for {@link #screenLayout}: bits that encode the aspect ratio. */ 234 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_LONG_MASK} 237 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_LONG_MASK} 242 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_LONG_MASK [all...] |
CompatibilityInfo.java | 102 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, 208 switch (screenLayout&Configuration.SCREENLAYOUT_SIZE_MASK) { 227 if ((screenLayout&Configuration.SCREENLAYOUT_COMPAT_NEEDED) != 0) { 470 inoutConfig.screenLayout = 471 (inoutConfig.screenLayout&~Configuration.SCREENLAYOUT_SIZE_MASK)
|
/frameworks/base/tools/aapt2/ |
ConfigDescription.cpp | 105 out->screenLayout = 106 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | 111 out->screenLayout = 112 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | 117 out->screenLayout = 118 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | 129 out->screenLayout = 130 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | 135 out->screenLayout = 136 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) [all...] |
/frameworks/base/native/android/ |
configuration.cpp | 101 return config->screenLayout&ResTable_config::MASK_SCREENSIZE; 105 return (config->screenLayout&ResTable_config::MASK_SCREENLONG) 136 return (config->screenLayout&ResTable_config::MASK_LAYOUTDIR) 195 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENSIZE) 200 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENLONG) 233 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_LAYOUTDIR)
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
ViewContact.java | 31 int screenLayoutSize = config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;
|
FrontDoor.java | 44 int screenLayoutSize = config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
ResTable_config.java | 139 int screenLayout = 0; 151 screenLayout = UnsignedBytes.toInt(buffer.get()); 179 sdkVersion, minorVersion, screenLayout, uiMode, smallestScreenWidthDp, screenWidthDp, 218 // screenLayout bits for layout direction. 433 // screenLayout bits for wide/long screen variation. 634 screenWidth, screenHeight, sdkVersion, minorVersion, screenLayout, uiMode, 641 int screenWidth, int screenHeight, int sdkVersion, int minorVersion, int screenLayout, 660 this.screenLayout = screenLayout; 681 public int screenLayout; [all...] |
ConfigDescription.java | 388 out.screenLayout = 389 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | 395 out.screenLayout = 396 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | 402 out.screenLayout = 403 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | 463 out.screenLayout = 464 (out.screenLayout & ~ResTable_config.MASK_SCREENSIZE) | 470 out.screenLayout = 471 (out.screenLayout & ~ResTable_config.MASK_SCREENSIZE) [all...] |
/cts/tests/framework/base/activitymanager/util/src/android/server/am/ |
ProtoExtractors.java | 45 config.screenLayout = proto.screenLayout;
|
/cts/tests/tests/keystore/src/android/server/am/ |
ProtoExtractors.java | 45 config.screenLayout = proto.screenLayout;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
DeviceConfig.java | 108 // screenLayout includes size, long, layoutdir, and round. 142 configuration.screenLayout = 278 if ((configuration.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) 386 return configuration.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; 390 configuration.screenLayout = 391 (configuration.screenLayout & ~Configuration.SCREENLAYOUT_SIZE_MASK) 396 return configuration.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK; 400 configuration.screenLayout = 401 (configuration.screenLayout & ~Configuration.SCREENLAYOUT_LONG_MASK) 406 return configuration.screenLayout & Configuration.SCREENLAYOUT_LAYOUTDIR_MASK [all...] |
ConfigurationV25.java | 92 switch (config.screenLayout & Configuration.SCREENLAYOUT_LAYOUTDIR_MASK) { 115 switch (config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) { 132 switch (config.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK) { 143 switch (config.screenLayout & Configuration.SCREENLAYOUT_ROUND_MASK) {
|
/frameworks/base/core/jni/ |
android_content_res_Configuration.cpp | 34 jfieldID screenLayout; 52 out->screenLayout = env->GetIntField(clazz, gConfigurationClassInfo.screenLayout); 82 gConfigurationClassInfo.screenLayout = GetFieldIDOrDie(env, clazz, "screenLayout", "I");
|
/frameworks/base/tools/aapt/ |
AaptConfig.cpp | 286 } else if ((config->screenLayout & ResTable_config::MASK_SCREENSIZE) 288 || (config->screenLayout & ResTable_config::MASK_SCREENLONG) 362 if (out) out->screenLayout = 363 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) 367 if (out) out->screenLayout = 368 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) 372 if (out) out->screenLayout = 373 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) 383 if (out) out->screenLayout = 384 (out->screenLayout&~ResTable_config::MASK_SCREENSIZE [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 346 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL; 349 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL; 352 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE; 355 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE; 401 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES; 404 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_NO; 407 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_UNDEFINED;
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
BootstrapTest.java | 145 assertThat(configuration.screenLayout & SCREENLAYOUT_LAYOUTDIR_MASK).isEqualTo(SCREENLAYOUT_LAYOUTDIR_LTR); 149 assertThat(configuration.screenLayout & SCREENLAYOUT_SIZE_MASK).isEqualTo(SCREENLAYOUT_SIZE_NORMAL); 150 assertThat(configuration.screenLayout & SCREENLAYOUT_LONG_MASK).isEqualTo(SCREENLAYOUT_LONG_NO); 151 assertThat(configuration.screenLayout & SCREENLAYOUT_ROUND_MASK).isEqualTo(SCREENLAYOUT_ROUND_NO); 195 assertThat(configuration.screenLayout & SCREENLAYOUT_LAYOUTDIR_MASK) 199 assertThat(configuration.screenLayout & SCREENLAYOUT_LAYOUTDIR_MASK) 205 assertThat(configuration.screenLayout & SCREENLAYOUT_SIZE_MASK).isEqualTo(SCREENLAYOUT_SIZE_XLARGE); 206 assertThat(configuration.screenLayout & SCREENLAYOUT_LONG_MASK).isEqualTo(SCREENLAYOUT_LONG_YES); 207 assertThat(configuration.screenLayout & SCREENLAYOUT_ROUND_MASK).isEqualTo(SCREENLAYOUT_ROUND_YES); 231 assertThat(configuration.screenLayout & Configuration.SCREENLAYOUT_LONG_MASK [all...] |
/development/apps/Development/src/com/android/development/ |
ConfigurationViewer.java | 50 + "screenLayout=0x" + Integer.toHexString(c.screenLayout) + "\n"
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ConfigurationTest.java | 32 assertThat(configuration.screenLayout, equalTo(Configuration.SCREENLAYOUT_LONG_NO | Configuration.SCREENLAYOUT_SIZE_NORMAL));
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowConfigurationTest.java | 29 assertThat(configuration.screenLayout).isEqualTo(SCREENLAYOUT_UNDEFINED);
|
/frameworks/base/tools/aapt2/format/proto/ |
ProtoDeserialize.cpp | 82 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) | 87 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_LAYOUTDIR) | 101 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | 106 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) | 111 out_config->screenLayout = (out_config->screenLayout & ~ConfigDescription::MASK_SCREENSIZE) [all...] |
/frameworks/base/libs/androidfw/tests/ |
Config_test.cpp | 136 longConfig.screenLayout = ResTable_config::SCREENLONG_YES; 170 deviceConfig.screenLayout = ResTable_config::SCREENLONG_YES; 176 targetConfigB.screenLayout = ResTable_config::SCREENLONG_YES;
|