Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -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 | |
| 17 | package com.android.systemui; |
| 18 | |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 19 | import android.content.BroadcastReceiver; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 20 | import android.content.ComponentName; |
| 21 | import android.content.Context; |
| 22 | import android.content.Intent; |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 23 | import android.content.IntentFilter; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 24 | import android.content.ServiceConnection; |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 25 | import android.graphics.Rect; |
| 26 | import android.os.Binder; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 27 | import android.os.Handler; |
| 28 | import android.os.IBinder; |
Matthew Ng | fac8783 | 2017-11-10 11:27:29 -0800 | [diff] [blame] | 29 | import android.os.Looper; |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 30 | import android.os.PatternMatcher; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 31 | import android.os.RemoteException; |
| 32 | import android.os.UserHandle; |
| 33 | import android.util.Log; |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 34 | import android.view.SurfaceControl; |
| 35 | |
Winson Chung | 11f53e9 | 2017-11-13 17:45:12 -0800 | [diff] [blame] | 36 | import com.android.systemui.OverviewProxyService.OverviewProxyListener; |
Winson Chung | c167427 | 2018-02-21 10:15:17 -0800 | [diff] [blame] | 37 | import com.android.systemui.recents.events.EventBus; |
| 38 | import com.android.systemui.recents.events.activity.DockedFirstAnimationFrameEvent; |
Matthew Ng | 1b1d346 | 2018-03-02 11:43:38 -0800 | [diff] [blame] | 39 | import com.android.systemui.recents.misc.SystemServicesProxy; |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 40 | import com.android.systemui.shared.recents.IOverviewProxy; |
| 41 | import com.android.systemui.shared.recents.ISystemUiProxy; |
Winson Chung | 11f53e9 | 2017-11-13 17:45:12 -0800 | [diff] [blame] | 42 | import com.android.systemui.shared.system.GraphicBufferCompat; |
Winson Chung | caf2b81 | 2018-01-26 10:29:46 -0800 | [diff] [blame] | 43 | import com.android.systemui.statusbar.phone.StatusBar; |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 44 | import com.android.systemui.statusbar.policy.CallbackController; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 45 | import com.android.systemui.statusbar.policy.DeviceProvisionedController; |
| 46 | import com.android.systemui.statusbar.policy.DeviceProvisionedController.DeviceProvisionedListener; |
Winson Chung | 11f53e9 | 2017-11-13 17:45:12 -0800 | [diff] [blame] | 47 | |
Matthew Ng | 1e43ebd | 2017-11-14 14:47:05 -0800 | [diff] [blame] | 48 | import java.io.FileDescriptor; |
| 49 | import java.io.PrintWriter; |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 50 | import java.util.ArrayList; |
| 51 | import java.util.List; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 52 | |
Matthew Ng | 8f25fb96 | 2018-01-16 17:17:24 -0800 | [diff] [blame] | 53 | import static com.android.systemui.shared.system.NavigationBarCompat.InteractionType; |
| 54 | |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 55 | /** |
| 56 | * Class to send information from overview to launcher with a binder. |
| 57 | */ |
Matthew Ng | 1e43ebd | 2017-11-14 14:47:05 -0800 | [diff] [blame] | 58 | public class OverviewProxyService implements CallbackController<OverviewProxyListener>, Dumpable { |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 59 | |
Matthew Ng | bd82457 | 2018-01-17 16:25:56 -0800 | [diff] [blame] | 60 | public static final String TAG_OPS = "OverviewProxyService"; |
| 61 | public static final boolean DEBUG_OVERVIEW_PROXY = false; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 62 | private static final long BACKOFF_MILLIS = 5000; |
| 63 | |
| 64 | private final Context mContext; |
| 65 | private final Handler mHandler; |
Matthew Ng | fac8783 | 2017-11-10 11:27:29 -0800 | [diff] [blame] | 66 | private final Runnable mConnectionRunnable = this::internalConnectToCurrentUser; |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 67 | private final ComponentName mLauncherComponentName; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 68 | private final DeviceProvisionedController mDeviceProvisionedController |
| 69 | = Dependency.get(DeviceProvisionedController.class); |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 70 | private final List<OverviewProxyListener> mConnectionCallbacks = new ArrayList<>(); |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 71 | |
| 72 | private IOverviewProxy mOverviewProxy; |
| 73 | private int mConnectionBackoffAttempts; |
Tony Wickham | 05c1f85 | 2018-02-06 12:32:54 -0800 | [diff] [blame] | 74 | private CharSequence mOnboardingText; |
Matthew Ng | 8f25fb96 | 2018-01-16 17:17:24 -0800 | [diff] [blame] | 75 | private @InteractionType int mInteractionFlags; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 76 | |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 77 | private ISystemUiProxy mSysUiProxy = new ISystemUiProxy.Stub() { |
Winson Chung | caf2b81 | 2018-01-26 10:29:46 -0800 | [diff] [blame] | 78 | |
Winson Chung | 11f53e9 | 2017-11-13 17:45:12 -0800 | [diff] [blame] | 79 | public GraphicBufferCompat screenshot(Rect sourceCrop, int width, int height, int minLayer, |
| 80 | int maxLayer, boolean useIdentityTransform, int rotation) { |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 81 | long token = Binder.clearCallingIdentity(); |
| 82 | try { |
Winson Chung | 11f53e9 | 2017-11-13 17:45:12 -0800 | [diff] [blame] | 83 | return new GraphicBufferCompat(SurfaceControl.screenshotToBuffer(sourceCrop, width, |
| 84 | height, minLayer, maxLayer, useIdentityTransform, rotation)); |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 85 | } finally { |
| 86 | Binder.restoreCallingIdentity(token); |
| 87 | } |
| 88 | } |
Winson Chung | cbb15a9 | 2018-01-25 17:46:16 +0000 | [diff] [blame] | 89 | |
Winson Chung | caf2b81 | 2018-01-26 10:29:46 -0800 | [diff] [blame] | 90 | public void startScreenPinning(int taskId) { |
| 91 | long token = Binder.clearCallingIdentity(); |
| 92 | try { |
| 93 | mHandler.post(() -> { |
| 94 | StatusBar statusBar = ((SystemUIApplication) mContext).getComponent( |
| 95 | StatusBar.class); |
| 96 | if (statusBar != null) { |
| 97 | statusBar.showScreenPinningRequest(taskId, false /* allowCancel */); |
| 98 | } |
| 99 | }); |
| 100 | } finally { |
| 101 | Binder.restoreCallingIdentity(token); |
| 102 | } |
| 103 | } |
| 104 | |
Winson Chung | c167427 | 2018-02-21 10:15:17 -0800 | [diff] [blame] | 105 | public void onSplitScreenInvoked() { |
| 106 | long token = Binder.clearCallingIdentity(); |
| 107 | try { |
| 108 | EventBus.getDefault().post(new DockedFirstAnimationFrameEvent()); |
| 109 | } finally { |
| 110 | Binder.restoreCallingIdentity(token); |
| 111 | } |
| 112 | } |
| 113 | |
Tony Wickham | 05c1f85 | 2018-02-06 12:32:54 -0800 | [diff] [blame] | 114 | public void setRecentsOnboardingText(CharSequence text) { |
| 115 | mOnboardingText = text; |
| 116 | } |
Matthew Ng | 8f25fb96 | 2018-01-16 17:17:24 -0800 | [diff] [blame] | 117 | |
| 118 | public void setInteractionState(@InteractionType int flags) { |
| 119 | long token = Binder.clearCallingIdentity(); |
| 120 | try { |
| 121 | if (mInteractionFlags != flags) { |
| 122 | mInteractionFlags = flags; |
| 123 | mHandler.post(() -> { |
| 124 | for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { |
| 125 | mConnectionCallbacks.get(i).onInteractionFlagsChanged(flags); |
| 126 | } |
| 127 | }); |
| 128 | } |
| 129 | } finally { |
| 130 | Binder.restoreCallingIdentity(token); |
| 131 | } |
| 132 | } |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 133 | }; |
| 134 | |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 135 | private final BroadcastReceiver mLauncherAddedReceiver = new BroadcastReceiver() { |
| 136 | @Override |
| 137 | public void onReceive(Context context, Intent intent) { |
| 138 | // Reconnect immediately, instead of waiting for resume to arrive. |
| 139 | startConnectionToCurrentUser(); |
| 140 | } |
| 141 | }; |
| 142 | |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 143 | private final ServiceConnection mOverviewServiceConnection = new ServiceConnection() { |
| 144 | @Override |
| 145 | public void onServiceConnected(ComponentName name, IBinder service) { |
| 146 | if (service != null) { |
| 147 | mConnectionBackoffAttempts = 0; |
| 148 | mOverviewProxy = IOverviewProxy.Stub.asInterface(service); |
| 149 | // Listen for launcher's death |
| 150 | try { |
| 151 | service.linkToDeath(mOverviewServiceDeathRcpt, 0); |
| 152 | } catch (RemoteException e) { |
Matthew Ng | bd82457 | 2018-01-17 16:25:56 -0800 | [diff] [blame] | 153 | Log.e(TAG_OPS, "Lost connection to launcher service", e); |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 154 | } |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 155 | try { |
| 156 | mOverviewProxy.onBind(mSysUiProxy); |
| 157 | } catch (RemoteException e) { |
Matthew Ng | bd82457 | 2018-01-17 16:25:56 -0800 | [diff] [blame] | 158 | Log.e(TAG_OPS, "Failed to call onBind()", e); |
Winson Chung | 38d31c2 | 2017-11-08 14:32:32 -0800 | [diff] [blame] | 159 | } |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 160 | notifyConnectionChanged(); |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 161 | } |
| 162 | } |
| 163 | |
| 164 | @Override |
| 165 | public void onServiceDisconnected(ComponentName name) { |
| 166 | // Do nothing |
| 167 | } |
| 168 | }; |
| 169 | |
| 170 | private final DeviceProvisionedListener mDeviceProvisionedCallback = |
| 171 | new DeviceProvisionedListener() { |
| 172 | @Override |
Matthew Ng | dfab86c | 2017-11-07 15:46:51 -0800 | [diff] [blame] | 173 | public void onUserSetupChanged() { |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 174 | if (mDeviceProvisionedController.isCurrentUserSetup()) { |
Matthew Ng | fac8783 | 2017-11-10 11:27:29 -0800 | [diff] [blame] | 175 | internalConnectToCurrentUser(); |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 176 | } |
| 177 | } |
| 178 | |
| 179 | @Override |
| 180 | public void onUserSwitched() { |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 181 | mConnectionBackoffAttempts = 0; |
Matthew Ng | fac8783 | 2017-11-10 11:27:29 -0800 | [diff] [blame] | 182 | internalConnectToCurrentUser(); |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 183 | } |
| 184 | }; |
| 185 | |
| 186 | // This is the death handler for the binder from the launcher service |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 187 | private final IBinder.DeathRecipient mOverviewServiceDeathRcpt |
| 188 | = this::startConnectionToCurrentUser; |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 189 | |
| 190 | public OverviewProxyService(Context context) { |
| 191 | mContext = context; |
| 192 | mHandler = new Handler(); |
| 193 | mConnectionBackoffAttempts = 0; |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 194 | mLauncherComponentName = ComponentName |
| 195 | .unflattenFromString(context.getString(R.string.config_overviewServiceComponent)); |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 196 | |
| 197 | // Listen for the package update changes. |
Matthew Ng | 1b1d346 | 2018-03-02 11:43:38 -0800 | [diff] [blame] | 198 | if (SystemServicesProxy.getInstance(context) |
| 199 | .isSystemUser(mDeviceProvisionedController.getCurrentUser())) { |
| 200 | mDeviceProvisionedController.addCallback(mDeviceProvisionedCallback); |
| 201 | IntentFilter filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED); |
| 202 | filter.addDataScheme("package"); |
| 203 | filter.addDataSchemeSpecificPart(mLauncherComponentName.getPackageName(), |
| 204 | PatternMatcher.PATTERN_LITERAL); |
| 205 | filter.addAction(Intent.ACTION_PACKAGE_CHANGED); |
| 206 | mContext.registerReceiver(mLauncherAddedReceiver, filter); |
| 207 | } |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 208 | } |
| 209 | |
| 210 | public void startConnectionToCurrentUser() { |
Matthew Ng | fac8783 | 2017-11-10 11:27:29 -0800 | [diff] [blame] | 211 | if (mHandler.getLooper() != Looper.myLooper()) { |
| 212 | mHandler.post(mConnectionRunnable); |
| 213 | } else { |
| 214 | internalConnectToCurrentUser(); |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | private void internalConnectToCurrentUser() { |
Matthew Ng | 1fa3f7e | 2017-11-07 11:50:36 -0800 | [diff] [blame] | 219 | disconnectFromLauncherService(); |
| 220 | |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 221 | // If user has not setup yet or already connected, do not try to connect |
Matthew Ng | 1fa3f7e | 2017-11-07 11:50:36 -0800 | [diff] [blame] | 222 | if (!mDeviceProvisionedController.isCurrentUserSetup()) { |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 223 | return; |
| 224 | } |
| 225 | mHandler.removeCallbacks(mConnectionRunnable); |
| 226 | Intent launcherServiceIntent = new Intent(); |
Matthew Ng | 30c0a02 | 2017-11-10 14:06:29 -0800 | [diff] [blame] | 227 | launcherServiceIntent.setComponent(mLauncherComponentName); |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 228 | boolean bound = mContext.bindServiceAsUser(launcherServiceIntent, |
| 229 | mOverviewServiceConnection, Context.BIND_AUTO_CREATE, |
Matthew Ng | 09e6fbd | 2018-02-01 16:54:16 -0800 | [diff] [blame] | 230 | UserHandle.of(mDeviceProvisionedController.getCurrentUser())); |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 231 | if (!bound) { |
| 232 | // Retry after exponential backoff timeout |
| 233 | final long timeoutMs = (long) Math.scalb(BACKOFF_MILLIS, mConnectionBackoffAttempts); |
| 234 | mHandler.postDelayed(mConnectionRunnable, timeoutMs); |
| 235 | mConnectionBackoffAttempts++; |
| 236 | } |
| 237 | } |
| 238 | |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 239 | @Override |
| 240 | public void addCallback(OverviewProxyListener listener) { |
| 241 | mConnectionCallbacks.add(listener); |
| 242 | listener.onConnectionChanged(mOverviewProxy != null); |
| 243 | } |
| 244 | |
| 245 | @Override |
| 246 | public void removeCallback(OverviewProxyListener listener) { |
| 247 | mConnectionCallbacks.remove(listener); |
| 248 | } |
| 249 | |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 250 | public IOverviewProxy getProxy() { |
| 251 | return mOverviewProxy; |
| 252 | } |
| 253 | |
Tony Wickham | 05c1f85 | 2018-02-06 12:32:54 -0800 | [diff] [blame] | 254 | public CharSequence getOnboardingText() { |
| 255 | return mOnboardingText; |
Tony Wickham | fb63fe8 | 2018-01-16 12:14:06 -0800 | [diff] [blame] | 256 | } |
| 257 | |
Matthew Ng | 8f25fb96 | 2018-01-16 17:17:24 -0800 | [diff] [blame] | 258 | public int getInteractionFlags() { |
| 259 | return mInteractionFlags; |
| 260 | } |
| 261 | |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 262 | private void disconnectFromLauncherService() { |
Matthew Ng | 1fa3f7e | 2017-11-07 11:50:36 -0800 | [diff] [blame] | 263 | if (mOverviewProxy != null) { |
Matthew Ng | eb6893b | 2017-11-09 17:15:33 -0800 | [diff] [blame] | 264 | mOverviewProxy.asBinder().unlinkToDeath(mOverviewServiceDeathRcpt, 0); |
Matthew Ng | 1fa3f7e | 2017-11-07 11:50:36 -0800 | [diff] [blame] | 265 | mContext.unbindService(mOverviewServiceConnection); |
| 266 | mOverviewProxy = null; |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 267 | notifyConnectionChanged(); |
Matthew Ng | 1fa3f7e | 2017-11-07 11:50:36 -0800 | [diff] [blame] | 268 | } |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 269 | } |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 270 | |
| 271 | private void notifyConnectionChanged() { |
| 272 | for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { |
| 273 | mConnectionCallbacks.get(i).onConnectionChanged(mOverviewProxy != null); |
| 274 | } |
| 275 | } |
| 276 | |
Matthew Ng | 2ea93b7 | 2018-03-14 19:43:18 +0000 | [diff] [blame] | 277 | public void notifyQuickStepStarted() { |
Winson Chung | cbb15a9 | 2018-01-25 17:46:16 +0000 | [diff] [blame] | 278 | for (int i = mConnectionCallbacks.size() - 1; i >= 0; --i) { |
Matthew Ng | 2ea93b7 | 2018-03-14 19:43:18 +0000 | [diff] [blame] | 279 | mConnectionCallbacks.get(i).onQuickStepStarted(); |
Winson Chung | cbb15a9 | 2018-01-25 17:46:16 +0000 | [diff] [blame] | 280 | } |
| 281 | } |
| 282 | |
Matthew Ng | 1e43ebd | 2017-11-14 14:47:05 -0800 | [diff] [blame] | 283 | @Override |
| 284 | public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { |
Matthew Ng | bd82457 | 2018-01-17 16:25:56 -0800 | [diff] [blame] | 285 | pw.println(TAG_OPS + " state:"); |
Matthew Ng | 1e43ebd | 2017-11-14 14:47:05 -0800 | [diff] [blame] | 286 | pw.print(" mConnectionBackoffAttempts="); pw.println(mConnectionBackoffAttempts); |
| 287 | pw.print(" isCurrentUserSetup="); pw.println(mDeviceProvisionedController |
| 288 | .isCurrentUserSetup()); |
| 289 | pw.print(" isConnected="); pw.println(mOverviewProxy != null); |
| 290 | } |
| 291 | |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 292 | public interface OverviewProxyListener { |
Winson Chung | cbb15a9 | 2018-01-25 17:46:16 +0000 | [diff] [blame] | 293 | default void onConnectionChanged(boolean isConnected) {} |
Matthew Ng | 2ea93b7 | 2018-03-14 19:43:18 +0000 | [diff] [blame] | 294 | default void onQuickStepStarted() {} |
Matthew Ng | 8f25fb96 | 2018-01-16 17:17:24 -0800 | [diff] [blame] | 295 | default void onInteractionFlagsChanged(@InteractionType int flags) {} |
Matthew Ng | 7d05e77 | 2017-11-09 14:41:07 -0800 | [diff] [blame] | 296 | } |
Matthew Ng | 13dbf87 | 2017-10-27 11:02:14 -0700 | [diff] [blame] | 297 | } |