summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Yein Jo <yeinj@google.com> 2023-01-13 03:01:49 +0000
committer Yein Jo <yeinj@google.com> 2023-01-18 19:53:14 +0000
commitb9f622bcf375bcace030c0a0c86ea3de9796d427 (patch)
tree8b61c2382f374b6f13743df51ae7d5436a274735 /services/coverage/java
parentc9425a388ff727141c0d05e86076a77d9942a27d (diff)
Replace RotationUtils#Rotation with Surface#Rotation for wired charging animation.
When layout the ripple animation, we only care about the device rotation, and not whether it's in portrait or landscape. (Consider a case where the device has a larger width by default.) Thus we should use Surface#Rotation that always give us the angle based on the counter clock-wise (i.e. natural) rotation. Note that R.bool.config_reverseDefaultRotation does not affect the rotation order. Also tested on both devices with different config value. Bug: 264992323 Test: Manual, WiredChargingRippleControllerTest Change-Id: I25daae0ed4969ebb6e9387ea936b85b2c33bcdcf
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions