frameworks/base: Increase Zygote preload GC threshold to half the heapgrowthlimit.

Increase Zygote preload GC threshold to half the heapgrowthlimit,
to reduce boot up time.

Change-Id: I6ea0f115e5f96836adec5ba9b796f54e6e898643
Revert "Disable fake touch log"

This reverts commit 10d4efc9bd62ce671bf7ab7dd8b68de8d45b1e79.
Revert "B key fix cleanup"

This reverts commit b3435a1b1d9ab039610422fbd69feea66f957894.
Revert "Fix B key issue"

This reverts commit 8a5233f216fe1285a04e86d93062c0a600414b0f.
Legacy touchscreen: Fix B key issue

Patchset 2: Clean code

Change-Id: Ib1fc59833d066dee9c4c5f02a9bf1a912463cb1e
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

Conflicts:

	services/input/InputReader.cpp
Keep track of tetherable USB interfaces in both up and down link states.

USB network interfaces that are present-since-boot are never issued "added"
(or "removed", for that matter) notifications from netd, and thus, are only
discovered by Tethering when their link state changes.  Prior to this
commit, such interfaces were only tracked on change to "up" link state,
even though the interfaces were _not_ removed on changes to "down" state.

On some devices (e.g., epicmtd) a change to "up" state only occurs after
(i) IFF_UP is set on the interface, (ii) the rndis USB gadget function is
enabled, and (iii) a USB cable is connected to another machine.  Since
rndis is enabled immediately before the start of USB tethering, the "up"
state is achieved asynchronously, and often _after_ Tethering looks for a
tetherable interface.  However, "down" state is synchronously reported when
IFF_UP is set, and thus, serves as an effective mechanism to notify
Tethering about the existence of the interface.
Add hack to always return EGL_TRUE for eglSwapBuffers.

This "fixes" several apps crashing on eglSwapBuffers.
Only used when MISSING_EGL_EXTERNAL_IMAGE is defined.

Change-Id: I4e0412146655a88bbd854602189c1774416bbe43
Signed-off-by: Evan McClain <aeroevan@gmail.com>
test: build hwui, even if boardconfig is not set

The lib can be built, even if it's not linked in frameworks for the moment

Change-Id: Ic37299bfd9c31b18e8cdbe45b831f03eb2847eb3
ignore errors when removing routes, our interface is already deleted

Change-Id: I0b01caf179f267f16bff45f6e75999f01bb01539

Conflicts:

	services/java/com/android/server/NetworkManagementService.java
SystemUI: Fix data activity overlay not being removed when data is disabled

If mobile data connection is disabled while there is active data
activity, the data activity overlay will not be removed and will
be stuck there. This patch fixes that.

(Previously merged 5c39b1ce3897d166d9c4578106e10a17037b0213 but it was
accidentally removed in 874c5d8cf02054037d137fc38b32b3924e312e8b due to
merge error.)

Change-Id: I0eda652a7533fed8db58d7dca2ba60b0b28a4b81
Add option for switching between UMS and MTP/PTP mode. (1/2)

This adds support for switching between UMS and MTP/PTP.
Framework part (this part) will only enable UMS if the config setting is set.
Standard is to enable UMS if the primary volume supports UMS.

p2: Fix compile error
p3: Some code styling
p4: Fix mysterious bug where USB notification is not fired when switching from UMS.
p5: Revert last commit.

Change-Id: I753b7dd3823958da1b043ca44b50118d67637cc1
Disable UMS splash when phone in locked state

Currently devices which use UMS will display the UMS toggle screen
over the lockscreen. This would allow unauthorised users to access
the contents of the SD card, when plugged into USB, without first
unlocking the device.

Disable the UMS splash if the phone is in a locked state.

Change-Id: Ic18462758344c327e70e6a70d674f08d8ad51cb0
audioflinger: Optimze ditherAndClamp with ARM NEON

Change-Id: Ifc436e39f15b103cec404e8a81fa8b8a6b5f0e5f
Fix contact lookup with CLIR prefix

Allow phone numbers which are saved in the phonebook including a
CLIR prefix to be correctly resolved on an incoming call.

For a proper fix, all special cases detailed in calledPartyBCDToString()
should be taken into account; unfortunately that function cannot be
directly used as it currently is.

Change-Id: Ie070e1efc0921bfb0ae0802f500afced5071a652
AudioManager: Handle KEYCODE_VOLUME_MUTE

Implements muting in KeyguardViewBase and PhoneWindowManager too.

Change-Id: I732ac5c918ed66ebd9376ccad7bcc0cf88cad778
f/b: qcom flags cleanup

Change-Id: Id4da5e2038cf5c9ba540a812281daa4a1b9af03a

Conflicts:

	cmds/stagefright/Android.mk
	core/jni/Android.mk
	libs/gui/Android.mk
	libs/hwui/Android.mk
	media/libmedia/Android.mk
	media/libmediaplayerservice/Android.mk
	media/libstagefright/Android.mk
	media/libstagefright/colorconversion/Android.mk
	services/surfaceflinger/Android.mk
Add support for using a custom USB management service.
Add support for USB tethering interfaces that are always present.

Previously, the state machine assumed that the USB tethering interfaces
appear/disappear when reconfiguring USB or changing the USB status. Add
some fallback handling for devices where this isn't the case.
Some fixes for custom USB service handling.