Squash of 21 CyanogenMod Commits

Change-Id: Ied225ae2b93de015d38fb3d6d6fa357c2e2925fa

commit 435fac67ba94af2cf8c8e068ab32c30ef33b8cfb
Author: XpLoDWilD <xplodwild@cyanogenmod.org>
Date:   Sun Jul 28 15:48:15 2013 +0200

    hwui: Don't discard framebuffer on exynos4

    The layers gets empty/not cleaned and redrawn on top of the preview,
    causing beautiful glitch on homescreen, and drawing black instead
    of transparency.

    Change-Id: I633b104224c73c625f1193ee3dde41823cddc5bf

commit fc36af12c6d62b011e46678e1d65c3fb188f4ce9
Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Sun Jul 28 01:01:54 2013 +0100

    Disable Google's home-key handling code

    This might be temporary. Upstream now includes multi-behavior key
    handling for HOME, which conflicts with our own code when running
    in parallel, resulting in funky behaviors. Since the CM implementation
    is more flexible, let's keep that for the time being and disable
    Google's; It might be a good idea to rewrite our version so that it's
    an extension of theirs, though.

    Change-Id: I5d55301772607315b410880c1194a0076e21cb80

commit c1350002606b06edfc84edf4e70af219878232e9
Author: Vicky Sehrawat <vickys@codeaurora.org>
Date:   Tue Jan 29 18:52:06 2013 -0800

    frameworks/base: Add changes for Incall Music Delivery

    - Add Flag and Stream type required for incall music delivery.
    - Add Tone types for ToneGenerator

    Change-Id: Ic05cd1af1172dda3c527af826c6e9a48d6ae20d5

commit f53ee05b1144b09e8a12acc73375121766095852
Author: Dante Russo <drusso@codeaurora.org>
Date:   Tue Feb 26 12:51:46 2013 -0800

    gps: LocationManager CTS proximity test fix

    CTS proximity tests needs to use GeoFenceManager
    for GeoFences to be able to see mock locations
    CRs-Fixed: 452172

    Change-Id: Ie7fca5e8078340e8fbbce6f9bb6a4cc62b72866d

commit 47706b09d87159297e76696dc22d843932201e95
Author: Dante Russo <drusso@codeaurora.org>
Date:   Tue Jan 22 15:57:23 2013 -0800

    geofence: Low power geofence HW implementation

    HW implemntation overwrites the SW implementation

    Change-Id: I8762b0b2e3c5001622f9c8aa2a845ee64104faa3

commit 721c2387f08f46b797354491518996a926054b86
Author: Vimal Puthanveed <vimalp@codeaurora.org>
Date:   Fri Apr 12 14:07:50 2013 -0700

    frameworks/base: Fix to remove exception in tonegenerator

    - Framework reboot happens, if tonegenerator fails to create
      a track in audioflinger.
    - The cause for framework reboot is, an exception thrown by
      tonegenerator if fails to init.
    - Fix is to remove the exception and delete the tonegenerator
      instance.
    CRs-fixed:466491

    Change-Id: Ie7b87f787d8a885cc70be9af4ba9d04ecd691cc2

commit cc6796a52c4b302c589cfdf1a67cb89d41addc63
Author: xiaogang <xiaogang@codeaurora.org>
Date:   Wed Jun 26 16:42:15 2013 +0800

    framework: packageinstaller :fix logical error in size calculation

    fix logical error in available size calculation.

    Change-Id: Ic6ce312cf1c146030a20187fcb27b24fbe4c321a

commit f8b9636be3463c7d87316f630b2f2adc014f3207
Author: Bhargav Upperla <bhargavuln@codeaurora.org>
Date:   Thu May 23 12:04:47 2013 -0700

    Reduce total number of background apps for low memory devices

    Due to memory constraints, we anyway cannot fit the default number
    of BG apps. So instead of killing background apps to
    free up memory when launching, start with an already
    reduced background set of apps.
    Another side-effect is that launch latencies also improve.

    Change-Id: I3ae54aa7d53ff1b81252212973646a95d2d82e8a
    Note: This is for low memory devices. (~512MB RAM or less)

commit 61ff8007f021f58e9044b0c2cbf90680f2b69c13
Author: Vicky Sehrawat <vickys@codeaurora.org>
Date:   Mon Oct 29 14:55:23 2012 -0700

    libaudioeffect_jni: GREF leak fix for JB

    - Excessive JNI global reference in AudioEffects.
    - Global references created during native setup
      are not deleted.
    - Global references are deleted in setup failure
      and during native release.

    (cherry picked from commit a04a2bf4563dc20c52f4d4239e01f80b220077a5)
    CRs-fixed: 413633

    Change-Id: Ia4340a2128850101b394e00c8e1db9db49f516fd

commit 9acfb595ac60bd5548cc5619fd5657e6fb215da2
Author: Amit Shekhar <ashekhar@codeaurora.org>
Date:   Wed Mar 20 14:47:38 2013 -0700

    aapt: Support for mxmf file playback

    mxmf files couldn't be played.
    Added .mxmf file ext to kNoCompressExt array
    CRs-Fixed: 465437

    Change-Id: I4473380c0aa13f7c18b59aa48f07a87f7849a74c

commit 1d95e554c99197c877751e72b111eedd5666a031
Author: Lalit Kansara <lkansara@codeaurora.org>
Date:   Wed May 8 13:29:12 2013 +0530

    To fix fatal exception in system process due to NullPointerException.

    Null pointer check added to avoid NullPointerException, that was
    leading fatal exception in system process hence framework rebooting.

    Change-Id: Ia83a6178bd575954345020ef3a792a3445323808
    CRs-fixed: 483763

