summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2012-05-08 17:57:33 +0800
committerChih-Chung Chang <chihchung@google.com>2012-05-08 21:28:32 +0800
commitac02f46aa7ec727b839affb9aee415f01c1c2193 (patch)
tree78b1d7d7a6df72935918ec5da3cdfa4a443cbc65 /tests
parentb503801ebea0280bc5b55b092d4a5a61a7705f4a (diff)
downloadandroid_packages_apps_Snap-ac02f46aa7ec727b839affb9aee415f01c1c2193.tar.gz
android_packages_apps_Snap-ac02f46aa7ec727b839affb9aee415f01c1c2193.tar.bz2
android_packages_apps_Snap-ac02f46aa7ec727b839affb9aee415f01c1c2193.zip
Better orientation change handling.
Bug 6451117: Preview location is wrong after rotating the device quickly Bug 6444303: The preview location is wrong when camera is started upside down on tablet Bug 6451710: Tap to focus broken in landscape Change-Id: I12fd57d6618ec5521ccc6efcbf65de57ff2ea3d2
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/gallery3d/ui/GLRootMock.java6
-rw-r--r--tests/src/com/android/gallery3d/ui/GLRootStub.java6
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/src/com/android/gallery3d/ui/GLRootMock.java b/tests/src/com/android/gallery3d/ui/GLRootMock.java
index 55f1c9a12..4af7a1f59 100644
--- a/tests/src/com/android/gallery3d/ui/GLRootMock.java
+++ b/tests/src/com/android/gallery3d/ui/GLRootMock.java
@@ -16,6 +16,7 @@
package com.android.gallery3d.ui;
+import android.graphics.Matrix;
import com.android.gallery3d.anim.CanvasAnimation;
public class GLRootMock implements GLRoot {
@@ -34,5 +35,8 @@ public class GLRootMock implements GLRoot {
public void lockRenderThread() {}
public void unlockRenderThread() {}
public void setContentPane(GLView content) {}
- public void setOrientationCompensation(int degrees) {}
+ public void setOrientationSource(OrientationSource source) {}
+ public int getDisplayRotation() { return 0; }
+ public int getCompensation() { return 0; }
+ public Matrix getCompensationMatrix() { return null; }
}
diff --git a/tests/src/com/android/gallery3d/ui/GLRootStub.java b/tests/src/com/android/gallery3d/ui/GLRootStub.java
index bf9b63f6b..878eeddb4 100644
--- a/tests/src/com/android/gallery3d/ui/GLRootStub.java
+++ b/tests/src/com/android/gallery3d/ui/GLRootStub.java
@@ -16,6 +16,7 @@
package com.android.gallery3d.ui;
+import android.graphics.Matrix;
import com.android.gallery3d.anim.CanvasAnimation;
public class GLRootStub implements GLRoot {
@@ -27,5 +28,8 @@ public class GLRootStub implements GLRoot {
public void lockRenderThread() {}
public void unlockRenderThread() {}
public void setContentPane(GLView content) {}
- public void setOrientationCompensation(int degrees) {}
+ public void setOrientationSource(OrientationSource source) {}
+ public int getDisplayRotation() { return 0; }
+ public int getCompensation() { return 0; }
+ public Matrix getCompensationMatrix() { return null; }
}