Properly handle null URIs.

Change-Id: Ib81044686f40284bacf6ee645c671679f62be843
JIRA:CYAN-2491
Re-add expanded desktop tile.

Change-Id: I945455f4f0f2544cbce7fe38916fad3aec7972bc
Fix profile lockscreen override.

KeyStore.isEmpty() needs to be called under the system UID (as it needs
KeyStore's P_ZERO permission), otherwise it'll always return false.
Achieve that by moving the requireSecureKeyguard() implementation into
the DPM service.

Also take the opportunity to clean up the code a bit.

Change-Id: Ice648f2050f22ee5f27332f23a850f1e90befb94
Merge "Fix profile lockscreen override." into cm-11.0
Merge "Properly handle null URIs." into cm-11.0
Merge remote-tracking branch 'cm/cm-11.0'; commit 'HEAD' into HEAD