diff options
author | Joe Onorato <joeo@android.com> | 2010-04-08 16:41:23 -0500 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2010-06-02 14:48:39 -0700 |
commit | 2314aab5064ce09f09270e52fa12a38d07464278 (patch) | |
tree | 835e5fcaec33d61b992eaf99b3befe9263a326ab /services/java/com/android/server | |
parent | c87d5849f22d805b3dde8f70f60ddfadfc7c7b9d (diff) | |
download | frameworks_base-2314aab5064ce09f09270e52fa12a38d07464278.zip frameworks_base-2314aab5064ce09f09270e52fa12a38d07464278.tar.gz frameworks_base-2314aab5064ce09f09270e52fa12a38d07464278.tar.bz2 |
First pass at splitting the status bar for the different devices.
Change-Id: I2f568df92f88dfe8de18d24dd004239f52761aa6
Diffstat (limited to 'services/java/com/android/server')
-rw-r--r-- | services/java/com/android/server/SystemServer.java | 2 | ||||
-rw-r--r-- | services/java/com/android/server/status/StatusBarService.java | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 9d5d035..65becb6 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -464,6 +464,7 @@ class ServerThread extends Thread { } // These are needed to propagate to the runnable below. + final StatusBarService statusBarF = statusBar; final BatteryService batteryF = battery; final ConnectivityService connectivityF = connectivity; final DockObserver dockF = dock; @@ -485,6 +486,7 @@ class ServerThread extends Thread { public void run() { Slog.i(TAG, "Making services ready"); + if (statusBarF != null) statusBarF.systemReady2(); if (batteryF != null) batteryF.systemReady(); if (connectivityF != null) connectivityF.systemReady(); if (dockF != null) dockF.systemReady(); diff --git a/services/java/com/android/server/status/StatusBarService.java b/services/java/com/android/server/status/StatusBarService.java index 93c8d34..1907c80 100644 --- a/services/java/com/android/server/status/StatusBarService.java +++ b/services/java/com/android/server/status/StatusBarService.java @@ -22,6 +22,7 @@ import com.android.internal.util.CharSequences; import android.app.ActivityManagerNative; import android.app.Dialog; import android.app.IStatusBar; +import android.app.IPoo; import android.app.PendingIntent; import android.app.StatusBarManager; import android.content.BroadcastReceiver; @@ -88,6 +89,9 @@ public class StatusBarService extends IStatusBar.Stub static final String TAG = "StatusBar"; static final boolean SPEW = false; + public static final String ACTION_STATUSBAR_START + = "com.android.internal.policy.statusbar.START"; + static final int EXPANDED_LEAVE_ALONE = -10000; static final int EXPANDED_FULL_OPEN = -10001; @@ -346,7 +350,13 @@ public class StatusBarService extends IStatusBar.Stub lp.setTitle("StatusBar"); lp.windowAnimations = R.style.Animation_StatusBar; - WindowManagerImpl.getDefault().addView(view, lp); + //WindowManagerImpl.getDefault().addView(view, lp); + } + + public void systemReady2() { + // Start the status bar app + Intent intent = new Intent(ACTION_STATUSBAR_START); + mContext.sendBroadcast(intent /** permission **/); } // ================================================================================ @@ -412,6 +422,11 @@ public class StatusBarService extends IStatusBar.Stub "StatusBarService"); } + public void registerStatusBar(IPoo bar) { + Slog.d(TAG, "registerStatusBar bar=" + bar); + } + + // ================================================================================ // Can be called from any thread // ================================================================================ |