frameworks/base: Increase the buffer size to hold the whole content of the file.

When we have more cpufreq steps and cpufreq's time_in_state stats file
can grow beyond 256.

This buffer size was not enough because the file has more than 300
characters. So it read part of the file and the parsing failed.
This runs from ActivityManager, so when the ActivityManager dies
framework reboots.Increasing the buffer size will help use to get
the whole file into the buffer.

Change-Id: I3f95dc7534fdaf5e139966c0d1be8d79d6413a0f
Separate configuration of auto-brightness for button/keyboard backlights.

Presently, light-sensor based automatic brightness
(config_autoBrightnessLevels) controls both button and keyboard backlights
in addition to the screen backlight.  Unfortunately auto-brightness for
button/keyboard backlights doesn't work well on devices (e.g., epicmtd)
with neither (i) dimmable button/keyboard backlights (so when they're on,
they're very bright even if the screen backlight is relatively dark) nor
(ii) identifiable surface features on capacitive buttons (so they can't be
found if the backlights are permanently turned off).

For these devices, the non-auto-brightness behavior of button/keyboard
backlights, whereby they turn on during screen-on events and user activity
and timeout-to-off shortly thereafter, is preferable.  Thus, this commit
adds a config option, config_autoBrightnessButtonKeyboard (defaults to
true), that when disabled allows for automatic brightness control of the
screen backlight, but retains the timeout-based behavior for button and
keyboard backlights.

Also addressed is a bug that disables the button and keyboard backlights on
screen unlock, and reenables the backlights on touch events so that
capacitive keys may be located.
merge with CM9
simplify and improve BOARD_USE_LEGACY_TOUCHSCREEN

in addition to converting ABS_MT_TOUCH_MAJOR to ABS_MT_PRESSURE, it also converts ABS_MT_WIDTH_MAJOR to ABS_MT_TOUCH_MAJOR.

also add 2 workarounds for some touchscreen driver which
 1. has BTN_TOUCH feature but it doesn't send BTN_TOUCH event
 2. sends multi-touch event for not-in-use pointer

reference: http://source.android.com/tech/input/touch-devices.html

Change-Id: I7b7f8802e45bf9d9f8de00373559a30ea839a178
missed EGL defines; thanks Defy+ guys!

Change-Id: Id9e7fd85f48bfb4211c025d02456feabb0bf58cd
added Legacy USB

Conflicts:

	core/res/res/values/config.xml

Change-Id: Ie9beddcad1ec9ff88336843425dd5e318c9155c2
audio: Add compatibility bits to use legacy libaudio implementations

Enable with BOARD_USES_AUDIO_LEGACY, requires the use of the generic
legacy audio shim
LegacyUSB: add overlay for UMS lun and use existence of lun to enable legacy USB

Conflicts:

	core/res/res/values/config.xml

Change-Id: I1a8d43e64663706081c8d94122a0c18dc011e45d
1% battery mod

Change-Id: Ia279bdd0c6c460ef0f22b72fcebfefc323a84e39
Add sanity check back in. This prevents battery from showing values over 100%
add camera stuff from Omap3ICS branch
More WIP camera. Still not recognized but should work now when it
finally does connect.

Conflicts:

	libs/ui/GraphicBufferAllocator.cpp
	media/libstagefright/OMXCodec.cpp
	services/camera/libcameraservice/CameraHardwareStub.cpp

Change-Id: Id4d31e14c1a3e7a67c8f2984be1cbf717c99a346
Part of necessary changes for 2nd generation Moto devices to have
working camera. Rest are in overlay.