Lines Matching defs:Util
21 import com.android.camera.Util;
33 int h = Util.ORIENTATION_HYSTERESIS;
34 assertEquals(0, Util.roundOrientation(0, 0));
35 assertEquals(0, Util.roundOrientation(359, 0));
36 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0));
37 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0));
38 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0));
39 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0));
41 assertEquals(90, Util.roundOrientation(90, 90));
42 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90));
43 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90));
44 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90));
45 assertEquals(0, Util.roundOrientation(90 - 45 - h, 90));
47 assertEquals(180, Util.roundOrientation(180, 180));
48 assertEquals(180, Util.roundOrientation(180 + 44 + h, 180));
49 assertEquals(270, Util.roundOrientation(180 + 45 + h, 180));
50 assertEquals(180, Util.roundOrientation(180 - 44 - h, 180));
51 assertEquals(90, Util.roundOrientation(180 - 45 - h, 180));
53 assertEquals(270, Util.roundOrientation(270, 270));
54 assertEquals(270, Util.roundOrientation(270 + 44 + h, 270));
55 assertEquals(0, Util.roundOrientation(270 + 45 + h, 270));
56 assertEquals(270, Util.roundOrientation(270 - 44 - h, 270));
57 assertEquals(180, Util.roundOrientation(270 - 45 - h, 270));
59 assertEquals(90, Util.roundOrientation(90, 0));
60 assertEquals(180, Util.roundOrientation(180, 0));
61 assertEquals(270, Util.roundOrientation(270, 0));
63 assertEquals(0, Util.roundOrientation(0, 90));
64 assertEquals(180, Util.roundOrientation(180, 90));
65 assertEquals(270, Util.roundOrientation(270, 90));
67 assertEquals(0, Util.roundOrientation(0, 180));
68 assertEquals(90, Util.roundOrientation(90, 180));
69 assertEquals(270, Util.roundOrientation(270, 180));
71 assertEquals(0, Util.roundOrientation(0, 270));
72 assertEquals(90, Util.roundOrientation(90, 270));
73 assertEquals(180, Util.roundOrientation(180, 270));
81 Util.prepareMatrix(matrix, false, 0, 800, 480);
87 Util.prepareMatrix(matrix, false, 90, 800, 480);
93 Util.prepareMatrix(matrix, false, 180, 800, 480);
99 Util.prepareMatrix(matrix, true, 180, 800, 480);