ENGR00231966 Add usb mic support in jb

1.add new input type IN_USB_DEVICE
2.observor the usb plug/unplug event, and send message.

Change-Id: Ibbc05ba82aa2f9eb8d0e10d8079813b39e037af7
Signed-off-by: b02247 <b02247@freescale.com>
ENGR00233809: Ethernet:fix two NFS issues as filesystem

Introduce property "ro.nfs.mode" default no to control two cases which will
broken NFS boot as filesystem.
1.For android4.2,drop_privilege in installd will let it have no permission
to install packages because of security policy's limitation in NFSV3.
2.Another case is suspend/resume in NFS mount.it will report "nfs: server
10.192.*.* not responding, still trying",This is caused by clearing ethernet
interface addresses. so the netd will not pass ethernet's link up message to
framework. In this case, no need to clear it for we keep on connecting to the
same network and no need to do dhcp again.

Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
ENGR00232888 Connectivity:Fix network preference issue

Refactor getPersistedNetworkPreference and optimize for
updating mNetworkPreference according to user's networkAttributes
setting from overlay config.xml when connectivityservice start.
This will fix wifi/3G/Ethernet coexist and switch wrongly issue.
Merged by google internally--https://android-review.googlesource.com/#/c/46494/
Android4.2 still need this patch.Later version will include this.

Change-Id: I67624a8cf6ecd9e2d0cd14e2f60854512e417e3f
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
ENGR00133115 Integrate OMX GM to JB4.2.

Integrate OMX GM to JB4.2.
extend setPlaySpeed() for control playback speed.
extend FLV format support.

Signed-off-by: Song Bing b06498@freescale.com
ENGR00170961 Add ASF, AVI, and WMV format into mtp device info

add freescale extension media file format support. Currently
mkv, flv media format is not define in MTP spec which cannot be
supported in MTP.

Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
ENGR00238394 Ethernet:delete link up update in StartMonitoring

Indicate link up state should only be decided by interface config after
startmonitoring.If no ethernet cable plug in, in startmonitoring,it will
set link up to true. When we plug in ethernet first time, it will fail to
process the link state change for it not satisfy "mLinkUp != up" condition.
So link up state should only based on the interface config which come from
the link state change observer.

Change-Id: Iadcdc247751f9bee9b1281b1678b8520830d321d
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
ENGR00241719 add a property to force tablet layout no matter DPI

add a property to force tablet layout no matter DPI, HDMI dongle
need tablet layout although DPI and density not match Google design

Signed-off-by: Richard Liu <r66033@freescale.com>
ENGR00133115 Extend MOV format.

Extend MOV format.

Signed-off-by: Song Bing b06498@freescale.com
ENGR00242260 Fixed the memory leak on html5 video and texture

Html5 video surface texture will be freed when oom triggers the signal
to clean up old GL surface resources, this method is not efficient for
i.mx devices since gpu memory is reserved with limited size on i.mx6/i.mx53,
because gpu memory always will be exhausted before system get out of memory.

This fix is to release surface texture immediately during loop playback,
and no side effect.

Signed-off-by: Xianzhong <b07117@freescale.com>
ENGR00243299 Fixed SystemUI crash when disable GPU acceleration

The designated logic should switch to SW Canvas render if OpenGL-ES 2.0
is not available when GPU 3D core is disabled or in-existed.

The fix is for debug purpose on i.mx6d/q devices when disable GPU 3D.
Also enable JB4.2 on i.mx6sl device without GPU 3D core.

Signed-off-by: Xianzhong <b07117@freescale.com>
ENGR00242463 SingleHDMI: no reaction when changing picture size for Camera

In touch click case, there are several actionas ACTION_DOWN/MOVE/UP.
AbsListView will unset mDataChanged in response ACTION_MOVE.
AbsListView count on mDataChanged to call the ListItem touch listener.
In mouse click case, only ACTION_DOWN/ACTION_UP have been raised.
Make sure sync data on ACTION_DOWN to have mDataChanged to be cleared

Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
ENGR00242652 user can't tune volume on hdmidongle

specify hdmidongle when tune volume

Signed-off-by: b02247 <b02247@freescale.com>
ENGR00223120 Ethernet:fix an priority issue in concurrent

As default, ethernet is not added in framework and connectivityservice
also not consider it, when adding it in config.xml,there will be a "mobile,
wifi, ethernet" concurrent case falling into forever loopback.
For only two types of network,the logic has no issue in tryFailover(),but
if three types it will has this issue, so priority is needed to optimise the
reconnect process.

Signed-off-by: Jianzheng Zhou <B38613@freescale.com>
(cherry picked from commit 727248402fcfc73f151fd8ecd1e9378e145dc3a4)

Conflicts:
	services/java/com/android/server/ConnectivityService.java
ENGR00256175 Android reboot if setup multi-user with space running out

Create new user if there is enough space(32M) in data partition.

Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
ENGR00256175 Android reboot if setup multi-user with space running out

Convert the BlockSize and AvailableBlocks to be long(64bit) for those case total
available space is more than 2G.

Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
ENGR00261516 Enable emmulator battery for boards without a battery

Add emulated battery support for boards which have no battery in HW design

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
ENGR00256988 connectivity:fix wifi and ethernet coexist bug

enable wifi and connect to a AP while ethernet cable plugged in. wifi
will be teared down.But driver is not stopped.After unplug ethernet cable.
It will failed to auto reconnect wifi.fix it here.

Change-Id: I1b0156cf89f26747ce67ebad2b4138e8d61f30df
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
ENGR00262367 MTP:Other users can't acccess the MTP content from PC except owner

Adjust the order of storage volumes in "filtered" list,
keep the primary strorage volume in the head positon.

Signed-off-by: Huang Chenyi <b44402@freescale.com>
ENGR00266298 Battery: correct battery info showing in settings

fix bug in battery info update in native battery service for which has
real battery support.

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
ENGR00266008 3G Icon still show after connect Net cable

Set DataTypeIconId and QSDataTypeIconId to zero
when 3G is not connected.

Signed-off-by: Huang Chenyi <b44402@freescale.com>