diff options
author | 2023-07-14 16:35:06 +0100 | |
---|---|---|
committer | 2023-09-21 12:05:00 +0100 | |
commit | 670fb7f5c0d23cf51ead25538bcb017e03ed73ac (patch) | |
tree | 0d145ee02cf01e42cca30d7555382e3e31aa6746 /tests/permission/src | |
parent | 3faf4e64c386957aba9926cf61c5f3f0f251c645 (diff) |
Start logging rotation lock history + include caller information
There have been a few reports on foldables where rotation lock suddenly
changed, without user interaction.
Adding these logs will make it easier to debug the issue.
Bug: 289023967
Bug: 289534937
Bug: 279685215
Test: Manually - Change rotation lock and check logs in dumpsys
Change-Id: If8de11265355f640a6ec54950bb3250c231b34cf
Diffstat (limited to 'tests/permission/src')
-rw-r--r-- | tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java index 06cbeb5368a5..330bc84d7a76 100644 --- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java +++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java @@ -124,7 +124,7 @@ public class WindowManagerPermissionTests extends TestCase { @SmallTest public void testSET_ORIENTATION() { try { - mWm.freezeRotation(-1); + mWm.freezeRotation(/* rotation= */ -1, /* caller= */ "WindowManagerPermissionTests"); fail("IWindowManager.freezeRotation did not throw SecurityException as" + " expected"); } catch (SecurityException e) { @@ -134,7 +134,7 @@ public class WindowManagerPermissionTests extends TestCase { } try { - mWm.thawRotation(); + mWm.thawRotation(/* called= */ "WindowManagerPermissionTests"); fail("IWindowManager.thawRotation did not throw SecurityException as" + " expected"); } catch (SecurityException e) { |