Searched refs:axes (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | FontVariationAxisTest.java | 72 FontVariationAxis[] axes = FontVariationAxis.fromFontVariationSettings(""); in testFromFontVariationSetting_Single() local 73 assertNull(axes); in testFromFontVariationSetting_Single() 75 axes = FontVariationAxis.fromFontVariationSettings(null); in testFromFontVariationSetting_Single() 76 assertNull(axes); in testFromFontVariationSetting_Single() 78 axes = FontVariationAxis.fromFontVariationSettings("'wdth' 1"); in testFromFontVariationSetting_Single() 79 assertEquals(1, axes.length); in testFromFontVariationSetting_Single() 80 assertEquals("wdth", axes[0].getTag()); in testFromFontVariationSetting_Single() 81 assertEquals(1.0f, axes[0].getStyleValue(), FLOT_EQUALITY_PREC); in testFromFontVariationSetting_Single() 83 axes = FontVariationAxis.fromFontVariationSettings("\"wdth\" 100"); in testFromFontVariationSetting_Single() 84 assertEquals(1, axes.length); in testFromFontVariationSetting_Single() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | GyroscopeMeasurementTestActivity.java | 182 private int[] getExpectationsDeg(int axes, int rotationAxis, int expectationDeg) { in getExpectationsDeg() argument 183 int[] expectationsDeg = new int[axes]; in getExpectationsDeg() 184 for (int i = 0; i < axes; ++i) { in getExpectationsDeg() 191 private float[] getThresholdsDeg(int axes, int rotationAxis) { in getThresholdsDeg() argument 192 float[] thresholdsDeg = new float[axes]; in getThresholdsDeg() 193 for (int i = 0; i < axes; ++i) { in getThresholdsDeg()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | NativeSystemFontHelper.java | 46 FontVariationAxis[] axes = new FontVariationAxis[nGetAxisCount(fontPtr)]; in getAvailableFonts() local 47 for (int i = 0; i < axes.length; ++i) { in getAvailableFonts() 48 axes[i] = new FontVariationAxis( in getAvailableFonts() 56 .setFontVariationSettings(axes) in getAvailableFonts()
|
D | FontTest.java | 178 FontVariationAxis[] axes = FontVariationAxis.fromFontVariationSettings( in testBuilder_buffer_vf() local 181 Font font = new Font.Builder(buffer).setFontVariationSettings(axes).build(); in testBuilder_buffer_vf() 185 assertEquals(path, axes, font.getAxes()); in testBuilder_buffer_vf() 301 FontVariationAxis[] axes = FontVariationAxis.fromFontVariationSettings( in testBuilder_file_vf() local 309 Font font = new Font.Builder(file).setFontVariationSettings(axes).build(); in testBuilder_file_vf() 313 assertEquals(path, axes, font.getAxes()); in testBuilder_file_vf() 447 FontVariationAxis[] axes = FontVariationAxis.fromFontVariationSettings( in testBuilder_fd_vf() local 457 Font font = new Font.Builder(fd).setFontVariationSettings(axes) in testBuilder_fd_vf() 462 assertEquals(path, axes, font.getAxes()); in testBuilder_fd_vf() 599 FontVariationAxis[] axes = FontVariationAxis.fromFontVariationSettings( in testBuilder_fd_subdata_vf() local [all …]
|
/cts/libs/input/src/com/android/cts/input/ |
D | HidJsonParser.java | 214 JSONObject axes = entry.getJSONObject("axes"); in parseMotionEvent() local 215 Iterator<String> keys = axes.keys(); in parseMotionEvent() 218 float value = (float) axes.getDouble(axis); in parseMotionEvent()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventTest.java | 855 final int[] axes = { in testAxisFromToString() local 907 for (int i = 0; i < axes.length; i++) { in testAxisFromToString() 908 String axisToString = MotionEvent.axisToString(axes[i]); in testAxisFromToString() 910 assertEquals(axes[i], MotionEvent.axisFromString(axisToString)); in testAxisFromToString()
|