Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/res/
DConfiguration.java530 public int screenWidthDp; field in Configuration
668 screenWidthDp = o.screenWidthDp; in setTo()
714 if (screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED) { in toString()
715 sb.append(" w"); sb.append(screenWidthDp); sb.append("dp"); in toString()
833 screenWidthDp = compatScreenWidthDp = SCREEN_WIDTH_DP_UNDEFINED; in setToDefaults()
948 if (delta.screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED in updateFrom()
949 && screenWidthDp != delta.screenWidthDp) { in updateFrom()
951 screenWidthDp = delta.screenWidthDp; in updateFrom()
1074 if (delta.screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED in diff()
1075 && screenWidthDp != delta.screenWidthDp) { in diff()
[all …]
DCompatibilityInfo.java459 inoutConfig.screenWidthDp = inoutConfig.compatScreenWidthDp; in applyToConfiguration()
DAssetManager.java702 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument
DResources.java2043 mConfiguration.screenWidthDp, mConfiguration.screenHeightDp, in updateConfiguration()
/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp43 jfieldID screenWidthDp; member
69 out->screenWidthDp = env->GetIntField(clazz, gConfigurationClassInfo.screenWidthDp); in android_Configuration_getFromJava()
92 gConfigurationClassInfo.screenWidthDp = GetFieldIDOrDie(env, clazz, "screenWidthDp", "I"); in register_android_content_res_Configuration()
Dandroid_util_AssetManager.cpp604 jint screenWidthDp, jint screenHeightDp, in android_content_AssetManager_setConfiguration() argument
633 config.screenWidthDp = (uint16_t)screenWidthDp; in android_content_AssetManager_setConfiguration()
/frameworks/base/core/java/android/app/
DResourcesManager.java87 config.screenWidthDp = (int)(dm.widthPixels / dm.density); in applyNonDefaultDisplayMetricsToConfigurationLocked()
93 config.screenWidthDp, config.screenHeightDp); in applyNonDefaultDisplayMetricsToConfigurationLocked()
97 config.screenHeightDp, config.screenWidthDp); in applyNonDefaultDisplayMetricsToConfigurationLocked()
99 config.smallestScreenWidthDp = config.screenWidthDp; // assume screen does not rotate in applyNonDefaultDisplayMetricsToConfigurationLocked()
100 config.compatScreenWidthDp = config.screenWidthDp; in applyNonDefaultDisplayMetricsToConfigurationLocked()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java353 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue(); in getConfiguration()
355 if (config.screenHeightDp < config.screenWidthDp) { in getConfiguration()
359 config.smallestScreenWidthDp = config.screenWidthDp; in getConfiguration()
364 config.compatScreenWidthDp = config.screenWidthDp; in getConfiguration()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskStack.java189 mOverrideConfig.screenWidthDp = in updateOverrideConfiguration()
190 Math.min((int)(mBounds.width() / density), serviceConfig.screenWidthDp); in updateOverrideConfiguration()
194 Math.min(mOverrideConfig.screenWidthDp, mOverrideConfig.screenHeightDp); in updateOverrideConfiguration()
196 (mOverrideConfig.screenWidthDp <= mOverrideConfig.screenHeightDp) in updateOverrideConfiguration()
DWindowManagerService.java7366 config.screenWidthDp = in computeScreenConfigurationLocked()
7380 config.compatScreenWidthDp = (int)(config.screenWidthDp / mCompatibleScreenScale); in computeScreenConfigurationLocked()
/frameworks/base/native/android/
Dconfiguration.cpp119 return config->screenWidthDp; in AConfiguration_getScreenWidthDp()
216 config->screenWidthDp = value; in AConfiguration_setScreenWidthDp()
/frameworks/base/tools/aapt2/
DConfigDescription.cpp487 out->screenWidthDp = out->SCREENWIDTH_ANY; in parseScreenWidthDp()
500 out->screenWidthDp = (uint16_t)atoi(xName.c_str()); in parseScreenWidthDp()
731 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1844 screenWidthDp = dtohs(screenWidthDp); in copyFromDtoH()
1858 screenWidthDp = htods(screenWidthDp); in swapHtoD()
1929 if (screenWidthDp != o.screenWidthDp) { in compareLogical()
1930 return screenWidthDp < o.screenWidthDp ? -1 : 1; in compareLogical()
2067 if (screenWidthDp != o.screenWidthDp) { in isMoreSpecificThan()
2068 if (!screenWidthDp) return false; in isMoreSpecificThan()
2069 if (!o.screenWidthDp) return true; in isMoreSpecificThan()
2231 if (requested->screenWidthDp) { in isBetterThan()
2232 myDelta += requested->screenWidthDp - screenWidthDp; in isBetterThan()
2233 otherDelta += requested->screenWidthDp - o.screenWidthDp; in isBetterThan()
[all …]
/frameworks/base/tools/aapt/
DAaptConfig.cpp257 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility()
751 out->screenWidthDp = out->SCREENWIDTH_ANY; in parseScreenWidthDp()
764 out->screenWidthDp = (uint16_t)atoi(xName.string()); in parseScreenWidthDp()
DResourceTable.cpp3110 config.screenWidthDp, in flatten()
3155 tHeader->config.screenWidthDp, in flatten()
3890 config->screenWidthDp, in getEntry()
DCommand.cpp617 config.screenWidthDp = 320; in doDump()
/frameworks/base/core/java/android/view/
DDisplayInfo.java510 && configuration.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED) in getMetricsWithSize()
511 ? (int)((configuration.screenWidthDp * outMetrics.density) + 0.5f) : width; in getMetricsWithSize()
/frameworks/base/include/androidfw/
DResourceTypes.h1120 uint16_t screenWidthDp; member
/frameworks/base/services/core/java/com/android/server/am/
DActivityStack.java3881 || oldStackOverride.screenWidthDp != mOverrideConfig.screenWidthDp) { in ensureActivityConfigurationLocked()
/frameworks/base/docs/html/guide/topics/resources/
Dproviding-resources.jd449 <p>Also see the {@link android.content.res.Configuration#screenWidthDp}
/frameworks/base/api/
Dcurrent.txt9721 field public int screenWidthDp;
Dsystem-current.txt10058 field public int screenWidthDp;