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.java54 final float[] positions = new float[] { 0f, 1f }; in test2Colors() local
58 checkColors(colors, positions, TOLERANCE); in test2Colors()
63 final float[] positions = new float[] { 0f, 0.3f, 1f }; in testColorArray() local
64 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testColorArray()
68 checkColors(colors, positions, TOLERANCE); in testColorArray()
73 final float[] positions = new float[] { 0f, 0.25f, 0.5f, 1f }; in testMultiColor() local
75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testMultiColor()
79 checkColors(colors, positions, TOLERANCE); in testMultiColor()
82 private void checkColors(int[] colors, float[] positions, int tolerance) { in checkColors() argument
94 for (idx = 0; idx < positions.length; idx++) { in checkColors()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/util/
DListScenario.java180 public Params setPositionsUnselectable(int ...positions) { in setPositionsUnselectable() argument
181 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()