diff options
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/app/IStatusBar.aidl | 23 | ||||
-rw-r--r-- | core/java/android/app/IStatusBarService.aidl | 34 | ||||
-rw-r--r-- | core/java/android/app/StatusBarManager.java | 19 |
3 files changed, 6 insertions, 70 deletions
diff --git a/core/java/android/app/IStatusBar.aidl b/core/java/android/app/IStatusBar.aidl deleted file mode 100644 index 8d571ef..0000000 --- a/core/java/android/app/IStatusBar.aidl +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) 2007, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package android.app; - -/** @hide */ -interface IStatusBar -{ -} - diff --git a/core/java/android/app/IStatusBarService.aidl b/core/java/android/app/IStatusBarService.aidl deleted file mode 100644 index ccde41a..0000000 --- a/core/java/android/app/IStatusBarService.aidl +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Copyright (c) 2007, The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package android.app; - -import android.app.IStatusBar; - -/** @hide */ -interface IStatusBarService -{ - void activate(); - void deactivate(); - void toggle(); - void disable(int what, IBinder token, String pkg); - IBinder addIcon(String slot, String iconPackage, int iconId, int iconLevel); - void updateIcon(IBinder key, String slot, String iconPackage, int iconId, int iconLevel); - void removeIcon(IBinder key); - - // ---- Methods below are for use by the status bar policy services ---- - void registerStatusBar(IStatusBar callbacks); -} diff --git a/core/java/android/app/StatusBarManager.java b/core/java/android/app/StatusBarManager.java index 746b2d5..8905268 100644 --- a/core/java/android/app/StatusBarManager.java +++ b/core/java/android/app/StatusBarManager.java @@ -23,6 +23,8 @@ import android.os.RemoteException; import android.os.IBinder; import android.os.ServiceManager; +import com.android.internal.statusbar.IStatusBarService; + /** * Allows an app to control the status bar. * @@ -116,27 +118,18 @@ public class StatusBarManager { } } - public IBinder addIcon(String slot, int iconId, int iconLevel) { - try { - return mService.addIcon(slot, mContext.getPackageName(), iconId, iconLevel); - } catch (RemoteException ex) { - // system process is dead anyway. - throw new RuntimeException(ex); - } - } - - public void updateIcon(IBinder key, String slot, int iconId, int iconLevel) { + public void setIcon(String slot, int iconId, int iconLevel) { try { - mService.updateIcon(key, slot, mContext.getPackageName(), iconId, iconLevel); + mService.setIcon(slot, mContext.getPackageName(), iconId, iconLevel); } catch (RemoteException ex) { // system process is dead anyway. throw new RuntimeException(ex); } } - public void removeIcon(IBinder key) { + public void removeIcon(String slot) { try { - mService.removeIcon(key); + mService.removeIcon(slot); } catch (RemoteException ex) { // system process is dead anyway. throw new RuntimeException(ex); |