Fix translatability of External media format message

Change-Id: I10c76ff40012f982fd7b75ac383ad29a6e698179
SystemUI: fix up navigation cursor keyevent flags

Volume cursor controls use slightly different flags to keep the cursor
within the field. Match them in the SystemUI for consistent (and better)
behavior.

Change-Id: I56d597f111ec611b0ca24a10f30575401fa76d18
Signed-off-by: Roman Birg <roman@cyngn.com>
MountService: Check for null pointer when looking for vold code

* There is actually no code path that will set an event into
  NativeDaemonConnectorException, so any reference to the event code
  will result in a null pointer exception, taking down MountService and
  the rest of the system with it.

Change-Id: Id62f724953aacc363b3455584c6a3ad1381c6138
SystemUI: fix up initial cursor down flags on nav bar

We were using the regular flags for the initial ACTION_DOWN event so the
FLAG_KEEP_TOUCH_MODE was not being passed and allowed the cursor to jump
out of bounds slightly.

Change-Id: I5b4d2a5e5e0ce562985fcc3b7b6fac8b4abc49da
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: fix nav bar layout while toggling cursor keys with an IME up

Previously there was no option to have the IME up on that settings
screen so this was not a concern before; however, with the addition of
searchable settings, it seems users are now trying to toggle it with the
IME active, putting the nav bar in a strange state becuase it did not
restore the previous states properly.

Change-Id: Ib03ff3d9ee9679819eaa42644796e8f9eae6e694
Signed-off-by: Roman Birg <roman@cyngn.com>
Fix setting change observing.

The observer doesn't deal with keyguard related options only.

Change-Id: Ib185662f4f8ca7508be3dce10091b5132aa823e1
rambar: prevent race condition with the service connection to device control

Change-Id: I984522f9289f020d56e4d8e0bc9a34c8dbe9f253
Revert "listview: ensure active views are filled prior than scrap views"

This reverts commit 830a0024f1de9655d50c703ed1d10a81005db40e.

See http://review.cyanogenmod.org/#/c/67348/

Change-Id: I066e6ee8d9dc478c752ecfa161fd638bce7cee40
Fix LocalePicker locale filtering.

This was broken by commit b27c137087ee92674 which
removed a badly phrased check. Prior to that commit,
there was a check that excluded locales whose toString()
length was not 5.

This change reinstates that check in a less roundabout
way, by excluding BCP-47 tags that don't have a country
subtag.

bug: 16038949

Change-Id: Ic24b1df87b2e2ce47d9ae04c7759088721f27b4f
fix AudioTrack and AudioRecord JNI

AudioTrack and AudioRecord JNI should not cast
jshortArray to jbyteArray. This appeared to work with Dalvik
but causes data corruption with ART.

(cherry picked from commit 9d02848e902d04417df616354db3a18c03e639b7)

Change-Id: Ie36624d3ea06042373c64edced4b5e30b7b1ee86
Fix initial black lockscreen

if see through is enabled and no custom lockscreen wallpaper is set, the
lockscreen wallpapaer is black when unlocking the phone for the first time.
this looks ugly and irritates users.

do not pass false to updateShowWallpaper, rather check if we should show
the wallpaper with mKeyguardHost.shouldShowWallpaper() to prevent this issue

Change-Id: I07e40017cfeeb7fef83117cdebeb74707c232968
Fix possible NPE in SyncHandler.onBootCompleted()

If onBootCompleted() was called a second time, it would have throw a
NullPointerException since the queue object would have already been
set to null by the previous call. This commit just makes such an
object behave as an empty queue instead of throwing the exception.

Change-Id: I4472ff89a2a8dc93c3064210d2a49e0063f6efc0
PackageManagerService: fix StrictMode violation in getFileCrC

E/StrictMode(  915): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E/StrictMode(  915): java.lang.Throwable: Explicit termination method 'close' not called

Change-Id: I8d68c05f32c0c299e9102ffccfcb4776e21a5b4b
ActivityManager: reduce reuse recycle

These inner classes are registered as services for each system process to dump information
during certain events like ANRs.  We can combine to reduce memory footprint by eliminating
the redundant inner classes and registered services.

Change-Id: I7c85323fb42ea67503841cc0717ef915ae9c851f
Listview: check if we need to animate it, else skip processing

Change-Id: Ie3db4f945263746e748b404c45880a82d93ad2e2
frameworks/base: add SmartCover support

config part:

https://gerrit.nameless-rom.org/#/c/7597/

Change-Id: I1e196eeffd0b83d7445c2394648649939b67c6f4
Use Weather Provider from NamelessProvider

Change-Id: I82317c3fe425053216917e95653b435502003397
(1/2) Frameworks: allow to enable / disable smart covers

Change-Id: I83d96696fefedc19fc3bce7265a4fcf2d4c894bc
frameworks/base: Update quick launch shortcut icons/resources

Update the existing icons and add "xxhdpi" versions created
from a vector template. This commit cleans also the resource
files a bit up.

Screenshot: http://goo.gl/6CrMYr

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingHelpers.java

Change-Id: I45abee5cf13cd239eb5b4402019afac28d6d5952
Smart Cover: make the weather awesome

1) change the imageview to a textview
2) load our custom typeface and apply it to the textview
3) query our provider for the condition, which is a XML code
4) apply the xml code to the textview, which transforms into a beautiful
   reflection of the current weather condition
5) call it magic

Change-Id: I9079606cbfae3f26ab9722427ea855be0e605fcc