Restore lazy loading of LoadedApk resources

This was broken in 8fff544ec349593cfa61ae2f5ec59419fff666b6. Since that change,
resources are always initialized in getPackageInfo(), even if they haven't been
loaded before (mResources == null).

It shouldn't be necessary in *any* case to preload the resources at this point.
Anything using the resources should call LoadedApk.getResources(), which will
initialize them just when needed. Setting mResources to null resets the cache
and will force a reload the next time the resources are requested.

Change-Id: I9bc9986297478e99752b1e2b9bd04dab3dcc9656
AudioService: Show safe volume panel for non-interactive volume adjustments

If safe volume is active, apps calling mp.setVolume() to adjust the
headset to a value higher than the threshold will have the operation
fail silently because no volume dialog is active to pop up the
"do you wish to override" question.
This is particularly bad for peripherals that use the audio jack
(Square readers, Jawbone bands), since they usually require levels
close to maximum for proper communication and the app isn't prepared
to deal with a silent rejection of the requested volume.

Change-Id: I2047d199506106a87841b8b680007c5ab45b527b
Remove clock seconds [1/2]

Revert "Clock: use mCalendar to get seconds"

This reverts commit 8eef10bb95173a74b00a4b9240aa44fe154dd090.

Revert "Show Seconds next to StatusBar Clock [1/2]"

This reverts commit 50c5872707e487f3402eead3de59cc216d488ec1.

Change-Id: I5e1ad1b1054cf133c53f2194877b29efc0a300f6
Themes: Support applying components from multiple themes [1/3]

The current implementation assumes the components being passed
into the ThemeService belong to the same theme.  This patch uses
a Map instead of a List to pass in a mapping of components to
package names, allowing us to apply several components from
different themes.

Requesting a theme change now takes a Map<String, String> which
maps components to the theme package name they will be applied
from.
Example:
    Map<String, String> componentMap = new HashMap<String,String>();
    componentMap.add(ThemesColumns.MODIFIES_ICONS, "com.mytheme.blue");
    componentMap.add(ThemesColumns.MODIFIES_OVERLAYS, "com.mytheme.red");

    ThemeManager tm = (ThemeManager) contex.getSystemService(Context.THEME_SERVICE);
    tm.requestThemeChange(componentMap);

TODO: apply changes for lockscreen wallpaper
Conflicts:
	services/java/com/android/server/ThemeService.java

Change-Id: I13fa17eabecb824884fe522d5dc1822a4d7c55f4
Add missing center clock layout to MSim status bar

Change-Id: I8b184d98694d3445c58bcbf53bc3866795607a69
Merge remote-tracking branch 'carbon/kk' into kitkat