Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 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 | |
Wale Ogunwale | 07bcab7 | 2016-10-14 15:30:09 -0700 | [diff] [blame] | 19 | import java.util.Comparator; |
Wale Ogunwale | 0c4a40ef | 2016-10-07 07:06:40 -0700 | [diff] [blame] | 20 | import static android.view.WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER; |
Wale Ogunwale | 9bc4773 | 2016-08-10 14:44:22 -0700 | [diff] [blame] | 21 | import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_STARTING; |
Jorim Jaggi | fe76234 | 2016-10-13 14:33:27 +0200 | [diff] [blame] | 22 | |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 23 | import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_ADD_REMOVE; |
| 24 | import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_FOCUS; |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 25 | import static com.android.server.wm.WindowManagerDebugConfig.DEBUG_WINDOW_MOVEMENT; |
| 26 | import static com.android.server.wm.WindowManagerDebugConfig.TAG_WITH_CLASS_NAME; |
| 27 | import static com.android.server.wm.WindowManagerDebugConfig.TAG_WM; |
| 28 | import static com.android.server.wm.WindowManagerService.UPDATE_FOCUS_NORMAL; |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 29 | |
Jorim Jaggi | fe76234 | 2016-10-13 14:33:27 +0200 | [diff] [blame] | 30 | import android.os.Debug; |
| 31 | import android.os.IBinder; |
Jorim Jaggi | fe76234 | 2016-10-13 14:33:27 +0200 | [diff] [blame] | 32 | import android.util.Slog; |
Robert Carr | da61ba9 | 2017-03-29 15:52:23 -0700 | [diff] [blame] | 33 | import android.view.SurfaceControl; |
Jorim Jaggi | fe76234 | 2016-10-13 14:33:27 +0200 | [diff] [blame] | 34 | |
| 35 | import java.io.PrintWriter; |
| 36 | |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 37 | /** |
Wale Ogunwale | d1c3791 | 2016-08-16 03:19:39 -0700 | [diff] [blame] | 38 | * Container of a set of related windows in the window manager. Often this is an AppWindowToken, |
| 39 | * which is the handle for an Activity that it uses to display windows. For nested windows, there is |
| 40 | * a WindowToken created for the parent window to manage its children. |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 41 | */ |
Wale Ogunwale | d90546a | 2016-09-09 23:28:03 -0700 | [diff] [blame] | 42 | class WindowToken extends WindowContainer<WindowState> { |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 43 | private static final String TAG = TAG_WITH_CLASS_NAME ? "WindowToken" : TAG_WM; |
| 44 | |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 45 | // The window manager! |
Wale Ogunwale | 2049dbf | 2016-08-02 21:05:23 -0700 | [diff] [blame] | 46 | protected final WindowManagerService mService; |
Svetoslav | 3a5c721 | 2014-10-14 09:54:26 -0700 | [diff] [blame] | 47 | |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 48 | // The actual token. |
| 49 | final IBinder token; |
| 50 | |
| 51 | // The type of window this token is for, as per WindowManager.LayoutParams. |
| 52 | final int windowType; |
| 53 | |
| 54 | // Set if this token was explicitly added by a client, so should |
Wale Ogunwale | 3d0bfd9 | 2016-12-05 11:38:02 -0800 | [diff] [blame] | 55 | // persist (not be removed) when all windows are removed. |
| 56 | boolean mPersistOnEmpty; |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 57 | |
| 58 | // For printing. |
| 59 | String stringName; |
| 60 | |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 61 | // Is key dispatching paused for this token? |
| 62 | boolean paused = false; |
| 63 | |
| 64 | // Should this token's windows be hidden? |
| 65 | boolean hidden; |
| 66 | |
| 67 | // Temporary for finding which tokens no longer have visible windows. |
| 68 | boolean hasVisible; |
| 69 | |
| 70 | // Set to true when this token is in a pending transaction where it |
| 71 | // will be shown. |
| 72 | boolean waitingToShow; |
| 73 | |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 74 | // Set to true when this token is in a pending transaction where its |
| 75 | // windows will be put to the bottom of the list. |
| 76 | boolean sendingToBottom; |
| 77 | |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 78 | // The display this token is on. |
Jorim Jaggi | 879ff72 | 2016-11-04 18:08:17 -0700 | [diff] [blame] | 79 | protected DisplayContent mDisplayContent; |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 80 | |
Wale Ogunwale | 5cd907d | 2017-01-26 14:14:08 -0800 | [diff] [blame] | 81 | /** The owner has {@link android.Manifest.permission#MANAGE_APP_TOKENS} */ |
| 82 | final boolean mOwnerCanManageAppTokens; |
| 83 | |
Wale Ogunwale | 07bcab7 | 2016-10-14 15:30:09 -0700 | [diff] [blame] | 84 | /** |
| 85 | * Compares two child window of this token and returns -1 if the first is lesser than the |
| 86 | * second in terms of z-order and 1 otherwise. |
| 87 | */ |
| 88 | private final Comparator<WindowState> mWindowComparator = |
| 89 | (WindowState newWindow, WindowState existingWindow) -> { |
| 90 | final WindowToken token = WindowToken.this; |
| 91 | if (newWindow.mToken != token) { |
| 92 | throw new IllegalArgumentException("newWindow=" + newWindow |
| 93 | + " is not a child of token=" + token); |
| 94 | } |
| 95 | |
| 96 | if (existingWindow.mToken != token) { |
| 97 | throw new IllegalArgumentException("existingWindow=" + existingWindow |
| 98 | + " is not a child of token=" + token); |
| 99 | } |
| 100 | |
| 101 | return isFirstChildWindowGreaterThanSecond(newWindow, existingWindow) ? 1 : -1; |
| 102 | }; |
| 103 | |
Wale Ogunwale | 3d0bfd9 | 2016-12-05 11:38:02 -0800 | [diff] [blame] | 104 | WindowToken(WindowManagerService service, IBinder _token, int type, boolean persistOnEmpty, |
Wale Ogunwale | 5cd907d | 2017-01-26 14:14:08 -0800 | [diff] [blame] | 105 | DisplayContent dc, boolean ownerCanManageAppTokens) { |
Wale Ogunwale | 2049dbf | 2016-08-02 21:05:23 -0700 | [diff] [blame] | 106 | mService = service; |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 107 | token = _token; |
| 108 | windowType = type; |
Wale Ogunwale | 3d0bfd9 | 2016-12-05 11:38:02 -0800 | [diff] [blame] | 109 | mPersistOnEmpty = persistOnEmpty; |
Wale Ogunwale | 5cd907d | 2017-01-26 14:14:08 -0800 | [diff] [blame] | 110 | mOwnerCanManageAppTokens = ownerCanManageAppTokens; |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 111 | onDisplayChanged(dc); |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 112 | } |
| 113 | |
Wale Ogunwale | 3d0bfd9 | 2016-12-05 11:38:02 -0800 | [diff] [blame] | 114 | void removeAllWindowsIfPossible() { |
Wale Ogunwale | d1c3791 | 2016-08-16 03:19:39 -0700 | [diff] [blame] | 115 | for (int i = mChildren.size() - 1; i >= 0; --i) { |
Wale Ogunwale | d90546a | 2016-09-09 23:28:03 -0700 | [diff] [blame] | 116 | final WindowState win = mChildren.get(i); |
Wale Ogunwale | 3d0bfd9 | 2016-12-05 11:38:02 -0800 | [diff] [blame] | 117 | if (DEBUG_WINDOW_MOVEMENT) Slog.w(TAG_WM, |
| 118 | "removeAllWindowsIfPossible: removing win=" + win); |
Wale Ogunwale | 92fc372 | 2016-08-05 12:19:08 -0700 | [diff] [blame] | 119 | win.removeIfPossible(); |
Svetoslav | 3a5c721 | 2014-10-14 09:54:26 -0700 | [diff] [blame] | 120 | } |
| 121 | } |
| 122 | |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 123 | void setExiting() { |
Wale Ogunwale | 3d0bfd9 | 2016-12-05 11:38:02 -0800 | [diff] [blame] | 124 | // This token is exiting, so allow it to be removed when it no longer contains any windows. |
| 125 | mPersistOnEmpty = false; |
| 126 | |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 127 | if (hidden) { |
| 128 | return; |
| 129 | } |
| 130 | |
Wale Ogunwale | d1c3791 | 2016-08-16 03:19:39 -0700 | [diff] [blame] | 131 | final int count = mChildren.size(); |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 132 | boolean changed = false; |
Wale Ogunwale | 9bc4773 | 2016-08-10 14:44:22 -0700 | [diff] [blame] | 133 | boolean delayed = false; |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 134 | |
| 135 | for (int i = 0; i < count; i++) { |
Wale Ogunwale | d90546a | 2016-09-09 23:28:03 -0700 | [diff] [blame] | 136 | final WindowState win = mChildren.get(i); |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 137 | if (win.mWinAnimator.isAnimationSet()) { |
| 138 | delayed = true; |
| 139 | } |
Wale Ogunwale | 9bc4773 | 2016-08-10 14:44:22 -0700 | [diff] [blame] | 140 | changed |= win.onSetAppExiting(); |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | hidden = true; |
| 144 | |
| 145 | if (changed) { |
Wale Ogunwale | 2049dbf | 2016-08-02 21:05:23 -0700 | [diff] [blame] | 146 | mService.mWindowPlacerLocked.performSurfacePlacement(); |
| 147 | mService.updateFocusedWindowLocked(UPDATE_FOCUS_NORMAL, false /*updateInputWindows*/); |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 148 | } |
| 149 | |
Wale Ogunwale | b0f3b83 | 2016-10-17 10:13:07 -0700 | [diff] [blame] | 150 | if (delayed) { |
| 151 | mDisplayContent.mExitingTokens.add(this); |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 152 | } |
| 153 | } |
| 154 | |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 155 | /** |
Wale Ogunwale | 07bcab7 | 2016-10-14 15:30:09 -0700 | [diff] [blame] | 156 | * Returns true if the new window is considered greater than the existing window in terms of |
| 157 | * z-order. |
| 158 | */ |
| 159 | protected boolean isFirstChildWindowGreaterThanSecond(WindowState newWindow, |
| 160 | WindowState existingWindow) { |
Wale Ogunwale | b783fd8 | 2016-11-04 09:51:54 -0700 | [diff] [blame] | 161 | // New window is considered greater if it has a higher or equal base layer. |
| 162 | return newWindow.mBaseLayer >= existingWindow.mBaseLayer; |
Wale Ogunwale | 07bcab7 | 2016-10-14 15:30:09 -0700 | [diff] [blame] | 163 | } |
| 164 | |
Wale Ogunwale | 92fc372 | 2016-08-05 12:19:08 -0700 | [diff] [blame] | 165 | void addWindow(final WindowState win) { |
Wale Ogunwale | 07bcab7 | 2016-10-14 15:30:09 -0700 | [diff] [blame] | 166 | if (DEBUG_FOCUS) Slog.d(TAG_WM, |
| 167 | "addWindow: win=" + win + " Callers=" + Debug.getCallers(5)); |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 168 | |
Wale Ogunwale | 6213caa | 2016-12-02 16:47:15 +0000 | [diff] [blame] | 169 | if (win.isChildWindow()) { |
| 170 | // Child windows are added to their parent windows. |
Wale Ogunwale | b9a07c3 | 2016-10-12 14:55:56 -0700 | [diff] [blame] | 171 | return; |
| 172 | } |
Wale Ogunwale | b9a07c3 | 2016-10-12 14:55:56 -0700 | [diff] [blame] | 173 | if (!mChildren.contains(win)) { |
Wale Ogunwale | 6213caa | 2016-12-02 16:47:15 +0000 | [diff] [blame] | 174 | if (DEBUG_ADD_REMOVE) Slog.v(TAG_WM, "Adding " + win + " to " + this); |
| 175 | addChild(win, mWindowComparator); |
| 176 | mService.mWindowsChanged = true; |
| 177 | // TODO: Should we also be setting layout needed here and other places? |
Wale Ogunwale | b9a07c3 | 2016-10-12 14:55:56 -0700 | [diff] [blame] | 178 | } |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 179 | } |
| 180 | |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 181 | /** Returns true if the token windows list is empty. */ |
| 182 | boolean isEmpty() { |
Wale Ogunwale | d1c3791 | 2016-08-16 03:19:39 -0700 | [diff] [blame] | 183 | return mChildren.isEmpty(); |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 184 | } |
| 185 | |
Robert Carr | dee1b3f | 2017-02-27 11:33:33 -0800 | [diff] [blame] | 186 | // Used by AppWindowToken. |
| 187 | int getAnimLayerAdjustment() { |
| 188 | return 0; |
| 189 | } |
| 190 | |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 191 | WindowState getReplacingWindow() { |
Wale Ogunwale | d1c3791 | 2016-08-16 03:19:39 -0700 | [diff] [blame] | 192 | for (int i = mChildren.size() - 1; i >= 0; i--) { |
Wale Ogunwale | d90546a | 2016-09-09 23:28:03 -0700 | [diff] [blame] | 193 | final WindowState win = mChildren.get(i); |
Wale Ogunwale | 9bc4773 | 2016-08-10 14:44:22 -0700 | [diff] [blame] | 194 | final WindowState replacing = win.getReplacingWindow(); |
| 195 | if (replacing != null) { |
| 196 | return replacing; |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 197 | } |
| 198 | } |
| 199 | return null; |
| 200 | } |
| 201 | |
Wale Ogunwale | 0c4a40ef | 2016-10-07 07:06:40 -0700 | [diff] [blame] | 202 | /** Return true if this token has a window that wants the wallpaper displayed behind it. */ |
| 203 | boolean windowsCanBeWallpaperTarget() { |
| 204 | for (int j = mChildren.size() - 1; j >= 0; j--) { |
| 205 | final WindowState w = mChildren.get(j); |
| 206 | if ((w.mAttrs.flags & FLAG_SHOW_WALLPAPER) != 0) { |
| 207 | return true; |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | return false; |
| 212 | } |
| 213 | |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 214 | int getHighestAnimLayer() { |
Wale Ogunwale | 9bc4773 | 2016-08-10 14:44:22 -0700 | [diff] [blame] | 215 | int highest = -1; |
Wale Ogunwale | d1c3791 | 2016-08-16 03:19:39 -0700 | [diff] [blame] | 216 | for (int j = 0; j < mChildren.size(); j++) { |
Wale Ogunwale | d90546a | 2016-09-09 23:28:03 -0700 | [diff] [blame] | 217 | final WindowState w = mChildren.get(j); |
Wale Ogunwale | 9bc4773 | 2016-08-10 14:44:22 -0700 | [diff] [blame] | 218 | final int wLayer = w.getHighestAnimLayer(); |
| 219 | if (wLayer > highest) { |
| 220 | highest = wLayer; |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 221 | } |
| 222 | } |
Wale Ogunwale | 9bc4773 | 2016-08-10 14:44:22 -0700 | [diff] [blame] | 223 | return highest; |
Wale Ogunwale | e4da0c1 | 2016-07-29 12:47:02 -0700 | [diff] [blame] | 224 | } |
| 225 | |
Wale Ogunwale | 2049dbf | 2016-08-02 21:05:23 -0700 | [diff] [blame] | 226 | AppWindowToken asAppWindowToken() { |
| 227 | // TODO: Not sure if this is the best way to handle this vs. using instanceof and casting. |
| 228 | // I am not an app window token! |
| 229 | return null; |
| 230 | } |
| 231 | |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 232 | DisplayContent getDisplayContent() { |
| 233 | return mDisplayContent; |
| 234 | } |
| 235 | |
| 236 | @Override |
| 237 | void removeImmediately() { |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 238 | if (mDisplayContent != null) { |
| 239 | mDisplayContent.removeWindowToken(token); |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 240 | } |
Wale Ogunwale | cfca258 | 2016-10-19 09:53:25 -0700 | [diff] [blame] | 241 | // Needs to occur after the token is removed from the display above to avoid attempt at |
| 242 | // duplicate removal of this window container from it's parent. |
| 243 | super.removeImmediately(); |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 244 | } |
| 245 | |
| 246 | void onDisplayChanged(DisplayContent dc) { |
Wale Ogunwale | 3d0bfd9 | 2016-12-05 11:38:02 -0800 | [diff] [blame] | 247 | dc.reParentWindowToken(this); |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 248 | mDisplayContent = dc; |
Robert Carr | da61ba9 | 2017-03-29 15:52:23 -0700 | [diff] [blame] | 249 | |
| 250 | // TODO(b/36740756): One day this should perhaps be hooked |
| 251 | // up with goodToGo, so we don't move a window |
| 252 | // to another display before the window behind |
| 253 | // it is ready. |
| 254 | SurfaceControl.openTransaction(); |
| 255 | for (int i = mChildren.size() - 1; i >= 0; --i) { |
| 256 | final WindowState win = mChildren.get(i); |
| 257 | win.mWinAnimator.updateLayerStackInTransaction(); |
| 258 | } |
| 259 | SurfaceControl.closeTransaction(); |
| 260 | |
Wale Ogunwale | 02319a6 | 2016-09-26 15:21:22 -0700 | [diff] [blame] | 261 | super.onDisplayChanged(dc); |
| 262 | } |
| 263 | |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 264 | void dump(PrintWriter pw, String prefix) { |
Wale Ogunwale | d1c3791 | 2016-08-16 03:19:39 -0700 | [diff] [blame] | 265 | pw.print(prefix); pw.print("windows="); pw.println(mChildren); |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 266 | pw.print(prefix); pw.print("windowType="); pw.print(windowType); |
| 267 | pw.print(" hidden="); pw.print(hidden); |
| 268 | pw.print(" hasVisible="); pw.println(hasVisible); |
Wale Ogunwale | 10cb5e2 | 2015-05-24 12:36:21 -0700 | [diff] [blame] | 269 | if (waitingToShow || sendingToBottom) { |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 270 | pw.print(prefix); pw.print("waitingToShow="); pw.print(waitingToShow); |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 271 | pw.print(" sendingToBottom="); pw.print(sendingToBottom); |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 272 | } |
| 273 | } |
| 274 | |
| 275 | @Override |
| 276 | public String toString() { |
| 277 | if (stringName == null) { |
| 278 | StringBuilder sb = new StringBuilder(); |
| 279 | sb.append("WindowToken{"); |
| 280 | sb.append(Integer.toHexString(System.identityHashCode(this))); |
Dianne Hackborn | ef03a7f | 2012-10-29 18:46:52 -0700 | [diff] [blame] | 281 | sb.append(" "); sb.append(token); sb.append('}'); |
Dianne Hackborn | 6e1eb76 | 2011-02-17 16:07:28 -0800 | [diff] [blame] | 282 | stringName = sb.toString(); |
| 283 | } |
| 284 | return stringName; |
| 285 | } |
Wale Ogunwale | 9adfe57 | 2016-09-08 20:43:58 -0700 | [diff] [blame] | 286 | |
| 287 | @Override |
| 288 | String getName() { |
| 289 | return toString(); |
| 290 | } |
Filip Gruszczynski | 0bd180d | 2015-12-07 15:43:52 -0800 | [diff] [blame] | 291 | } |