/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/ |
D | Vector3.kt | 26 class Vector3 @JvmOverloads constructor(val x: Float, val y: Float, val z: Float) { class 28 val ZERO = Vector3(0f, 0f, 0f) 29 val Y_AXIS = Vector3(0f, 1f, 0f) 30 val NEG_Y_AXIS = Vector3(0f, -1f, 0f) 31 val X_AXIS = Vector3(1f, 0f, 0f) 32 val NEG_X_AXIS = Vector3(-1f, 0f, 0f) 33 val Z_AXIS = Vector3(0f, 0f, 1f) 34 val NEG_Z_AXIS = Vector3(0f, 0f, -1f) 50 fun lerp(vectorStart: Vector3, vectorEnd: Vector3, amount: Float): Vector3 { in lerp() 51 return Vector3( in lerp() [all …]
|
D | SphericalTransform.kt | 55 val center: Vector3 = Vector3(0f, 0f, 0f), 64 val scale: Vector3 = Vector3(1f, 1f, 1f) 121 fun withCenter(center: Vector3): SphericalTransform { in withCenter() 135 return SphericalTransform(azimuth, elevation, roll, Vector3(x, y, z), distance, scale) in withCenter() 159 return SphericalTransform(azimuth, elevation, roll, center, distance, Vector3(x, y, z)) in withScale() 211 center + Vector3(x, y, z), in translateCenterBy() 228 this.scale + Vector3(scale) in scaleBy() 239 scale + Vector3(x, y, z) in scaleBy() 273 Vector3.Y_AXIS.x, in toMatrix() 274 Vector3.Y_AXIS.y, in toMatrix() [all …]
|
D | AffineTransform.kt | 25 val position: Vector3 = Vector3(0f, 0f, 0f), 29 val scale: Vector3 = Vector3(1f, 1f, 1f) 47 return AffineTransform(Vector3(x, y, z), rotation, scale) in withTranslation() 60 return AffineTransform(position, rotation, Vector3(x, y, z)) in withScale() 97 return AffineTransform(position + Vector3(x, y, z), rotation, scale) in translateBy() 101 return AffineTransform(position, rotation, this.scale + Vector3(scale)) in scaleBy() 105 return AffineTransform(position, rotation, this.scale + Vector3(x, y, z)) in scaleBy()
|
D | RotationQuaternion.kt | 40 val direction = Vector3(x.toFloat(), y.toFloat(), z.toFloat()).toNormalized() in fromQuaternion() 50 fun fromEuler(eulerAngles: Vector3): RotationQuaternion { in fromEuler() 84 val direction: Vector3 94 constructor(angle: Double, direction: Vector3) { 109 constructor() : this(0.0, Vector3.X_AXIS) 124 fun toEulerAngles(): Vector3 { in toEulerAngles() 136 return Vector3( in toEulerAngles() 159 fun applyRotationTo(vector: Vector3): Vector3 { in applyRotationTo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | Vector3Test.java | 31 private AnyMotionDetector.Vector3 unitXAxis; 32 private AnyMotionDetector.Vector3 unitYAxis; 33 private AnyMotionDetector.Vector3 unitZAxis; 34 private AnyMotionDetector.Vector3 x3; 35 private AnyMotionDetector.Vector3 case1A; 36 private AnyMotionDetector.Vector3 case1B; 37 private AnyMotionDetector.Vector3 case2A; 38 private AnyMotionDetector.Vector3 case2B; 39 private AnyMotionDetector.Vector3 x1y1; 40 private AnyMotionDetector.Vector3 xn1y1; [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | AnyMotionDetector.java | 118 private Vector3 mCurrentGravityVector = null; 123 private Vector3 mPreviousGravityVector = null; 286 Vector3 previousGravityVectorNormalized = mPreviousGravityVector.normalized(); in getStationaryStatusLocked() 287 Vector3 currentGravityVectorNormalized = mCurrentGravityVector.normalized(); in getStationaryStatusLocked() 316 Vector3 accelDatum = new Vector3(SystemClock.elapsedRealtime(), event.values[0], 385 public static final class Vector3 { class in AnyMotionDetector 391 public Vector3(long timeMillisSinceBoot, float x, float y, float z) { in Vector3() method in AnyMotionDetector.Vector3 402 public Vector3 normalized() { in normalized() 404 return new Vector3(timeMillisSinceBoot, x / mag, y / mag, z / mag); in normalized() 414 public float angleBetween(Vector3 other) { in angleBetween() [all …]
|
/frameworks/base/libs/hwui/ |
D | Vector.h | 97 class Vector3 { 103 Vector3 operator+(const Vector3& v) const { return (Vector3){x + v.x, y + v.y, z + v.z}; } 105 Vector3 operator-(const Vector3& v) const { return (Vector3){x - v.x, y - v.y, z - v.z}; } 107 Vector3 operator/(float s) const { return (Vector3){x / s, y / s, z / s}; } 109 Vector3 operator*(float s) const { return (Vector3){x * s, y * s, z * s}; }
|
D | LightingInfo.h | 49 static Vector3 getLightCenter() { in getLightCenter() 51 Vector3 adjustedLightCenter = mLightCenter; in getLightCenter() 64 static Vector3 getLightCenterRaw() { in getLightCenterRaw() 68 static void setLightCenterRaw(const Vector3& lightCenter) { in setLightCenterRaw() 82 static Vector3 mLightCenter;
|
D | LightingInfo.cpp | 28 Vector3 LightingInfo::mLightCenter = {FLT_MIN, FLT_MIN, FLT_MIN};
|
D | Lighting.h | 25 Vector3 center;
|
D | Matrix.h | 199 float mapZ(const Vector3& orig) const; 200 void mapPoint3d(Vector3& vec) const;
|
D | Matrix.cpp | 414 float Matrix4::mapZ(const Vector3& orig) const { in mapZ() 419 void Matrix4::mapPoint3d(Vector3& vec) const { in mapPoint3d() 421 const Vector3 orig(vec); in mapPoint3d()
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | pose.h | 19 position_(Eigen::Vector3<T>::Zero()) {} in Pose() 25 Pose(Eigen::Quaternion<T> rotation, Eigen::Vector3<T> position) in Pose() 53 Eigen::Vector3<T> TransformPoint(const Eigen::Vector3<T>& v) const { in TransformPoint() 57 Eigen::Vector3<T> Transform(const Eigen::Vector3<T>& v) const { in Transform() 72 Eigen::Vector3<T> GetPosition() const { return position_; } in GetPosition() 78 void SetPosition(Eigen::Vector3<T> position) { position_ = position; } in SetPosition() 91 Eigen::Vector3<T> position_;
|
D | eigen.h | 17 using Vector3 = Vector<T, 3>; variable
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaDisplayList.cpp | 72 Vector3 points[] = { Vector3 {bounds.fLeft, bounds.fTop, 0}, in intersects() 73 Vector3 {bounds.fRight, bounds.fTop, 0}, in intersects() 74 Vector3 {bounds.fRight, bounds.fBottom, 0}, in intersects() 75 Vector3 {bounds.fLeft, bounds.fBottom, 0}}; in intersects()
|
D | SkiaPipeline.cpp | 99 const Vector3 savedLightCenter(LightingInfo::getLightCenterRaw()); in renderLayerImpl() 100 Vector3 transformedLightCenter(savedLightCenter); in renderLayerImpl() 217 const Vector3 savedLightCenter(LightingInfo::getLightCenterRaw()); in recordLayers() 225 Vector3 transformedLightCenter(savedLightCenter); in recordLayers()
|
D | ReorderBarrierDrawables.cpp | 201 const Vector3 lightPos = LightingInfo::getLightCenter(); in drawShadow()
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderProxy.h | 88 void setLightGeometry(const Vector3& lightCenter, float lightRadius);
|
D | CanvasContext.h | 140 void setLightGeometry(const Vector3& lightCenter, float lightRadius);
|
D | RenderProxy.cpp | 148 void RenderProxy::setLightGeometry(const Vector3& lightCenter, float lightRadius) { in setLightGeometry()
|
D | CanvasContext.cpp | 306 void CanvasContext::setLightGeometry(const Vector3& lightCenter, float lightRadius) { in setLightGeometry()
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_HardwareBufferRenderer.cpp | 127 proxy->setLightGeometry((Vector3){lightX, lightY, lightZ}, lightRadius); in android_graphics_HardwareBufferRenderer_setLightGeometry()
|
D | android_graphics_HardwareRenderer.cpp | 243 proxy->setLightGeometry((Vector3){lightX, lightY, lightZ}, lightRadius); in android_view_ThreadedRenderer_setLightGeometry() 770 proxy.setLightGeometry((Vector3){0, 0, 0}, 0); in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode()
|
/frameworks/native/libs/vr/libdvrcommon/tests/ |
D | pose_test.cpp | 15 using vec3_t = Eigen::Vector3<FT>;
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 131 proxy->setLightGeometry((Vector3){lightX, dp(-200.0f), dp(800.0f)}, dp(800.0f)); in doRun()
|