/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | Vector3Test.java | 25 * Tests for {@link com.android.server.AnyMotionDetector.Vector3} 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 x1y [all...] |
/frameworks/base/libs/hwui/ |
H A D | AmbientShadow.h | 34 static void createAmbientShadow(bool isCasterOpaque, const Vector3* poly, 35 int polyLength, const Vector3& centroid3d, float heightFactor,
|
H A D | SpotShadow.h | 30 static void createSpotShadow(bool isCasterOpaque, const Vector3& lightCenter, 31 float lightSize, const Vector3* poly, int polyLength, 32 const Vector3& polyCentroid, VertexBuffer& retstrips); 38 const Vector3& lightCenter, const Vector3& polyVertex); 40 static void computeLightPolygon(int points, const Vector3& lightCenter, 41 float size, Vector3* ret); 62 const Vector3* poly, int polyLength, VertexBuffer& retstrips, const Vector2& centroid); 72 static void dumpPolygon(const Vector3* poly, int polyLength, const char* polyName);
|
H A D | Vector.h | 115 class Vector3 { class in namespace:android::uirenderer 121 Vector3 operator+(const Vector3& v) const { 122 return (Vector3){x + v.x, y + v.y, z + v.z}; 125 Vector3 operator-(const Vector3& v) const { 126 return (Vector3){x - v.x, y - v.y, z - v.z}; 129 Vector3 operator/(float s) const { 130 return (Vector3){x / s, y / s, z / s}; 133 Vector3 operato [all...] |
H A D | ShadowTessellator.h | 72 const Vector3* casterPolygon, int casterVertexCount, 73 const Vector3& centroid3d, const Rect& casterBounds, 77 const Vector3* casterPolygon, int casterVertexCount, const Vector3& casterCentroid, 78 const mat4& receiverTransform, const Vector3& lightCenter, int lightRadius,
|
H A D | ShadowTessellator.cpp | 32 const Vector3* casterPolygon, int casterVertexCount, 33 const Vector3& centroid3d, const Rect& casterBounds, 62 const Vector3* casterPolygon, int casterVertexCount, const Vector3& casterCentroid, 63 const mat4& receiverTransform, const Vector3& lightCenter, int lightRadius, 67 Vector3 adjustedLightCenter(lightCenter);
|
H A D | AmbientShadow.cpp | 68 inline Vector2 getNormalFromVertices(const Vector3* vertices, int current, int next) { 69 // Convert from Vector3 to Vector2 first. 83 const Vector3& secondVertex, const Vector3& centroid) { 127 * @param vertices The shadow caster's polygon, which is represented in a Vector3 167 const Vector3* casterVertices, int casterVertexCount, const Vector3& centroid3d, 195 const Vector3& innerVertex = casterVertices[i]; 219 const Vector3& innerStart = casterVertices[i]; 250 const Vector3 [all...] |
H A D | TessellationCache.h | 95 const Vector3& lightCenter, float lightRadius) 119 const Vector3 lightCenter; 168 const Vector3& lightCenter, float lightRadius); 172 const Vector3& lightCenter, float lightRadius, 178 const Vector3& lightCenter, float lightRadius); 230 const Vector3& lightCenter, float lightRadius,
|
H A D | Snapshot.h | 196 const Vector3& getRelativeLightCenter() const { return mRelativeLightCenter; } 197 void setRelativeLightCenter(const Vector3& lightCenter) { mRelativeLightCenter = lightCenter; } 342 Vector3 mRelativeLightCenter;
|
H A D | CanvasState.h | 91 const Vector3& lightCenter); 159 const Vector3& currentLightCenter() const { return currentSnapshot()->getRelativeLightCenter(); }
|
H A D | TessellationCache.cpp | 189 static void mapPointFakeZ(Vector3& point, const mat4* transformXY, const mat4* transformZ) { 211 const Vector3& lightCenter, float lightRadius, 227 Vector3 casterPolygon[casterVertexCount]; 232 casterPolygon[i] = (Vector3){point2d.x, point2d.y, 0}; 242 Vector3 centroid3d = {centroid.x, centroid.y, 0}; 358 const Vector3& lightCenter, float lightRadius) { 375 const Vector3& lightCenter, float lightRadius, vertexBuffer_pair_t& outBuffers) { 391 const Vector3& lightCenter, float lightRadius) {
|
H A D | SpotShadow.cpp | 344 void SpotShadow::computeLightPolygon(int points, const Vector3& lightCenter, 345 float size, Vector3* ret) { 365 const Vector3& lightCenter, const Vector3& polyVertex) { 390 void SpotShadow::createSpotShadow(bool isCasterOpaque, const Vector3& lightCenter, 391 float lightSize, const Vector3* poly, int polyLength, const Vector3& polyCentroid, 852 const Vector3* poly, int polyLength, VertexBuffer& shadowTriangleStrip, 1051 void SpotShadow::dumpPolygon(const Vector3* poly, int polyLength, const char* polyName) {
|
H A D | CanvasState.cpp | 57 mSnapshot->setRelativeLightCenter(Vector3()); 64 float clipRight, float clipBottom, const Vector3& lightCenter) {
|
H A D | FrameBuilder.h | 59 Vector3 center; 178 const Vector3& lightCenter,
|
H A D | Matrix.h | 209 float mapZ(const Vector3& orig) const; 210 void mapPoint3d(Vector3& vec) const;
|
H A D | Matrix.cpp | 409 float Matrix4::mapZ(const Vector3& orig) const { 414 void Matrix4::mapPoint3d(Vector3& vec) const { 416 const Vector3 orig(vec);
|
H A D | OpenGLRenderer.h | 125 void setLightCenter(const Vector3& lightCenter); 283 const Vector3& getLightCenter() const { return mState.currentLightCenter(); } 757 Vector3 mLightCenter;
|
H A D | Layer.cpp | 89 Vector3 lightPos = rootRenderer.getLightCenter();
|
H A D | Snapshot.cpp | 137 Vector3 center = mRelativeLightCenter;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AnyMotionDetector.java | 98 private Vector3 mCurrentGravityVector = null; 101 private Vector3 mPreviousGravityVector = null; 234 Vector3 previousGravityVectorNormalized = mPreviousGravityVector.normalized(); 235 Vector3 currentGravityVectorNormalized = mCurrentGravityVector.normalized(); 264 Vector3 accelDatum = new Vector3(SystemClock.elapsedRealtime(), event.values[0], 311 public static final class Vector3 { class in class:AnyMotionDetector 317 public Vector3(long timeMillisSinceBoot, float x, float y, float z) { method in class:AnyMotionDetector.Vector3 328 public Vector3 normalized() { 330 return new Vector3(timeMillisSinceBoo [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
H A D | CanvasStateTests.cpp | 51 0, 0, 200, 200, Vector3()); 69 0, 0, 200, 200, Vector3()); 84 0, 0, 200, 200, Vector3()); 120 0, 0, 200, 200, Vector3()); 144 0, 0, 200, 200, Vector3());
|
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | DisplayListCanvasBench.cpp | 136 state.initializeSaveStack(100, 100, 0, 0, 100, 100, Vector3()); 151 state.initializeSaveStack(100, 100, 0, 0, 100, 100, Vector3()); 154 state.initializeSaveStack(100, 100, 0, 0, 100, 100, Vector3()); 163 state.initializeSaveStack(100, 100, 0, 0, 100, 100, Vector3());
|
H A D | ShadowBench.cpp | 37 Vector3 lightCenter; 61 static Vector3 SAMPLE_LIGHT_CENTER{768, -400, 1600};
|
/frameworks/base/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 91 proxy->setLightCenter((Vector3){lightX, dp(-200.0f), dp(800.0f)});
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.h | 85 ANDROID_API void setLightCenter(const Vector3& lightCenter);
|