Improve notification shade collapse code.

- Collapse after dismissing the last notification
- Avoid duplicate code paths for collapsing
- Improve variable naming according to AOSP review suggestions

Change-Id: Ic6f26a61f263c5beebbcc9725fe8914d3858576f
Make notification-shade-collapse-after-dismiss behaviour configurable.

Change-Id: I1be0be2753b479e6d2e4fc8e17d971d03ce01bb7
Core: HU translation

Change-Id: I1612f9133f2037bc556db0630742ba2c87482bef
frameworks_base: ES translations

- SELinux support

Change-Id: I35de2435032bba44b077ddba9d5611443138c579
Show advanced reboot if using an insecure lock screen

Enables the advanced reboot menu when locked if the selected lock method
is insecure (= slide unlock).

Change-Id: I759b7b31c5411597e2537a85183d73ec02eb2461
core/SystemUI: EL translations

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

Change-Id: I9666255a607cbce8ea8c4898ce929684e7b770bd
Add tile dimensions into snapshot and use it for setting tile rect

Current tile rendering implementation in hwui sets the current
clip rect as tile rect during restore. This will limit the rendering
to the restored clip rect. Later in case if the app tries to render
outside the tile rect by setting a new clip rect, then all the pixels,
which are falling outside the tile rect are clipped off, this may result
into UI artifacats. This change adds the support for preserving the tile
clip as part of the snapshot and the same tile clip is used while
setting the tile rect. This way it is taken care that the correct tile
dimensions are preserved during save and retrieved during restore.

CRs-Fixed: 499767
Change-Id: Ia66b6dc8e7be5857949751a81e9f702c2d1c5a57
Add support for Samsung extended AGPS

The AGPS implementation in the GPS chipset used in some Samsung devices
(i9100, i9300) can make use of the Psc field. Adapt the relevant
functions hiding the changes incompatible with other devices under the
AGPS_USE_PSC #define.

Credit to Qaweck from xda-developers forum for finding the meaning
of the field.

Change-Id: Ie4691c79ca379a1f5c0a87500c1b06b56ae7ac0d
Fix RIL_UNSOL_CDMA_PRL_CHANGED constant typo (1/2)

Change-Id: I6eef9350fa62857cb5fd133a385cb09150cb6d1b
android_os_FileUtils_getVolumeUUID: Fix the incorrect logical for call blkid_get_tag_value.
    There are two problems in here.
  1. For the function blkid_get_tag_value third parameter is should be the device, not the mount pointer, in the MediaPrivader.attachVolume, it will pass the mount path to call this function.
  2. The UUID for device is hex, so call atoi is not right. I think call strtol is better than atoi.

Change-Id: I76598a0993f08add3e9c7541cbc082d8d85e9af4
Fix hungarian keyboard layout

Change-Id: Ib75a5b709a65a48bcc371ef23cc15490587b77d0
Base-Core: CS translation

- added SELinux / MMAC policy

Change-Id: I110a5871089989fa301830bfec5d67918852feda
BT: Fix memory leak when BT on & off done many times

Solves a memory leak in BatteryStatsService when Bluetooth
is turn on/off. Solution adds missing close of proxy then
Bluetooth is turned off.

Change-Id: I65f9db298459c7c15f6a10c752992f1d38469445
CRs-Fixed: 476145
Frameworks/base: Update italian translation

	Changed AOSP strings for SELinux

	PS2: ported strings to custom file cm_strings.xml
	     (see http://review.cyanogenmod.org/#/c/45727)
        PS3: Cid trigger
        PS4: Cid trigger

Change-Id: Iedafc7f598a80682dcabce4c71fb9c921bf3da25
Merge "core/SystemUI: EL translations" into cm-10.1
Merge "Core: HU translation" into cm-10.1
Merge "frameworks_base: ES translations" into cm-10.1
Frameworks : FR translation

Patch set 1 : add new translation
Patch set 2 : correction

Change-Id: If4b5cc9695d129d3be3acc714c26ade87f35dcc8
Merge "Base-Core: CS translation" into cm-10.1
Enable Estonian language

AOSP translations are present, but not activated

Change-Id: I8cf7d0c128a5f12da5440882e6f2e8e91ccf57c5