aapt: localizations: be more aggressive

* errors instead of warnings for:
  * A localized string for which no default-locale version exist.
  * A localized translation of an translateable="false" string.

Change-Id: Ib700fe323019f285f5a1931fe96500b2de03106b
Audio continue to played even if paused manually

Currently, audio will resume playing after a phone call
or notification even if the user had manually paused playback.

This patch addresses that by introducing a new player state
to distinguish the user pausing playback and the browser
losing audio focus for some other reason. Audio will only
 resume if the browser temporarily lost audio focus and
not when the user has manually paused playback.

Change-Id: I9e8beaedb0fcc5afe920068297ed9c387eab2ac8
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
Fix NPE when pasting non-text from Clipboard

When copying a link from a bookmark and then pasting it into
a textfield a NullPointerException will occur.
A ClipData.Item is not guaranteed to always contain a text string
and therefore getText() can be set to null.

Using method coerceToText() instead of getText() makes sure that
a text string is always returned.

Change-Id: I81343c0371835a3a7a52045dcd1760e69e59a967
Can not mark the same content of browser page after copy

Marking a text on the web page and then press copy works,
but trying to mark the same text again does not work.
The reason for this is that the selection never gets
cleared in webkit.
The fix, calling cleaSelection in the onDestroyActionMode.
Also added clearSelection when getting an
onConfigurationChange.

Change-Id: I59b384cb5441b6a3a05007ea7e77f9699889a87c
SystemUI: Fix aapt warnings

Change-Id: I4787997c0e586305f3030b3b3bda8d6145870f3b
Merge "aapt: localizations: be more aggressive" into cm-10.1
FIX Null Pointer Exception on dialog cancel

Null Pointer Exception occurs because mWebViewCore instance
is made to null while calling destroyJava(). When
1.webview hosting activity goest to background, without calling webview onPause().
2. If app is launched again (having launchmode:singletask ) and another activity (not  webview hosting) comes on top top.
3. It destorys the previous activity holding webview which internally tries to cancel the dialog, but webviewcore instance is null.
Null pointer exception is raised.

Change-Id: Idbcd30d0b0d4a35819444bbaa5c73cced8bb35a3
Signed-off-by: Amit Kumar <amitkecian@gmail.com>
framework-res/SystemUI: CS translation

- reorganized translation for new CM translation layout

Change-Id: I6d50f7b5f84deb799c34e6e9386b39c612dc4cbe
merge changes from remotes/github/cm-10.1 into master
Fix SystemUI memory leaks on theme changes.

ContentObserver and BroadcastReceiver instances were dangling after the
status bar was recreated.

Change-Id: I0ef7ef134029e5deec066d405545b8d9ec58d76b
DeviceKeyHandler: Increase handler priority

Allow DeviceKeyHandler to have higher priority when handling user keystrokes.

Patchset 2: Update commit message
Patchset 3: Rebased
Patchset 4: Fixed needed ref
Patchset 5: Rebased

Needed by http://review.cyanogenmod.org/#/c/35064

Change-Id: I60871052aaae0af7d864113f00dbdf9ba5200f2e
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Email force close when pressing back key after selecting characters

Email and Browser will be forced closed after selecting a text
and then press the back key, tilting the screen or trying to
share or copy the text. This is because a previouse fix
is using a part of the code that Google has removed.
Fix: clearSelection will now use its own EventHub id,
CLEAR_SELECT_TEXT.

This part describes the previous fix.
Marking a text on the web page and then press copy works,
but trying to mark the same text again does not work.
The reason for this is that the selection never gets
cleared in webkit.
The fix, calling cleaSelection in the onDestroyActionMode.
Also added clearSelection when getting an
onConfigurationChange.

FIX=DMS01503793

Change-Id: I5e5673bac4efb3d28e9fc613da4bf636f8ab3c39
merge changes from remotes/github/cm-10.1 into master

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

Change-Id: I4ef27b1d7822f38c429655caede05b723601f662
core: Norwegian translation

Change-Id: Ie93014615345726ea260fb656792ca948dd84019
Slim Circle MODs

Change-Id: Ic0f43ece4b941e93eff871d4f4fef5d34e0af3f3
SystemUI: Norwegian translation

Change-Id: I79f3c9f3ce14bcbe1cab64f8ffee6e0732523a7b
Wake On Plug

Change-Id: I1345161fa6bb31743ed3881f68d5ba282794aab7
merge changes from remotes/github/cm-10.1 into master
Swiping on the top of full screen apps shows status bar for 10 seconds

Change-Id: Idfb4df4e36a2777993f5b724c34ce938d64b5554
AutoHide Statusbar

Ported from https://github.com/SlimRoms/frameworks_base/commit/3982e50efb490f01a01c74bc6b190ecddf7c1480
and taken from https://github.com/BeerGang/android_frameworks_base/commit/b81079f2adcc816a976798ffbf78e91e26ef7e03

Change-Id: Icaace6c54d60cad82bd24bb40fba90969ab18b5f