Shaders with MISSING_EGL_EXTERNAL_IMAGE

Change-Id: Iafbfaa0c2230091ebc0ab925124f049ce13155e2
Revert "Revert "MemoryHeapBase: Save and binderize the offset""

This reverts commit 25c466a2637f47fd9583a487f192c6f588ec38fb.

Conflicts:

	libs/binder/IMemory.cpp
	libs/binder/MemoryHeapBase.cpp
MemoryHeapBase: ifdef for gingerbread compatibility

Allow to "revert" by a board config flag the offset member addon
see commit f24c4cd0f20 (aosp change id Ie618fb5c0718e)

This change is required to use overlay based proprietary camera libs
coming from gingerbread and froyo builds.

This change also requires a global cflag named BINDER_COMPAT
because a lot of modules use the MemoryHeap includes

Add this in your BoardConfig.mk :
COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT

Change-Id: Ib0370fbf4c4770f8141607a8fc393639ffbdc8e2
Add sanity check for battery capacity range.
add MotoWrigley3GRIL

to fix:
- outgoing call identification dependency on Caller ID setting
- supplementary service notification issue known from gingerbread

Change-Id: Ic17b52e4abf5bf44a585e58bd6cb6e4863041a87
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
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
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
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.