/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | Quaternion.java | 56 double[] axis = normal(cross(vec1, vec2));
58 set(angle, axis);
73 public void set(double angle, double[] axis) {
argument 76 x[1] = axis[0] * sin;
77 x[2] = axis[1] * sin;
78 x[3] = axis[2] * sin;
|
H A D | ViewMatrix.java | 333 double[] axis = Quaternion.calcAxis(mStartV, mMoveToV);
336 axis = mStartMatrix.vecmult(axis);
338 mQ.set(angle, axis);
|
/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.java | 38 * Motion events describe movements in terms of an action code and a set of axis values. 40 * down or up. The axis values describe the position and other movement properties. 44 * and a set of axis values that include the X and Y coordinates of the touch and 148 * The joystick axis values are normalized to a range of -1.0 to 1.0 where 0.0 corresponds 515 * Axis constant: X axis of a motion event. 540 * Axis constant: Y axis of a motion event. 565 * Axis constant: Pressure axis of a motion event. 587 * Axis constant: Size axis of a motion event. 607 * Axis constant: TouchMajor axis of a motion event. 610 * <li>For a touch screen, reports the length of the major axis o 1489 nativeAxisToString(int axis) argument 1501 nativeGetRawAxisValue(long nativePtr, int axis, int pointerIndex, int historyPos) argument 1504 nativeGetAxisValue(long nativePtr, int axis, int pointerIndex, int historyPos) argument 2139 getAxisValue(int axis) argument 2349 getAxisValue(int axis, int pointerIndex) argument 2703 getHistoricalAxisValue(int axis, int pos) argument 2884 getHistoricalAxisValue(int axis, int pointerIndex, int pos) argument 3331 axisToString(int axis) argument 3650 getAxisValue(int axis) argument 3694 setAxisValue(int axis, float value) argument [all...] |
H A D | InputDevice.java | 682 * Gets information about the range of values for a particular {@link MotionEvent} axis. 683 * If the device supports multiple sources, the same axis may have different meanings 684 * for each source. Returns information about the first axis found for any source. 685 * To obtain information about the axis for a specific source, use 688 * @param axis The axis constant. 689 * @return The range of values, or null if the requested axis is not 695 public MotionRange getMotionRange(int axis) { argument 699 if (range.mAxis == axis) { 707 * Gets information about the range of values for a particular {@link MotionEvent} axis 720 getMotionRange(int axis, int source) argument 742 addMotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument 851 MotionRange(int axis, int source, float min, float max, float flat, float fuzz, float resolution) argument [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputReader.cpp | 1092 const char* label = getAxisLabel(range.axis); 1098 snprintf(name, sizeof(name), "%d", range.axis); 2045 status_t InputMapper::getAbsoluteAxisInfo(int32_t axis, RawAbsoluteAxisInfo* axisInfo) { argument 2046 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo); 2054 const RawAbsoluteAxisInfo& axis, const char* name) { 2055 if (axis.valid) { 2057 name, axis.minValue, axis.maxValue, axis.flat, axis 2053 dumpRawAbsoluteAxisInfo(std::string& dump, const RawAbsoluteAxisInfo& axis, const char* name) argument 7103 const Axis& axis = mAxes.valueAt(i); local 7113 addMotionRange(int32_t axisId, const Axis& axis, InputDeviceInfo* info) argument 7130 getCompatAxis(int32_t axis) argument 7146 const Axis& axis = mAxes.valueAt(i); local 7250 Axis& axis = mAxes.editValueAt(i); local 7275 const Axis& axis = mAxes.valueAt(i); local 7297 isCenteredAxis(int32_t axis) argument 7320 Axis& axis = mAxes.editValueAt(i); local 7332 Axis& axis = mAxes.editValueAt(index); local 7393 const Axis& axis = mAxes.valueAt(i); local 7414 setPointerCoordsAxisValue(PointerCoords* pointerCoords, int32_t axis, float value) argument 7431 Axis& axis = mAxes.editValueAt(i); local [all...] |
H A D | EventHub.h | 78 /* Describes an absolute axis. */ 149 * Gets the class that owns an axis, in cases where multiple classes might claim 150 * the same axis for different purposes. 152 extern uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses); 194 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, 197 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0; 232 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, 292 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, 295 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const; 311 virtual status_t getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_ [all...] |
H A D | EventHub.cpp | 103 uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses) { argument 106 switch (axis) { 131 // External stylus gets the pressure axis 133 if (axis == ABS_PRESSURE) { 298 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, argument 302 if (axis >= 0 && axis <= ABS_MAX) { 306 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { 308 if(ioctl(device->fd, EVIOCGABS(axis), &info)) { 310 axis, devic 408 getAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t* outValue) const argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Typeface.cpp | 67 AxisHelper axis(env, axisObject); 68 variations.push_back(minikin::FontVariation(axis.getTag(), axis.getStyleValue()));
|
H A D | FontFamily.cpp | 112 for (const auto& axis : builder->axes) { 113 skiaAxes.emplace_back(SkFontArguments::Axis{axis.axisTag, axis.value});
|
/frameworks/native/include/input/ |
H A D | Input.h | 225 // Values of axes that are stored in this structure packed in order by axis id 226 // for each axis that is present in the structure according to 'bits'. 237 float getAxisValue(int32_t axis) const; 238 status_t setAxisValue(int32_t axis, float value); 264 void tooManyAxes(int axis); 437 float getRawAxisValue(int32_t axis, size_t pointerIndex) const; 447 float getAxisValue(int32_t axis, size_t pointerIndex) const; 494 float getHistoricalRawAxisValue(int32_t axis, size_t pointerIndex, 507 float getHistoricalAxisValue(int32_t axis, size_t pointerIndex, size_t historicalIndex) const; 608 static const char* getLabel(int32_t axis); [all...] |
H A D | InputEventLabels.h | 24 #define DEFINE_AXIS(axis) { #axis, AMOTION_EVENT_AXIS_##axis } 376 // NOTE: If you add a new axis here you must also add it to several other files.
|
/frameworks/native/libs/input/ |
H A D | KeyLayoutMap.cpp | 145 ALOGD("mapAxis: scanCode=%d ~ Result mode=%d, axis=%d, highAxis=%d, " 148 outAxisInfo->mode, outAxisInfo->axis, outAxisInfo->highAxis, 213 } else if (keywordToken == "axis") { 309 ALOGE("%s: Expected axis scan code number, got '%s'.", mTokenizer->getLocation().string(), 314 ALOGE("%s: Duplicate entry for axis scan code '%s'.", mTokenizer->getLocation().string(), 328 axisInfo.axis = getAxisByLabel(axisToken.string()); 329 if (axisInfo.axis < 0) { 330 ALOGE("%s: Expected inverted axis label, got '%s'.", 348 axisInfo.axis = getAxisByLabel(lowAxisToken.string()); 349 if (axisInfo.axis < [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_MotionEvent.cpp | 227 uint32_t axis = bits.clearFirstMarkedBit(); local 228 outRawPointerCoords->setAxisValue(axis, values[index++]); 303 uint32_t axis = bits.clearFirstMarkedBit(); local 304 outBits |= BitSet64::valueForBit(axis); 305 outValues[index++] = rawPointerCoords->getAxisValue(axis); 488 jint axis) { 489 return env->NewStringUTF(MotionEvent::getLabel(static_cast<int32_t>(axis))); 535 jlong nativePtr, jint axis, 544 return event->getRawAxisValue(axis, pointerIndex); 550 return event->getHistoricalRawAxisValue(axis, pointerInde 487 android_view_MotionEvent_nativeAxisToString(JNIEnv* env, jclass clazz, jint axis) argument 534 android_view_MotionEvent_nativeGetRawAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument 554 android_view_MotionEvent_nativeGetAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument [all...] |
H A D | android_view_InputDevice.cpp | 74 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis,
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorMatrix.java | 137 * Set the rotation on a color axis by the specified values. 139 * <code>axis=0</code> correspond to a rotation around the RED color 140 * <code>axis=1</code> correspond to a rotation around the GREEN color 141 * <code>axis=2</code> correspond to a rotation around the BLUE color 144 public void setRotate(int axis, float degrees) { argument 149 switch (axis) {
|
/frameworks/base/native/android/ |
H A D | input.cpp | 186 int32_t axis, size_t pointer_index) { 187 return static_cast<const MotionEvent*>(motion_event)->getAxisValue(axis, pointer_index); 267 int32_t axis, size_t pointer_index, size_t history_index) { 269 axis, pointer_index, history_index); 185 AMotionEvent_getAxisValue(const AInputEvent* motion_event, int32_t axis, size_t pointer_index) argument 266 AMotionEvent_getHistoricalAxisValue(const AInputEvent* motion_event, int32_t axis, size_t pointer_index, size_t history_index) argument
|
/frameworks/ml/nn/common/include/ |
H A D | Operations.h | 165 const std::vector<Shape>& inputShapes, int32_t axis, 168 const std::vector<Shape>& inputShapes, int32_t axis, 226 const int32_t* axis, const Shape& axisShape, bool keepDims,
|
/frameworks/ml/nn/common/operations/ |
H A D | SimpleMath.cpp | 280 const int32_t* axis, const Shape& axisShape, bool keepDims, 285 // Creates a temp tensor to store resolved axis given input data. 298 axis, axisSize, keepDims, scratchBuffer, resolvedAxis); local 307 axis, axisSize, keepDims, scratchBuffer, resolvedAxis); local 279 meanGeneric(const uint8_t* inputData, const Shape& inputShape, const int32_t* axis, const Shape& axisShape, bool keepDims, uint8_t* outputData, const Shape& outputShape) argument
|
/frameworks/native/libs/math/include/math/ |
H A D | quat.h | 131 // constructs a quaternion from an axis and angle 133 constexpr static TQuaternion PURE fromAxisAngle(const TVec3<A>& axis, B angle) { 134 return TQuaternion(std::sin(angle*0.5) * normalize(axis), std::cos(angle*0.5));
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | RecyclerViewOnGenericMotionEventTest.java | 116 private static MotionEvent obtainScrollMotionEvent(int axis, int axisValue, int inputDevice) { argument 119 coords.setAxisValue(axis, axisValue);
|
/frameworks/wilhelm/src/itf/ |
H A D | I3DLocation.cpp | 220 SLVec3D axis = *pAxis; local 221 // NTH Check that axis is not (close to) zero vector, length does not matter 231 thiz->mAxis = axis;
|
H A D | I3DMacroscopic.cpp | 129 SLVec3D axis = *pAxis; local 130 // NTH Check that axis is not (close to) zero vector, length does not matter 136 thiz->mAxis = axis;
|
/frameworks/native/libs/input/tests/ |
H A D | InputEvent_test.cpp | 50 << "getAxisValue should return zero because axis is not present"; 52 << "getAxisValue should return zero because axis is not present"; 54 // Set first axis. 60 << "getAxisValue should return zero because axis is not present"; 62 << "getAxisValue should return value of axis"; 64 // Set an axis with a higher id than all others. (appending value at the end) 71 << "getAxisValue should return zero because axis is not present"; 73 << "getAxisValue should return value of axis"; 75 << "getAxisValue should return zero because axis is not present"; 77 << "getAxisValue should return value of axis"; [all...] |
/frameworks/ml/nn/common/ |
H A D | OperationsUtils.cpp | 372 int32_t axis, 379 NN_OPS_CHECK(axis >= 0); 380 NN_OPS_CHECK(axis < (int32_t)num_dimensions); 382 int sumAxis = getSizeOfDimension(inputShapes[0], axis); 391 if (d == axis) { 392 sumAxis += getSizeOfDimension(inputShapes[i], axis); 402 output->dimensions[axis] = sumAxis; 780 // Calculates size of reducing axis.
|
/frameworks/native/include/android/ |
H A D | input.h | 387 * Constants that identify each individual axis of a motion event. 392 * Axis constant: X axis of a motion event. 407 * Axis constant: Y axis of a motion event. 422 * Axis constant: Pressure axis of a motion event. 435 * Axis constant: Size axis of a motion event. 446 * Axis constant: TouchMajor axis of a motion event. 448 * - For a touch screen, reports the length of the major axis of an ellipse that 451 * - For a touch pad, reports the length of the major axis of an ellipse that 457 * Axis constant: TouchMinor axis of a motion event. 459 * - For a touch screen, reports the length of the minor axis o [all...] |