blob: 4177432c9d37b7d1a5c40988b243c42724300c69 [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();
Dianne Hackborn9d39d0c2010-06-24 15:57:42 -070088 void onNotificationError(String pkg, String tag, int id,
89 int uid, int initialPid, String message);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080090 }
91
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080092 /**
93 * Construct the service, add the status bar view to the window manager
94 */
Joe Onorato089de882010-04-12 08:18:45 -070095 public StatusBarManagerService(Context context) {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080096 mContext = context;
Joe Onorato0cbda992010-05-02 16:28:15 -070097
98 final Resources res = context.getResources();
Joe Onorato75144ea2010-06-07 12:36:25 -070099 mIcons.defineSlots(res.getStringArray(com.android.internal.R.array.config_statusBarIcons));
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800100 }
101
102 public void setNotificationCallbacks(NotificationCallbacks listener) {
103 mNotificationCallbacks = listener;
104 }
105
106 // ================================================================================
107 // Constructing the view
108 // ================================================================================
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800109
110 public void systemReady() {
Joe Onorato2314aab2010-04-08 16:41:23 -0500111 }
112
113 public void systemReady2() {
Joe Onorato9e875fc2010-06-07 11:12:11 -0700114 ComponentName cn = ComponentName.unflattenFromString(
115 mContext.getString(com.android.internal.R.string.config_statusBarComponent));
116 Intent intent = new Intent();
117 intent.setComponent(cn);
118 Slog.i(TAG, "Starting service: " + cn);
119 mContext.startService(intent);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800120 }
Joe Onorato4762c2d2010-05-17 15:42:59 -0700121
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800122 // ================================================================================
Joe Onorato25f95f92010-04-08 18:37:10 -0500123 // From IStatusBarService
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800124 // ================================================================================
Joe Onoratof3f0e052010-05-14 18:49:29 -0700125 public void expand() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800126 enforceExpandStatusBar();
Joe Onorato4762c2d2010-05-17 15:42:59 -0700127
128 if (mBar != null) {
129 try {
130 mBar.animateExpand();
131 } catch (RemoteException ex) {
132 }
133 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800134 }
135
Joe Onoratof3f0e052010-05-14 18:49:29 -0700136 public void collapse() {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800137 enforceExpandStatusBar();
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800138
Joe Onorato4762c2d2010-05-17 15:42:59 -0700139 if (mBar != null) {
140 try {
141 mBar.animateCollapse();
142 } catch (RemoteException ex) {
143 }
144 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800145 }
146
147 public void disable(int what, IBinder token, String pkg) {
148 enforceStatusBar();
Joe Onoratof3f0e052010-05-14 18:49:29 -0700149
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.
154 synchronized (mDisableRecords) {
155 manageDisableListLocked(what, token, pkg);
156 final int net = gatherDisableActionsLocked();
157 Slog.d(TAG, "disable... net=0x" + Integer.toHexString(net));
158 if (net != mDisabled) {
159 mDisabled = net;
160 mHandler.post(new Runnable() {
161 public void run() {
162 mNotificationCallbacks.onSetDisabled(net);
163 }
164 });
165 if (mBar != null) {
166 try {
167 mBar.disable(net);
168 } catch (RemoteException ex) {
169 }
170 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800171 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800172 }
173 }
174
Joe Onorato0cbda992010-05-02 16:28:15 -0700175 public void setIcon(String slot, String iconPackage, int iconId, int iconLevel) {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800176 enforceStatusBar();
Joe Onorato0cbda992010-05-02 16:28:15 -0700177
178 synchronized (mIcons) {
179 int index = mIcons.getSlotIndex(slot);
180 if (index < 0) {
181 throw new SecurityException("invalid status bar icon slot: " + slot);
182 }
183
184 StatusBarIcon icon = new StatusBarIcon(iconPackage, iconId, iconLevel);
Joe Onorato66d7d012010-05-14 10:05:10 -0700185 //Slog.d(TAG, "setIcon slot=" + slot + " index=" + index + " icon=" + icon);
Joe Onorato0cbda992010-05-02 16:28:15 -0700186 mIcons.setIcon(index, icon);
187
Joe Onorato0cbda992010-05-02 16:28:15 -0700188 if (mBar != null) {
189 try {
190 mBar.setIcon(index, icon);
191 } catch (RemoteException ex) {
192 }
193 }
194 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800195 }
196
Joe Onorato0cbda992010-05-02 16:28:15 -0700197 public void setIconVisibility(String slot, boolean visible) {
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800198 enforceStatusBar();
Joe Onorato0cbda992010-05-02 16:28:15 -0700199
Joe Onorato514ad6632010-05-13 18:49:00 -0700200 synchronized (mIcons) {
201 int index = mIcons.getSlotIndex(slot);
202 if (index < 0) {
203 throw new SecurityException("invalid status bar icon slot: " + slot);
204 }
205
206 StatusBarIcon icon = mIcons.getIcon(index);
207 if (icon == null) {
208 return;
209 }
210
211 if (icon.visible != visible) {
212 icon.visible = visible;
213
Joe Onorato514ad6632010-05-13 18:49:00 -0700214 if (mBar != null) {
215 try {
216 mBar.setIcon(index, icon);
217 } catch (RemoteException ex) {
218 }
219 }
220 }
221 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700222 }
223
224 public void removeIcon(String slot) {
225 enforceStatusBar();
226
227 synchronized (mIcons) {
228 int index = mIcons.getSlotIndex(slot);
229 if (index < 0) {
230 throw new SecurityException("invalid status bar icon slot: " + slot);
231 }
232
233 mIcons.removeIcon(index);
234
Joe Onorato0cbda992010-05-02 16:28:15 -0700235 if (mBar != null) {
236 try {
237 mBar.removeIcon(index);
238 } catch (RemoteException ex) {
239 }
240 }
241 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800242 }
243
244 private void enforceStatusBar() {
Joe Onorato0cbda992010-05-02 16:28:15 -0700245 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR,
Joe Onorato089de882010-04-12 08:18:45 -0700246 "StatusBarManagerService");
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800247 }
248
249 private void enforceExpandStatusBar() {
Joe Onorato0cbda992010-05-02 16:28:15 -0700250 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.EXPAND_STATUS_BAR,
Joe Onorato089de882010-04-12 08:18:45 -0700251 "StatusBarManagerService");
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800252 }
253
Joe Onorato8bc6c512010-06-04 16:21:12 -0400254 private void enforceStatusBarService() {
255 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.STATUS_BAR_SERVICE,
256 "StatusBarManagerService");
257 }
258
Joe Onorato4762c2d2010-05-17 15:42:59 -0700259
260 // ================================================================================
261 // Callbacks from the status bar service.
262 // ================================================================================
Joe Onorato75199e32010-05-29 17:22:51 -0400263 public void registerStatusBar(IStatusBar bar, StatusBarIconList iconList,
264 List<IBinder> notificationKeys, List<StatusBarNotification> notifications) {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400265 enforceStatusBarService();
266
Joe Onorato0cbda992010-05-02 16:28:15 -0700267 Slog.i(TAG, "registerStatusBar bar=" + bar);
268 mBar = bar;
Joe Onorato75199e32010-05-29 17:22:51 -0400269 synchronized (mIcons) {
270 iconList.copyFrom(mIcons);
271 }
272 synchronized (mNotifications) {
273 for (Map.Entry<IBinder,StatusBarNotification> e: mNotifications.entrySet()) {
274 notificationKeys.add(e.getKey());
275 notifications.add(e.getValue());
276 }
277 }
Joe Onorato2314aab2010-04-08 16:41:23 -0500278 }
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400279
Joe Onorato4762c2d2010-05-17 15:42:59 -0700280 /**
Joe Onoratof1f25912010-06-07 11:52:41 -0700281 * The status bar service should call this each time the user brings the panel from
282 * invisible to visible in order to clear the notification light.
Joe Onorato4762c2d2010-05-17 15:42:59 -0700283 */
Joe Onoratof1f25912010-06-07 11:52:41 -0700284 public void onPanelRevealed() {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400285 enforceStatusBarService();
286
Joe Onoratof1f25912010-06-07 11:52:41 -0700287 // tell the notification manager to turn off the lights.
288 mNotificationCallbacks.onPanelRevealed();
Joe Onorato4762c2d2010-05-17 15:42:59 -0700289 }
290
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400291 public void onNotificationClick(String pkg, String tag, int id) {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400292 enforceStatusBarService();
293
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400294 mNotificationCallbacks.onNotificationClick(pkg, tag, id);
295 }
296
Dianne Hackborn9d39d0c2010-06-24 15:57:42 -0700297 public void onNotificationError(String pkg, String tag, int id,
298 int uid, int initialPid, String message) {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400299 enforceStatusBarService();
300
Joe Onorato005847b2010-06-04 16:08:02 -0400301 // WARNING: this will call back into us to do the remove. Don't hold any locks.
Dianne Hackborn9d39d0c2010-06-24 15:57:42 -0700302 mNotificationCallbacks.onNotificationError(pkg, tag, id, uid, initialPid, message);
Joe Onorato005847b2010-06-04 16:08:02 -0400303 }
304
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400305 public void onClearAllNotifications() {
Joe Onorato8bc6c512010-06-04 16:21:12 -0400306 enforceStatusBarService();
307
Joe Onoratoaaba60b2010-05-23 15:18:41 -0400308 mNotificationCallbacks.onClearAll();
309 }
310
Joe Onorato18e69df2010-05-17 22:26:12 -0700311 // ================================================================================
312 // Callbacks for NotificationManagerService.
313 // ================================================================================
314 public IBinder addNotification(StatusBarNotification notification) {
315 synchronized (mNotifications) {
Joe Onoratoa0c56fe2010-05-20 10:21:52 -0700316 IBinder key = new Binder();
Joe Onorato75199e32010-05-29 17:22:51 -0400317 mNotifications.put(key, notification);
Joe Onoratoe345fff2010-05-23 15:18:27 -0400318 if (mBar != null) {
319 try {
320 mBar.addNotification(key, notification);
321 } catch (RemoteException ex) {
322 }
323 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700324 return key;
325 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700326 }
327
Joe Onorato18e69df2010-05-17 22:26:12 -0700328 public void updateNotification(IBinder key, StatusBarNotification notification) {
329 synchronized (mNotifications) {
Joe Onorato75199e32010-05-29 17:22:51 -0400330 if (!mNotifications.containsKey(key)) {
331 throw new IllegalArgumentException("updateNotification key not found: " + key);
332 }
333 mNotifications.put(key, notification);
Joe Onoratoe345fff2010-05-23 15:18:27 -0400334 if (mBar != null) {
335 try {
336 mBar.updateNotification(key, notification);
337 } catch (RemoteException ex) {
338 }
339 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700340 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700341 }
342
343 public void removeNotification(IBinder key) {
Joe Onorato18e69df2010-05-17 22:26:12 -0700344 synchronized (mNotifications) {
Joe Onorato75199e32010-05-29 17:22:51 -0400345 final StatusBarNotification n = mNotifications.remove(key);
346 if (n == null) {
347 throw new IllegalArgumentException("removeNotification key not found: " + key);
348 }
Joe Onoratoe345fff2010-05-23 15:18:27 -0400349 if (mBar != null) {
350 try {
351 mBar.removeNotification(key);
352 } catch (RemoteException ex) {
353 }
354 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700355 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700356 }
Joe Onorato2314aab2010-04-08 16:41:23 -0500357
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800358 // ================================================================================
359 // Can be called from any thread
360 // ================================================================================
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800361
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800362 // lock on mDisableRecords
363 void manageDisableListLocked(int what, IBinder token, String pkg) {
364 if (SPEW) {
Joe Onoratof3f0e052010-05-14 18:49:29 -0700365 Slog.d(TAG, "manageDisableList what=0x" + Integer.toHexString(what) + " pkg=" + pkg);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800366 }
367 // update the list
368 synchronized (mDisableRecords) {
369 final int N = mDisableRecords.size();
370 DisableRecord tok = null;
371 int i;
372 for (i=0; i<N; i++) {
373 DisableRecord t = mDisableRecords.get(i);
374 if (t.token == token) {
375 tok = t;
376 break;
377 }
378 }
379 if (what == 0 || !token.isBinderAlive()) {
380 if (tok != null) {
381 mDisableRecords.remove(i);
Suchi Amalapurapufff2fda2009-06-30 21:36:16 -0700382 tok.token.unlinkToDeath(tok, 0);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800383 }
384 } else {
385 if (tok == null) {
386 tok = new DisableRecord();
387 try {
388 token.linkToDeath(tok, 0);
389 }
390 catch (RemoteException ex) {
391 return; // give up
392 }
393 mDisableRecords.add(tok);
394 }
395 tok.what = what;
396 tok.token = token;
397 tok.pkg = pkg;
398 }
399 }
400 }
401
402 // lock on mDisableRecords
403 int gatherDisableActionsLocked() {
404 final int N = mDisableRecords.size();
405 // gather the new net flags
406 int net = 0;
407 for (int i=0; i<N; i++) {
408 net |= mDisableRecords.get(i).what;
409 }
410 return net;
411 }
412
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800413 // ================================================================================
414 // Always called from UI thread
415 // ================================================================================
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800416
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800417 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
418 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
419 != PackageManager.PERMISSION_GRANTED) {
420 pw.println("Permission Denial: can't dump StatusBar from from pid="
421 + Binder.getCallingPid()
422 + ", uid=" + Binder.getCallingUid());
423 return;
424 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700425
Joe Onorato0cbda992010-05-02 16:28:15 -0700426 synchronized (mIcons) {
427 mIcons.dump(pw);
428 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700429
430 synchronized (mNotifications) {
Joe Onorato75199e32010-05-29 17:22:51 -0400431 int i=0;
432 pw.println("Notification list:");
433 for (Map.Entry<IBinder,StatusBarNotification> e: mNotifications.entrySet()) {
434 pw.printf(" %2d: %s\n", i, e.getValue().toString());
435 i++;
436 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800437 }
Joe Onorato18e69df2010-05-17 22:26:12 -0700438
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800439 synchronized (mDisableRecords) {
440 final int N = mDisableRecords.size();
441 pw.println(" mDisableRecords.size=" + N
442 + " mDisabled=0x" + Integer.toHexString(mDisabled));
443 for (int i=0; i<N; i++) {
444 DisableRecord tok = mDisableRecords.get(i);
445 pw.println(" [" + i + "] what=0x" + Integer.toHexString(tok.what)
446 + " pkg=" + tok.pkg + " token=" + tok.token);
447 }
448 }
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800449 }
450
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800451 private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
452 public void onReceive(Context context, Intent intent) {
453 String action = intent.getAction();
Joe Onoratof9e0e6b2009-09-08 16:24:36 -0400454 if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(action)
455 || Intent.ACTION_SCREEN_OFF.equals(action)) {
Joe Onoratof3f0e052010-05-14 18:49:29 -0700456 collapse();
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800457 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700458 /*
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800459 else if (Telephony.Intents.SPN_STRINGS_UPDATED_ACTION.equals(action)) {
460 updateNetworkName(intent.getBooleanExtra(Telephony.Intents.EXTRA_SHOW_SPN, false),
461 intent.getStringExtra(Telephony.Intents.EXTRA_SPN),
462 intent.getBooleanExtra(Telephony.Intents.EXTRA_SHOW_PLMN, false),
463 intent.getStringExtra(Telephony.Intents.EXTRA_PLMN));
464 }
465 else if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) {
466 updateResources();
467 }
Joe Onorato0cbda992010-05-02 16:28:15 -0700468 */
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800469 }
470 };
471
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800472}