SystemUI: Updated Polish translation

Patch Set 2: Added comments above and below CyanogenMod additions
Patch Set 3: Fixed some minor typos

Change-Id: Ie2685b00264afe2503f4c57a3b80e39d83162149
SystemUI: Simplified Chinese Translations

Patch Set 2: Rearranged strings as per Marco's suggestions.

Patch Set 3: Added translations for the volume toggle in QuickSettings.

Patch Set 4: Fixed whitespaces.

Patch Set 5: Rearrangement of strings again.

Change-Id: I91de1d7d4d9adc0b97761b68799d624ee5da418b
PT-BR: Update translation

Change-Id: I76c8a6c2a31a5bb9c5320d22e036caf47c672787
Merge "SystemUI: Updated Polish translation" into cm-10.1
Merge "PT-BR: Update translation" into cm-10.1
Add boot animation preview (1/2)

This change is needed to get notified once the animation is finished.
The usecase would be multipart animations where the first part is shown
once and the second is shown in a loop.

Change-Id: Ibd9c83a4662bef2a866c5bb076d94f49e714dd63
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Avoid possible memory leaks by ensuring stream closures

Stream close() methods should always be called in finally block
to ensure we don't accidentally leak a stream.

Time to fix some old sloppy code.

Patch Set 2:
 + ensure closure of some other streams
Patch Set 3:
 + missing import java.io.IOException
Patch Set 4:
 + missing import
Patch Set 5:
 + missing ';'
 + whitespace cleanup
Patch Set 6:
 - Reverted changes to MemoryUsage (final requirement
     prevents my implentation)
 + fixed Object allocation in Root.java
Patch Set 7:
 + fixed curly bracket style violations
Patch Set 8:
 x fixed my own sloppy code :/

Change-Id: I3460b558ed5b4489296388c9a52fbb773cefd31f
Fix black background issue for real

SlimRom ftw

Squashed commit of the following:

commit a0eb7892cd977ba4c7824d14e647dcc14b8cc01d
Author: nuclearmistake <nuclearmistake@gmail.com>
Date:   Tue Mar 19 11:45:57 2013 -0400

    Revert "Check and fail early if requested wallpaper size exceeds maximum texture size."

    Original commit from https://github.com/SlimRoms/frameworks_base/commit/2e97a5c5fbefa3fee1a44458b85ee8e0bdb43db3

    This reverts commit 220eb010266821b053dbaff9d9a942e80c6d7c78.

commit 1c0c3e54feeb8479ecf5b8b330014aefd5d406da
Author: nuclearmistake <nuclearmistake@gmail.com>
Date:   Tue Mar 19 11:45:18 2013 -0400

    Revert "Fix issues with launcher background being black and causing EGL explosions after changing themes."

    Did not fix the issue. Trying alternative.

    This reverts commit 05da09aac11b9a829ed9a0e47c1073df887b2557.

Change-Id: I0c6122ec784a221d3b02c7cb18b68381ae324f04
Rerevert quad vectorization

Change-Id: I60b33c0872c857fb3d9ec74bc6949fae09456315
Update Russian Translation-SystemUI-CM10.1

Update Russian Translation-CM10.1
Correct the target app token for input method window

The root cause is:
There is a defect in window manager service: When a new
activity that can be ime target is added into window manager
but the Z order of input method window don't need to be
changed, then the target app token of input method window
would not be updated to new one. This defect may cause that
the layer of input method window is calculated incorrectly.

The solution:
Correct the target app token for input method window.

Change-Id: I008311e3c9b1cf5fc320b614d8675c183c506d50
PT-BR: Update translations

Change-Id: If54f8dd7962486befcf54ee4e0e8242f1f2b7737
Merge "Update Russian Translation-SystemUI-CM10.1" into cm-10.1
Merge "SystemUI: Simplified Chinese Translations" into cm-10.1
SystemUI: Danish strings, latest merges

Change-Id: Iec754e37ae376a8dc8a846c35a093ce132241675
GlobalActions: Add null checks to onServiceStateChanged

can potentially cause a fatal NPE.

  Patch Set 7: Remove unnecessary dependency.

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Change-Id: I7943c2db663157296cf69e524a15fd71bf017496
Merge branch 'cm-10.1' of
https://github.com/CyanogenMod/android_frameworks_base into jb42
Two REMOVE_PROVIDER messages caused by race condition.

Fix a bug in unstable ContentProvider.
IllegalStateException: ref counts can't go to zero here: stable=0 unstable=0
IllegalStateException: unstable count < 0: -1

There is a race between main thread and background database thread. Main thread
is responsible for handling the REMOVE_PROVIDER message. Database thread starts
insert or query request again and again. acquireProvider in db thread will often
snatch provider from the jaws of death, sometime it fails to remove REMOVE_PROVIDER
which is already fired out from MessageQueue. But completeRemoveProvider in main
thread gets suspended when trying to execute the critical section. If db thread
released the provider before main thread resumes the execution, then two
REMOVE_PROVIDER messages will be executed.

Change-Id: I8588aa1d1a8bc444dcd2adf6f8bc3f055cebbdc4
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Fix spurious ANR occurence when MOTION batch event is not served by the InputTransporter

Sometimes Batch event of MOTION type is not processed by the Input Transporter
even though it is queued to the waitQueue-Responsible for ANR whenever any event
response does not come from the App. To fix this issue, one Boolean lock is added.
Thus InputTransporter wont ignore the Batch event.
Issue: https://code.google.com/p/android/issues/detail?id=41755

Change-Id: I3bb2eb4cf1f8ecdd1d04671c0e8205dee4ad3a6c
Swap volume buttons when the screen is rotated (1/2)

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

Patch Set 8: Invert the orientation interpretations on tablets

Change-Id: I201febc2827e6fbd347cb0e3f8d3347ad1bc487b