commit 83804b238f8a982e4a636e10075cf273e72cd905
Author: Susheel Yadagiri <syadagir@codeaurora.org>
Date:   Thu Mar 14 18:03:12 2013 -0700

    Pick default interface for upstream.

    With multiple upstream interfaces active and connected,
    we should choose the default interface for upstream.
    CRs-fixed: 461266

    Change-Id: Ia3bc32300a1f77f46237994d0e38e9c9886f4bea

commit d7fcaae3d21a79bd804fad1f8f9f221d437c2119
Author: Deepthi Gowri <deepthi@codeaurora.org>
Date:   Tue Jun 18 12:09:29 2013 +0530

    framework/base: Handle ASSOC-REJECT events

    Disable current network and enable other saved networks(if any)
    once number of ASSOC-REJECTs on an attempt to connect to a corresponding
    network exceeds the threshold.
    CRs-fixed: 484247

    Change-Id: I59ca5b7bcb2cf8d205556feaac5871260a3fd8ec

commit baf54d12ee2482d04d3cbac0fbb9e486fd606371
Author: Deepthi Gowri <deepthi@codeaurora.org>
Date:   Tue Jun 18 11:51:33 2013 +0530

    Wifi: Fix for connection failure between third client and GC.

    When third device sends a connection request to the group client, the
    existing connection is terminating and also the ongoing connection not
    successful.Currently as there is  no use case where third device is
    connecting to GC,and the existing onnection getting terminated.This
    is addressed by ignoring the new connection request from third client
    to GC and the existing connection is intact.
    CRs-Fixed: 467049

    Change-Id: I784c38b9a4ca0c60b188b9697e3b4af4d09053cc

commit 9db27ccc8cffcb3fbcc3e706575795ebf468f5b2
Author: Karthikeyan Periasamy <kperia@codeaurora.org>
Date:   Fri Jan 13 18:22:40 2012 -0800

    frameworks/base: creating sperate files for ANRs traces

    If an ANR comes just after the framework reboot, the traces for the
    framework reboot will get over-written with the ANR traces. So, We
    are missing the traces for the framework reboot which makes debugging
    the framework reboot difficult.

    Even for multiple ANRs in different apps, we will get the traces for
    the last ANR.

    Most of the time traces show that the call is stuck in some native call
    and we do not have any info about the native call stack becuase we do
    not collect the tombstones for teh ANR.

    This patch will create one trace file for each application in case of ANR
    and the filename would be traces_<app_name>.txt and the traces for
    framework reboot will be stored in traces.txt

    Change-Id: Iec2daee0350b20571d0bda9330a17a68df194f8b

commit 0e84950074b1725b5e5efb1f511c2ba124119665
Author: Karthikeyan Periasamy <kperia@codeaurora.org>
Date:   Fri Mar 2 17:54:43 2012 -0800

    frameworks/base: move the traces file to avoid data loss

    If an ANR comes just after the framework reboot, the traces for
    the framework reboot will get over-written with the ANR traces.
    So, We are missing the traces for the framework reboot which
    makes debugging the framework reboot difficult.

    This patch will rename this trace file for the framework reboot
    once the ActivityManager collects the traces.

    Change-Id: Iee07b13ba02d8aab9cc43567aa5df131cc43c737

    Conflicts:
        services/java/com/android/server/Watchdog.java

commit a2b15b4a5126bc620038e6540dae6fed6bf7ae2e
Author: Vairavan Srinivasan <vairav@codeaurora.org>
Date:   Tue Jan 11 18:34:17 2011 -0800

    frameworks/base: Watchdog to generate trace of Monkey

    We need stacktrace of Monkey process to debug issues wherein
    system_server gets stuck doing a binder call with monkey

    Change-Id: Ie0be15662c68219fe5e95592c672b86ab0987e37
    (cherry picked from commit c509d1147e321118f1c908502b0b9eb5ee2a5926)

    Conflicts:
        services/java/com/android/server/Watchdog.java

commit 3cd94ded1b05b70ab7923833ddce1a4ffccda910
Author: Apurva Rajguru <arajguru@codeaurora.org>
Date:   Fri Dec 14 16:45:03 2012 -0800

    Camera: Add support for QC camera features.

    Added APIs and keys for all QC features. This
    will enable application to get/set paramters.

    Change-Id: I58a53c7b9133a3acddc34b268dac086c9562d533

commit a61e6e2bb2c9576813f2880fd690613ff8667d4f
Author: Steve Kondik <shade@chemlab.org>
Date:   Sat Jul 27 00:30:13 2013 -0700

    Revert "[webkit] Runtime enablement of WebGL"

     * No longer needed, WebGL is on by default if compiled in.

    This reverts commit bcc8f733796f3fcd1c2180336960d747a6995f0c.

commit 9bea9fb6cb1a486d3b5a0da62eeb2499a7c2d9ea
Author: Danesh M <daneshm90@gmail.com>
Date:   Fri Jul 26 15:30:03 2013 -0700

    AudioService : Fix NPE

    Initialize mVolumePanel prior to registering the receiver,
    since 4.3 now invokes the layoutDirection call on it.

    Change-Id: I8d00f0886b603d52bc55cba5fd3ba1d86f7ea56c

commit 2ca7ea345d59d553073ae3409f2fde77b98d2f5b
Author: Srinu Jella <sjella@codeaurora.org>
Date:   Mon Jul 8 15:12:29 2013 +0530

    Bluetooth: SAP: Add framework changes to support SAP

    This change consists of:
    SAP Disconnect from server support related changes

Change-Id: I7215f503244c5ee277e83d60d6960f18559acfb9