missed EGL defines; thanks Defy+ guys!

Change-Id: Id9e7fd85f48bfb4211c025d02456feabb0bf58cd
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
merge with CM9

Conflicts:

	services/input/Android.mk

Change-Id: Ifb8669628118b17dc7b0dbba475f771345462d29
added Legacy USB

Conflicts:

	core/res/res/values/config.xml

Change-Id: Ie9beddcad1ec9ff88336843425dd5e318c9155c2

Conflicts:

	core/res/res/values/config.xml
	services/java/com/android/server/usb/LegacyUsbDeviceManager.java
	services/java/com/android/server/usb/UsbService.java

Conflicts:

	core/res/res/values/config.xml
	services/java/com/android/server/usb/LegacyUsbDeviceManager.java
	services/java/com/android/server/usb/UsbService.java
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.

Conflicts:

	services/java/com/android/server/PowerManagerService.java
audio: Add compatibility bits to use legacy libaudio implementations

Enable with BOARD_USES_AUDIO_LEGACY, requires the use of the generic
legacy audio shim

Conflicts:

	media/libmedia/Android.mk

Change-Id: Ifbd485c8c5c976d9fd8d2c73cd32fd5010deb961

Conflicts:

	media/libmedia/Android.mk
1% battery mod

Change-Id: Ia279bdd0c6c460ef0f22b72fcebfefc323a84e39
Add sanity check back in. This prevents battery from showing values over 100%

Conflicts:

	services/jni/com_android_server_BatteryService.cpp

Change-Id: I13109414e1dc0e5ce7ec419c9b6ad1e96b8d609e

Conflicts:

	services/jni/com_android_server_BatteryService.cpp
add camera stuff from Omap3ICS branch

Conflicts:

	include/binder/IMemory.h
	include/binder/MemoryHeapBase.h
	libs/binder/IMemory.cpp
	libs/binder/MemoryHeapBase.cpp

Change-Id: I9b211cb22eac8d7ceb19e398a8782e6a3c784a12

Conflicts:

	include/binder/MemoryHeapBase.h
	libs/binder/IMemory.cpp
	libs/binder/MemoryHeapBase.cpp
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

Conflicts:

	include/media/stagefright/OMXCodec.h
	libs/ui/Android.mk
	libs/ui/GraphicBufferAllocator.cpp
	media/libstagefright/OMXCodec.cpp

Conflicts:

	include/media/stagefright/OMXCodec.h
	libs/ui/GraphicBufferAllocator.cpp
	media/libstagefright/OMXCodec.cpp
	services/camera/libcameraservice/CameraHardwareStub.cpp
Part of necessary changes for 2nd generation Moto devices to have
working camera. Rest are in overlay.