| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| Joe Onorato | 7a0f36b | 2010-06-07 10:24:36 -0700 | [diff] [blame] | 17 | package com.android.server; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 18 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 19 | import android.app.StatusBarManager; |
| 20 | import android.content.BroadcastReceiver; |
| 21 | import android.content.Context; |
| 22 | import android.content.Intent; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 23 | import android.content.pm.PackageManager; |
| 24 | import android.content.res.Resources; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 25 | import android.os.Binder; |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 26 | import android.os.Handler; |
| Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 27 | import android.os.IBinder; |
| 28 | import android.os.RemoteException; |
| Joe Onorato | 8a9b220 | 2010-02-26 18:56:32 -0800 | [diff] [blame] | 29 | import android.util.Slog; |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 30 | |
| 31 | import com.android.internal.statusbar.IStatusBar; |
| 32 | import com.android.internal.statusbar.IStatusBarService; |
| 33 | import com.android.internal.statusbar.StatusBarIcon; |
| 34 | import com.android.internal.statusbar.StatusBarIconList; |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 35 | import com.android.internal.statusbar.StatusBarNotification; |
| Dianne Hackborn | a924dc0d | 2011-02-17 14:22:17 -0800 | [diff] [blame] | 36 | import com.android.server.wm.WindowManagerService; |
| The Android Open Source Project | 1059253 | 2009-03-18 17:39:46 -0700 | [diff] [blame] | 37 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 38 | import java.io.FileDescriptor; |
| 39 | import java.io.PrintWriter; |
| 40 | import java.util.ArrayList; |
| 41 | import java.util.HashMap; |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 42 | import java.util.List; |
| 43 | import java.util.Map; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | |
| 45 | |
| 46 | /** |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 47 | * A note on locking: We rely on the fact that calls onto mBar are oneway or |
| 48 | * if they are local, that they just enqueue messages to not deadlock. |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 49 | */ |
| Joe Onorato | 089de88 | 2010-04-12 08:18:45 -0700 | [diff] [blame] | 50 | public class StatusBarManagerService extends IStatusBarService.Stub |
| Jeff Brown | 2992ea7 | 2011-01-28 22:04:14 -0800 | [diff] [blame] | 51 | implements WindowManagerService.OnHardKeyboardStatusChangeListener |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 52 | { |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 53 | static final String TAG = "StatusBarManagerService"; |
| Joe Onorato | 431bb22 | 2010-10-18 19:13:23 -0400 | [diff] [blame] | 54 | static final boolean SPEW = false; |
| Joe Onorato | df7dbb6 | 2009-11-17 10:43:37 -0800 | [diff] [blame] | 55 | |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 56 | final Context mContext; |
| Jeff Brown | 2992ea7 | 2011-01-28 22:04:14 -0800 | [diff] [blame] | 57 | final WindowManagerService mWindowManager; |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 58 | Handler mHandler = new Handler(); |
| 59 | NotificationCallbacks mNotificationCallbacks; |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 60 | volatile IStatusBar mBar; |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 61 | StatusBarIconList mIcons = new StatusBarIconList(); |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 62 | HashMap<IBinder,StatusBarNotification> mNotifications |
| 63 | = new HashMap<IBinder,StatusBarNotification>(); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 64 | |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 65 | // for disabling the status bar |
| 66 | ArrayList<DisableRecord> mDisableRecords = new ArrayList<DisableRecord>(); |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 67 | IBinder mSysUiVisToken = new Binder(); |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 68 | int mDisabled = 0; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 69 | |
| Joe Onorato | 9305647 | 2010-09-10 10:30:46 -0400 | [diff] [blame] | 70 | Object mLock = new Object(); |
| Daniel Sandler | 60ee256 | 2011-07-22 12:34:33 -0400 | [diff] [blame] | 71 | // encompasses lights-out mode and other flags defined on View |
| 72 | int mSystemUiVisibility = 0; |
| Daniel Sandler | e02d808 | 2010-10-08 15:13:22 -0400 | [diff] [blame] | 73 | boolean mMenuVisible = false; |
| Joe Onorato | 857fd9b | 2011-01-27 15:08:35 -0800 | [diff] [blame] | 74 | int mImeWindowVis = 0; |
| 75 | int mImeBackDisposition; |
| 76 | IBinder mImeToken = null; |
| satok | 06487a5 | 2010-10-29 11:37:18 +0900 | [diff] [blame] | 77 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 78 | private class DisableRecord implements IBinder.DeathRecipient { |
| 79 | String pkg; |
| 80 | int what; |
| 81 | IBinder token; |
| 82 | |
| 83 | public void binderDied() { |
| Joe Onorato | 8a9b220 | 2010-02-26 18:56:32 -0800 | [diff] [blame] | 84 | Slog.i(TAG, "binder died for pkg=" + pkg); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 85 | disable(0, token, pkg); |
| Suchi Amalapurapu | fff2fda | 2009-06-30 21:36:16 -0700 | [diff] [blame] | 86 | token.unlinkToDeath(this, 0); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 87 | } |
| 88 | } |
| 89 | |
| 90 | public interface NotificationCallbacks { |
| 91 | void onSetDisabled(int status); |
| 92 | void onClearAll(); |
| Fred Quintana | 6ecaff1 | 2009-09-25 14:23:13 -0700 | [diff] [blame] | 93 | void onNotificationClick(String pkg, String tag, int id); |
| Daniel Sandler | 0f0b11c | 2010-08-04 15:54:58 -0400 | [diff] [blame] | 94 | void onNotificationClear(String pkg, String tag, int id); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 95 | void onPanelRevealed(); |
| Dianne Hackborn | 9d39d0c | 2010-06-24 15:57:42 -0700 | [diff] [blame] | 96 | void onNotificationError(String pkg, String tag, int id, |
| 97 | int uid, int initialPid, String message); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 98 | } |
| 99 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 100 | /** |
| 101 | * Construct the service, add the status bar view to the window manager |
| 102 | */ |
| Jeff Brown | 2992ea7 | 2011-01-28 22:04:14 -0800 | [diff] [blame] | 103 | public StatusBarManagerService(Context context, WindowManagerService windowManager) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 104 | mContext = context; |
| Jeff Brown | 2992ea7 | 2011-01-28 22:04:14 -0800 | [diff] [blame] | 105 | mWindowManager = windowManager; |
| 106 | mWindowManager.setOnHardKeyboardStatusChangeListener(this); |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 107 | |
| 108 | final Resources res = context.getResources(); |
| Joe Onorato | 75144ea | 2010-06-07 12:36:25 -0700 | [diff] [blame] | 109 | mIcons.defineSlots(res.getStringArray(com.android.internal.R.array.config_statusBarIcons)); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 110 | } |
| 111 | |
| 112 | public void setNotificationCallbacks(NotificationCallbacks listener) { |
| 113 | mNotificationCallbacks = listener; |
| 114 | } |
| 115 | |
| 116 | // ================================================================================ |
| Joe Onorato | 25f95f9 | 2010-04-08 18:37:10 -0500 | [diff] [blame] | 117 | // From IStatusBarService |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 118 | // ================================================================================ |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 119 | public void expand() { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 120 | enforceExpandStatusBar(); |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 121 | |
| 122 | if (mBar != null) { |
| 123 | try { |
| 124 | mBar.animateExpand(); |
| 125 | } catch (RemoteException ex) { |
| 126 | } |
| 127 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 128 | } |
| 129 | |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 130 | public void collapse() { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 131 | enforceExpandStatusBar(); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 132 | |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 133 | if (mBar != null) { |
| 134 | try { |
| 135 | mBar.animateCollapse(); |
| 136 | } catch (RemoteException ex) { |
| 137 | } |
| 138 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | public void disable(int what, IBinder token, String pkg) { |
| 142 | enforceStatusBar(); |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 143 | |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 144 | synchronized (mLock) { |
| 145 | disableLocked(what, token, pkg); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | private void disableLocked(int what, IBinder token, String pkg) { |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 150 | // It's important that the the callback and the call to mBar get done |
| 151 | // in the same order when multiple threads are calling this function |
| 152 | // so they are paired correctly. The messages on the handler will be |
| 153 | // handled in the order they were enqueued, but will be outside the lock. |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 154 | manageDisableListLocked(what, token, pkg); |
| 155 | final int net = gatherDisableActionsLocked(); |
| 156 | if (net != mDisabled) { |
| 157 | mDisabled = net; |
| 158 | mHandler.post(new Runnable() { |
| 159 | public void run() { |
| 160 | mNotificationCallbacks.onSetDisabled(net); |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 161 | } |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 162 | }); |
| 163 | if (mBar != null) { |
| 164 | try { |
| 165 | mBar.disable(net); |
| 166 | } catch (RemoteException ex) { |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 167 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 168 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 169 | } |
| 170 | } |
| 171 | |
| Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 172 | public void setIcon(String slot, String iconPackage, int iconId, int iconLevel, |
| 173 | String contentDescription) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 174 | enforceStatusBar(); |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 175 | |
| 176 | synchronized (mIcons) { |
| 177 | int index = mIcons.getSlotIndex(slot); |
| 178 | if (index < 0) { |
| 179 | throw new SecurityException("invalid status bar icon slot: " + slot); |
| 180 | } |
| 181 | |
| Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 182 | StatusBarIcon icon = new StatusBarIcon(iconPackage, iconId, iconLevel, 0, |
| 183 | contentDescription); |
| Joe Onorato | 66d7d01 | 2010-05-14 10:05:10 -0700 | [diff] [blame] | 184 | //Slog.d(TAG, "setIcon slot=" + slot + " index=" + index + " icon=" + icon); |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 185 | mIcons.setIcon(index, icon); |
| 186 | |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 187 | if (mBar != null) { |
| 188 | try { |
| 189 | mBar.setIcon(index, icon); |
| 190 | } catch (RemoteException ex) { |
| 191 | } |
| 192 | } |
| 193 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 194 | } |
| 195 | |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 196 | public void setIconVisibility(String slot, boolean visible) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 197 | enforceStatusBar(); |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 198 | |
| Joe Onorato | 514ad663 | 2010-05-13 18:49:00 -0700 | [diff] [blame] | 199 | synchronized (mIcons) { |
| 200 | int index = mIcons.getSlotIndex(slot); |
| 201 | if (index < 0) { |
| 202 | throw new SecurityException("invalid status bar icon slot: " + slot); |
| 203 | } |
| 204 | |
| 205 | StatusBarIcon icon = mIcons.getIcon(index); |
| 206 | if (icon == null) { |
| 207 | return; |
| 208 | } |
| 209 | |
| 210 | if (icon.visible != visible) { |
| 211 | icon.visible = visible; |
| 212 | |
| Joe Onorato | 514ad663 | 2010-05-13 18:49:00 -0700 | [diff] [blame] | 213 | if (mBar != null) { |
| 214 | try { |
| 215 | mBar.setIcon(index, icon); |
| 216 | } catch (RemoteException ex) { |
| 217 | } |
| 218 | } |
| 219 | } |
| 220 | } |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 221 | } |
| 222 | |
| 223 | public void removeIcon(String slot) { |
| 224 | enforceStatusBar(); |
| 225 | |
| 226 | synchronized (mIcons) { |
| 227 | int index = mIcons.getSlotIndex(slot); |
| 228 | if (index < 0) { |
| 229 | throw new SecurityException("invalid status bar icon slot: " + slot); |
| 230 | } |
| 231 | |
| 232 | mIcons.removeIcon(index); |
| 233 | |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 234 | if (mBar != null) { |
| 235 | try { |
| 236 | mBar.removeIcon(index); |
| 237 | } catch (RemoteException ex) { |
| 238 | } |
| 239 | } |
| 240 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 241 | } |
| 242 | |
| Daniel Sandler | e02d808 | 2010-10-08 15:13:22 -0400 | [diff] [blame] | 243 | /** |
| 244 | * Hide or show the on-screen Menu key. Only call this from the window manager, typically in |
| 245 | * response to a window with FLAG_NEEDS_MENU_KEY set. |
| 246 | */ |
| Dianne Hackborn | 7d04932 | 2011-06-14 15:00:32 -0700 | [diff] [blame] | 247 | public void topAppWindowChanged(final boolean menuVisible) { |
| Daniel Sandler | e02d808 | 2010-10-08 15:13:22 -0400 | [diff] [blame] | 248 | enforceStatusBar(); |
| 249 | |
| Dianne Hackborn | 7d04932 | 2011-06-14 15:00:32 -0700 | [diff] [blame] | 250 | if (SPEW) Slog.d(TAG, (menuVisible?"showing":"hiding") + " MENU key"); |
| Daniel Sandler | e02d808 | 2010-10-08 15:13:22 -0400 | [diff] [blame] | 251 | |
| 252 | synchronized(mLock) { |
| Dianne Hackborn | 7d04932 | 2011-06-14 15:00:32 -0700 | [diff] [blame] | 253 | mMenuVisible = menuVisible; |
| 254 | mHandler.post(new Runnable() { |
| 255 | public void run() { |
| 256 | if (mBar != null) { |
| 257 | try { |
| 258 | mBar.topAppWindowChanged(menuVisible); |
| 259 | } catch (RemoteException ex) { |
| Daniel Sandler | e02d808 | 2010-10-08 15:13:22 -0400 | [diff] [blame] | 260 | } |
| 261 | } |
| Dianne Hackborn | 7d04932 | 2011-06-14 15:00:32 -0700 | [diff] [blame] | 262 | } |
| 263 | }); |
| Daniel Sandler | e02d808 | 2010-10-08 15:13:22 -0400 | [diff] [blame] | 264 | } |
| 265 | } |
| 266 | |
| Joe Onorato | 857fd9b | 2011-01-27 15:08:35 -0800 | [diff] [blame] | 267 | public void setImeWindowStatus(final IBinder token, final int vis, final int backDisposition) { |
| satok | 06487a5 | 2010-10-29 11:37:18 +0900 | [diff] [blame] | 268 | enforceStatusBar(); |
| 269 | |
| Joe Onorato | 857fd9b | 2011-01-27 15:08:35 -0800 | [diff] [blame] | 270 | if (SPEW) { |
| 271 | Slog.d(TAG, "swetImeWindowStatus vis=" + vis + " backDisposition=" + backDisposition); |
| 272 | } |
| satok | 06487a5 | 2010-10-29 11:37:18 +0900 | [diff] [blame] | 273 | |
| 274 | synchronized(mLock) { |
| Joe Onorato | 857fd9b | 2011-01-27 15:08:35 -0800 | [diff] [blame] | 275 | // In case of IME change, we need to call up setImeWindowStatus() regardless of |
| 276 | // mImeWindowVis because mImeWindowVis may not have been set to false when the |
| satok | 06e0744 | 2010-11-02 19:46:55 +0900 | [diff] [blame] | 277 | // previous IME was destroyed. |
| Joe Onorato | 857fd9b | 2011-01-27 15:08:35 -0800 | [diff] [blame] | 278 | mImeWindowVis = vis; |
| 279 | mImeBackDisposition = backDisposition; |
| 280 | mImeToken = token; |
| satok | 06e0744 | 2010-11-02 19:46:55 +0900 | [diff] [blame] | 281 | mHandler.post(new Runnable() { |
| 282 | public void run() { |
| 283 | if (mBar != null) { |
| 284 | try { |
| Joe Onorato | 857fd9b | 2011-01-27 15:08:35 -0800 | [diff] [blame] | 285 | mBar.setImeWindowStatus(token, vis, backDisposition); |
| satok | 06e0744 | 2010-11-02 19:46:55 +0900 | [diff] [blame] | 286 | } catch (RemoteException ex) { |
| satok | 06487a5 | 2010-10-29 11:37:18 +0900 | [diff] [blame] | 287 | } |
| 288 | } |
| satok | 06e0744 | 2010-11-02 19:46:55 +0900 | [diff] [blame] | 289 | } |
| 290 | }); |
| satok | 06487a5 | 2010-10-29 11:37:18 +0900 | [diff] [blame] | 291 | } |
| 292 | } |
| 293 | |
| Dianne Hackborn | 3a3a6cf | 2012-03-26 10:24:04 -0700 | [diff] [blame] | 294 | public void setSystemUiVisibility(int vis, int mask) { |
| Joe Onorato | 55bf380 | 2011-01-25 13:42:10 -0800 | [diff] [blame] | 295 | // also allows calls from window manager which is in this process. |
| Joe Onorato | f63b0f4 | 2010-09-12 17:03:19 -0400 | [diff] [blame] | 296 | enforceStatusBarService(); |
| 297 | |
| Jeff Sharkey | 4519a02 | 2011-09-07 23:24:53 -0700 | [diff] [blame] | 298 | if (SPEW) Slog.d(TAG, "setSystemUiVisibility(0x" + Integer.toHexString(vis) + ")"); |
| Daniel Sandler | 60ee256 | 2011-07-22 12:34:33 -0400 | [diff] [blame] | 299 | |
| Joe Onorato | f63b0f4 | 2010-09-12 17:03:19 -0400 | [diff] [blame] | 300 | synchronized (mLock) { |
| Dianne Hackborn | 3a3a6cf | 2012-03-26 10:24:04 -0700 | [diff] [blame] | 301 | updateUiVisibilityLocked(vis, mask); |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 302 | disableLocked(vis & StatusBarManager.DISABLE_MASK, mSysUiVisToken, |
| 303 | "WindowManager.LayoutParams"); |
| Joe Onorato | f63b0f4 | 2010-09-12 17:03:19 -0400 | [diff] [blame] | 304 | } |
| 305 | } |
| 306 | |
| Dianne Hackborn | 3a3a6cf | 2012-03-26 10:24:04 -0700 | [diff] [blame] | 307 | private void updateUiVisibilityLocked(final int vis, final int mask) { |
| Daniel Sandler | 60ee256 | 2011-07-22 12:34:33 -0400 | [diff] [blame] | 308 | if (mSystemUiVisibility != vis) { |
| 309 | mSystemUiVisibility = vis; |
| Joe Onorato | f63b0f4 | 2010-09-12 17:03:19 -0400 | [diff] [blame] | 310 | mHandler.post(new Runnable() { |
| 311 | public void run() { |
| 312 | if (mBar != null) { |
| 313 | try { |
| Dianne Hackborn | 3a3a6cf | 2012-03-26 10:24:04 -0700 | [diff] [blame] | 314 | mBar.setSystemUiVisibility(vis, mask); |
| Joe Onorato | f63b0f4 | 2010-09-12 17:03:19 -0400 | [diff] [blame] | 315 | } catch (RemoteException ex) { |
| Joe Onorato | 9305647 | 2010-09-10 10:30:46 -0400 | [diff] [blame] | 316 | } |
| 317 | } |
| Joe Onorato | f63b0f4 | 2010-09-12 17:03:19 -0400 | [diff] [blame] | 318 | } |
| 319 | }); |
| Joe Onorato | 9305647 | 2010-09-10 10:30:46 -0400 | [diff] [blame] | 320 | } |
| 321 | } |
| 322 | |
| Jeff Brown | 2992ea7 | 2011-01-28 22:04:14 -0800 | [diff] [blame] | 323 | public void setHardKeyboardEnabled(final boolean enabled) { |
| 324 | mHandler.post(new Runnable() { |
| 325 | public void run() { |
| 326 | mWindowManager.setHardKeyboardEnabled(enabled); |
| 327 | } |
| 328 | }); |
| 329 | } |
| 330 | |
| 331 | @Override |
| 332 | public void onHardKeyboardStatusChange(final boolean available, final boolean enabled) { |
| 333 | mHandler.post(new Runnable() { |
| 334 | public void run() { |
| 335 | if (mBar != null) { |
| 336 | try { |
| 337 | mBar.setHardKeyboardStatus(available, enabled); |
| 338 | } catch (RemoteException ex) { |
| 339 | } |
| 340 | } |
| 341 | } |
| 342 | }); |
| 343 | } |
| 344 | |
| Michael Jurka | 3b1fc47 | 2011-06-13 10:54:40 -0700 | [diff] [blame] | 345 | @Override |
| 346 | public void toggleRecentApps() { |
| 347 | if (mBar != null) { |
| 348 | try { |
| 349 | mBar.toggleRecentApps(); |
| 350 | } catch (RemoteException ex) {} |
| 351 | } |
| 352 | } |
| 353 | |
| Michael Jurka | 7f2668c | 2012-03-27 07:49:52 -0700 | [diff] [blame] | 354 | @Override |
| 355 | public void preloadRecentApps() { |
| 356 | if (mBar != null) { |
| 357 | try { |
| 358 | mBar.preloadRecentApps(); |
| 359 | } catch (RemoteException ex) {} |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | @Override |
| 364 | public void cancelPreloadRecentApps() { |
| 365 | if (mBar != null) { |
| 366 | try { |
| 367 | mBar.cancelPreloadRecentApps(); |
| 368 | } catch (RemoteException ex) {} |
| 369 | } |
| 370 | } |
| 371 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 372 | private void enforceStatusBar() { |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 373 | mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR, |
| Joe Onorato | 089de88 | 2010-04-12 08:18:45 -0700 | [diff] [blame] | 374 | "StatusBarManagerService"); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 375 | } |
| 376 | |
| 377 | private void enforceExpandStatusBar() { |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 378 | mContext.enforceCallingOrSelfPermission(android.Manifest.permission.EXPAND_STATUS_BAR, |
| Joe Onorato | 089de88 | 2010-04-12 08:18:45 -0700 | [diff] [blame] | 379 | "StatusBarManagerService"); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 380 | } |
| 381 | |
| Joe Onorato | 8bc6c51 | 2010-06-04 16:21:12 -0400 | [diff] [blame] | 382 | private void enforceStatusBarService() { |
| 383 | mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR_SERVICE, |
| 384 | "StatusBarManagerService"); |
| 385 | } |
| 386 | |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 387 | // ================================================================================ |
| 388 | // Callbacks from the status bar service. |
| 389 | // ================================================================================ |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 390 | public void registerStatusBar(IStatusBar bar, StatusBarIconList iconList, |
| Joe Onorato | 9305647 | 2010-09-10 10:30:46 -0400 | [diff] [blame] | 391 | List<IBinder> notificationKeys, List<StatusBarNotification> notifications, |
| satok | cd7cd29 | 2010-11-20 15:46:23 +0900 | [diff] [blame] | 392 | int switches[], List<IBinder> binders) { |
| Joe Onorato | 8bc6c51 | 2010-06-04 16:21:12 -0400 | [diff] [blame] | 393 | enforceStatusBarService(); |
| 394 | |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 395 | Slog.i(TAG, "registerStatusBar bar=" + bar); |
| 396 | mBar = bar; |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 397 | synchronized (mIcons) { |
| 398 | iconList.copyFrom(mIcons); |
| 399 | } |
| 400 | synchronized (mNotifications) { |
| 401 | for (Map.Entry<IBinder,StatusBarNotification> e: mNotifications.entrySet()) { |
| 402 | notificationKeys.add(e.getKey()); |
| 403 | notifications.add(e.getValue()); |
| 404 | } |
| 405 | } |
| Joe Onorato | 9305647 | 2010-09-10 10:30:46 -0400 | [diff] [blame] | 406 | synchronized (mLock) { |
| Joe Onorato | e4c7b3f | 2010-10-30 12:15:03 -0700 | [diff] [blame] | 407 | switches[0] = gatherDisableActionsLocked(); |
| Daniel Sandler | 60ee256 | 2011-07-22 12:34:33 -0400 | [diff] [blame] | 408 | switches[1] = mSystemUiVisibility; |
| Joe Onorato | e4c7b3f | 2010-10-30 12:15:03 -0700 | [diff] [blame] | 409 | switches[2] = mMenuVisible ? 1 : 0; |
| Joe Onorato | 857fd9b | 2011-01-27 15:08:35 -0800 | [diff] [blame] | 410 | switches[3] = mImeWindowVis; |
| 411 | switches[4] = mImeBackDisposition; |
| 412 | binders.add(mImeToken); |
| Joe Onorato | 9305647 | 2010-09-10 10:30:46 -0400 | [diff] [blame] | 413 | } |
| Jeff Brown | 2992ea7 | 2011-01-28 22:04:14 -0800 | [diff] [blame] | 414 | switches[5] = mWindowManager.isHardKeyboardAvailable() ? 1 : 0; |
| 415 | switches[6] = mWindowManager.isHardKeyboardEnabled() ? 1 : 0; |
| Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 416 | } |
| Joe Onorato | aaba60b | 2010-05-23 15:18:41 -0400 | [diff] [blame] | 417 | |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 418 | /** |
| Joe Onorato | f1f2591 | 2010-06-07 11:52:41 -0700 | [diff] [blame] | 419 | * The status bar service should call this each time the user brings the panel from |
| 420 | * invisible to visible in order to clear the notification light. |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 421 | */ |
| Joe Onorato | f1f2591 | 2010-06-07 11:52:41 -0700 | [diff] [blame] | 422 | public void onPanelRevealed() { |
| Joe Onorato | 8bc6c51 | 2010-06-04 16:21:12 -0400 | [diff] [blame] | 423 | enforceStatusBarService(); |
| 424 | |
| Joe Onorato | f1f2591 | 2010-06-07 11:52:41 -0700 | [diff] [blame] | 425 | // tell the notification manager to turn off the lights. |
| 426 | mNotificationCallbacks.onPanelRevealed(); |
| Joe Onorato | 4762c2d | 2010-05-17 15:42:59 -0700 | [diff] [blame] | 427 | } |
| 428 | |
| Joe Onorato | aaba60b | 2010-05-23 15:18:41 -0400 | [diff] [blame] | 429 | public void onNotificationClick(String pkg, String tag, int id) { |
| Joe Onorato | 8bc6c51 | 2010-06-04 16:21:12 -0400 | [diff] [blame] | 430 | enforceStatusBarService(); |
| 431 | |
| Joe Onorato | aaba60b | 2010-05-23 15:18:41 -0400 | [diff] [blame] | 432 | mNotificationCallbacks.onNotificationClick(pkg, tag, id); |
| 433 | } |
| 434 | |
| Dianne Hackborn | 9d39d0c | 2010-06-24 15:57:42 -0700 | [diff] [blame] | 435 | public void onNotificationError(String pkg, String tag, int id, |
| 436 | int uid, int initialPid, String message) { |
| Joe Onorato | 8bc6c51 | 2010-06-04 16:21:12 -0400 | [diff] [blame] | 437 | enforceStatusBarService(); |
| 438 | |
| Joe Onorato | 005847b | 2010-06-04 16:08:02 -0400 | [diff] [blame] | 439 | // WARNING: this will call back into us to do the remove. Don't hold any locks. |
| Dianne Hackborn | 9d39d0c | 2010-06-24 15:57:42 -0700 | [diff] [blame] | 440 | mNotificationCallbacks.onNotificationError(pkg, tag, id, uid, initialPid, message); |
| Joe Onorato | 005847b | 2010-06-04 16:08:02 -0400 | [diff] [blame] | 441 | } |
| 442 | |
| Daniel Sandler | 0f0b11c | 2010-08-04 15:54:58 -0400 | [diff] [blame] | 443 | public void onNotificationClear(String pkg, String tag, int id) { |
| 444 | enforceStatusBarService(); |
| 445 | |
| 446 | mNotificationCallbacks.onNotificationClear(pkg, tag, id); |
| 447 | } |
| 448 | |
| Joe Onorato | aaba60b | 2010-05-23 15:18:41 -0400 | [diff] [blame] | 449 | public void onClearAllNotifications() { |
| Joe Onorato | 8bc6c51 | 2010-06-04 16:21:12 -0400 | [diff] [blame] | 450 | enforceStatusBarService(); |
| 451 | |
| Joe Onorato | aaba60b | 2010-05-23 15:18:41 -0400 | [diff] [blame] | 452 | mNotificationCallbacks.onClearAll(); |
| 453 | } |
| 454 | |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 455 | // ================================================================================ |
| 456 | // Callbacks for NotificationManagerService. |
| 457 | // ================================================================================ |
| 458 | public IBinder addNotification(StatusBarNotification notification) { |
| 459 | synchronized (mNotifications) { |
| Joe Onorato | a0c56fe | 2010-05-20 10:21:52 -0700 | [diff] [blame] | 460 | IBinder key = new Binder(); |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 461 | mNotifications.put(key, notification); |
| Joe Onorato | e345fff | 2010-05-23 15:18:27 -0400 | [diff] [blame] | 462 | if (mBar != null) { |
| 463 | try { |
| 464 | mBar.addNotification(key, notification); |
| 465 | } catch (RemoteException ex) { |
| 466 | } |
| 467 | } |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 468 | return key; |
| 469 | } |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 470 | } |
| 471 | |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 472 | public void updateNotification(IBinder key, StatusBarNotification notification) { |
| 473 | synchronized (mNotifications) { |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 474 | if (!mNotifications.containsKey(key)) { |
| 475 | throw new IllegalArgumentException("updateNotification key not found: " + key); |
| 476 | } |
| 477 | mNotifications.put(key, notification); |
| Joe Onorato | e345fff | 2010-05-23 15:18:27 -0400 | [diff] [blame] | 478 | if (mBar != null) { |
| 479 | try { |
| 480 | mBar.updateNotification(key, notification); |
| 481 | } catch (RemoteException ex) { |
| 482 | } |
| 483 | } |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 484 | } |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 485 | } |
| 486 | |
| 487 | public void removeNotification(IBinder key) { |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 488 | synchronized (mNotifications) { |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 489 | final StatusBarNotification n = mNotifications.remove(key); |
| 490 | if (n == null) { |
| Daniel Sandler | fe0806a | 2012-05-16 12:41:33 -0400 | [diff] [blame] | 491 | Slog.e(TAG, "removeNotification key not found: " + key); |
| 492 | return; |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 493 | } |
| Joe Onorato | e345fff | 2010-05-23 15:18:27 -0400 | [diff] [blame] | 494 | if (mBar != null) { |
| 495 | try { |
| 496 | mBar.removeNotification(key); |
| 497 | } catch (RemoteException ex) { |
| 498 | } |
| 499 | } |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 500 | } |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 501 | } |
| Joe Onorato | 2314aab | 2010-04-08 16:41:23 -0500 | [diff] [blame] | 502 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 503 | // ================================================================================ |
| 504 | // Can be called from any thread |
| 505 | // ================================================================================ |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 506 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 507 | // lock on mDisableRecords |
| 508 | void manageDisableListLocked(int what, IBinder token, String pkg) { |
| 509 | if (SPEW) { |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 510 | Slog.d(TAG, "manageDisableList what=0x" + Integer.toHexString(what) + " pkg=" + pkg); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 511 | } |
| 512 | // update the list |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 513 | final int N = mDisableRecords.size(); |
| 514 | DisableRecord tok = null; |
| 515 | int i; |
| 516 | for (i=0; i<N; i++) { |
| 517 | DisableRecord t = mDisableRecords.get(i); |
| 518 | if (t.token == token) { |
| 519 | tok = t; |
| 520 | break; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 521 | } |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 522 | } |
| 523 | if (what == 0 || !token.isBinderAlive()) { |
| 524 | if (tok != null) { |
| 525 | mDisableRecords.remove(i); |
| 526 | tok.token.unlinkToDeath(tok, 0); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 527 | } |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 528 | } else { |
| 529 | if (tok == null) { |
| 530 | tok = new DisableRecord(); |
| 531 | try { |
| 532 | token.linkToDeath(tok, 0); |
| 533 | } |
| 534 | catch (RemoteException ex) { |
| 535 | return; // give up |
| 536 | } |
| 537 | mDisableRecords.add(tok); |
| 538 | } |
| 539 | tok.what = what; |
| 540 | tok.token = token; |
| 541 | tok.pkg = pkg; |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 542 | } |
| 543 | } |
| 544 | |
| 545 | // lock on mDisableRecords |
| 546 | int gatherDisableActionsLocked() { |
| 547 | final int N = mDisableRecords.size(); |
| 548 | // gather the new net flags |
| 549 | int net = 0; |
| 550 | for (int i=0; i<N; i++) { |
| 551 | net |= mDisableRecords.get(i).what; |
| 552 | } |
| 553 | return net; |
| 554 | } |
| 555 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 556 | // ================================================================================ |
| 557 | // Always called from UI thread |
| 558 | // ================================================================================ |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 559 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 560 | protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { |
| 561 | if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) |
| 562 | != PackageManager.PERMISSION_GRANTED) { |
| 563 | pw.println("Permission Denial: can't dump StatusBar from from pid=" |
| 564 | + Binder.getCallingPid() |
| 565 | + ", uid=" + Binder.getCallingUid()); |
| 566 | return; |
| 567 | } |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 568 | |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 569 | synchronized (mIcons) { |
| 570 | mIcons.dump(pw); |
| 571 | } |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 572 | |
| 573 | synchronized (mNotifications) { |
| Joe Onorato | 75199e3 | 2010-05-29 17:22:51 -0400 | [diff] [blame] | 574 | int i=0; |
| 575 | pw.println("Notification list:"); |
| 576 | for (Map.Entry<IBinder,StatusBarNotification> e: mNotifications.entrySet()) { |
| 577 | pw.printf(" %2d: %s\n", i, e.getValue().toString()); |
| 578 | i++; |
| 579 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 580 | } |
| Joe Onorato | 18e69df | 2010-05-17 22:26:12 -0700 | [diff] [blame] | 581 | |
| Joe Onorato | 7bb8eeb | 2011-01-27 16:00:58 -0800 | [diff] [blame] | 582 | synchronized (mLock) { |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 583 | final int N = mDisableRecords.size(); |
| 584 | pw.println(" mDisableRecords.size=" + N |
| 585 | + " mDisabled=0x" + Integer.toHexString(mDisabled)); |
| 586 | for (int i=0; i<N; i++) { |
| 587 | DisableRecord tok = mDisableRecords.get(i); |
| 588 | pw.println(" [" + i + "] what=0x" + Integer.toHexString(tok.what) |
| 589 | + " pkg=" + tok.pkg + " token=" + tok.token); |
| 590 | } |
| 591 | } |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 592 | } |
| 593 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 594 | private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() { |
| 595 | public void onReceive(Context context, Intent intent) { |
| 596 | String action = intent.getAction(); |
| Joe Onorato | f9e0e6b | 2009-09-08 16:24:36 -0400 | [diff] [blame] | 597 | if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action) |
| 598 | || Intent.ACTION_SCREEN_OFF.equals(action)) { |
| Joe Onorato | f3f0e05 | 2010-05-14 18:49:29 -0700 | [diff] [blame] | 599 | collapse(); |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 600 | } |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 601 | /* |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 602 | else if (Telephony.Intents.SPN_STRINGS_UPDATED_ACTION.equals(action)) { |
| 603 | updateNetworkName(intent.getBooleanExtra(Telephony.Intents.EXTRA_SHOW_SPN, false), |
| 604 | intent.getStringExtra(Telephony.Intents.EXTRA_SPN), |
| 605 | intent.getBooleanExtra(Telephony.Intents.EXTRA_SHOW_PLMN, false), |
| 606 | intent.getStringExtra(Telephony.Intents.EXTRA_PLMN)); |
| 607 | } |
| 608 | else if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) { |
| 609 | updateResources(); |
| 610 | } |
| Joe Onorato | 0cbda99 | 2010-05-02 16:28:15 -0700 | [diff] [blame] | 611 | */ |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 612 | } |
| 613 | }; |
| 614 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 615 | } |