Tweak default ignore-assets path

Add .DS_Store to the list of ignored files that are silently
ignored (other dot-files are ignored but aapt emits a "(skipping <x>)"
message.)

Also, add a "!" prefix to the *~ pattern for Emacs/Vim/Gedit backup
files.

Finally, move the !*.scc pattern up in front of the .* pattern, such
that it doesn't match the earlier .* pattern (which is verbose, unlike
!*.scc).

Change-Id: Id3e96490f1802486aea8c58366d43e9d413971b8
Fix "Too many open files" error for aapt built with Mac OS X SDK 10.6.

With SDK 10.6 without _DARWIN_UNLIMITED_STREAMS aapt sometimes fails
right away with the error "Too many open files" when calling fopen().

Change-Id: Ifa7bd8a9530d706aa47f98be8186f1aefe943d76
Avoid dirty region drawing when EGL Surface object is not updated.

Add state to identify UNDEFINED state when the actual EGL Surface
has been resized but Hardware Renderer is not informed about it.
Avoid the dirty region drawing for 1 frame in this state to fix
corruption.

CRs-Fixed: 354256
(cherry picked from commit 652a6d8e87c7ea130750336885890a9ffd1affbc)

Change-Id: I3543176db36e596178de6d911a7f967b1cdd3b58
libstagefright: Enable live effects recording

- SurfaceMediaSource: Allocate graphic buffers from SMI heap on 8660
- SurfaceMediaSource: Allocate graphic buffers from MM heap on 8960
- Enable use of OMX_COLOR_FormatAndroidOpaque color format
- This format is to be used when the video source is unaware of the input color format

Change-Id: Id5c144ff4131b172f95c30f225ce313c4b199159
(cherry picked from commit a12c431cb55aaeca89ae0e46cca5d6bc7ff85a8c)
libstagefright: Allocate buffers from MM heap for Live effects

For live effects recording, allocate graphic buffers from
MM heap on 8660 if ION implementation is used

CRs-Fixed: 359476
(cherry picked from commit c3369da091bf80e65a922c4fa3c35c8cc828c13d)

Conflicts:

	media/libstagefright/Android.mk

Change-Id: Ia480ee1e6da1122145434c62744715c4258d730a
webkit: Avoid calling getDuration() before MediaPlayer is prepared

Avoid calling MediaPlayer::getDuration() before MediaPlayer is
prepared because it may result in mediaplayer going into the error
state. When MediaPlayer is not prepared, set duration to 0
instead.

CRs-fixed: 353093

Change-Id: Ic3d017c368ac5f3cde5f1a3d194016010533283d
libstagefright: Fix to play audio after power suspend-resume

- Audio is not played after power suspend resume while streaming
- In FlushingOutputState, input buffers were not re-submitted.
- Added fix to re-submit input buffers by adding getPortMode
  in FlushingOutputState.

CRs-Fixed: 344799
(cherry picked from commit c32430531fdd4c8f62628d59c0d5fcf7b47e5aba)

Change-Id: I662aba39fe7e2e359f242c86133f12d69f829d44
Aligning native Parcel implementation to Java.

The Java implementation of writing the RPC response header
calculates the length of the header including the 4 bytes
specifying the header length but the native implementation
excludes the 4 bytes specifying the length from the header
length.
The native implementation has been aligned to the Java impl.

Change-Id: I325bf272a63152d8fded4cf4e51a906b5a9bfe19
Added mpga as valid MediaFile extension

Added mpga as a valid media file extension, it is treated as mp3.

Change-Id: Ie39036d61b6ca50439861fa10be0d824dcc65ed3
Add JNI bindings for some of the libselinux interfaces.

Change-Id: Ifcc68cb06f9f56a04f3bc64dd9906a9436fabc88
Modify installd to set the SELinux security context on package directories.

installd already sets the UID/GID/mode for package directories.
Extend it to also call libselinux to set the SELinux security context.

Change-Id: I22d38e3e7facdfcee20a34bf30f1412dbb87761f
stagefright aacenc: Add parentheses in expression with mixed && and ||

This doesn't maintain the exact behaviour, but seems closer to
what the original author probably intended.

This avoids a warning.

Change-Id: I191292faa0a25f715f2b7d46ec770827e2ac0b7b
MountService: unlink death notification when unregistering listeners

Change-Id: I09045cfe67f7da84bc68a50fc5440ea2c6b754e5
Fix dumpPowerState method

dumpPowerState method shows the current power manger service state but,
BUTTON_BRIGHT_BIT is omitted.

Add a routine of checking BUTTON_BRIGHT_BIT
Signed-off-by: jaiyoung.park <jaiyoung.park@lge.com>

Change-Id: I00484fb384963bafdc58ce89b3251a1f5585d992
Performance: Activity manager perf unnecessary recalc of oom_adj

If an activity has bound servicesor content providers,
updateLruProcessInternalLocked will be called recursively with
the oomAdj flag set, resulting in several recalculations of oomAdj
with unchanged data. Doing it at the end of the top level call to
updateLruProcessInternalLocked should be sufficient.

Change-Id: I95e27011e1d3519f256a9bd756cbb18d43e8db29
frameworks/base: release references of UriPermissionOwner

Change-Id: I72e2310458de15f18e6f2c67f383bbb5c8f60ae2
[webkit] Runtime enablement of WebGL

Hook up debug setting to enable/disable WebGL.

Change-Id: I48b2ada4926db99c67b39364dd3c2ccd145b7402
[webkit] Runtime check if WebGL is compiled and supported

Need to make sure WebGL has been compiled in before showing runtime
enablement settings in Labs menu. Requesting information from the native
side through JNI.

Change-Id: I19e8bbe971de47e36c49cf473a8cfab8d347905a
Add an option to change the device hostname (1/2).

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: I44e4771f4415a32fe66867d4dd90f1ad138341e1
systemui: cleanup notification overlay drawables

Change-Id: If00fdf75bac451881786d4e7a77c09f527fd96d8