Lines Matching defs:Util
19 import com.android.camera.Util;
29 int h = Util.ORIENTATION_HYSTERESIS;
30 assertEquals(0, Util.roundOrientation(0, 0));
31 assertEquals(0, Util.roundOrientation(359, 0));
32 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0));
33 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0));
34 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0));
35 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0));
37 assertEquals(90, Util.roundOrientation(90, 90));
38 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90));
39 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90));
40 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90));
41 assertEquals(0, Util.roundOrientation(90 - 45 - h, 90));
43 assertEquals(180, Util.roundOrientation(180, 180));
44 assertEquals(180, Util.roundOrientation(180 + 44 + h, 180));
45 assertEquals(270, Util.roundOrientation(180 + 45 + h, 180));
46 assertEquals(180, Util.roundOrientation(180 - 44 - h, 180));
47 assertEquals(90, Util.roundOrientation(180 - 45 - h, 180));
49 assertEquals(270, Util.roundOrientation(270, 270));
50 assertEquals(270, Util.roundOrientation(270 + 44 + h, 270));
51 assertEquals(0, Util.roundOrientation(270 + 45 + h, 270));
52 assertEquals(270, Util.roundOrientation(270 - 44 - h, 270));
53 assertEquals(180, Util.roundOrientation(270 - 45 - h, 270));
55 assertEquals(90, Util.roundOrientation(90, 0));
56 assertEquals(180, Util.roundOrientation(180, 0));
57 assertEquals(270, Util.roundOrientation(270, 0));
59 assertEquals(0, Util.roundOrientation(0, 90));
60 assertEquals(180, Util.roundOrientation(180, 90));
61 assertEquals(270, Util.roundOrientation(270, 90));
63 assertEquals(0, Util.roundOrientation(0, 180));
64 assertEquals(90, Util.roundOrientation(90, 180));
65 assertEquals(270, Util.roundOrientation(270, 180));
67 assertEquals(0, Util.roundOrientation(0, 270));
68 assertEquals(90, Util.roundOrientation(90, 270));
69 assertEquals(180, Util.roundOrientation(180, 270));
77 Util.prepareMatrix(matrix, false, 0, 800, 480);
83 Util.prepareMatrix(matrix, false, 90, 800, 480);
89 Util.prepareMatrix(matrix, false, 180, 800, 480);
95 Util.prepareMatrix(matrix, true, 180, 800, 480);