diff options
author | Matt Pietal <mpietal@google.com> | 2020-11-03 15:11:20 -0500 |
---|---|---|
committer | Matt Pietal <mpietal@google.com> | 2020-11-04 09:12:50 -0500 |
commit | 6a350b53cff91e8b3bc27aa28aaab4d2603d1d84 (patch) | |
tree | 9b3dc8d786c276a18fbd988d10c9e126b18c07a5 /packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java | |
parent | 94b76b2267b20c5e56d4f50c4e259ecf3c984150 (diff) |
AOD - Burn in adjustments
Move both the clock and keyguard slice area towards the middle for x
adjustments, and retain the current Y adjustments.
Bug: 172360102
Test: follow burn in instructions here:
/frameworks/base/packages/SystemUI/docs/clock-plugins.md
Change-Id: Id22d777724bf9be58758b1a2b260a7933af8e999
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java index 8b55b06e5e5e..02b18b28a5ea 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceViewController.java @@ -42,6 +42,9 @@ import com.android.systemui.Dumpable; import com.android.systemui.dump.DumpManager; import com.android.systemui.keyguard.KeyguardSliceProvider; import com.android.systemui.plugins.ActivityStarter; +import com.android.systemui.statusbar.notification.AnimatableProperty; +import com.android.systemui.statusbar.notification.PropertyAnimator; +import com.android.systemui.statusbar.notification.stack.AnimationProperties; import com.android.systemui.statusbar.policy.ConfigurationController; import com.android.systemui.tuner.TunerService; import com.android.systemui.util.ViewController; @@ -199,6 +202,13 @@ public class KeyguardSliceViewController extends ViewController<KeyguardSliceVie Trace.endSection(); } + /** + * Update position of the view, with optional animation + */ + void updatePosition(int x, AnimationProperties props, boolean animate) { + PropertyAnimator.setProperty(mView, AnimatableProperty.TRANSLATION_X, x, props, animate); + } + void showSlice(Slice slice) { Trace.beginSection("KeyguardSliceViewController#showSlice"); if (slice == null) { |