replicant-frameworks_native/libs/ui
Dianne Hackborn 16fe3c2c1f Better compat mode part one: start scaling windows.
First step of improving app screen size compatibility mode.  When
running in compat mode, an application's windows are scaled up on
the screen rather than being small with 1:1 pixels.

Currently we scale the application to fill the entire screen, so
don't use an even pixel scaling.  Though this may have some
negative impact on the appearance (it looks okay to me), it has a
big benefit of allowing us to now treat these apps as normal
full-screens apps and do the normal transition animations as you
move in and out and around in them.

This introduces fun stuff in the input system to take care of
modifying pointer coordinates to account for the app window
surface scaling.  The input dispatcher is told about the scale
that is being applied to each window and, when there is one,
adjusts pointer events appropriately as they are being sent
to the transport.

Also modified is CompatibilityInfo, which has been greatly
simplified to not be so insane and incomprehendible.  It is
now simple -- when constructed it determines if the given app
is compatible with the current screen size and density, and
that is that.

There are new APIs on ActivityManagerService to put applications
that we would traditionally consider compatible with larger screens
in compatibility mode.  This is the start of a facility to have
a UI affordance for a user to switch apps in and out of
compatibility.

To test switching of modes, there is a new variation of the "am"
command to do this: am screen-compat [on|off] [package]

This mode switching has the fundamentals of restarting activities
when it is changed, though the state still needs to be persisted
and the overall mode switch cleaned up.

For the few small apps I have tested, things mostly seem to be
working well.  I know of one problem with the text selection
handles being drawn at the wrong position because at some point
the window offset is being scaled incorrectly.  There are
probably other similar issues around the interaction between
two windows because the different window coordinate spaces are
done in a hacky way instead of being formally integrated into
the window manager layout process.

Change-Id: Ie038e3746b448135117bd860859d74e360938557
2011-05-09 17:03:24 -07:00
..
tests Add new axes for joysticks and mouse wheels. 2011-02-19 05:23:10 -08:00
Android.mk Add support for arbitrary axes in MotionEvents. 2011-02-15 19:14:37 -08:00
EGLUtils.cpp Use EGL_NATIVE_VISUAL_ID to select EGLConfig 2011-01-19 18:21:15 -08:00
EventRecurrence.cpp
FramebufferNativeWindow.cpp ANativeWindow: add query for the concrete type. 2011-03-14 17:47:11 -07:00
GraphicBuffer.cpp am 48f42f8c: am 4153bf3a: Merge "[3171580] don\'t automatically log GraphicBuffer allocation failures" into gingerbread 2010-12-07 17:24:03 -08:00
GraphicBufferAllocator.cpp improve SurfaceFlinger 'dumpsys' log 2011-01-19 16:15:53 -08:00
GraphicBufferMapper.cpp fix [3259708] Graphic Buffer Mapper does not support YV12 2010-12-08 16:48:28 -08:00
GraphicLog.cpp
Input.cpp Better compat mode part one: start scaling windows. 2011-05-09 17:03:24 -07:00
InputTransport.cpp Add new hover move action and scroll wheel plumbing. 2011-02-19 06:14:21 -08:00
Keyboard.cpp Fade out the mouse pointer after inactivity or other events. 2011-03-02 15:37:57 -08:00
KeyCharacterMap.cpp Make getFallbackAction return false when there is none. 2011-01-14 17:54:38 -08:00
KeyLayoutMap.cpp Joystick tweaks. (DO NOT MERGE) 2011-03-04 19:12:41 -08:00
MODULE_LICENSE_APACHE2
NOTICE
PixelFormat.cpp
Rect.cpp
Region.cpp fix [4093196] Device lock up - log spam with SharedBufferStack: waitForCondition(LockCondition) timed out 2011-03-17 00:04:42 -07:00
VirtualKeyMap.cpp