Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 089de88f authored by Joe Onorato's avatar Joe Onorato
Browse files

StatusBarService -> StatusBarManagerService

Change-Id: I7efc245395bd91a656b30d420c9b080877162360
parent 90233a1e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ import com.android.internal.view.IInputMethodSession;
import com.android.internal.view.InputBindResult;

import com.android.server.status.IconData;
import com.android.server.status.StatusBarService;
import com.android.server.status.StatusBarManagerService;

import org.xmlpull.v1.XmlPullParserException;

@@ -110,7 +110,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
    final Context mContext;
    final Handler mHandler;
    final SettingsObserver mSettingsObserver;
    final StatusBarService mStatusBar;
    final StatusBarManagerService mStatusBar;
    final IBinder mInputMethodIcon;
    final IconData mInputMethodData;
    final IWindowManager mIWindowManager;
@@ -447,7 +447,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        }
    }

    public InputMethodManagerService(Context context, StatusBarService statusBar) {
    public InputMethodManagerService(Context context, StatusBarManagerService statusBar) {
        mContext = context;
        mHandler = new Handler(this);
        mIWindowManager = IWindowManager.Stub.asInterface(
+10 −10
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ package com.android.server;

import com.android.server.status.IconData;
import com.android.server.status.NotificationData;
import com.android.server.status.StatusBarService;
import com.android.server.status.StatusBarManagerService;

import android.app.ActivityManagerNative;
import android.app.IActivityManager;
@@ -86,7 +86,7 @@ class NotificationManagerService extends INotificationManager.Stub
    final IBinder mForegroundToken = new Binder();

    private WorkerHandler mHandler;
    private StatusBarService mStatusBarService;
    private StatusBarManagerService mStatusBar;
    private LightsService mLightsService;
    private LightsService.Light mBatteryLight;
    private LightsService.Light mNotificationLight;
@@ -238,8 +238,8 @@ class NotificationManagerService extends INotificationManager.Stub
        }
    }

    private StatusBarService.NotificationCallbacks mNotificationCallbacks
            = new StatusBarService.NotificationCallbacks() {
    private StatusBarManagerService.NotificationCallbacks mNotificationCallbacks
            = new StatusBarManagerService.NotificationCallbacks() {

        public void onSetDisabled(int status) {
            synchronized (mNotificationList) {
@@ -405,7 +405,7 @@ class NotificationManagerService extends INotificationManager.Stub
        }
    }

    NotificationManagerService(Context context, StatusBarService statusBar,
    NotificationManagerService(Context context, StatusBarManagerService statusBar,
            LightsService lights)
    {
        super();
@@ -417,7 +417,7 @@ class NotificationManagerService extends INotificationManager.Stub
        mToastQueue = new ArrayList<ToastRecord>();
        mHandler = new WorkerHandler();

        mStatusBarService = statusBar;
        mStatusBar = statusBar;
        statusBar.setNotificationCallbacks(mNotificationCallbacks);

        mBatteryLight = lights.getLight(LightsService.LIGHT_ID_BATTERY);
@@ -734,7 +734,7 @@ class NotificationManagerService extends INotificationManager.Stub
                    r.statusBarKey = old.statusBarKey;
                    long identity = Binder.clearCallingIdentity();
                    try {
                        mStatusBarService.updateIcon(r.statusBarKey, icon, n);
                        mStatusBar.updateIcon(r.statusBarKey, icon, n);
                    }
                    finally {
                        Binder.restoreCallingIdentity(identity);
@@ -742,7 +742,7 @@ class NotificationManagerService extends INotificationManager.Stub
                } else {
                    long identity = Binder.clearCallingIdentity();
                    try {
                        r.statusBarKey = mStatusBarService.addIcon(icon, n);
                        r.statusBarKey = mStatusBar.addIcon(icon, n);
                        mAttentionLight.pulse();
                    }
                    finally {
@@ -756,7 +756,7 @@ class NotificationManagerService extends INotificationManager.Stub
                if (old != null && old.statusBarKey != null) {
                    long identity = Binder.clearCallingIdentity();
                    try {
                        mStatusBarService.removeIcon(old.statusBarKey);
                        mStatusBar.removeIcon(old.statusBarKey);
                    }
                    finally {
                        Binder.restoreCallingIdentity(identity);
@@ -864,7 +864,7 @@ class NotificationManagerService extends INotificationManager.Stub
        if (r.notification.icon != 0) {
            long identity = Binder.clearCallingIdentity();
            try {
                mStatusBarService.removeIcon(r.statusBarKey);
                mStatusBar.removeIcon(r.statusBarKey);
            }
            finally {
                Binder.restoreCallingIdentity(identity);
+5 −5
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.server;

import com.android.server.am.ActivityManagerService;
import com.android.server.status.StatusBarService;
import com.android.server.status.StatusBarManagerService;
import com.android.internal.os.BinderInternal;
import com.android.internal.os.SamplingProfilerIntegration;

@@ -206,7 +206,7 @@ class ServerThread extends Thread {
        }

        DevicePolicyManagerService devicePolicy = null;
        StatusBarService statusBar = null;
        StatusBarManagerService statusBar = null;
        InputMethodManagerService imm = null;
        AppWidgetService appWidget = null;
        NotificationManagerService notification = null;
@@ -224,10 +224,10 @@ class ServerThread extends Thread {

            try {
                Slog.i(TAG, "Status Bar");
                statusBar = new StatusBarService(context);
                statusBar = new StatusBarManagerService(context);
                ServiceManager.addService(Context.STATUS_BAR_SERVICE, statusBar);
            } catch (Throwable e) {
                Slog.e(TAG, "Failure starting StatusBarService", e);
                Slog.e(TAG, "Failure starting StatusBarManagerService", e);
            }

            try {
@@ -464,7 +464,7 @@ class ServerThread extends Thread {
        }

        // These are needed to propagate to the runnable below.
        final StatusBarService statusBarF = statusBar;
        final StatusBarManagerService statusBarF = statusBar;
        final BatteryService batteryF = battery;
        final ConnectivityService connectivityF = connectivity;
        final DockObserver dockF = dock;
+1 −1
Original line number Diff line number Diff line
@@ -545,7 +545,7 @@ class UiModeManagerService extends IUiModeManager.Stub {
            mStatusBarManager = (StatusBarManager) mContext.getSystemService(Context.STATUS_BAR_SERVICE);
        }

        // Fear not: StatusBarService manages a list of requests to disable
        // Fear not: StatusBarManagerService manages a list of requests to disable
        // features of the status bar; these are ORed together to form the
        // active disabled list. So if (for example) the device is locked and
        // the status bar should be totally disabled, the calls below will
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ import android.widget.LinearLayout;


public class CloseDragHandle extends LinearLayout {
    StatusBarService mService;
    StatusBarManagerService mService;

    public CloseDragHandle(Context context, AttributeSet attrs) {
        super(context, attrs);
Loading