summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorMitsuru Oshima <>2009-04-29 13:35:38 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-29 13:35:38 -0700
commitc2839e087041b16a1ee7292b85459a396c25c771 (patch)
tree667f11899be570bcc3e825ee6d3c63c033f5a02b /core/java/android/content/Context.java
parentc36349034a399e41e5a78861d03dfe2a40e294fe (diff)
parent13735a255dedd2c2e3b0cff66f0be2e17671f553 (diff)
downloadframeworks_base-c2839e087041b16a1ee7292b85459a396c25c771.zip
frameworks_base-c2839e087041b16a1ee7292b85459a396c25c771.tar.gz
frameworks_base-c2839e087041b16a1ee7292b85459a396c25c771.tar.bz2
am 13735a2: Merge branch \'readonly-p4-donut\' into donut
Merge commit '13735a255dedd2c2e3b0cff66f0be2e17671f553' * commit '13735a255dedd2c2e3b0cff66f0be2e17671f553': AI 147976: Compatibility mode support. Part 2.
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r--core/java/android/content/Context.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 3d5ed3a..e8daa6e 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -527,6 +527,16 @@ public abstract class Context {
public abstract int getWallpaperDesiredMinimumHeight();
/**
+ * Returns the scale in which the application will be drawn on the
+ * screen. This is usually 1.0f if the application supports the device's
+ * resolution/density. This will be 1.5f, for example, if the application
+ * that supports only 160 density runs on 240 density screen.
+ *
+ * @hide
+ */
+ public abstract float getApplicationScale();
+
+ /**
* Change the current system wallpaper to a bitmap. The given bitmap is
* converted to a PNG and stored as the wallpaper. On success, the intent
* {@link Intent#ACTION_WALLPAPER_CHANGED} is broadcast.