Loading packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +6 −0 Original line number Diff line number Diff line Loading @@ -100,6 +100,7 @@ import com.android.systemui.Gefingerpoken; import com.android.systemui.R; import com.android.systemui.classifier.FalsingA11yDelegate; import com.android.systemui.plugins.FalsingManager; import com.android.systemui.shade.TouchLogger; import com.android.systemui.shared.system.SysUiStatsLog; import com.android.systemui.statusbar.policy.BaseUserSwitcherAdapter; import com.android.systemui.statusbar.policy.UserSwitcherController; Loading Loading @@ -665,6 +666,11 @@ public class KeyguardSecurityContainer extends ConstraintLayout { return insets.inset(0, 0, 0, inset); } @Override public boolean dispatchTouchEvent(MotionEvent ev) { return TouchLogger.logDispatchTouch(TAG, ev, super.dispatchTouchEvent(ev)); } @Override protected void dispatchDraw(Canvas canvas) { super.dispatchDraw(canvas); Loading packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +7 −0 Original line number Diff line number Diff line Loading @@ -23,12 +23,14 @@ import android.graphics.Canvas; import android.os.Build; import android.os.Trace; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.ViewPropertyAnimator; import android.widget.GridLayout; import com.android.systemui.R; import com.android.systemui.shade.TouchLogger; import com.android.systemui.statusbar.CrossFadeHelper; import java.io.PrintWriter; Loading Loading @@ -110,6 +112,11 @@ public class KeyguardStatusView extends GridLayout { } } @Override public boolean dispatchTouchEvent(MotionEvent ev) { return TouchLogger.logDispatchTouch(TAG, ev, super.dispatchTouchEvent(ev)); } public void dump(PrintWriter pw, String[] args) { pw.println("KeyguardStatusView:"); pw.println(" mDarkAmount: " + mDarkAmount); Loading packages/SystemUI/src/com/android/systemui/common/ui/view/LongPressHandlingView.kt +5 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.content.Context import android.util.AttributeSet import android.view.MotionEvent import android.view.View import com.android.systemui.shade.TouchLogger import kotlin.math.pow import kotlin.math.sqrt import kotlinx.coroutines.DisposableHandle Loading Loading @@ -83,6 +84,10 @@ class LongPressHandlingView( interactionHandler.isLongPressHandlingEnabled = isEnabled } override fun dispatchTouchEvent(event: MotionEvent): Boolean { return TouchLogger.logDispatchTouch("long_press", event, super.dispatchTouchEvent(event)) } @SuppressLint("ClickableViewAccessibility") override fun onTouchEvent(event: MotionEvent?): Boolean { return interactionHandler.onTouchEvent(event?.toModel()) Loading packages/SystemUI/src/com/android/systemui/log/dagger/LogModule.java +8 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,14 @@ public class LogModule { return factory.create("ShadeLog", 500, false); } /** Provides a logging buffer for Shade messages. */ @Provides @SysUISingleton @ShadeTouchLog public static LogBuffer provideShadeTouchLogBuffer(LogBufferFactory factory) { return factory.create("ShadeTouchLog", 500, false); } /** Provides a logging buffer for all logs related to managing notification sections. */ @Provides @SysUISingleton Loading packages/SystemUI/src/com/android/systemui/log/dagger/ShadeTouchLog.java 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.systemui.log.dagger; import static java.lang.annotation.RetentionPolicy.RUNTIME; import com.android.systemui.log.LogBuffer; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import javax.inject.Qualifier; /** A {@link LogBuffer} for tracking touches in various shade child views. */ @Qualifier @Documented @Retention(RUNTIME) public @interface ShadeTouchLog { } Loading
packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +6 −0 Original line number Diff line number Diff line Loading @@ -100,6 +100,7 @@ import com.android.systemui.Gefingerpoken; import com.android.systemui.R; import com.android.systemui.classifier.FalsingA11yDelegate; import com.android.systemui.plugins.FalsingManager; import com.android.systemui.shade.TouchLogger; import com.android.systemui.shared.system.SysUiStatsLog; import com.android.systemui.statusbar.policy.BaseUserSwitcherAdapter; import com.android.systemui.statusbar.policy.UserSwitcherController; Loading Loading @@ -665,6 +666,11 @@ public class KeyguardSecurityContainer extends ConstraintLayout { return insets.inset(0, 0, 0, inset); } @Override public boolean dispatchTouchEvent(MotionEvent ev) { return TouchLogger.logDispatchTouch(TAG, ev, super.dispatchTouchEvent(ev)); } @Override protected void dispatchDraw(Canvas canvas) { super.dispatchDraw(canvas); Loading
packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +7 −0 Original line number Diff line number Diff line Loading @@ -23,12 +23,14 @@ import android.graphics.Canvas; import android.os.Build; import android.os.Trace; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.ViewPropertyAnimator; import android.widget.GridLayout; import com.android.systemui.R; import com.android.systemui.shade.TouchLogger; import com.android.systemui.statusbar.CrossFadeHelper; import java.io.PrintWriter; Loading Loading @@ -110,6 +112,11 @@ public class KeyguardStatusView extends GridLayout { } } @Override public boolean dispatchTouchEvent(MotionEvent ev) { return TouchLogger.logDispatchTouch(TAG, ev, super.dispatchTouchEvent(ev)); } public void dump(PrintWriter pw, String[] args) { pw.println("KeyguardStatusView:"); pw.println(" mDarkAmount: " + mDarkAmount); Loading
packages/SystemUI/src/com/android/systemui/common/ui/view/LongPressHandlingView.kt +5 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.content.Context import android.util.AttributeSet import android.view.MotionEvent import android.view.View import com.android.systemui.shade.TouchLogger import kotlin.math.pow import kotlin.math.sqrt import kotlinx.coroutines.DisposableHandle Loading Loading @@ -83,6 +84,10 @@ class LongPressHandlingView( interactionHandler.isLongPressHandlingEnabled = isEnabled } override fun dispatchTouchEvent(event: MotionEvent): Boolean { return TouchLogger.logDispatchTouch("long_press", event, super.dispatchTouchEvent(event)) } @SuppressLint("ClickableViewAccessibility") override fun onTouchEvent(event: MotionEvent?): Boolean { return interactionHandler.onTouchEvent(event?.toModel()) Loading
packages/SystemUI/src/com/android/systemui/log/dagger/LogModule.java +8 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,14 @@ public class LogModule { return factory.create("ShadeLog", 500, false); } /** Provides a logging buffer for Shade messages. */ @Provides @SysUISingleton @ShadeTouchLog public static LogBuffer provideShadeTouchLogBuffer(LogBufferFactory factory) { return factory.create("ShadeTouchLog", 500, false); } /** Provides a logging buffer for all logs related to managing notification sections. */ @Provides @SysUISingleton Loading
packages/SystemUI/src/com/android/systemui/log/dagger/ShadeTouchLog.java 0 → 100644 +33 −0 Original line number Diff line number Diff line /* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.systemui.log.dagger; import static java.lang.annotation.RetentionPolicy.RUNTIME; import com.android.systemui.log.LogBuffer; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import javax.inject.Qualifier; /** A {@link LogBuffer} for tracking touches in various shade child views. */ @Qualifier @Documented @Retention(RUNTIME) public @interface ShadeTouchLog { }