Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 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 | |
| 17 | package com.android.server; |
| 18 | |
Daniel Sandler | 0e9d2af | 2010-01-25 11:33:03 -0500 | [diff] [blame] | 19 | import android.content.ContentResolver; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 20 | import android.content.Context; |
| 21 | import android.content.Intent; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 22 | import android.content.pm.PackageManager; |
Daniel Sandler | ec2c88d | 2010-02-20 01:04:57 -0500 | [diff] [blame] | 23 | import android.media.AudioManager; |
Daniel Sandler | 0e9d2af | 2010-01-25 11:33:03 -0500 | [diff] [blame] | 24 | import android.media.Ringtone; |
| 25 | import android.media.RingtoneManager; |
| 26 | import android.net.Uri; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 27 | import android.os.Binder; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 28 | import android.os.Handler; |
| 29 | import android.os.Message; |
Jeff Brown | 9630704 | 2012-07-27 15:51:34 -0700 | [diff] [blame] | 30 | import android.os.PowerManager; |
Ken Schultz | f02c074 | 2009-09-10 18:37:37 -0500 | [diff] [blame] | 31 | import android.os.SystemClock; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 32 | import android.os.UEventObserver; |
Dianne Hackborn | 5ac72a2 | 2012-08-29 18:32:08 -0700 | [diff] [blame] | 33 | import android.os.UserHandle; |
Dianne Hackborn | 4949334 | 2009-10-02 10:44:41 -0700 | [diff] [blame] | 34 | import android.provider.Settings; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 35 | import android.util.Log; |
Joe Onorato | 8a9b220 | 2010-02-26 18:56:32 -0800 | [diff] [blame] | 36 | import android.util.Slog; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 37 | |
Jeff Sharkey | fe9a53b | 2017-03-31 14:08:23 -0600 | [diff] [blame] | 38 | import com.android.internal.util.DumpUtils; |
| 39 | |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 40 | import java.io.FileDescriptor; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 41 | import java.io.FileNotFoundException; |
Jaikumar Ganesh | 3fbf7b6 | 2009-12-02 17:28:38 -0800 | [diff] [blame] | 42 | import java.io.FileReader; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 43 | import java.io.PrintWriter; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 44 | |
| 45 | /** |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 46 | * DockObserver monitors for a docking station. |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 47 | */ |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 48 | final class DockObserver extends SystemService { |
| 49 | private static final String TAG = "DockObserver"; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 50 | |
| 51 | private static final String DOCK_UEVENT_MATCH = "DEVPATH=/devices/virtual/switch/dock"; |
| 52 | private static final String DOCK_STATE_PATH = "/sys/class/switch/dock/state"; |
| 53 | |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 54 | private static final int MSG_DOCK_STATE_CHANGED = 0; |
| 55 | |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 56 | private final PowerManager mPowerManager; |
| 57 | private final PowerManager.WakeLock mWakeLock; |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 58 | |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 59 | private final Object mLock = new Object(); |
Tobias Haamel | 27b28b3 | 2010-02-09 23:09:17 +0100 | [diff] [blame] | 60 | |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 61 | private boolean mSystemReady; |
| 62 | |
| 63 | private int mActualDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED; |
| 64 | |
| 65 | private int mReportedDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED; |
| 66 | private int mPreviousDockState = Intent.EXTRA_DOCK_STATE_UNDOCKED; |
| 67 | |
| 68 | private boolean mUpdatesStopped; |
| 69 | |
Bryce Lee | 584a445 | 2014-10-21 15:55:55 -0700 | [diff] [blame] | 70 | private final boolean mAllowTheaterModeWakeFromDock; |
| 71 | |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 72 | public DockObserver(Context context) { |
| 73 | super(context); |
| 74 | |
| 75 | mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 76 | mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); |
Bryce Lee | 584a445 | 2014-10-21 15:55:55 -0700 | [diff] [blame] | 77 | mAllowTheaterModeWakeFromDock = context.getResources().getBoolean( |
| 78 | com.android.internal.R.bool.config_allowTheaterModeWakeFromDock); |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 79 | |
| 80 | init(); // set initial status |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 81 | |
| 82 | mObserver.startObserving(DOCK_UEVENT_MATCH); |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | @Override |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 86 | public void onStart() { |
| 87 | publishBinderService(TAG, new BinderService()); |
| 88 | } |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 89 | |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 90 | @Override |
| 91 | public void onBootPhase(int phase) { |
| 92 | if (phase == PHASE_ACTIVITY_MANAGER_READY) { |
| 93 | synchronized (mLock) { |
| 94 | mSystemReady = true; |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 95 | |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 96 | // don't bother broadcasting undocked here |
| 97 | if (mReportedDockState != Intent.EXTRA_DOCK_STATE_UNDOCKED) { |
| 98 | updateLocked(); |
Mike Lockwood | d0e82ce | 2009-08-27 16:19:07 -0700 | [diff] [blame] | 99 | } |
Mike Lockwood | d0e82ce | 2009-08-27 16:19:07 -0700 | [diff] [blame] | 100 | } |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 101 | } |
| 102 | } |
| 103 | |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 104 | private void init() { |
| 105 | synchronized (mLock) { |
| 106 | try { |
| 107 | char[] buffer = new char[1024]; |
| 108 | FileReader file = new FileReader(DOCK_STATE_PATH); |
| 109 | try { |
| 110 | int len = file.read(buffer, 0, 1024); |
Narayan Kamath | a09b4d2 | 2016-04-15 18:32:45 +0100 | [diff] [blame] | 111 | setActualDockStateLocked(Integer.parseInt((new String(buffer, 0, len)).trim())); |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 112 | mPreviousDockState = mActualDockState; |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 113 | } finally { |
| 114 | file.close(); |
| 115 | } |
| 116 | } catch (FileNotFoundException e) { |
| 117 | Slog.w(TAG, "This kernel does not have dock station support"); |
| 118 | } catch (Exception e) { |
| 119 | Slog.e(TAG, "" , e); |
| 120 | } |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 121 | } |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 122 | } |
| 123 | |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 124 | private void setActualDockStateLocked(int newState) { |
| 125 | mActualDockState = newState; |
| 126 | if (!mUpdatesStopped) { |
| 127 | setDockStateLocked(newState); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | private void setDockStateLocked(int newState) { |
| 132 | if (newState != mReportedDockState) { |
| 133 | mReportedDockState = newState; |
| 134 | if (mSystemReady) { |
Bryce Lee | 584a445 | 2014-10-21 15:55:55 -0700 | [diff] [blame] | 135 | // Wake up immediately when docked or undocked except in theater mode. |
| 136 | if (mAllowTheaterModeWakeFromDock |
| 137 | || Settings.Global.getInt(getContext().getContentResolver(), |
| 138 | Settings.Global.THEATER_MODE_ON, 0) == 0) { |
Dianne Hackborn | 280a64e | 2015-07-13 14:48:08 -0700 | [diff] [blame] | 139 | mPowerManager.wakeUp(SystemClock.uptimeMillis(), |
| 140 | "android.server:DOCK"); |
Bryce Lee | 584a445 | 2014-10-21 15:55:55 -0700 | [diff] [blame] | 141 | } |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 142 | updateLocked(); |
Mike Lockwood | d0e82ce | 2009-08-27 16:19:07 -0700 | [diff] [blame] | 143 | } |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 144 | } |
| 145 | } |
| 146 | |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 147 | private void updateLocked() { |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 148 | mWakeLock.acquire(); |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 149 | mHandler.sendEmptyMessage(MSG_DOCK_STATE_CHANGED); |
| 150 | } |
| 151 | |
| 152 | private void handleDockStateChange() { |
| 153 | synchronized (mLock) { |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 154 | Slog.i(TAG, "Dock state changed from " + mPreviousDockState + " to " |
| 155 | + mReportedDockState); |
| 156 | final int previousDockState = mPreviousDockState; |
| 157 | mPreviousDockState = mReportedDockState; |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 158 | |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 159 | // Skip the dock intent if not yet provisioned. |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 160 | final ContentResolver cr = getContext().getContentResolver(); |
Jeff Brown | bf6f6f9 | 2012-09-25 15:03:20 -0700 | [diff] [blame] | 161 | if (Settings.Global.getInt(cr, |
| 162 | Settings.Global.DEVICE_PROVISIONED, 0) == 0) { |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 163 | Slog.i(TAG, "Device not provisioned, skipping dock broadcast"); |
| 164 | return; |
| 165 | } |
| 166 | |
| 167 | // Pack up the values and broadcast them to everyone |
| 168 | Intent intent = new Intent(Intent.ACTION_DOCK_EVENT); |
| 169 | intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 170 | intent.putExtra(Intent.EXTRA_DOCK_STATE, mReportedDockState); |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 171 | |
Vinod Krishnan | cf11cea | 2016-10-20 22:57:02 -0700 | [diff] [blame] | 172 | boolean dockSoundsEnabled = Settings.Global.getInt(cr, |
| 173 | Settings.Global.DOCK_SOUNDS_ENABLED, 1) == 1; |
| 174 | boolean dockSoundsEnabledWhenAccessibility = Settings.Global.getInt(cr, |
| 175 | Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY, 1) == 1; |
| 176 | boolean accessibilityEnabled = Settings.Secure.getInt(cr, |
| 177 | Settings.Secure.ACCESSIBILITY_ENABLED, 0) == 1; |
| 178 | |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 179 | // Play a sound to provide feedback to confirm dock connection. |
| 180 | // Particularly useful for flaky contact pins... |
Vinod Krishnan | cf11cea | 2016-10-20 22:57:02 -0700 | [diff] [blame] | 181 | if ((dockSoundsEnabled) || |
| 182 | (accessibilityEnabled && dockSoundsEnabledWhenAccessibility)) { |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 183 | String whichSound = null; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 184 | if (mReportedDockState == Intent.EXTRA_DOCK_STATE_UNDOCKED) { |
| 185 | if ((previousDockState == Intent.EXTRA_DOCK_STATE_DESK) || |
| 186 | (previousDockState == Intent.EXTRA_DOCK_STATE_LE_DESK) || |
| 187 | (previousDockState == Intent.EXTRA_DOCK_STATE_HE_DESK)) { |
Jeff Brown | bf6f6f9 | 2012-09-25 15:03:20 -0700 | [diff] [blame] | 188 | whichSound = Settings.Global.DESK_UNDOCK_SOUND; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 189 | } else if (previousDockState == Intent.EXTRA_DOCK_STATE_CAR) { |
Jeff Brown | bf6f6f9 | 2012-09-25 15:03:20 -0700 | [diff] [blame] | 190 | whichSound = Settings.Global.CAR_UNDOCK_SOUND; |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 191 | } |
| 192 | } else { |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 193 | if ((mReportedDockState == Intent.EXTRA_DOCK_STATE_DESK) || |
| 194 | (mReportedDockState == Intent.EXTRA_DOCK_STATE_LE_DESK) || |
| 195 | (mReportedDockState == Intent.EXTRA_DOCK_STATE_HE_DESK)) { |
Jeff Brown | bf6f6f9 | 2012-09-25 15:03:20 -0700 | [diff] [blame] | 196 | whichSound = Settings.Global.DESK_DOCK_SOUND; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 197 | } else if (mReportedDockState == Intent.EXTRA_DOCK_STATE_CAR) { |
Jeff Brown | bf6f6f9 | 2012-09-25 15:03:20 -0700 | [diff] [blame] | 198 | whichSound = Settings.Global.CAR_DOCK_SOUND; |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 199 | } |
| 200 | } |
| 201 | |
| 202 | if (whichSound != null) { |
Jeff Brown | bf6f6f9 | 2012-09-25 15:03:20 -0700 | [diff] [blame] | 203 | final String soundPath = Settings.Global.getString(cr, whichSound); |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 204 | if (soundPath != null) { |
| 205 | final Uri soundUri = Uri.parse("file://" + soundPath); |
| 206 | if (soundUri != null) { |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 207 | final Ringtone sfx = RingtoneManager.getRingtone( |
| 208 | getContext(), soundUri); |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 209 | if (sfx != null) { |
| 210 | sfx.setStreamType(AudioManager.STREAM_SYSTEM); |
| 211 | sfx.play(); |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | |
Jeff Brown | 62c82e4 | 2012-09-26 01:30:41 -0700 | [diff] [blame] | 218 | // Send the dock event intent. |
| 219 | // There are many components in the system watching for this so as to |
| 220 | // adjust audio routing, screen orientation, etc. |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 221 | getContext().sendStickyBroadcastAsUser(intent, UserHandle.ALL); |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 222 | } |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 223 | } |
| 224 | |
Jeff Brown | a2910d0 | 2012-08-25 12:29:46 -0700 | [diff] [blame] | 225 | private final Handler mHandler = new Handler(true /*async*/) { |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 226 | @Override |
| 227 | public void handleMessage(Message msg) { |
Bernd Holzhey | bfca3a0 | 2010-02-10 17:39:51 +0100 | [diff] [blame] | 228 | switch (msg.what) { |
Jeff Brown | 008b176 | 2012-08-20 20:15:34 -0700 | [diff] [blame] | 229 | case MSG_DOCK_STATE_CHANGED: |
| 230 | handleDockStateChange(); |
Prashant Malani | 7450614 | 2014-08-06 16:49:53 -0700 | [diff] [blame] | 231 | mWakeLock.release(); |
Bernd Holzhey | bfca3a0 | 2010-02-10 17:39:51 +0100 | [diff] [blame] | 232 | break; |
| 233 | } |
| 234 | } |
Tobias Haamel | 27b28b3 | 2010-02-09 23:09:17 +0100 | [diff] [blame] | 235 | }; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 236 | |
| 237 | private final UEventObserver mObserver = new UEventObserver() { |
| 238 | @Override |
| 239 | public void onUEvent(UEventObserver.UEvent event) { |
| 240 | if (Log.isLoggable(TAG, Log.VERBOSE)) { |
| 241 | Slog.v(TAG, "Dock UEVENT: " + event.toString()); |
| 242 | } |
| 243 | |
| 244 | try { |
| 245 | synchronized (mLock) { |
| 246 | setActualDockStateLocked(Integer.parseInt(event.get("SWITCH_STATE"))); |
| 247 | } |
| 248 | } catch (NumberFormatException e) { |
| 249 | Slog.e(TAG, "Could not parse switch state from event " + event); |
| 250 | } |
| 251 | } |
| 252 | }; |
| 253 | |
| 254 | private final class BinderService extends Binder { |
| 255 | @Override |
| 256 | protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { |
Jeff Sharkey | fe9a53b | 2017-03-31 14:08:23 -0600 | [diff] [blame] | 257 | if (!DumpUtils.checkDumpPermission(getContext(), TAG, pw)) return; |
Jeff Brown | 010e561 | 2014-05-29 17:48:33 -0700 | [diff] [blame] | 258 | final long ident = Binder.clearCallingIdentity(); |
| 259 | try { |
| 260 | synchronized (mLock) { |
| 261 | if (args == null || args.length == 0 || "-a".equals(args[0])) { |
| 262 | pw.println("Current Dock Observer Service state:"); |
| 263 | if (mUpdatesStopped) { |
| 264 | pw.println(" (UPDATES STOPPED -- use 'reset' to restart)"); |
| 265 | } |
| 266 | pw.println(" reported state: " + mReportedDockState); |
| 267 | pw.println(" previous state: " + mPreviousDockState); |
| 268 | pw.println(" actual state: " + mActualDockState); |
| 269 | } else if (args.length == 3 && "set".equals(args[0])) { |
| 270 | String key = args[1]; |
| 271 | String value = args[2]; |
| 272 | try { |
| 273 | if ("state".equals(key)) { |
| 274 | mUpdatesStopped = true; |
| 275 | setDockStateLocked(Integer.parseInt(value)); |
| 276 | } else { |
| 277 | pw.println("Unknown set option: " + key); |
| 278 | } |
| 279 | } catch (NumberFormatException ex) { |
| 280 | pw.println("Bad value: " + value); |
| 281 | } |
| 282 | } else if (args.length == 1 && "reset".equals(args[0])) { |
| 283 | mUpdatesStopped = false; |
| 284 | setDockStateLocked(mActualDockState); |
| 285 | } else { |
| 286 | pw.println("Dump current dock state, or:"); |
| 287 | pw.println(" set state <value>"); |
| 288 | pw.println(" reset"); |
| 289 | } |
| 290 | } |
| 291 | } finally { |
| 292 | Binder.restoreCallingIdentity(ident); |
| 293 | } |
| 294 | } |
| 295 | } |
Dan Murphy | c9f4eaf | 2009-08-12 15:15:43 -0500 | [diff] [blame] | 296 | } |