Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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.wm; |
| 18 | |
| 19 | import static android.app.ActivityManager.ENABLE_TASK_SNAPSHOTS; |
Jorim Jaggi | 6aead1c | 2017-05-23 15:07:44 +0200 | [diff] [blame^] | 20 | import static android.graphics.Bitmap.Config.ARGB_8888; |
| 21 | import static android.graphics.Bitmap.Config.HARDWARE; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 22 | |
| 23 | import android.annotation.Nullable; |
Jorim Jaggi | 3d73260 | 2017-02-22 17:56:40 +0100 | [diff] [blame] | 24 | import android.app.ActivityManager; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 25 | import android.app.ActivityManager.StackId; |
Jorim Jaggi | e2c77f9 | 2016-12-29 14:57:22 +0100 | [diff] [blame] | 26 | import android.app.ActivityManager.TaskSnapshot; |
Jorim Jaggi | 6aead1c | 2017-05-23 15:07:44 +0200 | [diff] [blame^] | 27 | import android.graphics.Bitmap; |
Jorim Jaggi | 8f4fe6e | 2017-03-14 18:21:40 +0100 | [diff] [blame] | 28 | import android.graphics.Canvas; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 29 | import android.graphics.GraphicBuffer; |
Jorim Jaggi | 30d64f3 | 2017-04-07 16:33:17 +0200 | [diff] [blame] | 30 | import android.graphics.Rect; |
Jorim Jaggi | f9084ec | 2017-01-16 13:16:59 +0100 | [diff] [blame] | 31 | import android.os.Environment; |
Jorim Jaggi | 51304d7 | 2017-05-17 17:25:32 +0200 | [diff] [blame] | 32 | import android.os.Handler; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 33 | import android.util.ArraySet; |
Jorim Jaggi | d635a4a | 2017-05-03 15:21:26 +0200 | [diff] [blame] | 34 | import android.view.WindowManager.LayoutParams; |
Jorim Jaggi | 51304d7 | 2017-05-17 17:25:32 +0200 | [diff] [blame] | 35 | import android.view.WindowManagerPolicy.ScreenOffListener; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 36 | import android.view.WindowManagerPolicy.StartingSurface; |
| 37 | |
Jorim Jaggi | 8b702ed | 2017-01-20 16:59:03 +0100 | [diff] [blame] | 38 | import com.google.android.collect.Sets; |
| 39 | |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 40 | import com.android.internal.annotations.VisibleForTesting; |
Jorim Jaggi | d635a4a | 2017-05-03 15:21:26 +0200 | [diff] [blame] | 41 | import com.android.server.wm.TaskSnapshotSurface.SystemBarBackgroundPainter; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 42 | |
Jorim Jaggi | 10abe2f | 2017-01-03 16:44:46 +0100 | [diff] [blame] | 43 | import java.io.PrintWriter; |
| 44 | |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 45 | /** |
| 46 | * When an app token becomes invisible, we take a snapshot (bitmap) of the corresponding task and |
| 47 | * put it into our cache. Internally we use gralloc buffers to be able to draw them wherever we |
| 48 | * like without any copying. |
| 49 | * <p> |
| 50 | * System applications may retrieve a snapshot to represent the current state of a task, and draw |
| 51 | * them in their own process. |
| 52 | * <p> |
| 53 | * When we task becomes visible again, we show a starting window with the snapshot as the content to |
| 54 | * make app transitions more responsive. |
| 55 | * <p> |
| 56 | * To access this class, acquire the global window manager lock. |
| 57 | */ |
| 58 | class TaskSnapshotController { |
| 59 | |
Jorim Jaggi | 8f4fe6e | 2017-03-14 18:21:40 +0100 | [diff] [blame] | 60 | /** |
| 61 | * Return value for {@link #getSnapshotMode}: We are allowed to take a real screenshot to be |
| 62 | * used as the snapshot. |
| 63 | */ |
| 64 | @VisibleForTesting |
| 65 | static final int SNAPSHOT_MODE_REAL = 0; |
| 66 | |
| 67 | /** |
| 68 | * Return value for {@link #getSnapshotMode}: We are not allowed to take a real screenshot but |
| 69 | * we should try to use the app theme to create a dummy representation of the app. |
| 70 | */ |
| 71 | @VisibleForTesting |
| 72 | static final int SNAPSHOT_MODE_APP_THEME = 1; |
| 73 | |
| 74 | /** |
| 75 | * Return value for {@link #getSnapshotMode}: We aren't allowed to take any snapshot. |
| 76 | */ |
| 77 | @VisibleForTesting |
| 78 | static final int SNAPSHOT_MODE_NONE = 2; |
| 79 | |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 80 | private final WindowManagerService mService; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 81 | |
Jorim Jaggi | 7361bab | 2017-01-16 17:17:58 +0100 | [diff] [blame] | 82 | private final TaskSnapshotCache mCache; |
Jorim Jaggi | f9084ec | 2017-01-16 13:16:59 +0100 | [diff] [blame] | 83 | private final TaskSnapshotPersister mPersister = new TaskSnapshotPersister( |
| 84 | Environment::getDataSystemCeDirectory); |
| 85 | private final TaskSnapshotLoader mLoader = new TaskSnapshotLoader(mPersister); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 86 | private final ArraySet<Task> mTmpTasks = new ArraySet<>(); |
Jorim Jaggi | 51304d7 | 2017-05-17 17:25:32 +0200 | [diff] [blame] | 87 | private final Handler mHandler = new Handler(); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 88 | |
| 89 | TaskSnapshotController(WindowManagerService service) { |
| 90 | mService = service; |
Jorim Jaggi | 7361bab | 2017-01-16 17:17:58 +0100 | [diff] [blame] | 91 | mCache = new TaskSnapshotCache(mService, mLoader); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 92 | } |
| 93 | |
Jorim Jaggi | f9084ec | 2017-01-16 13:16:59 +0100 | [diff] [blame] | 94 | void systemReady() { |
| 95 | mPersister.start(); |
| 96 | } |
| 97 | |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 98 | void onTransitionStarting() { |
Jorim Jaggi | 8b702ed | 2017-01-20 16:59:03 +0100 | [diff] [blame] | 99 | handleClosingApps(mService.mClosingApps); |
| 100 | } |
| 101 | |
Jorim Jaggi | 8b702ed | 2017-01-20 16:59:03 +0100 | [diff] [blame] | 102 | /** |
| 103 | * Called when the visibility of an app changes outside of the regular app transition flow. |
| 104 | */ |
| 105 | void notifyAppVisibilityChanged(AppWindowToken appWindowToken, boolean visible) { |
Jorim Jaggi | 8b702ed | 2017-01-20 16:59:03 +0100 | [diff] [blame] | 106 | if (!visible) { |
| 107 | handleClosingApps(Sets.newArraySet(appWindowToken)); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | private void handleClosingApps(ArraySet<AppWindowToken> closingApps) { |
Jorim Jaggi | 3d73260 | 2017-02-22 17:56:40 +0100 | [diff] [blame] | 112 | if (!ENABLE_TASK_SNAPSHOTS || ActivityManager.isLowRamDeviceStatic()) { |
| 113 | return; |
| 114 | } |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 115 | |
| 116 | // We need to take a snapshot of the task if and only if all activities of the task are |
| 117 | // either closing or hidden. |
Jorim Jaggi | 8b702ed | 2017-01-20 16:59:03 +0100 | [diff] [blame] | 118 | getClosingTasks(closingApps, mTmpTasks); |
Jorim Jaggi | 51304d7 | 2017-05-17 17:25:32 +0200 | [diff] [blame] | 119 | snapshotTasks(mTmpTasks); |
| 120 | |
| 121 | } |
| 122 | |
| 123 | private void snapshotTasks(ArraySet<Task> tasks) { |
| 124 | for (int i = tasks.size() - 1; i >= 0; i--) { |
| 125 | final Task task = tasks.valueAt(i); |
Jorim Jaggi | 8f4fe6e | 2017-03-14 18:21:40 +0100 | [diff] [blame] | 126 | final int mode = getSnapshotMode(task); |
| 127 | final TaskSnapshot snapshot; |
| 128 | switch (mode) { |
| 129 | case SNAPSHOT_MODE_NONE: |
| 130 | continue; |
| 131 | case SNAPSHOT_MODE_APP_THEME: |
| 132 | snapshot = drawAppThemeSnapshot(task); |
| 133 | break; |
| 134 | case SNAPSHOT_MODE_REAL: |
| 135 | snapshot = snapshotTask(task); |
| 136 | break; |
| 137 | default: |
| 138 | snapshot = null; |
| 139 | break; |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 140 | } |
Jorim Jaggi | e2c77f9 | 2016-12-29 14:57:22 +0100 | [diff] [blame] | 141 | if (snapshot != null) { |
| 142 | mCache.putSnapshot(task, snapshot); |
Jorim Jaggi | f9084ec | 2017-01-16 13:16:59 +0100 | [diff] [blame] | 143 | mPersister.persistSnapshot(task.mTaskId, task.mUserId, snapshot); |
Jorim Jaggi | fb9d78a | 2017-01-05 18:57:12 +0100 | [diff] [blame] | 144 | if (task.getController() != null) { |
| 145 | task.getController().reportSnapshotChanged(snapshot); |
| 146 | } |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
Jorim Jaggi | 7361bab | 2017-01-16 17:17:58 +0100 | [diff] [blame] | 151 | /** |
| 152 | * Retrieves a snapshot. If {@param restoreFromDisk} equals {@code true}, DO HOLD THE WINDOW |
| 153 | * MANAGER LOCK WHEN CALLING THIS METHOD! |
| 154 | */ |
Jorim Jaggi | 35e3f53 | 2017-03-17 17:06:50 +0100 | [diff] [blame] | 155 | @Nullable TaskSnapshot getSnapshot(int taskId, int userId, boolean restoreFromDisk, |
| 156 | boolean reducedResolution) { |
| 157 | return mCache.getSnapshot(taskId, userId, restoreFromDisk, reducedResolution); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Creates a starting surface for {@param token} with {@param snapshot}. DO NOT HOLD THE WINDOW |
| 162 | * MANAGER LOCK WHEN CALLING THIS METHOD! |
| 163 | */ |
| 164 | StartingSurface createStartingSurface(AppWindowToken token, |
Jorim Jaggi | 30d64f3 | 2017-04-07 16:33:17 +0200 | [diff] [blame] | 165 | TaskSnapshot snapshot) { |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 166 | return TaskSnapshotSurface.create(mService, token, snapshot); |
| 167 | } |
| 168 | |
Jorim Jaggi | e2c77f9 | 2016-12-29 14:57:22 +0100 | [diff] [blame] | 169 | private TaskSnapshot snapshotTask(Task task) { |
Jorim Jaggi | 10abe2f | 2017-01-03 16:44:46 +0100 | [diff] [blame] | 170 | final AppWindowToken top = task.getTopChild(); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 171 | if (top == null) { |
| 172 | return null; |
| 173 | } |
Jorim Jaggi | dd5986e | 2017-04-11 15:50:19 -0700 | [diff] [blame] | 174 | final WindowState mainWindow = top.findMainWindow(); |
| 175 | if (mainWindow == null) { |
| 176 | return null; |
| 177 | } |
Jorim Jaggi | 6a7a859 | 2017-01-12 00:44:33 +0100 | [diff] [blame] | 178 | final GraphicBuffer buffer = top.mDisplayContent.screenshotApplicationsToBuffer(top.token, |
| 179 | -1, -1, false, 1.0f, false, true); |
| 180 | if (buffer == null) { |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 181 | return null; |
| 182 | } |
Jorim Jaggi | e2c77f9 | 2016-12-29 14:57:22 +0100 | [diff] [blame] | 183 | return new TaskSnapshot(buffer, top.getConfiguration().orientation, |
Jorim Jaggi | 30d64f3 | 2017-04-07 16:33:17 +0200 | [diff] [blame] | 184 | minRect(mainWindow.mContentInsets, mainWindow.mStableInsets), false /* reduced */, |
| 185 | 1f /* scale */); |
| 186 | } |
| 187 | |
| 188 | private Rect minRect(Rect rect1, Rect rect2) { |
| 189 | return new Rect(Math.min(rect1.left, rect2.left), |
| 190 | Math.min(rect1.top, rect2.top), |
| 191 | Math.min(rect1.right, rect2.right), |
| 192 | Math.min(rect1.bottom, rect2.bottom)); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Retrieves all closing tasks based on the list of closing apps during an app transition. |
| 197 | */ |
| 198 | @VisibleForTesting |
| 199 | void getClosingTasks(ArraySet<AppWindowToken> closingApps, ArraySet<Task> outClosingTasks) { |
| 200 | outClosingTasks.clear(); |
| 201 | for (int i = closingApps.size() - 1; i >= 0; i--) { |
| 202 | final AppWindowToken atoken = closingApps.valueAt(i); |
Bryce Lee | 6d41026 | 2017-02-28 15:30:17 -0800 | [diff] [blame] | 203 | final Task task = atoken.getTask(); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 204 | |
| 205 | // If the task of the app is not visible anymore, it means no other app in that task |
| 206 | // is opening. Thus, the task is closing. |
Bryce Lee | 6d41026 | 2017-02-28 15:30:17 -0800 | [diff] [blame] | 207 | if (task != null && !task.isVisible()) { |
| 208 | outClosingTasks.add(task); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
Jorim Jaggi | 0fe7ce96 | 2017-02-22 16:45:48 +0100 | [diff] [blame] | 213 | @VisibleForTesting |
Jorim Jaggi | 8f4fe6e | 2017-03-14 18:21:40 +0100 | [diff] [blame] | 214 | int getSnapshotMode(Task task) { |
Jorim Jaggi | 0fe7ce96 | 2017-02-22 16:45:48 +0100 | [diff] [blame] | 215 | final AppWindowToken topChild = task.getTopChild(); |
Jorim Jaggi | 8f4fe6e | 2017-03-14 18:21:40 +0100 | [diff] [blame] | 216 | if (StackId.isHomeOrRecentsStack(task.mStack.mStackId)) { |
| 217 | return SNAPSHOT_MODE_NONE; |
Jorim Jaggi | d635a4a | 2017-05-03 15:21:26 +0200 | [diff] [blame] | 218 | } else if (topChild != null && topChild.shouldUseAppThemeSnapshot()) { |
Jorim Jaggi | 8f4fe6e | 2017-03-14 18:21:40 +0100 | [diff] [blame] | 219 | return SNAPSHOT_MODE_APP_THEME; |
| 220 | } else { |
| 221 | return SNAPSHOT_MODE_REAL; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * If we are not allowed to take a real screenshot, this attempts to represent the app as best |
| 227 | * as possible by using the theme's window background. |
| 228 | */ |
| 229 | private TaskSnapshot drawAppThemeSnapshot(Task task) { |
| 230 | final AppWindowToken topChild = task.getTopChild(); |
| 231 | if (topChild == null) { |
| 232 | return null; |
| 233 | } |
| 234 | final WindowState mainWindow = topChild.findMainWindow(); |
| 235 | if (mainWindow == null) { |
| 236 | return null; |
| 237 | } |
| 238 | final int color = task.getTaskDescription().getBackgroundColor(); |
Jorim Jaggi | d635a4a | 2017-05-03 15:21:26 +0200 | [diff] [blame] | 239 | final int statusBarColor = task.getTaskDescription().getStatusBarColor(); |
| 240 | final int navigationBarColor = task.getTaskDescription().getNavigationBarColor(); |
Jorim Jaggi | 6aead1c | 2017-05-23 15:07:44 +0200 | [diff] [blame^] | 241 | final Bitmap b = Bitmap.createBitmap(mainWindow.getFrameLw().width(), |
| 242 | mainWindow.getFrameLw().height(), ARGB_8888); |
| 243 | final Canvas c = new Canvas(b); |
Jorim Jaggi | 8f4fe6e | 2017-03-14 18:21:40 +0100 | [diff] [blame] | 244 | c.drawColor(color); |
Jorim Jaggi | d635a4a | 2017-05-03 15:21:26 +0200 | [diff] [blame] | 245 | final LayoutParams attrs = mainWindow.getAttrs(); |
| 246 | final SystemBarBackgroundPainter decorPainter = new SystemBarBackgroundPainter(attrs.flags, |
| 247 | attrs.privateFlags, attrs.systemUiVisibility, statusBarColor, navigationBarColor); |
| 248 | decorPainter.setInsets(mainWindow.mContentInsets, mainWindow.mStableInsets); |
| 249 | decorPainter.drawDecors(c, null /* statusBarExcludeFrame */); |
Jorim Jaggi | 6aead1c | 2017-05-23 15:07:44 +0200 | [diff] [blame^] | 250 | |
| 251 | // Flush writer. |
| 252 | c.setBitmap(null); |
| 253 | final Bitmap hwBitmap = b.copy(HARDWARE, false /* isMutable */); |
| 254 | return new TaskSnapshot(hwBitmap.createGraphicBufferHandle(), |
| 255 | topChild.getConfiguration().orientation, mainWindow.mStableInsets, |
| 256 | false /* reduced */, 1.0f /* scale */); |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 257 | } |
Jorim Jaggi | 10abe2f | 2017-01-03 16:44:46 +0100 | [diff] [blame] | 258 | |
| 259 | /** |
| 260 | * Called when an {@link AppWindowToken} has been removed. |
| 261 | */ |
| 262 | void onAppRemoved(AppWindowToken wtoken) { |
Jorim Jaggi | 7361bab | 2017-01-16 17:17:58 +0100 | [diff] [blame] | 263 | mCache.onAppRemoved(wtoken); |
Jorim Jaggi | 10abe2f | 2017-01-03 16:44:46 +0100 | [diff] [blame] | 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Called when the process of an {@link AppWindowToken} has died. |
| 268 | */ |
| 269 | void onAppDied(AppWindowToken wtoken) { |
Jorim Jaggi | 7361bab | 2017-01-16 17:17:58 +0100 | [diff] [blame] | 270 | mCache.onAppDied(wtoken); |
Jorim Jaggi | 10abe2f | 2017-01-03 16:44:46 +0100 | [diff] [blame] | 271 | } |
| 272 | |
Jorim Jaggi | f9084ec | 2017-01-16 13:16:59 +0100 | [diff] [blame] | 273 | void notifyTaskRemovedFromRecents(int taskId, int userId) { |
Jorim Jaggi | 7361bab | 2017-01-16 17:17:58 +0100 | [diff] [blame] | 274 | mCache.onTaskRemoved(taskId); |
Jorim Jaggi | f9084ec | 2017-01-16 13:16:59 +0100 | [diff] [blame] | 275 | mPersister.onTaskRemovedFromRecents(taskId, userId); |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * See {@link TaskSnapshotPersister#removeObsoleteFiles} |
| 280 | */ |
| 281 | void removeObsoleteTaskFiles(ArraySet<Integer> persistentTaskIds, int[] runningUserIds) { |
| 282 | mPersister.removeObsoleteFiles(persistentTaskIds, runningUserIds); |
| 283 | } |
| 284 | |
Jorim Jaggi | a41b729 | 2017-05-11 23:50:34 +0200 | [diff] [blame] | 285 | /** |
| 286 | * Temporarily pauses/unpauses persisting of task snapshots. |
| 287 | * |
| 288 | * @param paused Whether task snapshot persisting should be paused. |
| 289 | */ |
| 290 | void setPersisterPaused(boolean paused) { |
| 291 | mPersister.setPaused(paused); |
| 292 | } |
| 293 | |
Jorim Jaggi | 51304d7 | 2017-05-17 17:25:32 +0200 | [diff] [blame] | 294 | /** |
| 295 | * Called when screen is being turned off. |
| 296 | */ |
| 297 | void screenTurningOff(ScreenOffListener listener) { |
| 298 | if (!ENABLE_TASK_SNAPSHOTS || ActivityManager.isLowRamDeviceStatic()) { |
| 299 | listener.onScreenOff(); |
| 300 | return; |
| 301 | } |
| 302 | |
| 303 | // We can't take a snapshot when screen is off, so take a snapshot now! |
| 304 | mHandler.post(() -> { |
| 305 | try { |
| 306 | synchronized (mService.mWindowMap) { |
| 307 | mTmpTasks.clear(); |
| 308 | mService.mRoot.forAllTasks(task -> { |
| 309 | if (task.isVisible()) { |
| 310 | mTmpTasks.add(task); |
| 311 | } |
| 312 | }); |
| 313 | snapshotTasks(mTmpTasks); |
| 314 | } |
| 315 | } finally { |
| 316 | listener.onScreenOff(); |
| 317 | } |
| 318 | }); |
| 319 | } |
| 320 | |
Jorim Jaggi | 10abe2f | 2017-01-03 16:44:46 +0100 | [diff] [blame] | 321 | void dump(PrintWriter pw, String prefix) { |
| 322 | mCache.dump(pw, prefix); |
| 323 | } |
Jorim Jaggi | 02886a8 | 2016-12-06 09:10:06 -0800 | [diff] [blame] | 324 | } |