Searched refs:screenLayout (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationTest.java40 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);
H A DResourcesManagerTest.java224 config2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES;
245 expectedConfig2.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES;
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java171 /** Constant for {@link #screenLayout}: bits that encode the size. */
173 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK}
176 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK}
184 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK}
192 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK}
200 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_SIZE_MASK}
209 /** Constant for {@link #screenLayout}: bits that encode the aspect ratio. */
211 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_LONG_MASK}
214 /** Constant for {@link #screenLayout}: a {@link #SCREENLAYOUT_LONG_MASK}
219 /** Constant for {@link #screenLayout}
299 public int screenLayout; field in class:Configuration
1806 getScreenLayoutNoDirection(int screenLayout) argument
[all...]
H A DCompatibilityInfo.java102 public CompatibilityInfo(ApplicationInfo appInfo, int screenLayout, int sw, argument
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)
H A DAssetManager.java786 int screenLayout, int uiMode, int colorMode, int majorVersion);
782 setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, int majorVersion) argument
H A DResourcesImpl.java424 mConfiguration.screenLayout, mConfiguration.uiMode,
/frameworks/base/tools/aapt2/
H A DConfigDescription.cpp105 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
[all...]
/frameworks/base/native/android/
H A Dconfiguration.cpp96 return config->screenLayout&ResTable_config::MASK_SCREENSIZE;
100 return (config->screenLayout&ResTable_config::MASK_SCREENLONG)
131 return (config->screenLayout&ResTable_config::MASK_LAYOUTDIR)
190 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENSIZE)
195 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_SCREENLONG)
228 config->screenLayout = (config->screenLayout&~ResTable_config::MASK_LAYOUTDIR)
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp34 jfieldID screenLayout; member in struct:android::__anon1050
52 out->screenLayout = env->GetIntField(clazz, gConfigurationClassInfo.screenLayout);
82 gConfigurationClassInfo.screenLayout = GetFieldIDOrDie(env, clazz, "screenLayout", "I");
H A Dandroid_util_AssetManager.cpp679 jint screenLayout, jint uiMode,
709 config.screenLayout = (uint8_t)screenLayout;
715 // In Java, we use a 32bit integer for screenLayout, while we only use an 8bit integer
716 // in C++. We must extract the round qualifier out of the Java screenLayout and put it
719 (uint8_t)((screenLayout & kScreenLayoutRoundMask) >> kScreenLayoutRoundShift);
670 android_content_AssetManager_setConfiguration(JNIEnv* env, jobject clazz, jint mcc, jint mnc, jstring locale, jint orientation, jint touchscreen, jint density, jint keyboard, jint keyboardHidden, jint navigation, jint screenWidth, jint screenHeight, jint smallestScreenWidthDp, jint screenWidthDp, jint screenHeightDp, jint screenLayout, jint uiMode, jint colorMode, jint sdkVersion) argument
/frameworks/base/tools/aapt/
H A DAaptConfig.cpp286 } 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
[all...]
H A DResourceTable.cpp3183 config.screenLayout);
3228 tHeader->config.screenLayout);
3963 config->screenLayout);
H A DCommand.cpp791 config.screenLayout |= ResTable_config::SCREENSIZE_NORMAL;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java332 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_SMALL;
335 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_NORMAL;
338 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_LARGE;
341 config.screenLayout |= Configuration.SCREENLAYOUT_SIZE_XLARGE;
387 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_YES;
390 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_NO;
393 config.screenLayout |= Configuration.SCREENLAYOUT_ROUND_UNDEFINED;
/frameworks/base/libs/androidfw/tests/
H A DConfig_test.cpp136 longConfig.screenLayout = ResTable_config::SCREENLONG_YES;
170 deviceConfig.screenLayout = ResTable_config::SCREENLONG_YES;
176 targetConfigB.screenLayout = ResTable_config::SCREENLONG_YES;
/frameworks/base/services/core/java/com/android/server/am/
H A DCompatModePackages.java202 CompatibilityInfo ci = new CompatibilityInfo(ai, globalConfig.screenLayout,
212 final CompatibilityInfo info = new CompatibilityInfo(ai, globalConfig.screenLayout,
415 final int screenLayout = globalConfig.screenLayout;
433 CompatibilityInfo info = new CompatibilityInfo(ai, screenLayout,
H A DTaskRecord.java2139 // We're only overriding LONG, SIZE and COMPAT parts of screenLayout, so we start override
2144 config.screenLayout = Configuration.reduceScreenLayout(sl, longSize, shortSize);
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp1906 diff = (int32_t)(screenLayout - o.screenLayout);
1936 if ((screenLayout & MASK_LAYOUTDIR) != (o.screenLayout & MASK_LAYOUTDIR)) {
1937 return (screenLayout & MASK_LAYOUTDIR) < (o.screenLayout & MASK_LAYOUTDIR) ? -1 : 1;
1966 if (screenLayout != o.screenLayout) {
1967 return screenLayout < o.screenLayout
[all...]
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java66 getResources().getConfiguration().screenLayout,
/frameworks/base/core/java/android/app/
H A DResourcesManager.java177 int sl = Configuration.resetScreenLayout(config.screenLayout);
180 config.screenLayout = Configuration.reduceScreenLayout(sl,
184 config.screenLayout = Configuration.reduceScreenLayout(sl,
/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h1072 // screenLayout bits for screen size class.
1080 // screenLayout bits for wide/long screen variation.
1087 // screenLayout bits for layout direction.
1117 uint8_t screenLayout; member in struct:android::ResTable_config::__anon1201::__anon1202
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayContent.java1195 config.screenLayout = (config.screenLayout & ~Configuration.SCREENLAYOUT_ROUND_MASK)
1343 int sl = Configuration.resetScreenLayout(outConfig.screenLayout);
1353 outConfig.screenLayout = sl;
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatDelegateImplV9.java1115 boolean isXLarge = (config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) ==
/frameworks/base/core/java/com/android/internal/policy/
H A DPhoneWindow.java782 boolean isXLarge = (config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) ==

Completed in 909 milliseconds