The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [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 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 17 | package com.android.launcher3; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 18 | |
Michael Jurka | a805e1a | 2013-08-22 15:00:33 +0200 | [diff] [blame] | 19 | import android.app.Activity; |
| 20 | import android.content.ActivityNotFoundException; |
Winson Chung | aafa03c | 2010-06-11 17:34:16 -0700 | [diff] [blame] | 21 | import android.content.Context; |
Michael Jurka | a805e1a | 2013-08-22 15:00:33 +0200 | [diff] [blame] | 22 | import android.content.Intent; |
Winson Chung | aafa03c | 2010-06-11 17:34:16 -0700 | [diff] [blame] | 23 | import android.content.res.Resources; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 24 | import android.graphics.Bitmap; |
Joe Onorato | 1291a8c | 2009-09-15 15:07:25 -0400 | [diff] [blame] | 25 | import android.graphics.BlurMaskFilter; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 26 | import android.graphics.Canvas; |
Joe Onorato | 56d8291 | 2010-03-07 14:32:10 -0500 | [diff] [blame] | 27 | import android.graphics.ColorMatrix; |
| 28 | import android.graphics.ColorMatrixColorFilter; |
Winson Chung | c763c4e | 2013-07-19 13:49:06 -0700 | [diff] [blame] | 29 | import android.graphics.Matrix; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 30 | import android.graphics.Paint; |
Joe Onorato | bf15cb4 | 2009-08-07 14:33:40 -0700 | [diff] [blame] | 31 | import android.graphics.PaintFlagsDrawFilter; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 32 | import android.graphics.Rect; |
Winson Chung | aafa03c | 2010-06-11 17:34:16 -0700 | [diff] [blame] | 33 | import android.graphics.drawable.BitmapDrawable; |
| 34 | import android.graphics.drawable.Drawable; |
| 35 | import android.graphics.drawable.PaintDrawable; |
Dianne Hackborn | 32ce7f1 | 2009-07-22 21:56:50 -0700 | [diff] [blame] | 36 | import android.util.DisplayMetrics; |
Michael Jurka | a805e1a | 2013-08-22 15:00:33 +0200 | [diff] [blame] | 37 | import android.util.Log; |
Winson Chung | c763c4e | 2013-07-19 13:49:06 -0700 | [diff] [blame] | 38 | import android.view.View; |
Michael Jurka | a805e1a | 2013-08-22 15:00:33 +0200 | [diff] [blame] | 39 | import android.widget.Toast; |
Winson Chung | c763c4e | 2013-07-19 13:49:06 -0700 | [diff] [blame] | 40 | |
| 41 | import java.util.ArrayList; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 42 | |
| 43 | /** |
| 44 | * Various utilities shared amongst the Launcher's classes. |
| 45 | */ |
| 46 | final class Utilities { |
Joe Onorato | 1291a8c | 2009-09-15 15:07:25 -0400 | [diff] [blame] | 47 | private static final String TAG = "Launcher.Utilities"; |
| 48 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 49 | private static int sIconWidth = -1; |
| 50 | private static int sIconHeight = -1; |
Adam Cohen | 61f560d | 2013-09-30 15:58:20 -0700 | [diff] [blame] | 51 | public static int sIconTextureWidth = -1; |
| 52 | public static int sIconTextureHeight = -1; |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 53 | |
Joe Onorato | 1291a8c | 2009-09-15 15:07:25 -0400 | [diff] [blame] | 54 | private static final Paint sBlurPaint = new Paint(); |
Joe Onorato | eb8325a | 2009-11-08 13:20:30 -0500 | [diff] [blame] | 55 | private static final Paint sGlowColorPressedPaint = new Paint(); |
Joe Onorato | c61cff9 | 2009-11-08 11:54:39 -0500 | [diff] [blame] | 56 | private static final Paint sGlowColorFocusedPaint = new Paint(); |
Joe Onorato | 56d8291 | 2010-03-07 14:32:10 -0500 | [diff] [blame] | 57 | private static final Paint sDisabledPaint = new Paint(); |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 58 | private static final Rect sOldBounds = new Rect(); |
Romain Guy | 89911d2 | 2009-09-28 18:48:49 -0700 | [diff] [blame] | 59 | private static final Canvas sCanvas = new Canvas(); |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 60 | |
| 61 | static { |
| 62 | sCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, |
| 63 | Paint.FILTER_BITMAP_FLAG)); |
| 64 | } |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 65 | static int sColors[] = { 0xffff0000, 0xff00ff00, 0xff0000ff }; |
| 66 | static int sColorIndex = 0; |
| 67 | |
| 68 | /** |
Winson Chung | 0dbd734 | 2013-10-13 22:46:20 -0700 | [diff] [blame^] | 69 | * Returns a FastBitmapDrawable with the icon, accurately sized. |
| 70 | */ |
| 71 | static Drawable createIconDrawable(Bitmap icon) { |
| 72 | FastBitmapDrawable d = new FastBitmapDrawable(icon); |
| 73 | resizeIconDrawable(d); |
| 74 | return d; |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Resizes an icon drawable to the correct icon size. |
| 79 | */ |
| 80 | static void resizeIconDrawable(Drawable icon) { |
| 81 | icon.setBounds(0, 0, sIconTextureWidth, sIconTextureHeight); |
| 82 | } |
| 83 | |
| 84 | /** |
Michael Jurka | 931dc97 | 2011-08-05 15:08:15 -0700 | [diff] [blame] | 85 | * Returns a bitmap suitable for the all apps view. Used to convert pre-ICS |
| 86 | * icon bitmaps that are stored in the database (which were 74x74 pixels at hdpi size) |
| 87 | * to the proper size (48dp) |
| 88 | */ |
| 89 | static Bitmap createIconBitmap(Bitmap icon, Context context) { |
| 90 | int textureWidth = sIconTextureWidth; |
| 91 | int textureHeight = sIconTextureHeight; |
| 92 | int sourceWidth = icon.getWidth(); |
| 93 | int sourceHeight = icon.getHeight(); |
| 94 | if (sourceWidth > textureWidth && sourceHeight > textureHeight) { |
| 95 | // Icon is bigger than it should be; clip it (solves the GB->ICS migration case) |
| 96 | return Bitmap.createBitmap(icon, |
| 97 | (sourceWidth - textureWidth) / 2, |
| 98 | (sourceHeight - textureHeight) / 2, |
| 99 | textureWidth, textureHeight); |
| 100 | } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) { |
| 101 | // Icon is the right size, no need to change it |
| 102 | return icon; |
| 103 | } else { |
| 104 | // Icon is too small, render to a larger bitmap |
Michael Jurka | 3a9fced | 2012-04-13 14:44:29 -0700 | [diff] [blame] | 105 | final Resources resources = context.getResources(); |
| 106 | return createIconBitmap(new BitmapDrawable(resources, icon), context); |
Michael Jurka | 931dc97 | 2011-08-05 15:08:15 -0700 | [diff] [blame] | 107 | } |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Returns a bitmap suitable for the all apps view. |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 112 | */ |
Joe Onorato | 0589f0f | 2010-02-08 13:44:00 -0800 | [diff] [blame] | 113 | static Bitmap createIconBitmap(Drawable icon, Context context) { |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 114 | synchronized (sCanvas) { // we share the statics :-( |
| 115 | if (sIconWidth == -1) { |
| 116 | initStatics(context); |
| 117 | } |
| 118 | |
| 119 | int width = sIconWidth; |
| 120 | int height = sIconHeight; |
| 121 | |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 122 | if (icon instanceof PaintDrawable) { |
| 123 | PaintDrawable painter = (PaintDrawable) icon; |
| 124 | painter.setIntrinsicWidth(width); |
| 125 | painter.setIntrinsicHeight(height); |
| 126 | } else if (icon instanceof BitmapDrawable) { |
| 127 | // Ensure the bitmap has a density. |
| 128 | BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; |
| 129 | Bitmap bitmap = bitmapDrawable.getBitmap(); |
| 130 | if (bitmap.getDensity() == Bitmap.DENSITY_NONE) { |
| 131 | bitmapDrawable.setTargetDensity(context.getResources().getDisplayMetrics()); |
| 132 | } |
| 133 | } |
| 134 | int sourceWidth = icon.getIntrinsicWidth(); |
| 135 | int sourceHeight = icon.getIntrinsicHeight(); |
Michael Jurka | 931dc97 | 2011-08-05 15:08:15 -0700 | [diff] [blame] | 136 | if (sourceWidth > 0 && sourceHeight > 0) { |
Winson Chung | 5f8afe6 | 2013-08-12 16:19:28 -0700 | [diff] [blame] | 137 | // Scale the icon proportionally to the icon dimensions |
| 138 | final float ratio = (float) sourceWidth / sourceHeight; |
| 139 | if (sourceWidth > sourceHeight) { |
| 140 | height = (int) (width / ratio); |
| 141 | } else if (sourceHeight > sourceWidth) { |
| 142 | width = (int) (height * ratio); |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 143 | } |
| 144 | } |
| 145 | |
| 146 | // no intrinsic size --> use default size |
| 147 | int textureWidth = sIconTextureWidth; |
| 148 | int textureHeight = sIconTextureHeight; |
| 149 | |
| 150 | final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, |
| 151 | Bitmap.Config.ARGB_8888); |
| 152 | final Canvas canvas = sCanvas; |
| 153 | canvas.setBitmap(bitmap); |
| 154 | |
| 155 | final int left = (textureWidth-width) / 2; |
| 156 | final int top = (textureHeight-height) / 2; |
| 157 | |
Michael Jurka | 3a9fced | 2012-04-13 14:44:29 -0700 | [diff] [blame] | 158 | @SuppressWarnings("all") // suppress dead code warning |
| 159 | final boolean debug = false; |
| 160 | if (debug) { |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 161 | // draw a big box for the icon for debugging |
| 162 | canvas.drawColor(sColors[sColorIndex]); |
| 163 | if (++sColorIndex >= sColors.length) sColorIndex = 0; |
| 164 | Paint debugPaint = new Paint(); |
| 165 | debugPaint.setColor(0xffcccc00); |
| 166 | canvas.drawRect(left, top, left+width, top+height, debugPaint); |
| 167 | } |
| 168 | |
| 169 | sOldBounds.set(icon.getBounds()); |
| 170 | icon.setBounds(left, top, left+width, top+height); |
| 171 | icon.draw(canvas); |
| 172 | icon.setBounds(sOldBounds); |
Adam Cohen | aaf473c | 2011-08-03 12:02:47 -0700 | [diff] [blame] | 173 | canvas.setBitmap(null); |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 174 | |
| 175 | return bitmap; |
| 176 | } |
| 177 | } |
| 178 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 179 | /** |
| 180 | * Returns a Bitmap representing the thumbnail of the specified Bitmap. |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 181 | * |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 182 | * @param bitmap The bitmap to get a thumbnail of. |
| 183 | * @param context The application's context. |
| 184 | * |
| 185 | * @return A thumbnail for the specified bitmap or the bitmap itself if the |
| 186 | * thumbnail could not be created. |
| 187 | */ |
Joe Onorato | 0589f0f | 2010-02-08 13:44:00 -0800 | [diff] [blame] | 188 | static Bitmap resampleIconBitmap(Bitmap bitmap, Context context) { |
Joe Onorato | 9c1289c | 2009-08-17 11:03:03 -0400 | [diff] [blame] | 189 | synchronized (sCanvas) { // we share the statics :-( |
| 190 | if (sIconWidth == -1) { |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 191 | initStatics(context); |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 192 | } |
| 193 | |
Joe Onorato | 0589f0f | 2010-02-08 13:44:00 -0800 | [diff] [blame] | 194 | if (bitmap.getWidth() == sIconWidth && bitmap.getHeight() == sIconHeight) { |
| 195 | return bitmap; |
| 196 | } else { |
Michael Jurka | 3a9fced | 2012-04-13 14:44:29 -0700 | [diff] [blame] | 197 | final Resources resources = context.getResources(); |
| 198 | return createIconBitmap(new BitmapDrawable(resources, bitmap), context); |
Joe Onorato | 9c1289c | 2009-08-17 11:03:03 -0400 | [diff] [blame] | 199 | } |
Joe Onorato | 9c1289c | 2009-08-17 11:03:03 -0400 | [diff] [blame] | 200 | } |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 201 | } |
Joe Onorato | bf15cb4 | 2009-08-07 14:33:40 -0700 | [diff] [blame] | 202 | |
Winson Chung | c763c4e | 2013-07-19 13:49:06 -0700 | [diff] [blame] | 203 | /** |
| 204 | * Given a coordinate relative to the descendant, find the coordinate in a parent view's |
| 205 | * coordinates. |
| 206 | * |
| 207 | * @param descendant The descendant to which the passed coordinate is relative. |
| 208 | * @param root The root view to make the coordinates relative to. |
| 209 | * @param coord The coordinate that we want mapped. |
| 210 | * @param includeRootScroll Whether or not to account for the scroll of the descendant: |
| 211 | * sometimes this is relevant as in a child's coordinates within the descendant. |
| 212 | * @return The factor by which this descendant is scaled relative to this DragLayer. Caution |
| 213 | * this scale factor is assumed to be equal in X and Y, and so if at any point this |
| 214 | * assumption fails, we will need to return a pair of scale factors. |
| 215 | */ |
| 216 | public static float getDescendantCoordRelativeToParent(View descendant, View root, |
| 217 | int[] coord, boolean includeRootScroll) { |
| 218 | ArrayList<View> ancestorChain = new ArrayList<View>(); |
| 219 | |
| 220 | float[] pt = {coord[0], coord[1]}; |
| 221 | |
| 222 | View v = descendant; |
| 223 | while(v != root && v != null) { |
| 224 | ancestorChain.add(v); |
| 225 | v = (View) v.getParent(); |
| 226 | } |
| 227 | ancestorChain.add(root); |
| 228 | |
| 229 | float scale = 1.0f; |
| 230 | int count = ancestorChain.size(); |
| 231 | for (int i = 0; i < count; i++) { |
| 232 | View v0 = ancestorChain.get(i); |
Winson Chung | c763c4e | 2013-07-19 13:49:06 -0700 | [diff] [blame] | 233 | // For TextViews, scroll has a meaning which relates to the text position |
| 234 | // which is very strange... ignore the scroll. |
| 235 | if (v0 != descendant || includeRootScroll) { |
| 236 | pt[0] -= v0.getScrollX(); |
| 237 | pt[1] -= v0.getScrollY(); |
| 238 | } |
| 239 | |
| 240 | v0.getMatrix().mapPoints(pt); |
| 241 | pt[0] += v0.getLeft(); |
| 242 | pt[1] += v0.getTop(); |
| 243 | scale *= v0.getScaleX(); |
| 244 | } |
| 245 | |
| 246 | coord[0] = (int) Math.round(pt[0]); |
| 247 | coord[1] = (int) Math.round(pt[1]); |
| 248 | return scale; |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Inverse of {@link #getDescendantCoordRelativeToSelf(View, int[])}. |
| 253 | */ |
| 254 | public static float mapCoordInSelfToDescendent(View descendant, View root, |
| 255 | int[] coord) { |
| 256 | ArrayList<View> ancestorChain = new ArrayList<View>(); |
| 257 | |
| 258 | float[] pt = {coord[0], coord[1]}; |
| 259 | |
| 260 | View v = descendant; |
| 261 | while(v != root) { |
| 262 | ancestorChain.add(v); |
| 263 | v = (View) v.getParent(); |
| 264 | } |
| 265 | ancestorChain.add(root); |
| 266 | |
| 267 | float scale = 1.0f; |
| 268 | Matrix inverse = new Matrix(); |
| 269 | int count = ancestorChain.size(); |
| 270 | for (int i = count - 1; i >= 0; i--) { |
| 271 | View ancestor = ancestorChain.get(i); |
| 272 | View next = i > 0 ? ancestorChain.get(i-1) : null; |
| 273 | |
| 274 | pt[0] += ancestor.getScrollX(); |
| 275 | pt[1] += ancestor.getScrollY(); |
| 276 | |
| 277 | if (next != null) { |
| 278 | pt[0] -= next.getLeft(); |
| 279 | pt[1] -= next.getTop(); |
| 280 | next.getMatrix().invert(inverse); |
| 281 | inverse.mapPoints(pt); |
| 282 | scale *= next.getScaleX(); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | coord[0] = (int) Math.round(pt[0]); |
| 287 | coord[1] = (int) Math.round(pt[1]); |
| 288 | return scale; |
| 289 | } |
| 290 | |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 291 | private static void initStatics(Context context) { |
| 292 | final Resources resources = context.getResources(); |
Joe Onorato | 1291a8c | 2009-09-15 15:07:25 -0400 | [diff] [blame] | 293 | final DisplayMetrics metrics = resources.getDisplayMetrics(); |
| 294 | final float density = metrics.density; |
| 295 | |
Michael Jurka | c9a9619 | 2010-11-01 11:52:08 -0700 | [diff] [blame] | 296 | sIconWidth = sIconHeight = (int) resources.getDimension(R.dimen.app_icon_size); |
Winson Chung | 4b825dcd | 2011-06-19 12:41:22 -0700 | [diff] [blame] | 297 | sIconTextureWidth = sIconTextureHeight = sIconWidth; |
Joe Onorato | 1291a8c | 2009-09-15 15:07:25 -0400 | [diff] [blame] | 298 | |
Joe Onorato | a4c0cb9 | 2009-11-02 10:42:02 -0500 | [diff] [blame] | 299 | sBlurPaint.setMaskFilter(new BlurMaskFilter(5 * density, BlurMaskFilter.Blur.NORMAL)); |
Joe Onorato | eb8325a | 2009-11-08 13:20:30 -0500 | [diff] [blame] | 300 | sGlowColorPressedPaint.setColor(0xffffc300); |
Joe Onorato | c61cff9 | 2009-11-08 11:54:39 -0500 | [diff] [blame] | 301 | sGlowColorFocusedPaint.setColor(0xffff8e00); |
Joe Onorato | 56d8291 | 2010-03-07 14:32:10 -0500 | [diff] [blame] | 302 | |
| 303 | ColorMatrix cm = new ColorMatrix(); |
| 304 | cm.setSaturation(0.2f); |
| 305 | sDisabledPaint.setColorFilter(new ColorMatrixColorFilter(cm)); |
| 306 | sDisabledPaint.setAlpha(0x88); |
Joe Onorato | 6665c0f | 2009-09-02 15:27:24 -0700 | [diff] [blame] | 307 | } |
| 308 | |
Winson Chung | 5f8afe6 | 2013-08-12 16:19:28 -0700 | [diff] [blame] | 309 | public static void setIconSize(int widthPx) { |
| 310 | sIconWidth = sIconHeight = widthPx; |
| 311 | sIconTextureWidth = sIconTextureHeight = widthPx; |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 312 | } |
Michael Jurka | a805e1a | 2013-08-22 15:00:33 +0200 | [diff] [blame] | 313 | |
Winson Chung | 3a6e7f3 | 2013-10-09 15:50:52 -0700 | [diff] [blame] | 314 | public static void scaleRect(Rect r, float scale) { |
| 315 | if (scale != 1.0f) { |
| 316 | r.left = (int) (r.left * scale + 0.5f); |
| 317 | r.top = (int) (r.top * scale + 0.5f); |
| 318 | r.right = (int) (r.right * scale + 0.5f); |
| 319 | r.bottom = (int) (r.bottom * scale + 0.5f); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | public static void scaleRectAboutCenter(Rect r, float scale) { |
| 324 | int cx = r.centerX(); |
| 325 | int cy = r.centerY(); |
| 326 | r.offset(-cx, -cy); |
| 327 | Utilities.scaleRect(r, scale); |
| 328 | r.offset(cx, cy); |
| 329 | } |
| 330 | |
Michael Jurka | a805e1a | 2013-08-22 15:00:33 +0200 | [diff] [blame] | 331 | public static void startActivityForResultSafely( |
| 332 | Activity activity, Intent intent, int requestCode) { |
| 333 | try { |
| 334 | activity.startActivityForResult(intent, requestCode); |
| 335 | } catch (ActivityNotFoundException e) { |
| 336 | Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show(); |
| 337 | } catch (SecurityException e) { |
| 338 | Toast.makeText(activity, R.string.activity_not_found, Toast.LENGTH_SHORT).show(); |
| 339 | Log.e(TAG, "Launcher does not have the permission to launch " + intent + |
| 340 | ". Make sure to create a MAIN intent-filter for the corresponding activity " + |
| 341 | "or use the exported attribute for this activity.", e); |
| 342 | } |
| 343 | } |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 344 | } |