diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2024-02-03 01:29:56 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-02-03 01:29:56 +0000 |
commit | b5c5e27ab6bbbaf69203044bab7b9af61efd79dd (patch) | |
tree | d51ac9fb3e2a72b592dde8472dcf2bae54adce13 /quickstep/src/com/android/quickstep/inputconsumers/DelegateInputConsumer.java | |
parent | 041c765ca5ee78a8b8c21db1882740b81439c1eb (diff) | |
parent | 808fc1574781a8be6700feb728c9ee65426722a8 (diff) | |
download | Launcher3-simpleperf-release.tar.gz |
Merge "Snap for 11400057 from ded14cc2110e39408f74abac8a83e0a0f16608d2 to simpleperf-release" into simpleperf-releasesimpleperf-release
Diffstat (limited to 'quickstep/src/com/android/quickstep/inputconsumers/DelegateInputConsumer.java')
-rw-r--r-- | quickstep/src/com/android/quickstep/inputconsumers/DelegateInputConsumer.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/quickstep/src/com/android/quickstep/inputconsumers/DelegateInputConsumer.java b/quickstep/src/com/android/quickstep/inputconsumers/DelegateInputConsumer.java index 03f8eef077..63771f0d56 100644 --- a/quickstep/src/com/android/quickstep/inputconsumers/DelegateInputConsumer.java +++ b/quickstep/src/com/android/quickstep/inputconsumers/DelegateInputConsumer.java @@ -4,8 +4,8 @@ import android.view.MotionEvent; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.testing.shared.TestProtocol; -import com.android.launcher3.tracing.InputConsumerProto; import com.android.quickstep.InputConsumer; +import com.android.quickstep.util.ActiveGestureLog; import com.android.systemui.shared.system.InputMonitorCompat; public abstract class DelegateInputConsumer implements InputConsumer { @@ -43,7 +43,15 @@ public abstract class DelegateInputConsumer implements InputConsumer { mDelegate.onConsumerAboutToBeSwitched(); } + /** + * Returns the name of this DelegateInputConsumer. + */ + protected abstract String getDelegatorName(); + protected void setActive(MotionEvent ev) { + ActiveGestureLog.INSTANCE.addLog(new ActiveGestureLog.CompoundString(getDelegatorName()) + .append(" became active")); + mState = STATE_ACTIVE; TestLogging.recordEvent(TestProtocol.SEQUENCE_PILFER, "pilferPointers"); mInputMonitor.pilferPointers(); @@ -54,9 +62,4 @@ public abstract class DelegateInputConsumer implements InputConsumer { mDelegate.onMotionEvent(event); event.recycle(); } - - @Override - public void writeToProtoInternal(InputConsumerProto.Builder inputConsumerProto) { - mDelegate.writeToProtoInternal(inputConsumerProto); - } } |