Prevent factory reset for short passwords in CryptKeeper

Since patterns and passwords can't be shorter than 4
elements, we shouldn't count them against attempts to unlock
the device.  If we do, we risk resetting the device
due to stray input.

Bug: 18211475
Bug: 18273380

Conflicts:
        src/com/android/settings/CryptKeeper.java

Conflicts:
        src/com/android/settings/CryptKeeper.java

Change-Id: Ib329cd3383471483cda68bfac4278b17d0c09c57
packages: settings: CryptKeeper: Disable FDE if PFE activated

Don't allow Full-Disk-Encryption (FDE) after Per-File-Encryption (PFE)

Change-Id: I5ed46d4362f6536a6cf526aa5bf4bac4610c47b6
Settings: fix a couple of multiuser bugs

- show interface settings
- hide media scan on boot behaviour
- show privacy guard

for other users

Change-Id: I2b488f69b820f289d7ddb04e5171637b355dc5cf
Settings: Add proximity wake option

Ports and combines:

http://review.cyanogenmod.org/#/c/66658/
Settings : Add preference for proximity wake

http://review.cyanogenmod.org/#/c/69347/
Proximity Wake-Up : adjust strings

http://review.cyanogenmod.org/#/c/69803/
Settings : Make proximity opt-in

Change-Id: Iea0853eccf764438c7aaac76afd13c364fcea0ec
Return: Smart Pulldown [2/2]

Change-Id: Iba759e421b8cbb02fadaa6540aae7b7a74764293
bluetooth: Don't crash when the local adapter is not set

In devices where bluetooth is not working (like the emulator or devices
in development), the bluetooth Settings crashes when closing the activity.

Most of the code checks for the nullability of the local adapter except
for this particular piece. This is usually not a worry for production
devices and I wouldn't usually worry about this but since the rest of the
code performs the nullability check it seems silly to crash onPause.

Change-Id: I7c1d3b43969b516336be770957008ef2054d312f
Merge "Settings: Add proximity wake option" into lp5.0-caf
Automatic translation import

Change-Id: Icf76d63fec8177cfa147fe9c6d96f2d33a4709f3
Setttings: Finish activity on AppOpsDetails if user press the back button

...in the action bar.

Change-Id: I9443d2396b3564221993930eb56f5edea84d7d2e
Merge "Setttings: Finish activity on AppOpsDetails if user press the back button" into lp5.0-caf
Merge "Automatic translation import" into lp5.0-caf
PGM: Ask user on single click if he really wants to fast enable PG

Like @Yank555 mentioned a lot ppl tend to accidentaly enable other apps as well during
going trough the list. To prevent this the user needs to confirm a Dialog now to finally enable it.

As well the Dialog text changed and reflects the app name as well so that the user is clearly notified
what happens with what app.

Change-Id: I748eb12fbb51feff665126ab9d94703b78982f53
Merge "PGM: Ask user on single click if he really wants to fast enable PG" into lp5.0-caf
Settings: StatusBar Ticker (2/2)

PS: MIspeeliings.

Change-Id: I02cf9192c3ba62111a41e7da52cf4c343a589392
Settings: fix some icons (2/3)

Change-Id: I923c28b01a819c79bd4965b61337fdc99cb53c0b
Forward Port: Volume button seek on screen off [2/2]

Change-Id: I788fc4cfbb688d99de241991821ebf7e277d19ad
bluetooth: Show a refresh icon on the select devices screen

The refresh menu is hidden behind an overflow which is
pointless. This patch shows the refresh icon if there is
enough room.

Change-Id: I35f19c42054b05388f7b8fcb82e0f3bd60e2d618
TrustedCredentials: Don't crash when the activity is paused

If you press Settings -> Security -> Trusted Credentials, then press
 back before the loading finishes, the loader async task will still
try to dereference the activity which will cause an NPE.

This patch fixes that by getting and holding a reference to the
context in the beggining and bailing early if it is null.

Change-Id: Ie03734d5f184821df5d8729fc4a16eb51cdeebf5
Merge "Settings: StatusBar Ticker (2/2)" into lp5.0-caf
Merge "Settings: fix some icons (2/3)" into lp5.0-caf