blob: 1a16387e8443733aa27f5f3aa7d4a37002857a40 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/*
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 Onorato7a0f36b2010-06-07 10:24:36 -070017package com.android.server;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080018
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080019import android.app.PendingIntent;
20import android.app.StatusBarManager;
21import android.content.BroadcastReceiver;
Joe Onorato9e875fc2010-06-07 11:12:11 -070022import android.content.ComponentName;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080023import android.content.Context;
24import android.content.Intent;
25import android.content.IntentFilter;
26import android.content.pm.PackageManager;
27import android.content.res.Resources;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080028import android.net.Uri;
29import android.os.IBinder;
30import android.os.RemoteException;
31import android.os.Binder;
Joe Onoratof3f0e052010-05-14 18:49:29 -070032import android.os.Handler;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080033import android.os.SystemClock;
Joe Onorato8a9b2202010-02-26 18:56:32 -080034import android.util.Slog;
Joe Onorato0cbda992010-05-02 16:28:15 -070035
36import com.android.internal.statusbar.IStatusBar;
37import com.android.internal.statusbar.IStatusBarService;
38import com.android.internal.statusbar.StatusBarIcon;
39import com.android.internal.statusbar.StatusBarIconList;
Joe Onorato18e69df2010-05-17 22:26:12 -070040import com.android.internal.statusbar.StatusBarNotification;
The Android Open Source Project10592532009-03-18 17:39:46 -070041
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080042import java.io.FileDescriptor;
43import java.io.PrintWriter;
44import java.util.ArrayList;
45import java.util.HashMap;
Joe Onorato75199e32010-05-29 17:22:51 -040046import java.util.List;
47import java.util.Map;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080048
49
50/**
Joe Onoratof3f0e052010-05-14 18:49:29 -070051 * A note on locking: We rely on the fact that calls onto mBar are oneway or
52 * if they are local, that they just enqueue messages to not deadlock.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080053 */
Joe Onorato089de882010-04-12 08:18:45 -070054public class StatusBarManagerService extends IStatusBarService.Stub
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080055{
Joe Onorato4762c2d2010-05-17 15:42:59 -070056 static final String TAG = "StatusBarManagerService";
Joe Onoratof3f0e052010-05-14 18:49:29 -070057 static final boolean SPEW = true;
Joe Onoratodf7dbb62009-11-17 10:43:37 -080058
Joe Onoratof3f0e052010-05-14 18:49:29 -070059 final Context mContext;
60 Handler mHandler = new Handler();
61 NotificationCallbacks mNotificationCallbacks;
Joe Onorato4762c2d2010-05-17 15:42:59 -070062 volatile IStatusBar mBar;
Joe Onoratof3f0e052010-05-14 18:49:29 -070063 StatusBarIconList mIcons = new StatusBarIconList();
Joe Onorato75199e32010-05-29 17:22:51 -040064 HashMap<IBinder,StatusBarNotification> mNotifications
65 = new HashMap<IBinder,StatusBarNotification>();
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080066
Joe Onoratof3f0e052010-05-14 18:49:29 -070067 // for disabling the status bar
68 ArrayList<DisableRecord> mDisableRecords = new ArrayList<DisableRecord>();
69 int mDisabled = 0;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080070
71 private class DisableRecord implements IBinder.DeathRecipient {
72 String pkg;
73 int what;
74 IBinder token;
75
76 public void binderDied() {
Joe Onorato8a9b2202010-02-26 18:56:32 -080077 Slog.i(TAG, "binder died for pkg=" + pkg);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080078 disable(0, token, pkg);
Suchi Amalapurapufff2fda2009-06-30 21:36:16 -070079 token.unlinkToDeath(this, 0);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080080 }
81 }
82
83 public interface NotificationCallbacks {
84 void onSetDisabled(int status);
85 void onClearAll();
Fred Quintana6ecaff12009-09-25 14:23:13 -070086 void onNotificationClick(String pkg, String tag, int id);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080087 void onPanelRevealed();
Joe Onorato005847b2010-06-04 16:08:02 -040088 void onNotificationError(String pkg, String tag, int id, String message);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080089 }
90
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080091 /**
92 * Construct the service, add the status bar view to the window manager
93 */
Joe Onorato089de882010-04-12 08:18:45 -070094 public StatusBarManagerService(Context context) {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080095 mContext = context;
Joe Onorato0cbda992010-05-02 16:28:15 -070096
97 final Resources res = context.getResources();
Joe Onorato75144ea2010-06-07 12:36:25 -070098 mIcons.defineSlots(res.getStringArray(com.android.internal.R.array.config_statusBarIcons));
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080099 }
100
101 public void setNotificationCallbacks(NotificationCallbacks listener) {
102 mNotificationCallbacks = listener;
103 }
104
105 // ================================================================================
106 // Constructing the view
107 // ================================================================================
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800108
109 public void systemReady() {
Joe Onorato2314aab2010-04-08 16:41:23 -0500110 }
111
112 public void systemReady2() {
Joe Onorato9e875fc2010-06-07 11:12:11 -0700113 ComponentName cn = ComponentName.unflattenFromString(
114 mContext.getString(com.android.internal.R.string.config_statusBarComponent));
115 Intent intent = new Intent();
116 intent.setComponent(cn);
117 Slog.i(TAG, "Starting service: " + cn);
118 mContext.startService(intent);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800119 }
Joe Onorato4762c2d2010-05-17 15:42:59 -0700120
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800121 // ================================================================================
Joe Onorato25f95f92010-04-08 18:37:10 -0500122 // From IStatusBarService
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800123 // ================================================================================
Joe Onoratof3f0e052010-05-14 18:49:29 -0700124 public void expand() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800125 enforceExpandStatusBar();
Joe Onorato4762c2d2010-05-17 15:42:59 -0700126
127 if (mBar != null) {
128 try {
129 mBar.animateExpand();
130 } catch (RemoteException ex) {
131 }
132 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800133 }
134
Joe Onoratof3f0e052010-05-14 18:49:29 -0700135 public void collapse() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800136 enforceExpandStatusBar();
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800137
Joe Onorato4762c2d2010-05-17 15:42:59 -0700138 if (mBar != null) {
139 try {
140 mBar.animateCollapse();
141 } catch (RemoteException ex) {
142 }
143 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800144 }
145
146 public void disable(int what, IBinder token, String pkg) {
147 enforceStatusBar();
Joe Onoratof3f0e052010-05-14 18:49:29 -0700148
149 // It's important that the the callback and the call to mBar get done
150 // in the same order when multiple threads are calling this function
151 // so they are paired correctly. The messages on the handler will be
152 // handled in the order they were enqueued, but will be outside the lock.
153 synchronized (mDisableRecords) {
154 manageDisableListLocked(what, token, pkg);
155 final int net = gatherDisableActionsLocked();
156 Slog.d(TAG, "disable... net=0x" + Integer.toHexString(net));
157 if (net != mDisabled) {
158 mDisabled = net;
159 mHandler.post(new Runnable() {
160 public void run() {
161 mNotificationCallbacks.onSetDisabled(net);
162 }
163 });
164 if (mBar != null) {
165 try {
166 mBar.disable(net);
167 } catch (RemoteException ex) {
168 }
169 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800170 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800171 }
172 }
173
Joe Onorato0cbda992010-05-02 16:28:15 -0700174 public void setIcon(String slot, String iconPackage, int iconId, int iconLevel) {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800175 enforceStatusBar();
Joe Onorato0cbda992010-05-02 16:28:15 -0700176
177 synchronized (mIcons) {
178 int index = mIcons.getSlotIndex(slot);
179 if (index < 0) {
180 throw new SecurityException("invalid status bar icon slot: " + slot);
181 }
182
183 StatusBarIcon icon = new StatusBarIcon(iconPackage, iconId, iconLevel);
Joe Onorato66d7d012010-05-14 10:05:10 -0700184 //Slog.d(TAG, "setIcon slot=" + slot + " index=" + index + " icon=" + icon);
Joe Onorato0cbda992010-05-02 16:28:15 -0700185 mIcons.setIcon(index, icon);
186
Joe Onorato0cbda992010-05-02 16:28:15 -0700187 if (mBar != null) {
188 try {
189 mBar.setIcon(index, icon);
190 } catch (RemoteException ex) {
191 }
192 }
193 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800194 }
195
Joe Onorato0cbda992010-05-02 16:28:15 -0700196 public void setIconVisibility(String slot, boolean visible) {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800197 enforceStatusBar();
Joe Onorato0cbda992010-05-02 16:28:15 -0700198
Joe Onorato514ad6632010-05-13 18:49:00 -0700199 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 Onorato514ad6632010-05-13 18:49:00 -0700213 if (mBar != null) {
214 try {
215 mBar.setIcon(index, icon);
216 } catch (RemoteException ex) {
217 }
218 }
219 }
220 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700221 }
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 Onorato0cbda992010-05-02 16:28:15 -0700234 if (mBar != null) {
235 try {
236 mBar.removeIcon(index);
237 } catch (RemoteException ex) {
238 }
239 }
240 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800241 }
242
243 private void enforceStatusBar() {
Joe Onorato0cbda992010-05-02 16:28:15 -0700244 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR,
Joe Onorato089de882010-04-12 08:18:45 -0700245 "StatusBarManagerService");
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800246 }
247
248 private void enforceExpandStatusBar() {
Joe Onorato0cbda992010-05-02 16:28:15 -0700249 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.EXPAND_STATUS_BAR,
Joe Onorato089de882010-04-12 08:18:45 -0700250 "StatusBarManagerService");
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800251 }
252
Joe Onorato8bc6c512010-06-04 16:21:12 -0400253 private void enforceStatusBarService() {
254 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR_SERVICE,
255 "StatusBarManagerService");
256 }
257
Joe Onorato4762c2d2010-05-17 15:42:59 -0700258
259 // ================================================================================
260 // Callbacks from the status bar service.
261 // ================================================================================
Joe Onorato75199e32010-05-29 17:22:51 -0400262 public void registerStatusBar(IStatusBar bar, StatusBarIconList iconList,
263 List<IBinder> notificationKeys, List<StatusBarNotification> notifications) {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400264 enforceStatusBarService();
265
Joe Onorato0cbda992010-05-02 16:28:15 -0700266 Slog.i(TAG, "registerStatusBar bar=" + bar);
267 mBar = bar;
Joe Onorato75199e32010-05-29 17:22:51 -0400268 synchronized (mIcons) {
269 iconList.copyFrom(mIcons);
270 }
271 synchronized (mNotifications) {
272 for (Map.Entry<IBinder,StatusBarNotification> e: mNotifications.entrySet()) {
273 notificationKeys.add(e.getKey());
274 notifications.add(e.getValue());
275 }
276 }
Joe Onorato2314aab2010-04-08 16:41:23 -0500277 }
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400278
Joe Onorato4762c2d2010-05-17 15:42:59 -0700279 /**
Joe Onoratof1f25912010-06-07 11:52:41 -0700280 * The status bar service should call this each time the user brings the panel from
281 * invisible to visible in order to clear the notification light.
Joe Onorato4762c2d2010-05-17 15:42:59 -0700282 */
Joe Onoratof1f25912010-06-07 11:52:41 -0700283 public void onPanelRevealed() {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400284 enforceStatusBarService();
285
Joe Onoratof1f25912010-06-07 11:52:41 -0700286 // tell the notification manager to turn off the lights.
287 mNotificationCallbacks.onPanelRevealed();
Joe Onorato4762c2d2010-05-17 15:42:59 -0700288 }
289
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400290 public void onNotificationClick(String pkg, String tag, int id) {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400291 enforceStatusBarService();
292
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400293 mNotificationCallbacks.onNotificationClick(pkg, tag, id);
294 }
295
Joe Onorato005847b2010-06-04 16:08:02 -0400296 public void onNotificationError(String pkg, String tag, int id, String message) {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400297 enforceStatusBarService();
298
Joe Onorato005847b2010-06-04 16:08:02 -0400299 // WARNING: this will call back into us to do the remove. Don't hold any locks.
300 mNotificationCallbacks.onNotificationError(pkg, tag, id, message);
301 }
302
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400303 public void onClearAllNotifications() {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400304 enforceStatusBarService();
305
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400306 mNotificationCallbacks.onClearAll();
307 }
308
Joe Onorato18e69df2010-05-17 22:26:12 -0700309 // ================================================================================
310 // Callbacks for NotificationManagerService.
311 // ================================================================================
312 public IBinder addNotification(StatusBarNotification notification) {
313 synchronized (mNotifications) {
Joe Onoratoa0c56fe2010-05-20 10:21:52 -0700314 IBinder key = new Binder();
Joe Onorato75199e32010-05-29 17:22:51 -0400315 mNotifications.put(key, notification);
Joe Onoratoe345fff2010-05-23 15:18:27 -0400316 if (mBar != null) {
317 try {
318 mBar.addNotification(key, notification);
319 } catch (RemoteException ex) {
320 }
321 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700322 return key;
323 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700324 }
325
Joe Onorato18e69df2010-05-17 22:26:12 -0700326 public void updateNotification(IBinder key, StatusBarNotification notification) {
327 synchronized (mNotifications) {
Joe Onorato75199e32010-05-29 17:22:51 -0400328 if (!mNotifications.containsKey(key)) {
329 throw new IllegalArgumentException("updateNotification key not found: " + key);
330 }
331 mNotifications.put(key, notification);
Joe Onoratoe345fff2010-05-23 15:18:27 -0400332 if (mBar != null) {
333 try {
334 mBar.updateNotification(key, notification);
335 } catch (RemoteException ex) {
336 }
337 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700338 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700339 }
340
341 public void removeNotification(IBinder key) {
Joe Onorato18e69df2010-05-17 22:26:12 -0700342 synchronized (mNotifications) {
Joe Onorato75199e32010-05-29 17:22:51 -0400343 final StatusBarNotification n = mNotifications.remove(key);
344 if (n == null) {
345 throw new IllegalArgumentException("removeNotification key not found: " + key);
346 }
Joe Onoratoe345fff2010-05-23 15:18:27 -0400347 if (mBar != null) {
348 try {
349 mBar.removeNotification(key);
350 } catch (RemoteException ex) {
351 }
352 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700353 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700354 }
Joe Onorato2314aab2010-04-08 16:41:23 -0500355
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800356 // ================================================================================
357 // Can be called from any thread
358 // ================================================================================
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800359
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800360 // lock on mDisableRecords
361 void manageDisableListLocked(int what, IBinder token, String pkg) {
362 if (SPEW) {
Joe Onoratof3f0e052010-05-14 18:49:29 -0700363 Slog.d(TAG, "manageDisableList what=0x" + Integer.toHexString(what) + " pkg=" + pkg);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800364 }
365 // update the list
366 synchronized (mDisableRecords) {
367 final int N = mDisableRecords.size();
368 DisableRecord tok = null;
369 int i;
370 for (i=0; i<N; i++) {
371 DisableRecord t = mDisableRecords.get(i);
372 if (t.token == token) {
373 tok = t;
374 break;
375 }
376 }
377 if (what == 0 || !token.isBinderAlive()) {
378 if (tok != null) {
379 mDisableRecords.remove(i);
Suchi Amalapurapufff2fda2009-06-30 21:36:16 -0700380 tok.token.unlinkToDeath(tok, 0);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800381 }
382 } else {
383 if (tok == null) {
384 tok = new DisableRecord();
385 try {
386 token.linkToDeath(tok, 0);
387 }
388 catch (RemoteException ex) {
389 return; // give up
390 }
391 mDisableRecords.add(tok);
392 }
393 tok.what = what;
394 tok.token = token;
395 tok.pkg = pkg;
396 }
397 }
398 }
399
400 // lock on mDisableRecords
401 int gatherDisableActionsLocked() {
402 final int N = mDisableRecords.size();
403 // gather the new net flags
404 int net = 0;
405 for (int i=0; i<N; i++) {
406 net |= mDisableRecords.get(i).what;
407 }
408 return net;
409 }
410
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800411 // ================================================================================
412 // Always called from UI thread
413 // ================================================================================
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800414
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800415 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
416 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
417 != PackageManager.PERMISSION_GRANTED) {
418 pw.println("Permission Denial: can't dump StatusBar from from pid="
419 + Binder.getCallingPid()
420 + ", uid=" + Binder.getCallingUid());
421 return;
422 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700423
Joe Onorato0cbda992010-05-02 16:28:15 -0700424 synchronized (mIcons) {
425 mIcons.dump(pw);
426 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700427
428 synchronized (mNotifications) {
Joe Onorato75199e32010-05-29 17:22:51 -0400429 int i=0;
430 pw.println("Notification list:");
431 for (Map.Entry<IBinder,StatusBarNotification> e: mNotifications.entrySet()) {
432 pw.printf(" %2d: %s\n", i, e.getValue().toString());
433 i++;
434 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800435 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700436
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800437 synchronized (mDisableRecords) {
438 final int N = mDisableRecords.size();
439 pw.println(" mDisableRecords.size=" + N
440 + " mDisabled=0x" + Integer.toHexString(mDisabled));
441 for (int i=0; i<N; i++) {
442 DisableRecord tok = mDisableRecords.get(i);
443 pw.println(" [" + i + "] what=0x" + Integer.toHexString(tok.what)
444 + " pkg=" + tok.pkg + " token=" + tok.token);
445 }
446 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800447 }
448
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800449 private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
450 public void onReceive(Context context, Intent intent) {
451 String action = intent.getAction();
Joe Onoratof9e0e6b2009-09-08 16:24:36 -0400452 if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action)
453 || Intent.ACTION_SCREEN_OFF.equals(action)) {
Joe Onoratof3f0e052010-05-14 18:49:29 -0700454 collapse();
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800455 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700456 /*
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800457 else if (Telephony.Intents.SPN_STRINGS_UPDATED_ACTION.equals(action)) {
458 updateNetworkName(intent.getBooleanExtra(Telephony.Intents.EXTRA_SHOW_SPN, false),
459 intent.getStringExtra(Telephony.Intents.EXTRA_SPN),
460 intent.getBooleanExtra(Telephony.Intents.EXTRA_SHOW_PLMN, false),
461 intent.getStringExtra(Telephony.Intents.EXTRA_PLMN));
462 }
463 else if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) {
464 updateResources();
465 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700466 */
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800467 }
468 };
469
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800470}