Loading packages/CarSystemUI/src/com/android/systemui/car/statusbar/CarStatusBar.java +0 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ import com.android.systemui.car.bluetooth.CarBatteryController; import com.android.systemui.car.navigationbar.CarNavigationBarController; import com.android.systemui.classifier.FalsingLog; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.fragments.FragmentHostManager; import com.android.systemui.keyguard.DismissCallbackRegistry; Loading Loading @@ -173,7 +172,6 @@ public class CarStatusBar extends StatusBar implements CarBatteryController.Batt DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -254,7 +252,6 @@ public class CarStatusBar extends StatusBar implements CarBatteryController.Batt displayMetrics, metricsLogger, uiBgExecutor, mainExecutor, notificationMediaManager, lockScreenUserManager, remoteInputManager, Loading packages/CarSystemUI/src/com/android/systemui/car/statusbar/CarStatusBarModule.java +0 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ import com.android.systemui.bubbles.BubbleController; import com.android.systemui.car.CarDeviceProvisionedController; import com.android.systemui.car.navigationbar.CarNavigationBarController; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.keyguard.DismissCallbackRegistry; import com.android.systemui.keyguard.KeyguardViewMediator; Loading Loading @@ -148,7 +147,6 @@ public class CarStatusBarModule { DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -228,7 +226,6 @@ public class CarStatusBarModule { displayMetrics, metricsLogger, uiBgExecutor, mainExecutor, notificationMediaManager, lockScreenUserManager, remoteInputManager, Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/ActivityLaunchAnimator.java +35 −67 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ package com.android.systemui.statusbar.notification; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; import android.annotation.Nullable; import android.app.ActivityManager; import android.graphics.Matrix; import android.graphics.Rect; Loading @@ -42,8 +41,6 @@ import com.android.systemui.statusbar.phone.CollapsedStatusBarFragment; import com.android.systemui.statusbar.phone.NotificationPanelViewController; import com.android.systemui.statusbar.phone.NotificationShadeWindowViewController; import java.util.concurrent.Executor; /** * A class that allows activities to be launched in a seamless way where the notification * transforms nicely into the starting window. Loading @@ -62,7 +59,6 @@ public class ActivityLaunchAnimator { private final float mWindowCornerRadius; private final NotificationShadeWindowViewController mNotificationShadeWindowViewController; private final NotificationShadeDepthController mDepthController; private final Executor mMainExecutor; private Callback mCallback; private final Runnable mTimeoutRunnable = () -> { setAnimationPending(false); Loading @@ -77,14 +73,12 @@ public class ActivityLaunchAnimator { Callback callback, NotificationPanelViewController notificationPanel, NotificationShadeDepthController depthController, NotificationListContainer container, Executor mainExecutor) { NotificationListContainer container) { mNotificationPanel = notificationPanel; mNotificationContainer = container; mDepthController = depthController; mNotificationShadeWindowViewController = notificationShadeWindowViewController; mCallback = callback; mMainExecutor = mainExecutor; mWindowCornerRadius = ScreenDecorationsUtils .getWindowCornerRadius(mNotificationShadeWindowViewController.getView() .getResources()); Loading @@ -97,7 +91,7 @@ public class ActivityLaunchAnimator { return null; } AnimationRunner animationRunner = new AnimationRunner( (ExpandableNotificationRow) sourceView, mMainExecutor); (ExpandableNotificationRow) sourceView); return new RemoteAnimationAdapter(animationRunner, ANIMATION_DURATION, ANIMATION_DURATION - 150 /* statusBarTransitionDelay */); } Loading Loading @@ -140,18 +134,17 @@ public class ActivityLaunchAnimator { class AnimationRunner extends IRemoteAnimationRunner.Stub { private final ExpandAnimationParameters mParams = new ExpandAnimationParameters(); private final ExpandableNotificationRow mSourceNotification; private final ExpandAnimationParameters mParams; private final Rect mWindowCrop = new Rect(); private final float mNotificationCornerRadius; private final Executor mMainExecutor; @Nullable private ExpandableNotificationRow mSourceNotification; @Nullable private SyncRtSurfaceTransactionApplier mSyncRtTransactionApplier; private float mCornerRadius; private boolean mIsFullScreenLaunch = true; private final SyncRtSurfaceTransactionApplier mSyncRtTransactionApplier; AnimationRunner(ExpandableNotificationRow sourceNotification, Executor mainExecutor) { mMainExecutor = mainExecutor; mSourceNotification = sourceNotification; public AnimationRunner(ExpandableNotificationRow sourceNofitication) { mSourceNotification = sourceNofitication; mParams = new ExpandAnimationParameters(); mSyncRtTransactionApplier = new SyncRtSurfaceTransactionApplier(mSourceNotification); mNotificationCornerRadius = Math.max(mSourceNotification.getCurrentTopRoundness(), mSourceNotification.getCurrentBottomRoundness()); Loading @@ -162,15 +155,13 @@ public class ActivityLaunchAnimator { RemoteAnimationTarget[] remoteAnimationWallpaperTargets, IRemoteAnimationFinishedCallback iRemoteAnimationFinishedCallback) throws RemoteException { mMainExecutor.execute(() -> { mSourceNotification.post(() -> { RemoteAnimationTarget primary = getPrimaryRemoteAnimationTarget( remoteAnimationTargets); if (primary == null || mSourceNotification == null) { if (primary == null) { setAnimationPending(false); invokeCallback(iRemoteAnimationFinishedCallback); mNotificationPanel.collapse(false /* delayed */, 1.0f /* speedUpFactor */); mSourceNotification = null; mSyncRtTransactionApplier = null; return; } Loading @@ -181,14 +172,28 @@ public class ActivityLaunchAnimator { if (!mIsFullScreenLaunch) { mNotificationPanel.collapseWithDuration(ANIMATION_DURATION); } mParams.initFrom(mSourceNotification); final int targetWidth = primary.sourceContainerBounds.width(); final int notificationHeight; final int notificationWidth; notificationHeight = mSourceNotification.getActualHeight() - mSourceNotification.getClipBottomAmount(); notificationWidth = mSourceNotification.getWidth(); ValueAnimator anim = ValueAnimator.ofFloat(0, 1); mParams.startPosition = mSourceNotification.getLocationOnScreen(); mParams.startTranslationZ = mSourceNotification.getTranslationZ(); mParams.startClipTopAmount = mSourceNotification.getClipTopAmount(); if (mSourceNotification.isChildInGroup()) { int parentClip = mSourceNotification .getNotificationParent().getClipTopAmount(); mParams.parentStartClipTopAmount = parentClip; // We need to calculate how much the child is clipped by the parent // because children always have 0 clipTopAmount if (parentClip != 0) { float childClip = parentClip - mSourceNotification.getTranslationY(); if (childClip > 0.0f) { mParams.startClipTopAmount = (int) Math.ceil(childClip); } } } int targetWidth = primary.sourceContainerBounds.width(); int notificationHeight = mSourceNotification.getActualHeight() - mSourceNotification.getClipBottomAmount(); int notificationWidth = mSourceNotification.getWidth(); anim.setDuration(ANIMATION_DURATION); anim.setInterpolator(Interpolators.LINEAR); anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { Loading Loading @@ -226,11 +231,6 @@ public class ActivityLaunchAnimator { }); } @Nullable ExpandableNotificationRow getRow() { return mSourceNotification; } private void invokeCallback(IRemoteAnimationFinishedCallback callback) { try { callback.onAnimationFinished(); Loading @@ -253,9 +253,7 @@ public class ActivityLaunchAnimator { private void setExpandAnimationRunning(boolean running) { mNotificationPanel.setLaunchingNotification(running); if (mSourceNotification != null) { mSourceNotification.setExpandAnimationRunning(running); } mNotificationShadeWindowViewController.setExpandAnimationRunning(running); mNotificationContainer.setExpandingNotification(running ? mSourceNotification : null); mAnimationRunning = running; Loading @@ -263,8 +261,6 @@ public class ActivityLaunchAnimator { mCallback.onExpandAnimationFinished(mIsFullScreenLaunch); applyParamsToNotification(null); applyParamsToNotificationShade(null); mSourceNotification = null; mSyncRtTransactionApplier = null; } } Loading @@ -276,10 +272,8 @@ public class ActivityLaunchAnimator { } private void applyParamsToNotification(ExpandAnimationParameters params) { if (mSourceNotification != null) { mSourceNotification.applyExpandAnimationParams(params); } } private void applyParamsToWindow(RemoteAnimationTarget app) { Matrix m = new Matrix(); Loading @@ -293,18 +287,14 @@ public class ActivityLaunchAnimator { .withCornerRadius(mCornerRadius) .withVisibility(true) .build(); if (mSyncRtTransactionApplier != null) { mSyncRtTransactionApplier.scheduleApply(true /* earlyWakeup */, params); } } @Override public void onAnimationCancelled() throws RemoteException { mMainExecutor.execute(() -> { mSourceNotification.post(() -> { setAnimationPending(false); mCallback.onLaunchAnimationCancelled(); mSourceNotification = null; mSyncRtTransactionApplier = null; }); } }; Loading Loading @@ -369,28 +359,6 @@ public class ActivityLaunchAnimator { public float getStartTranslationZ() { return startTranslationZ; } /** Initialize with data pulled from the row. */ void initFrom(@Nullable ExpandableNotificationRow row) { if (row == null) { return; } startPosition = row.getLocationOnScreen(); startTranslationZ = row.getTranslationZ(); startClipTopAmount = row.getClipTopAmount(); if (row.isChildInGroup()) { int parentClip = row.getNotificationParent().getClipTopAmount(); parentStartClipTopAmount = parentClip; // We need to calculate how much the child is clipped by the parent // because children always have 0 clipTopAmount if (parentClip != 0) { float childClip = parentClip - row.getTranslationY(); if (childClip > 0.0f) { startClipTopAmount = (int) Math.ceil(childClip); } } } } } public interface Callback { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −6 Original line number Diff line number Diff line Loading @@ -143,7 +143,6 @@ import com.android.systemui.bubbles.BubbleController; import com.android.systemui.charging.WirelessChargingAnimation; import com.android.systemui.classifier.FalsingLog; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.fragments.ExtensionFragmentListener; import com.android.systemui.fragments.FragmentHostManager; Loading Loading @@ -511,7 +510,6 @@ public class StatusBar extends SystemUI implements DemoMode, private final ScrimController mScrimController; protected DozeScrimController mDozeScrimController; private final Executor mUiBgExecutor; private final Executor mMainExecutor; protected boolean mDozing; Loading Loading @@ -670,7 +668,6 @@ public class StatusBar extends SystemUI implements DemoMode, DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -751,7 +748,6 @@ public class StatusBar extends SystemUI implements DemoMode, mDisplayMetrics = displayMetrics; mMetricsLogger = metricsLogger; mUiBgExecutor = uiBgExecutor; mMainExecutor = mainExecutor; mMediaManager = notificationMediaManager; mLockscreenUserManager = lockScreenUserManager; mRemoteInputManager = remoteInputManager; Loading Loading @@ -1279,8 +1275,7 @@ public class StatusBar extends SystemUI implements DemoMode, mActivityLaunchAnimator = new ActivityLaunchAnimator( mNotificationShadeWindowViewController, this, mNotificationPanelViewController, mNotificationShadeDepthControllerLazy.get(), (NotificationListContainer) mStackScroller, mMainExecutor); (NotificationListContainer) mStackScroller); // TODO: inject this. mPresenter = new StatusBarNotificationPresenter(mContext, mNotificationPanelViewController, Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/dagger/StatusBarPhoneModule.java +0 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ import com.android.systemui.assist.AssistManager; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.bubbles.BubbleController; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.keyguard.DismissCallbackRegistry; import com.android.systemui.keyguard.KeyguardViewMediator; Loading Loading @@ -146,7 +145,6 @@ public interface StatusBarPhoneModule { DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -226,7 +224,6 @@ public interface StatusBarPhoneModule { displayMetrics, metricsLogger, uiBgExecutor, mainExecutor, notificationMediaManager, lockScreenUserManager, remoteInputManager, Loading Loading
packages/CarSystemUI/src/com/android/systemui/car/statusbar/CarStatusBar.java +0 −3 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ import com.android.systemui.car.bluetooth.CarBatteryController; import com.android.systemui.car.navigationbar.CarNavigationBarController; import com.android.systemui.classifier.FalsingLog; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.fragments.FragmentHostManager; import com.android.systemui.keyguard.DismissCallbackRegistry; Loading Loading @@ -173,7 +172,6 @@ public class CarStatusBar extends StatusBar implements CarBatteryController.Batt DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -254,7 +252,6 @@ public class CarStatusBar extends StatusBar implements CarBatteryController.Batt displayMetrics, metricsLogger, uiBgExecutor, mainExecutor, notificationMediaManager, lockScreenUserManager, remoteInputManager, Loading
packages/CarSystemUI/src/com/android/systemui/car/statusbar/CarStatusBarModule.java +0 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ import com.android.systemui.bubbles.BubbleController; import com.android.systemui.car.CarDeviceProvisionedController; import com.android.systemui.car.navigationbar.CarNavigationBarController; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.keyguard.DismissCallbackRegistry; import com.android.systemui.keyguard.KeyguardViewMediator; Loading Loading @@ -148,7 +147,6 @@ public class CarStatusBarModule { DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -228,7 +226,6 @@ public class CarStatusBarModule { displayMetrics, metricsLogger, uiBgExecutor, mainExecutor, notificationMediaManager, lockScreenUserManager, remoteInputManager, Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/ActivityLaunchAnimator.java +35 −67 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ package com.android.systemui.statusbar.notification; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ValueAnimator; import android.annotation.Nullable; import android.app.ActivityManager; import android.graphics.Matrix; import android.graphics.Rect; Loading @@ -42,8 +41,6 @@ import com.android.systemui.statusbar.phone.CollapsedStatusBarFragment; import com.android.systemui.statusbar.phone.NotificationPanelViewController; import com.android.systemui.statusbar.phone.NotificationShadeWindowViewController; import java.util.concurrent.Executor; /** * A class that allows activities to be launched in a seamless way where the notification * transforms nicely into the starting window. Loading @@ -62,7 +59,6 @@ public class ActivityLaunchAnimator { private final float mWindowCornerRadius; private final NotificationShadeWindowViewController mNotificationShadeWindowViewController; private final NotificationShadeDepthController mDepthController; private final Executor mMainExecutor; private Callback mCallback; private final Runnable mTimeoutRunnable = () -> { setAnimationPending(false); Loading @@ -77,14 +73,12 @@ public class ActivityLaunchAnimator { Callback callback, NotificationPanelViewController notificationPanel, NotificationShadeDepthController depthController, NotificationListContainer container, Executor mainExecutor) { NotificationListContainer container) { mNotificationPanel = notificationPanel; mNotificationContainer = container; mDepthController = depthController; mNotificationShadeWindowViewController = notificationShadeWindowViewController; mCallback = callback; mMainExecutor = mainExecutor; mWindowCornerRadius = ScreenDecorationsUtils .getWindowCornerRadius(mNotificationShadeWindowViewController.getView() .getResources()); Loading @@ -97,7 +91,7 @@ public class ActivityLaunchAnimator { return null; } AnimationRunner animationRunner = new AnimationRunner( (ExpandableNotificationRow) sourceView, mMainExecutor); (ExpandableNotificationRow) sourceView); return new RemoteAnimationAdapter(animationRunner, ANIMATION_DURATION, ANIMATION_DURATION - 150 /* statusBarTransitionDelay */); } Loading Loading @@ -140,18 +134,17 @@ public class ActivityLaunchAnimator { class AnimationRunner extends IRemoteAnimationRunner.Stub { private final ExpandAnimationParameters mParams = new ExpandAnimationParameters(); private final ExpandableNotificationRow mSourceNotification; private final ExpandAnimationParameters mParams; private final Rect mWindowCrop = new Rect(); private final float mNotificationCornerRadius; private final Executor mMainExecutor; @Nullable private ExpandableNotificationRow mSourceNotification; @Nullable private SyncRtSurfaceTransactionApplier mSyncRtTransactionApplier; private float mCornerRadius; private boolean mIsFullScreenLaunch = true; private final SyncRtSurfaceTransactionApplier mSyncRtTransactionApplier; AnimationRunner(ExpandableNotificationRow sourceNotification, Executor mainExecutor) { mMainExecutor = mainExecutor; mSourceNotification = sourceNotification; public AnimationRunner(ExpandableNotificationRow sourceNofitication) { mSourceNotification = sourceNofitication; mParams = new ExpandAnimationParameters(); mSyncRtTransactionApplier = new SyncRtSurfaceTransactionApplier(mSourceNotification); mNotificationCornerRadius = Math.max(mSourceNotification.getCurrentTopRoundness(), mSourceNotification.getCurrentBottomRoundness()); Loading @@ -162,15 +155,13 @@ public class ActivityLaunchAnimator { RemoteAnimationTarget[] remoteAnimationWallpaperTargets, IRemoteAnimationFinishedCallback iRemoteAnimationFinishedCallback) throws RemoteException { mMainExecutor.execute(() -> { mSourceNotification.post(() -> { RemoteAnimationTarget primary = getPrimaryRemoteAnimationTarget( remoteAnimationTargets); if (primary == null || mSourceNotification == null) { if (primary == null) { setAnimationPending(false); invokeCallback(iRemoteAnimationFinishedCallback); mNotificationPanel.collapse(false /* delayed */, 1.0f /* speedUpFactor */); mSourceNotification = null; mSyncRtTransactionApplier = null; return; } Loading @@ -181,14 +172,28 @@ public class ActivityLaunchAnimator { if (!mIsFullScreenLaunch) { mNotificationPanel.collapseWithDuration(ANIMATION_DURATION); } mParams.initFrom(mSourceNotification); final int targetWidth = primary.sourceContainerBounds.width(); final int notificationHeight; final int notificationWidth; notificationHeight = mSourceNotification.getActualHeight() - mSourceNotification.getClipBottomAmount(); notificationWidth = mSourceNotification.getWidth(); ValueAnimator anim = ValueAnimator.ofFloat(0, 1); mParams.startPosition = mSourceNotification.getLocationOnScreen(); mParams.startTranslationZ = mSourceNotification.getTranslationZ(); mParams.startClipTopAmount = mSourceNotification.getClipTopAmount(); if (mSourceNotification.isChildInGroup()) { int parentClip = mSourceNotification .getNotificationParent().getClipTopAmount(); mParams.parentStartClipTopAmount = parentClip; // We need to calculate how much the child is clipped by the parent // because children always have 0 clipTopAmount if (parentClip != 0) { float childClip = parentClip - mSourceNotification.getTranslationY(); if (childClip > 0.0f) { mParams.startClipTopAmount = (int) Math.ceil(childClip); } } } int targetWidth = primary.sourceContainerBounds.width(); int notificationHeight = mSourceNotification.getActualHeight() - mSourceNotification.getClipBottomAmount(); int notificationWidth = mSourceNotification.getWidth(); anim.setDuration(ANIMATION_DURATION); anim.setInterpolator(Interpolators.LINEAR); anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { Loading Loading @@ -226,11 +231,6 @@ public class ActivityLaunchAnimator { }); } @Nullable ExpandableNotificationRow getRow() { return mSourceNotification; } private void invokeCallback(IRemoteAnimationFinishedCallback callback) { try { callback.onAnimationFinished(); Loading @@ -253,9 +253,7 @@ public class ActivityLaunchAnimator { private void setExpandAnimationRunning(boolean running) { mNotificationPanel.setLaunchingNotification(running); if (mSourceNotification != null) { mSourceNotification.setExpandAnimationRunning(running); } mNotificationShadeWindowViewController.setExpandAnimationRunning(running); mNotificationContainer.setExpandingNotification(running ? mSourceNotification : null); mAnimationRunning = running; Loading @@ -263,8 +261,6 @@ public class ActivityLaunchAnimator { mCallback.onExpandAnimationFinished(mIsFullScreenLaunch); applyParamsToNotification(null); applyParamsToNotificationShade(null); mSourceNotification = null; mSyncRtTransactionApplier = null; } } Loading @@ -276,10 +272,8 @@ public class ActivityLaunchAnimator { } private void applyParamsToNotification(ExpandAnimationParameters params) { if (mSourceNotification != null) { mSourceNotification.applyExpandAnimationParams(params); } } private void applyParamsToWindow(RemoteAnimationTarget app) { Matrix m = new Matrix(); Loading @@ -293,18 +287,14 @@ public class ActivityLaunchAnimator { .withCornerRadius(mCornerRadius) .withVisibility(true) .build(); if (mSyncRtTransactionApplier != null) { mSyncRtTransactionApplier.scheduleApply(true /* earlyWakeup */, params); } } @Override public void onAnimationCancelled() throws RemoteException { mMainExecutor.execute(() -> { mSourceNotification.post(() -> { setAnimationPending(false); mCallback.onLaunchAnimationCancelled(); mSourceNotification = null; mSyncRtTransactionApplier = null; }); } }; Loading Loading @@ -369,28 +359,6 @@ public class ActivityLaunchAnimator { public float getStartTranslationZ() { return startTranslationZ; } /** Initialize with data pulled from the row. */ void initFrom(@Nullable ExpandableNotificationRow row) { if (row == null) { return; } startPosition = row.getLocationOnScreen(); startTranslationZ = row.getTranslationZ(); startClipTopAmount = row.getClipTopAmount(); if (row.isChildInGroup()) { int parentClip = row.getNotificationParent().getClipTopAmount(); parentStartClipTopAmount = parentClip; // We need to calculate how much the child is clipped by the parent // because children always have 0 clipTopAmount if (parentClip != 0) { float childClip = parentClip - row.getTranslationY(); if (childClip > 0.0f) { startClipTopAmount = (int) Math.ceil(childClip); } } } } } public interface Callback { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −6 Original line number Diff line number Diff line Loading @@ -143,7 +143,6 @@ import com.android.systemui.bubbles.BubbleController; import com.android.systemui.charging.WirelessChargingAnimation; import com.android.systemui.classifier.FalsingLog; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.fragments.ExtensionFragmentListener; import com.android.systemui.fragments.FragmentHostManager; Loading Loading @@ -511,7 +510,6 @@ public class StatusBar extends SystemUI implements DemoMode, private final ScrimController mScrimController; protected DozeScrimController mDozeScrimController; private final Executor mUiBgExecutor; private final Executor mMainExecutor; protected boolean mDozing; Loading Loading @@ -670,7 +668,6 @@ public class StatusBar extends SystemUI implements DemoMode, DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -751,7 +748,6 @@ public class StatusBar extends SystemUI implements DemoMode, mDisplayMetrics = displayMetrics; mMetricsLogger = metricsLogger; mUiBgExecutor = uiBgExecutor; mMainExecutor = mainExecutor; mMediaManager = notificationMediaManager; mLockscreenUserManager = lockScreenUserManager; mRemoteInputManager = remoteInputManager; Loading Loading @@ -1279,8 +1275,7 @@ public class StatusBar extends SystemUI implements DemoMode, mActivityLaunchAnimator = new ActivityLaunchAnimator( mNotificationShadeWindowViewController, this, mNotificationPanelViewController, mNotificationShadeDepthControllerLazy.get(), (NotificationListContainer) mStackScroller, mMainExecutor); (NotificationListContainer) mStackScroller); // TODO: inject this. mPresenter = new StatusBarNotificationPresenter(mContext, mNotificationPanelViewController, Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/dagger/StatusBarPhoneModule.java +0 −3 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ import com.android.systemui.assist.AssistManager; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.bubbles.BubbleController; import com.android.systemui.colorextraction.SysuiColorExtractor; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.UiBackground; import com.android.systemui.keyguard.DismissCallbackRegistry; import com.android.systemui.keyguard.KeyguardViewMediator; Loading Loading @@ -146,7 +145,6 @@ public interface StatusBarPhoneModule { DisplayMetrics displayMetrics, MetricsLogger metricsLogger, @UiBackground Executor uiBgExecutor, @Main Executor mainExecutor, NotificationMediaManager notificationMediaManager, NotificationLockscreenUserManager lockScreenUserManager, NotificationRemoteInputManager remoteInputManager, Loading Loading @@ -226,7 +224,6 @@ public interface StatusBarPhoneModule { displayMetrics, metricsLogger, uiBgExecutor, mainExecutor, notificationMediaManager, lockScreenUserManager, remoteInputManager, Loading