Home
last modified time | relevance | path

Searched refs:screenHeightDp (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp44 jfieldID screenHeightDp; member
70 out->screenHeightDp = env->GetIntField(clazz, gConfigurationClassInfo.screenHeightDp); in android_Configuration_getFromJava()
93 gConfigurationClassInfo.screenHeightDp = GetFieldIDOrDie(env, clazz, "screenHeightDp", "I"); in register_android_content_res_Configuration()
Dandroid_util_AssetManager.cpp510 configuration.screenHeightDp = static_cast<uint16_t>(screen_height_dp); in NativeSetConfiguration()
1154 env->SetIntField(result, gConfigurationOffsets.mScreenHeightDpOffset, config.screenHeightDp); in ConstructConfigurationObject()
/frameworks/base/core/java/android/content/res/
DConfiguration.java735 public int screenHeightDp; field in Configuration
927 screenHeightDp = o.screenHeightDp; in setTo()
980 if (screenHeightDp != SCREEN_HEIGHT_DP_UNDEFINED) { in toString()
981 sb.append(" h"); sb.append(screenHeightDp); sb.append("dp"); in toString()
1134 protoOutputStream.write(SCREEN_HEIGHT_DP, screenHeightDp); in writeToProto()
1267 screenHeightDp = protoInputStream.readInt(SCREEN_HEIGHT_DP); in readFromProto()
1367 screenHeightDp = compatScreenHeightDp = SCREEN_HEIGHT_DP_UNDEFINED; in setToDefaults()
1535 if (delta.screenHeightDp != SCREEN_HEIGHT_DP_UNDEFINED in updateFrom()
1536 && screenHeightDp != delta.screenHeightDp) { in updateFrom()
1538 screenHeightDp = delta.screenHeightDp; in updateFrom()
[all …]
DAssetManager.java1355 int screenHeightDp, int screenLayout, int uiMode, int colorMode, int majorVersion) { in setConfiguration() argument
1360 smallestScreenWidthDp, screenWidthDp, screenHeightDp, screenLayout, uiMode, in setConfiguration()
1422 int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, in nativeSetConfiguration() argument
DCompatibilityInfo.java492 inoutConfig.screenHeightDp = inoutConfig.compatScreenHeightDp; in applyToConfiguration()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java361 config.screenHeightDp = hardwareConfig.getScreenHeight() * 160 / density.getDpiValue(); in getConfiguration()
362 if (config.screenHeightDp < config.screenWidthDp) { in getConfiguration()
364 config.smallestScreenWidthDp = config.screenHeightDp; in getConfiguration()
372 config.compatScreenHeightDp = config.screenHeightDp; in getConfiguration()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java55 final int height = config.screenHeightDp; in getMaxActionButtons()
91 final int height = configuration.screenHeightDp; in hasEmbeddedTabs()
/frameworks/base/tools/aapt2/test/
DBuilders.h295 ConfigDescriptionBuilder& setScreenHeightDp(uint16_t screenHeightDp) { in setScreenHeightDp() argument
296 config_.screenHeightDp = screenHeightDp; in setScreenHeightDp()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp594 out->screenHeightDp = out->SCREENWIDTH_ANY; in parseScreenHeightDp()
607 out->screenHeightDp = (uint16_t)atoi(xName.c_str()); in parseScreenHeightDp()
847 config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in ApplyVersionForCompatibility()
919 if (screenHeightDp || o.screenHeightDp) return (!o.screenHeightDp); in HasHigherPrecedenceThan()
DResourceTypes.cpp1922 screenHeightDp = dtohs(screenHeightDp); in copyFromDtoH()
1936 screenHeightDp = htods(screenHeightDp); in swapHtoD()
2038 if (screenHeightDp != o.screenHeightDp) { in compareLogical()
2039 return screenHeightDp < o.screenHeightDp ? -1 : 1; in compareLogical()
2184 if (screenHeightDp != o.screenHeightDp) { in isMoreSpecificThan()
2185 if (!screenHeightDp) return false; in isMoreSpecificThan()
2186 if (!o.screenHeightDp) return true; in isMoreSpecificThan()
2462 if (requested->screenHeightDp) { in isBetterThan()
2463 myDelta += requested->screenHeightDp - screenHeightDp; in isBetterThan()
2464 otherDelta += requested->screenHeightDp - o.screenHeightDp; in isBetterThan()
[all …]
/frameworks/base/native/android/
Dconfiguration.cpp128 return config->screenHeightDp; in AConfiguration_getScreenHeightDp()
225 config->screenHeightDp = value; in AConfiguration_setScreenHeightDp()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTestUtils.java37 config.screenHeightDp = 15; in config()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskRecordTests.java365 parentConfig.screenHeightDp = 200; // 200 * 400 / 160 = 500px in testComputeConfigResourceOverrides()
374 assertEquals(parentConfig.screenHeightDp, inOutConfig.screenHeightDp); in testComputeConfigResourceOverrides()
403 inOutConfig.screenHeightDp); in testComputeConfigResourceOverrides()
DConfigurationContainerTests.java186 rootParentConfig.screenHeightDp = 100; in testConfigurationChangePropagation()
/frameworks/base/core/java/android/app/
DResourcesManager.java228 config.screenHeightDp = (int) (dm.heightPixels / dm.density); in applyNonDefaultDisplayMetricsToConfiguration()
233 config.screenWidthDp, config.screenHeightDp); in applyNonDefaultDisplayMetricsToConfiguration()
237 config.screenHeightDp, config.screenWidthDp); in applyNonDefaultDisplayMetricsToConfiguration()
239 config.smallestScreenWidthDp = Math.min(config.screenWidthDp, config.screenHeightDp); in applyNonDefaultDisplayMetricsToConfiguration()
241 config.compatScreenHeightDp = config.screenHeightDp; in applyNonDefaultDisplayMetricsToConfiguration()
/frameworks/base/libs/androidfw/tests/
DAttributeResolution_bench.cpp108 device_config.screenHeightDp = 1024; in BM_ApplyStyleFramework()
/frameworks/base/tools/aapt/
DAaptConfig.cpp279 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in applyVersionForCompatibility()
839 out->screenHeightDp = out->SCREENWIDTH_ANY; in parseScreenHeightDp()
852 out->screenHeightDp = (uint16_t)atoi(xName.string()); in parseScreenHeightDp()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java103 final int height = configuration.screenHeightDp; in shouldAllowTextWithIcon()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskRecord.java2117 || inOutConfig.screenHeightDp == Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in computeConfigResourceOverrides()
2153 if (inOutConfig.screenHeightDp == Configuration.SCREEN_HEIGHT_DP_UNDEFINED) { in computeConfigResourceOverrides()
2155 inOutConfig.screenHeightDp = insideParentBounds in computeConfigResourceOverrides()
2156 ? Math.min(overrideScreenHeightDp, parentConfig.screenHeightDp) in computeConfigResourceOverrides()
2178 inOutConfig.orientation = (inOutConfig.screenWidthDp <= inOutConfig.screenHeightDp) in computeConfigResourceOverrides()
DDockedStackDividerController.java303 config.screenHeightDp = (int) (displayPolicy.getConfigDisplayHeight(dw, dh, rotation, in initSnapAlgorithmForRotations()
DActivityRecord.java2996 if (resolvedConfig.screenWidthDp == resolvedConfig.screenHeightDp) { in resolveSizeCompatModeConfiguration()
3401 || crossesVerticalSizeThreshold(lastReportedConfig.screenHeightDp, in getConfigurationChanges()
3402 currentConfig.screenHeightDp); in getConfigurationChanges()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DUsageStatsDatabaseTest.java218 config8.screenHeightDp = 17; in populateIntervalStats()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp78 out_pb_config->set_screen_height_dp(config.screenHeightDp); in SerializeConfig()
DProtoDeserialize.cpp99 out_config->screenHeightDp = static_cast<uint16_t>(pb_config.screen_height_dp()); in DeserializeConfigFromPb()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1145 uint16_t screenHeightDp; member

12