Home
last modified time | relevance | path

Searched refs:axis (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DGameviceGv186Test.java41 for (int axis = MotionEvent.AXIS_X; axis <= MotionEvent.AXIS_GENERIC_16; axis++) { in assertAxis()
44 if (axis == MotionEvent.AXIS_GENERIC_1 || axis == MotionEvent.AXIS_GENERIC_2) { in assertAxis()
47 assertEquals(testCase + " (" + MotionEvent.axisToString(axis) + ")", in assertAxis()
48 expectedEvent.getAxisValue(axis), actualEvent.getAxisValue(axis), TOLERANCE); in assertAxis()
DInputTestCase.java205 for (int axis = MotionEvent.AXIS_X; axis <= MotionEvent.AXIS_GENERIC_16; axis++) { in assertAxis()
206 if (IGNORE_AXES.contains(axis)) continue; in assertAxis()
208 + " (" + MotionEvent.axisToString(axis) + ")", in assertAxis()
209 expectedEvent.getAxisValue(axis, i), actualEvent.getAxisValue(axis, i), in assertAxis()
/cts/tests/tests/view/src/android/view/cts/
DScrollFeedbackProviderTest.java106 private void runScrollScenarios(int deviceId, int source, int axis) { in runScrollScenarios() argument
107 mProvider.onScrollLimit(deviceId, source, axis, /* isStart= */ true); in runScrollScenarios()
109 mProvider.onScrollProgress(deviceId, source, axis, /* deltaInPixels= */ 300); in runScrollScenarios()
110 mProvider.onScrollProgress(deviceId, source, axis, /* deltaInPixels= */ 0); in runScrollScenarios()
111 mProvider.onScrollProgress(deviceId, source, axis, /* deltaInPixels= */ -900); in runScrollScenarios()
113 mProvider.onScrollLimit(deviceId, source, axis, /* isStart= */ false); in runScrollScenarios()
115 mProvider.onSnapToItem(deviceId, source, axis); in runScrollScenarios()
117 mProvider.onScrollLimit(deviceId, source, axis, /* isStart= */ false); in runScrollScenarios()
118 mProvider.onScrollLimit(deviceId, source, axis, /* isStart= */ true); in runScrollScenarios()
DViewConfigurationTest.java172 int axis = range.getAxis(); in testFlingThresholds_forAllAvailableDevices() local
175 int minVel = vc.getScaledMinimumFlingVelocity(deviceId, axis, source); in testFlingThresholds_forAllAvailableDevices()
176 int maxVel = vc.getScaledMaximumFlingVelocity(deviceId, axis, source); in testFlingThresholds_forAllAvailableDevices()
236 ViewConfiguration viewConfiguration, int deviceId, int source, int axis) { in verifyNoFlingThresholds() argument
238 viewConfiguration.getScaledMinimumFlingVelocity(deviceId, axis, source), in verifyNoFlingThresholds()
239 viewConfiguration.getScaledMaximumFlingVelocity(deviceId, axis, source)); in verifyNoFlingThresholds()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java208 private void notifyPrompt(int axis) { in notifyPrompt() argument
213 message("Manipulate the device in " + axisName.charAt(axis - 1) + in notifyPrompt()
228 private void switchAxis(int axis) { in switchAxis() argument
233 if (axis >=SensorManager.AXIS_X && axis <=SensorManager.AXIS_Z) { in switchAxis()
234 imageView.setImageResource(prompts[axis-1]); in switchAxis()
238 mIndicatorView.enableAxis(axis); in switchAxis()
239 mRVSensorLogger.updateRegister(mCoverManager.getAxis(axis), axis); in switchAxis() local
240 notifyPrompt(axis); in switchAxis()
252 public void switchAxisAsync(int axis) { in switchAxisAsync() argument
254 final int fAxis = axis; in switchAxisAsync()
[all …]
DRVCVXCheckAnalyzer.java643 private double calcMaxErr(ArrayList<AttitudeRec> ra, ArrayList<AttitudeRec> rb, int axis) { in calcMaxErr() argument
649 if (axis<0 || axis > 2) { in calcMaxErr()
662 switch(axis) { in calcMaxErr()
691 private double calcSqrErr(ArrayList<AttitudeRec> ra, ArrayList<AttitudeRec> rb, int axis) { in calcSqrErr() argument
697 if (axis<0 || axis > 2) { in calcSqrErr()
711 switch(axis) { in calcSqrErr()
DMotionIndicatorView.java165 public void enableAxis(int axis) { in enableAxis() argument
168 switch(axis) in enableAxis()
/cts/tests/tests/graphics/src/android/graphics/cts/
DFontVariationAxisTest.java49 FontVariationAxis axis = new FontVariationAxis("wght", 1.0f); in testGetterTest() local
50 assertEquals("wght", axis.getTag()); in testGetterTest()
51 assertEquals(1.0f, axis.getStyleValue(), FLOT_EQUALITY_PREC); in testGetterTest()
53 axis = new FontVariationAxis("PRIV", -1.0f); in testGetterTest()
54 assertEquals("PRIV", axis.getTag()); in testGetterTest()
55 assertEquals(-1.0f, axis.getStyleValue(), FLOT_EQUALITY_PREC); in testGetterTest()
DTypefaceTestUtil.java48 for (FontVariationAxis axis : font.getAxes()) { in getRobotoTypeface()
49 if (axis.getTag().equals("wdth") && axis.getStyleValue() == 100f) { in getRobotoTypeface()
/cts/hostsidetests/theme/app/src/android/theme/app/
DTypefaceTestUtil.java46 for (FontVariationAxis axis : font.getAxes()) { in getRobotoTypeface()
47 if (axis.getTag().equals("wdth") && axis.getStyleValue() == 100f) { in getRobotoTypeface()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DTypefaceTestUtil.java48 for (FontVariationAxis axis : font.getAxes()) { in getRobotoTypeface()
49 if (axis.getTag().equals("wdth") && axis.getStyleValue() == 100f) { in getRobotoTypeface()
/cts/tests/tests/view/res/raw/
DGeneric.kl448 # Axes that are not mapped will be assigned generic axis numbers by the input subsystem.
449 axis 0x00 X
450 axis 0x01 Y
451 axis 0x02 Z
452 axis 0x03 RX
453 axis 0x04 RY
454 axis 0x05 RZ
455 axis 0x06 THROTTLE
456 axis 0x07 RUDDER
457 axis 0x08 WHEEL
[all …]
/cts/tests/input/src/android/input/cts/
DVelocityTrackerTest.kt230 for (axis in 0..largestDefinedMotionEventAxisValue + 3) { in testIsAxisSupported() constant
231 val expectedSupport = expectedSupportedAxes.contains(axis) in testIsAxisSupported()
232 if (vt.isAxisSupported(axis) != expectedSupport) { in testIsAxisSupported()
233 fail("Unexpected support found for axis $axis (expected support=$expectedSupport)") in testIsAxisSupported()
379 axis: Int, in assertVelocity()
385 { velocityTracker!!.getAxisVelocity(axis) }, in assertVelocity()
427 axis: Int, in logTrackingInfo()
437 MotionEvent.axisToString(axis), in logTrackingInfo()
DInputEventTest.kt106 val axis = entry.key in testAxisFromToString() constant
107 val axisToString = MotionEvent.axisToString(axis) in testAxisFromToString()
110 assertEquals(axis, MotionEvent.axisFromString(axisToString)) in testAxisFromToString()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DSystemFontsTest.java126 for (FontVariationAxis axis : axes) { in testAvailableFonts_FontAttributeGetters()
127 assertNotNull(axis); in testAvailableFonts_FontAttributeGetters()
203 for (FontVariationAxis axis : axes) { in testAdjustmentPreserveWidth()
204 if (axis.getTag().equals("wdth")) { in testAdjustmentPreserveWidth()
/cts/tests/sensor/src/android/hardware/cts/
DSensorManagerStaticTest.java446 int axis = (i % 3) + 1; in testGetRotationMatrixFromVector() local
451 v[axis - 1] = (float) Math.sin(theta / 2.f); in testGetRotationMatrixFromVector()
453 v[axis-1] = -v[axis-1]; in testGetRotationMatrixFromVector()
457 R = mat9Rot(axis, theta); in testGetRotationMatrixFromVector()
677 private static float [] mat9Rot(int axis, float angle) { in mat9Rot() argument
679 switch (axis) { in mat9Rot()
714 private static float [] mat9Axis(float m[], int axis) { in mat9Axis() argument
717 boolean negative = (axis & 0x80) != 0; in mat9Axis()
721 offset = (axis & ~0x80) - 1; in mat9Axis()
/cts/apps/CameraITS/tests/scene_flash/
Dtest_auto_flash.py102 y = np.expand_dims(y, axis=2)
127 y = np.expand_dims(y, axis=2)
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_preview_distortion.py266 corners = np.concatenate(corners, axis=0).reshape(-1, 4, 2)
284 corners = np.expand_dims(arranged_corners, axis=1)
293 ideal_points = np.delete(ideal_points, middle_index, axis=0)
/cts/apps/CameraITS/tests/scene_extensions/scene_hdr/
Dtest_hdr_extension.py108 sobel_x = ndimage.sobel(tile, axis=0, mode='constant')
109 sobel_y = ndimage.sobel(tile, axis=1, mode='constant')
/cts/apps/CameraITS/tests/scene1_2/
Dtest_raw_burst_sensitivity.py128 pylab.ticklabel_format(style='sci', axis='y', scilimits=(-6, -6))
Dtest_raw_sensitivity.py127 pylab.ticklabel_format(axis='y', style='sci', scilimits=(-6, -6))
/cts/apps/CameraITS/utils/
Dnoise_model_utils.py289 std_dev = scipy.stats.median_abs_deviation(vars_i, axis=None, scale=1)
775 subplot.ticklabel_format(axis='y', style='sci', scilimits=(0, 0))
797 subplot.ticklabel_format(axis='y', style='sci', scilimits=(0, 0))
Dzoom_capture_utils.py182 (255-img_bw).astype(numpy.float)/255.0, axis=2), img_copy_name)
548 plt.grid(axis='y', linestyle='--')
/cts/tests/location/location_gnss/protos/
Dephemeris.proto55 // Square root of semi-major axis
/cts/libs/input/src/com/android/cts/input/
DInputJsonParser.java529 String axis = keys.next(); in parseMotionEvent() local
530 float value = (float) axes.getDouble(axis); in parseMotionEvent()
531 coords[i].setAxisValue(MotionEvent.axisFromString(axis), value); in parseMotionEvent()

12