Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/res/
DConfiguration.java599 public int screenWidthDp; field in Configuration
768 screenWidthDp = o.screenWidthDp; in setTo()
815 if (screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED) { in toString()
816 sb.append(" w"); sb.append(screenWidthDp); sb.append("dp"); in toString()
935 screenWidthDp = compatScreenWidthDp = SCREEN_WIDTH_DP_UNDEFINED; in setToDefaults()
1053 if (delta.screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED in updateFrom()
1054 && screenWidthDp != delta.screenWidthDp) { in updateFrom()
1056 screenWidthDp = delta.screenWidthDp; in updateFrom()
1180 if (delta.screenWidthDp != SCREEN_WIDTH_DP_UNDEFINED in diff()
1181 && screenWidthDp != delta.screenWidthDp) { in diff()
[all …]
DCompatibilityInfo.java459 inoutConfig.screenWidthDp = inoutConfig.compatScreenWidthDp; in applyToConfiguration()
DAssetManager.java758 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, in setConfiguration() argument
DResourcesImpl.java415 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.cpp630 env->SetIntField(result, gConfigurationOffsets.mScreenWidthDpOffset, config.screenWidthDp); in constructConfigurationObject()
679 jint screenWidthDp, jint screenHeightDp, in android_content_AssetManager_setConfiguration() argument
708 config.screenWidthDp = (uint16_t)screenWidthDp; in android_content_AssetManager_setConfiguration()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java351 config.screenWidthDp = hardwareConfig.getScreenWidth() / density.getDpiValue(); in getConfiguration()
353 if (config.screenHeightDp < config.screenWidthDp) { in getConfiguration()
357 config.smallestScreenWidthDp = config.screenWidthDp; in getConfiguration()
362 config.compatScreenWidthDp = config.screenWidthDp; in getConfiguration()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java49 final int width = config.screenWidthDp; in getMaxActionButtons()
82 final int width = configuration.screenWidthDp; in hasEmbeddedTabs()
/frameworks/support/v4/honeycomb_mr2/android/support/v4/content/res/
DConfigurationHelperHoneycombMr2.java30 return resources.getConfiguration().screenWidthDp; in getScreenWidthDp()
/frameworks/base/core/java/android/app/
DResourcesManager.java175 config.screenWidthDp = (int) (dm.widthPixels / dm.density); in applyNonDefaultDisplayMetricsToConfiguration()
181 config.screenWidthDp, config.screenHeightDp); in applyNonDefaultDisplayMetricsToConfiguration()
185 config.screenHeightDp, config.screenWidthDp); in applyNonDefaultDisplayMetricsToConfiguration()
187 config.smallestScreenWidthDp = config.screenWidthDp; // assume screen does not rotate in applyNonDefaultDisplayMetricsToConfiguration()
188 config.compatScreenWidthDp = config.screenWidthDp; in applyNonDefaultDisplayMetricsToConfiguration()
/frameworks/base/native/android/
Dconfiguration.cpp119 return config->screenWidthDp; in AConfiguration_getScreenWidthDp()
216 config->screenWidthDp = value; in AConfiguration_setScreenWidthDp()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1846 screenWidthDp = dtohs(screenWidthDp); in copyFromDtoH()
1860 screenWidthDp = htods(screenWidthDp); in swapHtoD()
1934 if (screenWidthDp != o.screenWidthDp) { in compareLogical()
1935 return screenWidthDp < o.screenWidthDp ? -1 : 1; in compareLogical()
2072 if (screenWidthDp != o.screenWidthDp) { in isMoreSpecificThan()
2073 if (!screenWidthDp) return false; in isMoreSpecificThan()
2074 if (!o.screenWidthDp) return true; in isMoreSpecificThan()
2300 if (requested->screenWidthDp) { in isBetterThan()
2301 myDelta += requested->screenWidthDp - screenWidthDp; in isBetterThan()
2302 otherDelta += requested->screenWidthDp - o.screenWidthDp; in isBetterThan()
[all …]
/frameworks/base/tools/aapt2/
DConfigDescription.cpp512 out->screenWidthDp = out->SCREENWIDTH_ANY; in parseScreenWidthDp()
525 out->screenWidthDp = (uint16_t)atoi(xName.c_str()); in parseScreenWidthDp()
765 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility()
/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()
/frameworks/base/core/java/android/view/
DDisplayInfo.java563 && configuration.screenWidthDp != Configuration.SCREEN_WIDTH_DP_UNDEFINED) in getMetricsWithSize()
564 ? (int)((configuration.screenWidthDp * outMetrics.density) + 0.5f) : width; in getMetricsWithSize()
/frameworks/base/services/core/java/com/android/server/am/
DTaskRecord.java1529 config.screenWidthDp = in calculateOverrideConfig()
1530 Math.min((int)(mTmpStableBounds.width() / density), serviceConfig.screenWidthDp); in calculateOverrideConfig()
1535 config.orientation = (config.screenWidthDp <= config.screenHeightDp) in calculateOverrideConfig()
1566 extracted.screenWidthDp = config.screenWidthDp; in extractOverrideConfig()
DActivityStack.java4625 oldTaskOverride.screenWidthDp, taskConfig.screenWidthDp) in getTaskConfigurationChanges()
4660 final int oldWidth = oldTaskOverride.screenWidthDp; in catchConfigChangesFromUnset()
4661 final int newWidth = taskConfig.screenWidthDp; in catchConfigChangesFromUnset()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java106 final int width = configuration.screenWidthDp; in shouldAllowTextWithIcon()
/frameworks/base/services/core/java/com/android/server/wm/
DDockedStackDividerController.java207 config.screenWidthDp = (int) in initSnapAlgorithmForRotations()
/frameworks/base/include/androidfw/
DResourceTypes.h1126 uint16_t screenWidthDp; member
/frameworks/base/core/java/android/widget/
DSearchView.java2041 final int width = configuration.screenWidthDp; in getSearchViewTextMinWidthDp()
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/resources/
Dproviding-resources.jd437 {@link android.content.res.Configuration#screenWidthDp} 配置字段,该字段存放当前屏幕宽度。</p>
/frameworks/base/docs/html-intl/intl/ru/guide/topics/resources/
Dproviding-resources.jd436 <p>См. также поле конфигурации {@link android.content.res.Configuration#screenWidthDp}
/frameworks/base/docs/html-intl/intl/ja/guide/topics/resources/
Dproviding-resources.jd436 … <p>さらに、{@link android.content.res.Configuration#screenWidthDp} 設定フィールドもご覧ください。これは現在の画面の幅を保持します。
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/resources/
Dproviding-resources.jd436 <p>另請查看 {@link android.content.res.Configuration#screenWidthDp} 設定欄位,該欄位保留目前的螢幕寬度。

12