Home
last modified time | relevance | path

Searched refs:positions (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java64 final float[] positions = new float[] { 0f, 1f }; in test2Colors() local
68 verifyColors(colors, positions, TOLERANCE); in test2Colors()
74 final float[] positions = new float[] { 0f, 0.3f, 1f }; in testColorArray() local
75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testColorArray()
79 verifyColors(colors, positions, TOLERANCE); in testColorArray()
85 final float[] positions = new float[] { 0f, 0.25f, 0.5f, 1f }; in testMultiColor() local
87 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testMultiColor()
91 verifyColors(colors, positions, TOLERANCE); in testMultiColor()
94 private void verifyColors(int[] colors, float[] positions, int tolerance) { in verifyColors() argument
106 for (idx = 0; idx < positions.length; idx++) { in verifyColors()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DListScenario.java176 public Params setPositionsUnselectable(int ...positions) { in setPositionsUnselectable() argument
177 for (int pos : positions) { in setPositionsUnselectable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java295 float positions[] = new float[n * cn]; in asymmetricalCircleGrid() local
301 positions[(int) (i * size.width * cn + j + 0)] = in asymmetricalCircleGrid()
303 positions[(int) (i * size.width * cn + j + 1)] = in asymmetricalCircleGrid()
305 positions[(int) (i * size.width * cn + j + 2)] = 0; in asymmetricalCircleGrid()
309 grid.put(0, 0, positions); in asymmetricalCircleGrid()