summaryrefslogtreecommitdiffstats
path: root/cmds/installd
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-07-26 17:42:30 -0700
committerDianne Hackborn <hackbod@google.com>2009-07-26 17:42:30 -0700
commit96e240f25a97c10bba863df328ed73a82c34ff61 (patch)
treea1784b60cb1fd8f7e70ea95eeb3a0a76f473740b /cmds/installd
parent11ea33471e1a14a8594f0b2cd012d86340dd3bd8 (diff)
downloadframeworks_base-96e240f25a97c10bba863df328ed73a82c34ff61.zip
frameworks_base-96e240f25a97c10bba863df328ed73a82c34ff61.tar.gz
frameworks_base-96e240f25a97c10bba863df328ed73a82c34ff61.tar.bz2
Fiddle with default densities to try to sanitize the API.
An issue with the density API is that bitmaps assumed the old default density, so new programs would have to explicitly set the correct density for every bitmap they create. This is an attempt to fix that situation, by define the default density of bitmaps to be the main screen's density, except for old apps where it is the original default density. Actually implementing this is not so great, though, because the Bitmap constructors can't really know anything about who is calling them to know which density to use. So at this level the compatibility mode is defined per-process -- meaning the initial package loaded into a process defines the default bitmap density, and everyone else loaded in later on has to live with that. In practice this shouldn't be much of a problem, there shouldn't be much mixing of old vs. new apps in a process. It does mean that, going forward, if a developer is going to use shared user IDs for this, they will need to make sure either that all of their apps are in the same compatibility mode, or that their code explicitly sets the density of bitmaps it receives. This isn't all that great, but I think it is worth the benefit of allowing people who write modern apps to not have to deal with bitmap densities. This change also does some cleanup of the density management (making sure to always copy over bitmap densities, etc) and adds java docs to explain the various ways density is set and used by the system.
Diffstat (limited to 'cmds/installd')
0 files changed, 0 insertions, 0 deletions