Framework_base: PT-BR Translations

Change-Id: If8cf23d9f281c5710bad63a80b03689dd013625c
base: Check for homeAsUp status when collapse actionbar widget

mHomeLayout should be visible if one of DISPLAY_SHOW_HOME or DISPLAY_HOME_AS_UP are set.
collapseItemActionView only checks for DISPLAY_SHOW_HOME, so applications that only uses
DISPLAY_HOME_AS_UP and uses an expandable/collapsible widget (like SearchView) doesn't
properly restore the home layout.
One sample of this behaviour is the DeskClock app. The CitiesActivity doesn't show the homeasup
indicator after collapse the searchview.

aosp change-id: https://android-review.googlesource.com/#/c/71093/

Change-Id: I2f225138771da6bd6b2a468ad616b90c2c0a9d35
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Make ImageView drawable update more efficient in some cases.

When updating the view's drawable via setImageResource or setImageURI,
make sure to skip the layout pass if the old and new drawable have equal
sizes. This follows what is already done for setDrawable().

Change-Id: If73d225e38d0a2f7c616c4aeb33f67bdaed390f1
Avoid layout passes when updating data activity indicators.

ImageView can optimize out layout passes if old and new drawable have
equal sizes. Take advantage of that by displaying a transparent drawable
with the same size as the in/out drawables when there's no activity
instead of clearing out the drawable in that case.

Change-Id: Iaaa556ffab3ed4be1da8016ed40d0a9c2efcde01
WindowManagerService: fix application transitions in expanded mode.

Change-Id: If7d3fc3ab566dedc3a5b38cd0a6dc3185f494e20
keyguard: fix layout for sw320dp devices

800x480px dpi devices have less screen space than the xhdpi devices
Google designed the layout for and the layout needs adjustment.

- Reduce the lockscreen security container size such that the clock
  widget has enough space to display its content.
- In the SIM PIN/PUK view, Google put an empty widget on top, but
  we don't have space for that, increase its size such that the
  widget practically disappears.

This should not have any effect on devices with larger screens.

Ported from cm-10.2.
* Removed invalid mdpi layout leftover from framework-res
* Fix keyguard for mdpi devices too

Change-Id: I9e811cfd312abae24a9cad189d19e73848f6c4c1
Merge "Make ImageView drawable update more efficient in some cases." into cm-11.0
Merge "Avoid layout passes when updating data activity indicators." into cm-11.0
Merge "keyguard: fix layout for sw320dp devices" into cm-11.0
Add support for allow-permission extension.
This will grant a sharedUserId arbitrary permissions as defined by XML files
in /system/etc/permissions.

Change-Id: I4c0be56173b89621c4cc7ae589715a030931e8d5
wifi: Allow Settings to retrieve country code (1/2)

This makes getCountryCode behave like getFrequencyBand

This allows Settings to get/set country code like
it can for frequency band.

Ported from cm-10.2, adjusted for 4.4
Settings part: http://review.cyanogenmod.org/54904

Change-Id: Id9f00d3a678642c6c142fd1511af820d729507a7
SystemUI: Fix battery indicator alignment

Before: http://i.imgur.com/WEz7pPa.png
After: http://i.imgur.com/BkvQ3Df.png

Change-Id: I7ed9f79863eeebd3dd2ba44ae95d413d4d5ebe9e
Add lockscreen rotation as an optional rotation setting (1/2)

This will allow the user to select wether or not to use the
rotation settings for the lockscreen.  This is dependent
upon the rotation setting being checked.

Forward port from cm-10.2, adjusted for 4.4

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ibd7c69b0af1e0a7d91b985f2b21ea0b5bc619a70
JIRA: CYAN-339
Properly null check all button usages.

Users might have hidden them.

Change-Id: I7f52d570cf4ef0833c6bde9159475345d581a00f
SystemUI: Initial DE translation

PS1:  Port CM10.2 strings to CM11.0

PS2:  Add translation for:
      * Missing AOSP strings
      * Development shortcuts

Change-Id: I58f1b9d99ec50b9bc626f7182b9065c55511eda1
Fix a bootloop problem when /data/system/usagestats/usage-history.xml is empty.
This often occurs after an incomplete reboot/shutdown or battery pull.

Change-Id: I4f01151f4051df4ae1b85fa460ec7a9e70122878
Call to equals() comparing different types (FindBugs)

Call to HashSet<PrintServiceInfo>.equals(ArrayList<PrintServiceInfo>).
The result of this comparison will always be false.

Change-Id: Ic8cc6eab99cea4c7b3841faf6bc84c246273e8d0
keyguard: fix-fix layout for sw320dp devices

Default values need to be defined in sw360dp or larger devices will
pick up sw320dp values automatically.

On the maguro device the keyguard isn't properly centered.

- Before http://review.cyanogenmod.org/54758:
    http://i.imgur.com/F6sokhA.jpg
- After http://review.cyanogenmod.org/54758:
    http://i.imgur.com/OdTkZLL.jpg
- With this commit:
    http://i.imgur.com/TThq9da.jpg

Change-Id: Idcc29ec79a12e61b26d2ad5070468e70a8ef39df
Fix: Fix for ambiguous and broken disk formatting dialog

Part of the original patch was lost in abbe71facf4cc00d1c947ec8f1606281ce51c67f

Change-Id: I5621dff3cfd12a173b0d793398cf729333f97263
QuietHours: disable volume change tone during quiet hours

* Its quiet time, you're trying to be quiet, why would the volume
  change make noise when you're being quiet?
* Turn this off when system sounds are disabled during quiet hours

Change-Id: I6c7eb9d52f5dab9349bf2b8f72ddcb0ab45834fa