Home
last modified time | relevance | path

Searched refs:turbulencePhase (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleShader.java165 final float turbulencePhase = phase; in setNoisePhase() local
166 setUniform("in_turbulencePhase", turbulencePhase); in setNoisePhase()
169 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.cos(scale * 0.55))), in setNoisePhase()
170 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.sin(scale * 0.55))) in setNoisePhase()
173 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.cos(scale * 0.45))), in setNoisePhase()
174 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.sin(scale * 0.45))) in setNoisePhase()
177 (float) (scale + (turbulencePhase * -0.0066 * Math.cos(scale * 0.35))), in setNoisePhase()
178 (float) (scale + (turbulencePhase * -0.0066 * Math.sin(scale * 0.35))) in setNoisePhase()
180 final double rotation1 = turbulencePhase * PI_ROTATE_RIGHT + 1.7 * Math.PI; in setNoisePhase()
184 final double rotation2 = turbulencePhase * PI_ROTATE_LEFT + 2 * Math.PI; in setNoisePhase()
[all …]
/aosp12/frameworks/base/libs/hwui/pipeline/skia/
H A DAnimatedDrawables.h65 sp<uirenderer::CanvasPropertyPrimitive> turbulencePhase; member
79 setUniform(effectBuilder, "in_turbulencePhase", params.turbulencePhase); in draw()
80 setUniform(effectBuilder, "in_noisePhase", params.turbulencePhase->value * 0.001); in draw()
99 const float turbulencePhase = params.turbulencePhase->value; in draw() local
101 SCALE * 0.5 + (turbulencePhase * CIRCLE_Y_1)); in draw()
103 SCALE * 0.2 + (turbulencePhase * CIRCLE_Y_2)); in draw()
104 setUniform2f(effectBuilder, "in_tCircle3", SCALE + (turbulencePhase * CIRCLE_X_3), in draw()
105 SCALE + (turbulencePhase * CIRCLE_Y_3)); in draw()
106 const float rotation1 = turbulencePhase * PI_ROTATE_RIGHT + 1.7 * PI; in draw()
108 const float rotation2 = turbulencePhase * PI_ROTATE_LEFT + 2 * PI; in draw()
[all …]
/aosp12/frameworks/base/graphics/java/android/graphics/
H A DRecordingCanvas.java230 CanvasProperty<Float> progress, CanvasProperty<Float> turbulencePhase, in drawRipple() argument
234 progress.getNativeContainer(), turbulencePhase.getNativeContainer(), in drawRipple()
296 long propPaint, long propProgress, long turbulencePhase, int color, long runtimeEffect); in nDrawRipple() argument
/aosp12/frameworks/base/libs/hwui/tests/unit/
H A DCanvasOpTests.cpp587 .turbulencePhase = sp<CanvasPropertyPrimitive>(new CanvasPropertyPrimitive(1)), in TEST()