replicant-frameworks_native/include/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
..
egl ANativeWindow: add query for the concrete type. 2011-03-14 17:47:11 -07:00
android_native_buffer.h Add incStrong and decStrong methods to android_native_{window,buffer}_t. 2010-05-10 17:33:32 -07:00
DisplayInfo.h Mouse pointer integration. 2011-01-04 17:31:24 -08:00
EGLNativeSurface.h
EGLUtils.h
FramebufferNativeWindow.h surfaceflinger: add support for gralloc dump hooks 2010-12-08 15:40:11 -08:00
GraphicBuffer.h Protected surface API 2011-01-28 08:04:00 -08:00
GraphicBufferAllocator.h [3171580] don't automatically log GraphicBuffer allocation failures 2010-12-03 17:33:09 -08:00
GraphicBufferMapper.h
GraphicLog.h fix a typo where the eventtags code were wrong 2010-09-15 12:46:59 -07:00
Input.h Better compat mode part one: start scaling windows. 2011-05-09 17:03:24 -07:00
InputTransport.h Add support for fallback keycodes. 2010-12-07 17:35:26 -08:00
Keyboard.h Fade out the mouse pointer after inactivity or other events. 2011-03-02 15:37:57 -08:00
KeyCharacterMap.h Add support for fallback keycodes. 2010-12-07 17:35:26 -08:00
KeycodeLabels.h Joystick tweaks. (DO NOT MERGE) 2011-03-04 19:12:41 -08:00
KeyLayoutMap.h Joystick tweaks. (DO NOT MERGE) 2011-03-04 19:12:41 -08:00
PixelFormat.h fix a bug I introduced recently where YUV formats would crash the system 2010-02-16 20:43:39 -08:00
Point.h
PowerManager.h The CHEEK_TOUCH stuff never worked. Remove it. 2010-11-08 13:02:58 -08:00
Rect.h Add ANativeWindow API for directly drawing to the surface bits. 2010-07-09 16:58:19 -07:00
Region.h Remove a dependency of Region (libui) on Parcel (libbinder). 2010-02-17 20:26:47 -08:00
VirtualKeyMap.h Improve support for external keyboards. 2010-12-02 16:01:32 -08:00