Searched refs:turbulencePhase (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleShader.java | 163 final float turbulencePhase = phase; in setNoisePhase() local 164 setFloatUniform("in_turbulencePhase", turbulencePhase); in setNoisePhase() 167 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.cos(scale * 0.55))), in setNoisePhase() 168 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.sin(scale * 0.55)))); in setNoisePhase() 170 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.cos(scale * 0.45))), in setNoisePhase() 171 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.sin(scale * 0.45)))); in setNoisePhase() 173 (float) (scale + (turbulencePhase * -0.0066 * Math.cos(scale * 0.35))), in setNoisePhase() 174 (float) (scale + (turbulencePhase * -0.0066 * Math.sin(scale * 0.35)))); in setNoisePhase() 175 final double rotation1 = turbulencePhase * PI_ROTATE_RIGHT + 1.7 * Math.PI; in setNoisePhase() 178 final double rotation2 = turbulencePhase * PI_ROTATE_LEFT + 2 * Math.PI; in setNoisePhase() [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | AnimatedDrawables.h | 65 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 100 setUniform2f(effectBuilder, "in_tCircle1", SCALE * 0.5 + (turbulencePhase * CIRCLE_X_1), in draw() 101 SCALE * 0.5 + (turbulencePhase * CIRCLE_Y_1)); in draw() 102 setUniform2f(effectBuilder, "in_tCircle2", SCALE * 0.2 + (turbulencePhase * CIRCLE_X_2), 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() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | RecordingCanvas.java | 230 CanvasProperty<Float> progress, CanvasProperty<Float> turbulencePhase, in drawRipple() argument 234 progress.getNativeContainer(), turbulencePhase.getNativeContainer(), in drawRipple() 294 long propPaint, long propProgress, long turbulencePhase, int color, long runtimeEffect); in nDrawRipple() argument
|
/frameworks/base/libs/hwui/tests/unit/ |
D | CanvasOpTests.cpp | 596 .turbulencePhase = sp<CanvasPropertyPrimitive>(new CanvasPropertyPrimitive(1)), in TEST()
|