Init car mode when phone is booted in a dock.

When the device is booted in a car dock the car mode needs to be set
as well, so that the status bar notification shows up and the system
is initialized the same way as if the phone is placed into a car dock
when it's booted already.
diff --git a/services/java/com/android/server/DockObserver.java b/services/java/com/android/server/DockObserver.java
index 027f35c..a0c850f 100644
--- a/services/java/com/android/server/DockObserver.java
+++ b/services/java/com/android/server/DockObserver.java
@@ -305,6 +305,14 @@
                     (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE);
             mKeyguardLock = keyguardManager.newKeyguardLock(TAG);
 
+            final boolean enableCarMode = mDockState == Intent.EXTRA_DOCK_STATE_CAR;
+            if (enableCarMode) {
+                try {
+                    setCarMode(enableCarMode);
+                } catch (RemoteException e) {
+                    Log.w(TAG, "Unable to change car mode.", e);
+                }
+            }
             // don't bother broadcasting undocked here
             if (mDockState != Intent.EXTRA_DOCK_STATE_UNDOCKED) {
                 update();