From ebff8f92f13513ce37bd74759eb1db63f2220590 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 12 May 2011 18:07:47 -0700 Subject: [PATCH] DO NOT MERGE. Integrate add new screen width/height in "dp" configs. You can now specify resource configuration variants "wNNNdp" and "hNNNdp". These are the minimum screen width/height in "dp" units. This allows you to do things like have your app adjust its layout based only on the about of horizontal space available. This introduces a new configuration change flag for screen size. Note that this configuration change happens each time the orientation changes. Applications often say they handle the orientation change to avoid being restarted at a screen rotation, and this will now cause them to be restarted. To address this, we assume the app can handle this new config change if its target SDK version is < ICS. Change-Id: I4acb73d82677b74092c1da9e4046a4951921f9f4 --- api/current.xml | 53 ++++++++ .../java/android/content/pm/ActivityInfo.java | 37 ++++++ .../android/content/pm/PackageParser.java | 8 +- .../android/content/res/AssetManager.java | 3 +- .../android/content/res/Configuration.java | 56 ++++++++- core/java/android/content/res/Resources.java | 3 + core/jni/android_util_AssetManager.cpp | 5 +- core/res/res/values/attrs_manifest.xml | 5 + .../topics/resources/providing-resources.jd | 40 ++++++ include/utils/ResourceTypes.h | 67 +++++++++- libs/utils/ResourceTypes.cpp | 31 +++-- .../server/wm/WindowManagerService.java | 3 + tools/aapt/AaptAssets.cpp | 115 +++++++++++++++++- tools/aapt/AaptAssets.h | 7 ++ tools/aapt/ResourceTable.cpp | 27 +++- 15 files changed, 433 insertions(+), 27 deletions(-) diff --git a/api/current.xml b/api/current.xml index b2e75e32066cd..b2330beb34098 100644 --- a/api/current.xml +++ b/api/current.xml @@ -57840,6 +57840,17 @@ visibility="public" > + + + + + + + + + +