Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 | |
Lucas Dupin | e2292a9 | 2017-07-06 14:35:30 -0700 | [diff] [blame] | 17 | package com.android.internal.colorextraction; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 18 | |
Lucas Dupin | 75ec379 | 2017-06-29 14:07:18 -0700 | [diff] [blame] | 19 | import android.annotation.NonNull; |
| 20 | import android.annotation.Nullable; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 21 | import android.app.WallpaperColors; |
| 22 | import android.app.WallpaperManager; |
| 23 | import android.content.Context; |
wilsonshih | 0e490d9e | 2019-02-13 12:20:01 +0800 | [diff] [blame] | 24 | import android.os.AsyncTask; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 25 | import android.util.Log; |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 26 | import android.util.SparseArray; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 27 | |
Lucas Dupin | e2292a9 | 2017-07-06 14:35:30 -0700 | [diff] [blame] | 28 | import com.android.internal.annotations.VisibleForTesting; |
| 29 | import com.android.internal.colorextraction.types.ExtractionType; |
| 30 | import com.android.internal.colorextraction.types.Tonal; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 31 | |
Lucas Dupin | e17ce52 | 2017-07-17 15:45:06 -0700 | [diff] [blame] | 32 | import java.lang.ref.WeakReference; |
Lucas Dupin | 314d41f | 2017-05-08 15:52:58 -0700 | [diff] [blame] | 33 | import java.util.ArrayList; |
| 34 | |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 35 | /** |
| 36 | * Class to process wallpaper colors and generate a tonal palette based on them. |
| 37 | */ |
| 38 | public class ColorExtractor implements WallpaperManager.OnColorsChangedListener { |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 39 | |
| 40 | public static final int TYPE_NORMAL = 0; |
| 41 | public static final int TYPE_DARK = 1; |
| 42 | public static final int TYPE_EXTRA_DARK = 2; |
| 43 | private static final int[] sGradientTypes = new int[]{TYPE_NORMAL, TYPE_DARK, TYPE_EXTRA_DARK}; |
| 44 | |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 45 | private static final String TAG = "ColorExtractor"; |
Lucas Dupin | 50ba991 | 2017-07-14 11:55:05 -0700 | [diff] [blame] | 46 | private static final boolean DEBUG = false; |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 47 | |
Lucas Dupin | 8a4522d | 2017-07-26 21:48:06 -0700 | [diff] [blame] | 48 | protected final SparseArray<GradientColors[]> mGradientColors; |
Lucas Dupin | e17ce52 | 2017-07-17 15:45:06 -0700 | [diff] [blame] | 49 | private final ArrayList<WeakReference<OnColorsChangedListener>> mOnColorsChangedListeners; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 50 | private final Context mContext; |
| 51 | private final ExtractionType mExtractionType; |
Lucas Dupin | 8a4522d | 2017-07-26 21:48:06 -0700 | [diff] [blame] | 52 | protected WallpaperColors mSystemColors; |
| 53 | protected WallpaperColors mLockColors; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 54 | |
| 55 | public ColorExtractor(Context context) { |
Lucas Dupin | 5febf7e | 2019-06-04 17:34:37 -0700 | [diff] [blame] | 56 | this(context, new Tonal(context), true /* immediately */, |
| 57 | context.getSystemService(WallpaperManager.class)); |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | @VisibleForTesting |
Lucas Dupin | 5febf7e | 2019-06-04 17:34:37 -0700 | [diff] [blame] | 61 | public ColorExtractor(Context context, ExtractionType extractionType, boolean immediately, |
| 62 | WallpaperManager wallpaperManager) { |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 63 | mContext = context; |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 64 | mExtractionType = extractionType; |
| 65 | |
| 66 | mGradientColors = new SparseArray<>(); |
| 67 | for (int which : new int[] { WallpaperManager.FLAG_LOCK, WallpaperManager.FLAG_SYSTEM}) { |
| 68 | GradientColors[] colors = new GradientColors[sGradientTypes.length]; |
| 69 | mGradientColors.append(which, colors); |
| 70 | for (int type : sGradientTypes) { |
| 71 | colors[type] = new GradientColors(); |
| 72 | } |
| 73 | } |
| 74 | |
Lucas Dupin | 314d41f | 2017-05-08 15:52:58 -0700 | [diff] [blame] | 75 | mOnColorsChangedListeners = new ArrayList<>(); |
Lucas Dupin | 5febf7e | 2019-06-04 17:34:37 -0700 | [diff] [blame] | 76 | wallpaperManager.addOnColorsChangedListener(this, null /* handler */); |
| 77 | initExtractColors(wallpaperManager, immediately); |
wilsonshih | 0e490d9e | 2019-02-13 12:20:01 +0800 | [diff] [blame] | 78 | } |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 79 | |
wilsonshih | 0e490d9e | 2019-02-13 12:20:01 +0800 | [diff] [blame] | 80 | private void initExtractColors(WallpaperManager wallpaperManager, boolean immediately) { |
| 81 | if (immediately) { |
Lucas Dupin | 75ec379 | 2017-06-29 14:07:18 -0700 | [diff] [blame] | 82 | mSystemColors = wallpaperManager.getWallpaperColors(WallpaperManager.FLAG_SYSTEM); |
| 83 | mLockColors = wallpaperManager.getWallpaperColors(WallpaperManager.FLAG_LOCK); |
wilsonshih | 0e490d9e | 2019-02-13 12:20:01 +0800 | [diff] [blame] | 84 | extractWallpaperColors(); |
| 85 | } else { |
| 86 | new LoadWallpaperColors().executeOnExecutor( |
| 87 | AsyncTask.THREAD_POOL_EXECUTOR, wallpaperManager); |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 88 | } |
wilsonshih | 0e490d9e | 2019-02-13 12:20:01 +0800 | [diff] [blame] | 89 | } |
Lucas Dupin | c77b71d | 2017-07-05 17:34:41 -0700 | [diff] [blame] | 90 | |
wilsonshih | 0e490d9e | 2019-02-13 12:20:01 +0800 | [diff] [blame] | 91 | private class LoadWallpaperColors extends AsyncTask<WallpaperManager, Void, Void> { |
| 92 | private WallpaperColors mSystemColors; |
| 93 | private WallpaperColors mLockColors; |
| 94 | @Override |
| 95 | protected Void doInBackground(WallpaperManager... params) { |
| 96 | mSystemColors = params[0].getWallpaperColors(WallpaperManager.FLAG_SYSTEM); |
| 97 | mLockColors = params[0].getWallpaperColors(WallpaperManager.FLAG_LOCK); |
| 98 | return null; |
| 99 | } |
| 100 | @Override |
| 101 | protected void onPostExecute(Void b) { |
| 102 | ColorExtractor.this.mSystemColors = mSystemColors; |
| 103 | ColorExtractor.this.mLockColors = mLockColors; |
| 104 | extractWallpaperColors(); |
| 105 | triggerColorsChanged(WallpaperManager.FLAG_SYSTEM | WallpaperManager.FLAG_LOCK); |
| 106 | } |
| 107 | } |
| 108 | |
Lucas Dupin | 89233c4 | 2019-06-10 18:00:22 -0700 | [diff] [blame] | 109 | protected void extractWallpaperColors() { |
wilsonshih | 0e490d9e | 2019-02-13 12:20:01 +0800 | [diff] [blame] | 110 | GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); |
| 111 | GradientColors[] lockColors = mGradientColors.get(WallpaperManager.FLAG_LOCK); |
Lucas Dupin | c77b71d | 2017-07-05 17:34:41 -0700 | [diff] [blame] | 112 | extractInto(mSystemColors, |
| 113 | systemColors[TYPE_NORMAL], |
| 114 | systemColors[TYPE_DARK], |
| 115 | systemColors[TYPE_EXTRA_DARK]); |
| 116 | extractInto(mLockColors, |
| 117 | lockColors[TYPE_NORMAL], |
| 118 | lockColors[TYPE_DARK], |
| 119 | lockColors[TYPE_EXTRA_DARK]); |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 120 | } |
| 121 | |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 122 | /** |
Lucas Dupin | 78d4aff | 2017-07-17 10:15:30 -0700 | [diff] [blame] | 123 | * Retrieve gradient colors for a specific wallpaper. |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 124 | * |
| 125 | * @param which FLAG_LOCK or FLAG_SYSTEM |
| 126 | * @return colors |
| 127 | */ |
| 128 | @NonNull |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 129 | public GradientColors getColors(int which) { |
Lucas Dupin | 78d4aff | 2017-07-17 10:15:30 -0700 | [diff] [blame] | 130 | return getColors(which, TYPE_DARK); |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Get current gradient colors for one of the possible gradient types |
| 135 | * |
| 136 | * @param which FLAG_LOCK or FLAG_SYSTEM |
| 137 | * @param type TYPE_NORMAL, TYPE_DARK or TYPE_EXTRA_DARK |
| 138 | * @return colors |
| 139 | */ |
Lucas Dupin | 75ec379 | 2017-06-29 14:07:18 -0700 | [diff] [blame] | 140 | @NonNull |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 141 | public GradientColors getColors(int which, int type) { |
| 142 | if (type != TYPE_NORMAL && type != TYPE_DARK && type != TYPE_EXTRA_DARK) { |
| 143 | throw new IllegalArgumentException( |
| 144 | "type should be TYPE_NORMAL, TYPE_DARK or TYPE_EXTRA_DARK"); |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 145 | } |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 146 | if (which != WallpaperManager.FLAG_LOCK && which != WallpaperManager.FLAG_SYSTEM) { |
| 147 | throw new IllegalArgumentException("which should be FLAG_SYSTEM or FLAG_NORMAL"); |
| 148 | } |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 149 | return mGradientColors.get(which)[type]; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 150 | } |
| 151 | |
Lucas Dupin | 75ec379 | 2017-06-29 14:07:18 -0700 | [diff] [blame] | 152 | /** |
| 153 | * Get the last available WallpaperColors without forcing new extraction. |
| 154 | * |
| 155 | * @param which FLAG_LOCK or FLAG_SYSTEM |
| 156 | * @return Last cached colors |
| 157 | */ |
| 158 | @Nullable |
| 159 | public WallpaperColors getWallpaperColors(int which) { |
| 160 | if (which == WallpaperManager.FLAG_LOCK) { |
| 161 | return mLockColors; |
| 162 | } else if (which == WallpaperManager.FLAG_SYSTEM) { |
| 163 | return mSystemColors; |
| 164 | } else { |
| 165 | throw new IllegalArgumentException("Invalid value for which: " + which); |
| 166 | } |
| 167 | } |
| 168 | |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 169 | @Override |
| 170 | public void onColorsChanged(WallpaperColors colors, int which) { |
Lucas Dupin | 50ba991 | 2017-07-14 11:55:05 -0700 | [diff] [blame] | 171 | if (DEBUG) { |
| 172 | Log.d(TAG, "New wallpaper colors for " + which + ": " + colors); |
| 173 | } |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 174 | boolean changed = false; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 175 | if ((which & WallpaperManager.FLAG_LOCK) != 0) { |
Lucas Dupin | 75ec379 | 2017-06-29 14:07:18 -0700 | [diff] [blame] | 176 | mLockColors = colors; |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 177 | GradientColors[] lockColors = mGradientColors.get(WallpaperManager.FLAG_LOCK); |
| 178 | extractInto(colors, lockColors[TYPE_NORMAL], lockColors[TYPE_DARK], |
| 179 | lockColors[TYPE_EXTRA_DARK]); |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 180 | changed = true; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 181 | } |
| 182 | if ((which & WallpaperManager.FLAG_SYSTEM) != 0) { |
Lucas Dupin | 75ec379 | 2017-06-29 14:07:18 -0700 | [diff] [blame] | 183 | mSystemColors = colors; |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 184 | GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM); |
| 185 | extractInto(colors, systemColors[TYPE_NORMAL], systemColors[TYPE_DARK], |
| 186 | systemColors[TYPE_EXTRA_DARK]); |
| 187 | changed = true; |
| 188 | } |
| 189 | |
| 190 | if (changed) { |
| 191 | triggerColorsChanged(which); |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 192 | } |
| 193 | } |
| 194 | |
Lucas Dupin | 1ead7fc | 2017-05-24 14:14:44 -0700 | [diff] [blame] | 195 | protected void triggerColorsChanged(int which) { |
Lucas Dupin | e17ce52 | 2017-07-17 15:45:06 -0700 | [diff] [blame] | 196 | ArrayList<WeakReference<OnColorsChangedListener>> references = |
| 197 | new ArrayList<>(mOnColorsChangedListeners); |
| 198 | final int size = references.size(); |
| 199 | for (int i = 0; i < size; i++) { |
| 200 | final WeakReference<OnColorsChangedListener> weakReference = references.get(i); |
| 201 | final OnColorsChangedListener listener = weakReference.get(); |
| 202 | if (listener == null) { |
| 203 | mOnColorsChangedListeners.remove(weakReference); |
| 204 | } else { |
| 205 | listener.onColorsChanged(this, which); |
| 206 | } |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 207 | } |
| 208 | } |
| 209 | |
| 210 | private void extractInto(WallpaperColors inWallpaperColors, |
| 211 | GradientColors outGradientColorsNormal, GradientColors outGradientColorsDark, |
| 212 | GradientColors outGradientColorsExtraDark) { |
Lucas Dupin | c77b71d | 2017-07-05 17:34:41 -0700 | [diff] [blame] | 213 | mExtractionType.extractInto(inWallpaperColors, outGradientColorsNormal, |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 214 | outGradientColorsDark, outGradientColorsExtraDark); |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | public void destroy() { |
| 218 | WallpaperManager wallpaperManager = mContext.getSystemService(WallpaperManager.class); |
| 219 | if (wallpaperManager != null) { |
| 220 | wallpaperManager.removeOnColorsChangedListener(this); |
| 221 | } |
| 222 | } |
| 223 | |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 224 | public void addOnColorsChangedListener(@NonNull OnColorsChangedListener listener) { |
Lucas Dupin | e17ce52 | 2017-07-17 15:45:06 -0700 | [diff] [blame] | 225 | mOnColorsChangedListeners.add(new WeakReference<>(listener)); |
Lucas Dupin | 314d41f | 2017-05-08 15:52:58 -0700 | [diff] [blame] | 226 | } |
| 227 | |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 228 | public void removeOnColorsChangedListener(@NonNull OnColorsChangedListener listener) { |
Lucas Dupin | e17ce52 | 2017-07-17 15:45:06 -0700 | [diff] [blame] | 229 | ArrayList<WeakReference<OnColorsChangedListener>> references = |
| 230 | new ArrayList<>(mOnColorsChangedListeners); |
| 231 | final int size = references.size(); |
| 232 | for (int i = 0; i < size; i++) { |
| 233 | final WeakReference<OnColorsChangedListener> weakReference = references.get(i); |
| 234 | if (weakReference.get() == listener) { |
| 235 | mOnColorsChangedListeners.remove(weakReference); |
| 236 | break; |
| 237 | } |
| 238 | } |
Lucas Dupin | 314d41f | 2017-05-08 15:52:58 -0700 | [diff] [blame] | 239 | } |
| 240 | |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 241 | public static class GradientColors { |
Lucas Dupin | c77b71d | 2017-07-05 17:34:41 -0700 | [diff] [blame] | 242 | private int mMainColor; |
| 243 | private int mSecondaryColor; |
Robert Snoeberger | 0397c84 | 2019-02-07 14:25:46 -0500 | [diff] [blame] | 244 | private int[] mColorPalette; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 245 | private boolean mSupportsDarkText; |
| 246 | |
| 247 | public void setMainColor(int mainColor) { |
| 248 | mMainColor = mainColor; |
| 249 | } |
| 250 | |
| 251 | public void setSecondaryColor(int secondaryColor) { |
| 252 | mSecondaryColor = secondaryColor; |
| 253 | } |
| 254 | |
Robert Snoeberger | 0397c84 | 2019-02-07 14:25:46 -0500 | [diff] [blame] | 255 | public void setColorPalette(int[] colorPalette) { |
| 256 | mColorPalette = colorPalette; |
| 257 | } |
| 258 | |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 259 | public void setSupportsDarkText(boolean supportsDarkText) { |
| 260 | mSupportsDarkText = supportsDarkText; |
| 261 | } |
| 262 | |
| 263 | public void set(GradientColors other) { |
| 264 | mMainColor = other.mMainColor; |
| 265 | mSecondaryColor = other.mSecondaryColor; |
Robert Snoeberger | 0397c84 | 2019-02-07 14:25:46 -0500 | [diff] [blame] | 266 | mColorPalette = other.mColorPalette; |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 267 | mSupportsDarkText = other.mSupportsDarkText; |
| 268 | } |
| 269 | |
| 270 | public int getMainColor() { |
| 271 | return mMainColor; |
| 272 | } |
| 273 | |
| 274 | public int getSecondaryColor() { |
| 275 | return mSecondaryColor; |
| 276 | } |
| 277 | |
Robert Snoeberger | 0397c84 | 2019-02-07 14:25:46 -0500 | [diff] [blame] | 278 | public int[] getColorPalette() { |
| 279 | return mColorPalette; |
| 280 | } |
| 281 | |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 282 | public boolean supportsDarkText() { |
| 283 | return mSupportsDarkText; |
| 284 | } |
| 285 | |
| 286 | @Override |
| 287 | public boolean equals(Object o) { |
| 288 | if (o == null || o.getClass() != getClass()) { |
| 289 | return false; |
| 290 | } |
| 291 | GradientColors other = (GradientColors) o; |
| 292 | return other.mMainColor == mMainColor && |
| 293 | other.mSecondaryColor == mSecondaryColor && |
| 294 | other.mSupportsDarkText == mSupportsDarkText; |
| 295 | } |
| 296 | |
| 297 | @Override |
| 298 | public int hashCode() { |
| 299 | int code = mMainColor; |
| 300 | code = 31 * code + mSecondaryColor; |
| 301 | code = 31 * code + (mSupportsDarkText ? 0 : 1); |
| 302 | return code; |
| 303 | } |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 304 | |
| 305 | @Override |
| 306 | public String toString() { |
| 307 | return "GradientColors(" + Integer.toHexString(mMainColor) + ", " |
| 308 | + Integer.toHexString(mSecondaryColor) + ")"; |
| 309 | } |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 310 | } |
| 311 | |
| 312 | public interface OnColorsChangedListener { |
Lucas Dupin | 7aaa353 | 2017-05-28 08:51:07 -0700 | [diff] [blame] | 313 | void onColorsChanged(ColorExtractor colorExtractor, int which); |
Lucas Dupin | 65f5658 | 2017-04-27 10:21:41 -0700 | [diff] [blame] | 314 | } |
Robert Snoeberger | 0397c84 | 2019-02-07 14:25:46 -0500 | [diff] [blame] | 315 | } |