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