Keyguard: Can't enter PIN code when setting the SIM and PIN lock issue

By original design, after unlock SIM PIN, SIM card's state is READY and it
will invoke resetStateLocked() to inflate KeyguardHostView. So there is
only one view be created in mSecurityViewContainer.

Roll back previous solution.
Don't set mSimState before handleSimStateChange() and don't judge
isSecure() to be consistent with the original design.

CRs-Fixed: 661955

Change-Id: Ide872c50e6823bed92720c0c40aa7987207980ed
frameworks: add persistent notification when USB OTG is connected

Tapping the notification will take the user into Storage settings, and
highlight the 'Unmount' option.

Change-Id: I650f3874a8295b2b8ffdaef78aff4b68e9cd574e
Signed-off-by: Roman Birg <roman@cyngn.com>
Themes: Fix native crash in libandroidfw

If a missing attribute needs to be added in somewhere in the middle
of the bag, a segfault would occur because we change curEntry to a
value that is beyond the set's allocated space.  This patch stores
curEntry in prevEntry before changing it's value and memmove uses
prevEntry to index the set.

Change-Id: Ie70f2ad465097c3acf76caa729999c424fb01ee2
QuickSettings: Use a Bug Report tile icon of proper size

Reuse of the ADB drawables causes alignment issues here.

Change-Id: I837fa83662bbbd1f4c2e073b72f64a4edae128ff
Gesture panel [2/2]

This adds a gesture panel to launch custom actions. The panel can be
opened from the navbar or quicksettings panel. Hardware key binding
support will be added next

Squashed commit of the following:

commit 4eaea27979e49709ff09c216389a71fd0ef1a711
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Thu Aug 28 22:31:56 2014 -0400

    clean up styling.. fix button to go to settings

    Change-Id: Icf8e16d9439b5698bd4b48c4ced5977ef184e84f

commit 2bdf61dc577e689fc60ca2b061acd0b20681ef2f
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Wed Aug 27 16:37:49 2014 -0400

    fix merge fail

    Change-Id: Ia5ab13b0a0574f625db06fd2b9c427b6301563d6

commit d196724a462fe39b0b80760c82c22e93552027ae
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Tue Aug 26 18:29:01 2014 -0400

    QS: add Gesture panel tile

    PS2: drawables

    Change-Id: I5efd488a131bd7944bff61e8477f68d0eb7d5850

commit 90450e090e093d9db36dc528431e838fd96fca70
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Sun Aug 24 02:25:45 2014 -0400

    Navbar: gesture actions key

    opens a gesture receiver panel to launch user set actions

    to do: add a QS tile, possibly move to vanir actions, add hardware key support.

    Change-Id: I3e9d9fcbf12549c198e9e2bfbc98d34fb0c0da6a

    Conflicts:
    	core/java/com/android/internal/util/aokp/AwesomeAction.java

Change-Id: If60087b62fec844efabb6bae062a686289997021
Merge "Gesture panel [2/2]" into kk44
navbar: fix double tap launching single action

Change-Id: Ifeb8c5afbc46a2fffff7595246bf642a8e31a0cd
GesturePanel: add click sound when a gesture is recognized

Change-Id: I34d7b78382708fd8812a2651efdb3d20b88316ae
Merge "GesturePanel: add click sound when a gesture is recognized" into kk44
Merge remote-tracking branch 'upstream/kk44' into kk44