diff options
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/camera/unittest/CameraTest.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/src/com/android/camera/unittest/CameraTest.java b/tests/src/com/android/camera/unittest/CameraTest.java index 1e17635..b4bd632 100644 --- a/tests/src/com/android/camera/unittest/CameraTest.java +++ b/tests/src/com/android/camera/unittest/CameraTest.java @@ -17,6 +17,7 @@ package com.android.camera.unittest; import com.android.camera.Camera; +import com.android.camera.FocusManager; import com.android.camera.Util; import android.graphics.Matrix; @@ -46,17 +47,17 @@ public class CameraTest extends TestCase { public void testConvertToFocusArea() { Rect rect = new Rect(); - Camera.convertToFocusArea(0, 0, 100, 100, 800, 480, rect); + FocusManager.convertToFocusArea(0, 0, 100, 100, 800, 480, rect); assertEquals(new Rect(-1000, -1000, -750, -583), rect); - Camera.convertToFocusArea(0, 0, 400, 240, 800, 480, rect); + FocusManager.convertToFocusArea(0, 0, 400, 240, 800, 480, rect); assertEquals(new Rect(-1000, -1000, 0, 0), rect); - Camera.convertToFocusArea(400, 240, 400, 240, 800, 480, rect); + FocusManager.convertToFocusArea(400, 240, 400, 240, 800, 480, rect); assertEquals(new Rect(0, 0, 1000, 1000), rect); - Camera.convertToFocusArea(200, 120, 400, 240, 800, 480, rect); + FocusManager.convertToFocusArea(200, 120, 400, 240, 800, 480, rect); assertEquals(new Rect(-500, -500, 500, 500), rect); - Camera.convertToFocusArea(0, 0, 800, 480, 800, 480, rect); + FocusManager.convertToFocusArea(0, 0, 800, 480, 800, 480, rect); assertEquals(new Rect(-1000, -1000, 1000, 1000), rect); - Camera.convertToFocusArea(860, 620, 100, 100, 960, 720, rect); + FocusManager.convertToFocusArea(860, 620, 100, 100, 960, 720, rect); assertEquals(new Rect(792, 722, 1000, 1000), rect); } |