summaryrefslogtreecommitdiff
path: root/tests/permission/src
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2016-06-29 16:41:50 -0700
committerRobert Carr <racarr@google.com>2016-07-01 11:05:40 -0700
commitfd10cd1989966d01011a0cf75f3282f3e12ca5a6 (patch)
treefb8afc89c8fa0e814e394b3e69173559ecb81b79 /tests/permission/src
parentef5c3aad4df40913d62de4fd9b12e2c7a9bacdf5 (diff)
Force CROSSFADE rotation when launching from double tap gesture.
When activity transition triggers a rotation change, the starting window will normally be the top window at the time we try to select the window animation. However, these layout params won't have the apps rotation animation set (as the client code will set that on the real window, not the starting window). Eventually we would like to add API to specify rotation animation via manifest to solve this problem cleanly. In the mean time, we can force a specific rotation animation from the double tap gesture, and clean up some camera ugliness. We accomplish this by attaching an animation hint to ActivityOptions. Bug: 28838855 Change-Id: If052cd8cbae76651da43f3b4c590cd9dcc1afc0f
Diffstat (limited to 'tests/permission/src')
-rw-r--r--tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java2
1 files changed, 1 insertions, 1 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 a726a15f7cc2..063dd8631565 100644
--- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
+++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
@@ -93,7 +93,7 @@ public class WindowManagerPermissionTests extends TestCase {
try {
mWm.addAppToken(0, null, 0, 0, 0, false, false, 0, 0, false, false, null,
- Configuration.EMPTY, 0, false, false, 0);
+ Configuration.EMPTY, 0, false, false, 0, -1);
fail("IWindowManager.addAppToken did not throw SecurityException as"
+ " expected");
} catch (SecurityException e) {