system/core: To enable FM add FM stream, device and driver

Change-Id: I5ac8f446c1a785d435bef78bb57a28c95e377810
system/core: Add command NATIVE_WINDOW_SET_BUFFERS_SIZE

Add native window command to set user defined buffer size.

Change-Id: Ib500e65283706d860d62cb487720008d7331ce2d
audio: Squashed set of commits for QCOM audio features

system/core: Add audio enums for QCELP/EVRC feature support

- Added required enums for QCELP/EVRC features.

Change-Id: Ib6b2297ebc9cac785fec99c3c2c80b1ad9b774f6

system/core: Added changes required for tunnel mode recording

- EVRC and QCELP format values are interchanged, due to
  this EVRC/QCELP are not recording with proper header.
- Added preproc_ctl, evrc/qcelp for tunnel mode recording.

Change-Id: I93db3170895387bec43a62214aa5d65aaab40c87

system/core: Add output flag for LPA and Tunnel

Change-Id: I621818502c273b2c8aba37f64a83539450a1aafa

audio: VOIP bringup and support for vocoders.

Setup permissions for MVS driver.

Add vocoder types.

Change-Id: Ie150be9b01137628ba3e3ea788d429096ba1f413

system/core: Add enums for voice call recording.

Add enums for voice call recording

Change-Id: Idd5cd19573c48a0a782bcd56cca38b4901391bbf

system/core: Add support for surround sound recording

- Add 5.1 input channel definitions and masks

Change-Id: I24375c0d9443cd6e8dd58114464bf9f528b97d43
init: Reintroduce support for the older charger modes

For devices with pre-ICS bootloaders, bring in the support for
arbitrary cmdline charger flags from CM7

Change-Id: Ibf887f6aeca0b68aa38fe035aa586aed502f1662
Fix PowerHAL cpufreq permissions

The process containing PowerHAL didn't have group permissions to open
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor|max_freq|min_freq.

Modified permissions to match AOSP using the system user as the owner.

Change-Id: Idbdad8b00b8ad7d7d2a845287cccbabb58fc5aba
diag: Remove world read/write permissions from /dev/diag

/dev/diag has world read/write permissions which is considered
a security risk.  Remove these permissions.  Add new qcom_diag
group for access to /dev/diag

CRs-Fixed: 356415
(cherry picked from commit 14c85ec56fd47c5eb143617a3bd5a6e7ee39cb6e)

Change-Id: I536323a97e19a07bbd8eadffa0265d1955590285
Add support for wifi display

-Define AUDIO_DEVICE_OUT_PROXY and AUDIO_DEVICE_IN_PROXY

Change-Id: Ia1835f7e968c18395f70f0763f08dd8856ce8ad3
audio: Add a flag for VOIP RX

Change-Id: Iecb8c3a7b247c0a839b4b145574e2c4f35dbce64
window: Add API to set the min undequeued buffer count

 * Raising this value globally has some effects on other parts of the
   system. We need to control it dynamically.

Change-Id: Ie11c7a7e53006aad710aebce64c02d3a3f64ade1
Assign SYSTEM group permission to tc and iptables

Tools tc and iptables are used by NetMgr daemon to manage
kernel traffic control elements.  This daemon runs as
"radio/system". Change the group permissions of these tools
so that netmgr can use it.

Change-Id: Id73a37dc76766b5c067e4461fca5d34d433ace8a

Conflicts:

	include/private/android_filesystem_config.h
libpixelflinger: Build NEON optimized routine per target configuration

The variable TARGET_ARCH_VERSION variable has been renamed to
TARGET_ARCH_VARIANT, and armv7-a-neon is the exact target enables
ARM NEON instructions.

Change-Id: I999e3b0b8f3a03ff31346f83eb66ac52edc8d551
See: https://android-review.googlesource.com/#/c/22208/
libpixelflinger: Add ARM NEON optimized scanline_t32cb16

It can dramatically improve the performance of boot animation.

Change-Id: Idc611c15ec9270eb638412d72021880d813e3d9c
See: https://android-review.googlesource.com/#/c/16358/
Define TCP buffer sizes for HSPAP, HSDPA, HSUPA and EVDO

Change-Id: I2cff0f275db63e5036bf64e25794445f5c08f7ed
See: https://android-review.googlesource.com/#/c/39871/
include/system: JB upgrade for the MPQ8064

Include the flags for the MPQ8064.

Change-Id: Ic1bd11d341456a8b217d63cddbb19a9a92ee86c5
Revert "window: Add API to set the min undequeued buffer count"

This reverts commit 8c17e15ec46a3b346e8dcfd1d192e43e65684647.
init: Add "export_rc" command to export env from a specified file

New export_rc command to import environment variables from
a specified file at the time the command is executed.

Differences between "import" and "export_rc":
1) export_rc can only import environment vars
2) export_rc is performed when the command
   is executed rather than at the time the
   command is parsed (i.e. "import")

Example:
in /init.rc:
    on post-fs
        export_rc /system/etc/init.xyz.rc

in /system/etc/init.xyz.rc:
    export LD_PRELOAD /system/lib/libxyz.so

Change-Id: If616dea5b508c27e9f7a95b5e9db696ecea2fdee
init: Add support for properties expansion in exec command

Add Android properties expansion to 'exec' arguments.
E.g.  exec /system/bin/log ${sys.usb.config}

CRs-Fixed: 390942
Change-Id: Ie520396d951e578bd9f591734a45d2f460b8f51d
rootdir: Update cpufreq permissions when governor changes

 * Requires a kernel change to send the uevent.
 * This should alleviate some frustration that the performance/kernel
   folks have expressed regarding the Power HAL.

Change-Id: I31e6e13534159214a3b600082b7c0e4249433364
Merge branch 'jb' of https://github.com/AOKP/android_system_core.git into jellybean