Loading packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +7 −2 Original line number Diff line number Diff line Loading @@ -172,6 +172,7 @@ import com.android.systemui.settings.brightness.domain.interactor.BrightnessMirr import com.android.systemui.shade.data.repository.FlingInfo; import com.android.systemui.shade.data.repository.ShadeRepository; import com.android.systemui.shade.domain.interactor.ShadeAnimationInteractor; import com.android.systemui.shade.shared.flag.ShadeWindowGoesAround; import com.android.systemui.shared.system.QuickStepContract; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.GestureRecorder; Loading Loading @@ -2269,8 +2270,12 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump } float getDisplayDensity() { if (ShadeWindowGoesAround.isEnabled()) { return mView.getContext().getResources().getConfiguration().densityDpi; } else { return mCentralSurfaces.getDisplayDensity(); } } /** Return whether a touch is near the gesture handle at the bottom of screen */ boolean isInGestureNavHomeHandleArea(float x, float y) { Loading Loading @@ -3830,7 +3835,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump /* screenOnFromTouch=*/ getWakefulness().isAwakeFromTapOrGesture()); // Log collapse gesture if on lock screen. if (!expand && onKeyguard) { float displayDensity = mCentralSurfaces.getDisplayDensity(); float displayDensity = getDisplayDensity(); int heightDp = (int) Math.abs((y - mInitialExpandY) / displayDensity); int velocityDp = (int) Math.abs(vel / displayDensity); mLockscreenGestureLogger.write(MetricsEvent.ACTION_LS_UNLOCK, heightDp, velocityDp); Loading Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +7 −2 Original line number Diff line number Diff line Loading @@ -172,6 +172,7 @@ import com.android.systemui.settings.brightness.domain.interactor.BrightnessMirr import com.android.systemui.shade.data.repository.FlingInfo; import com.android.systemui.shade.data.repository.ShadeRepository; import com.android.systemui.shade.domain.interactor.ShadeAnimationInteractor; import com.android.systemui.shade.shared.flag.ShadeWindowGoesAround; import com.android.systemui.shared.system.QuickStepContract; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.GestureRecorder; Loading Loading @@ -2269,8 +2270,12 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump } float getDisplayDensity() { if (ShadeWindowGoesAround.isEnabled()) { return mView.getContext().getResources().getConfiguration().densityDpi; } else { return mCentralSurfaces.getDisplayDensity(); } } /** Return whether a touch is near the gesture handle at the bottom of screen */ boolean isInGestureNavHomeHandleArea(float x, float y) { Loading Loading @@ -3830,7 +3835,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump /* screenOnFromTouch=*/ getWakefulness().isAwakeFromTapOrGesture()); // Log collapse gesture if on lock screen. if (!expand && onKeyguard) { float displayDensity = mCentralSurfaces.getDisplayDensity(); float displayDensity = getDisplayDensity(); int heightDp = (int) Math.abs((y - mInitialExpandY) / displayDensity); int velocityDp = (int) Math.abs(vel / displayDensity); mLockscreenGestureLogger.write(MetricsEvent.ACTION_LS_UNLOCK, heightDp, velocityDp); Loading