Home
last modified time | relevance | path

Searched refs:intensity (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDualToneHandler.kt89 fun getSingleColor(intensity: Float) =
90 getColorForDarkIntensity(intensity, lightColor.single, darkColor.single)
99 fun getBackgroundColor(intensity: Float) =
100 getColorForDarkIntensity(intensity, lightColor.background, darkColor.background)
109 fun getFillColor(intensity: Float) =
110 getColorForDarkIntensity(intensity, lightColor.fill, darkColor.fill)
DDarkReceiverImpl.kt39 val intensity = if (DarkIconDispatcher.isInAreas(areas, this)) darkIntensity else 0f in onDarkChanged() constant
40 setBackgroundColor(dualToneHandler.getSingleColor(intensity)) in onDarkChanged()
/frameworks/wilhelm/src/itf/
DIVibra.cpp95 static SLresult IVibra_SetIntensity(SLVibraItf self, SLpermille intensity) in IVibra_SetIntensity() argument
102 } else if (!(0 <= intensity && intensity <= 1000)) { in IVibra_SetIntensity()
107 thiz->mIntensity = intensity; in IVibra_SetIntensity()
129 SLpermille intensity = thiz->mIntensity; in IVibra_GetIntensity() local
131 *pIntensity = intensity; in IVibra_GetIntensity()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/rain/
DRainEffect.kt58 setIntensity(rainConfig.intensity) in <lambda>()
86 override fun setIntensity(intensity: Float) { in <lambda>()
87 rainConfig.rainShowerShader.setFloatUniform("intensity", intensity) in <lambda>()
88 rainConfig.glassRainShader.setFloatUniform("intensity", intensity * 0.6f) in <lambda>()
91 rainConfig.colorGradingIntensity * intensity in <lambda>()
93 val thickness = 1f + intensity * 10f in <lambda>()
DRainEffectConfig.kt42 @FloatRange(from = 0.0, to = 1.0) val intensity: Float, constant in com.google.android.wallpaper.weathereffects.graphics.rain.RainEffectConfig
59 intensity: Float = DEFAULT_INTENSITY,
68 intensity,
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/snow/
DSnowEffect.kt55 setIntensity(snowConfig.intensity) in <lambda>()
83 override fun setIntensity(intensity: Float) { in <lambda>()
88 snowSpeed = MathUtils.map(intensity, 0f, 1f, 2.5f, 1.7f) in <lambda>()
90 snowConfig.shader.setFloatUniform("intensity", intensity) in <lambda>()
93 snowConfig.colorGradingIntensity * intensity in <lambda>()
97 snowConfig.maxAccumulatedSnowThickness * intensity in <lambda>()
DSnowEffectConfig.kt45 @FloatRange(from = 0.0, to = 1.0) val intensity: Float, constant in com.google.android.wallpaper.weathereffects.graphics.snow.SnowEffectConfig
64 intensity: Float = DEFAULT_INTENSITY,
75 intensity,
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/fog/
DFogEffectConfig.kt50 @FloatRange(from = 0.0, to = 1.0) val intensity: Float, constant in com.google.android.wallpaper.weathereffects.graphics.fog.FogEffectConfig
69 intensity: Float = DEFAULT_INTENSITY,
81 intensity,
DFogEffect.kt44 setIntensity(fogConfig.intensity)
87 override fun setIntensity(intensity: Float) { in setIntensity()
88 fogConfig.shader.setFloatUniform("intensity", intensity) in setIntensity()
91 fogConfig.colorGradingIntensity * intensity in setIntensity()
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Dfog_effect.agsl31 uniform half intensity;
57 fgd.rgb = mix(fgd.rgb, fogColor, 0.32 * intensity * fgd.a);
61 bgd.rgb = mix(bgd.rgb, fogColor, 0.15 * intensity * bgd.a);
112 color.rgb = normalBlendWithWhiteSrc(color.rgb, bgdFogLayer1 * intensity);
121 color.rgb = normalBlendWithWhiteSrc(color.rgb, bgdFogLayer2 * intensity);
132 color.rgb = normalBlendWithWhiteSrc(color.rgb, fgdFogLayer1 * intensity);
138 color.rgb = normalBlendWithWhiteSrc(color.rgb, fgdFogLayer2 * intensity);
Drain_glass_layer.agsl21 uniform half intensity;
40 intensity);
53 intensity);
65 vec3 staticRain = generateStaticGlassRain(uv, screenAspectRatio, time, intensity);
Drain_shower_layer.agsl27 uniform half intensity;
77 float splash = drawSplash(cellUv, cellTime) * smoothstep(0., 0.45, intensity);
102 intensity);
112 intensity);
129 intensity);
Dsnow.agsl27 uniform half intensity;
92 * Disable snow flakes with some probabilty. This is done by 1) assigning a random intensity
93 * value to the cell 2) then compare it with the given intensity.
96 if (cellIntensity < 1. - intensity) {
105 max(cellIntensity - (0.02 + 0.18 * intensity), 0.0),
106 1 - intensity);
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dvr.rscript123 int intensity = (((short) pix) & 0xFFFF);
124 // intensity = clamp(intensity,0,400);
125 uchar4 color = rsGetElementAt_uchar4(color_map, intensity * 2);
126 // int op = rsGetElementAt_uchar(opacity, intensity);
155 int intensity = (((short) v) & 0xFFFF);
156 uchar op = rsGetElementAt_uchar(opacity, intensity);
164 uchar4 color = rsGetElementAt_uchar4(color_map, intensity * 2);
165 uchar4 mat = rsGetElementAt_uchar4(color_map, intensity * 2 + 1);
199 int intensity = (((short) v) & 0xFFFF);
200 uchar op = rsGetElementAt_uchar(opacity, intensity);
[all …]
/frameworks/native/libs/gui/tests/
DFillBuffer.cpp38 unsigned char intensity = (parityX ^ parityY) ? 63 : 191; in fillYV12Buffer() local
39 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; in fillYV12Buffer()
41 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; in fillYV12Buffer()
47 intensity; in fillYV12Buffer()
/frameworks/native/opengl/tests/gl_yuvtex/
Dgl_yuvtex.cpp108 unsigned char intensity = (parityX ^ parityY) ? 63 : 191; in setupYuvTexSurface() local
109 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; in setupYuvTexSurface()
111 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; in setupYuvTexSurface()
113 buf[yuvTexOffsetV + (y * yuvTexStrideV) + x] = intensity; in setupYuvTexSurface()
118 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = intensity; in setupYuvTexSurface()
/frameworks/native/opengl/tests/gl2_yuvtex/
Dgl2_yuvtex.cpp213 unsigned char intensity = (parityX ^ parityY) ? 63 : 191; in setupYuvTexSurface() local
214 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; in setupYuvTexSurface()
216 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; in setupYuvTexSurface()
218 buf[yuvTexOffsetV + (y * yuvTexStrideV) + x] = intensity; in setupYuvTexSurface()
223 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = intensity; in setupYuvTexSurface()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationDozeHelper.java96 private void updateGrayscaleMatrix(float intensity) { in updateGrayscaleMatrix() argument
97 mGrayscaleColorMatrix.setSaturation(1 - intensity); in updateGrayscaleMatrix()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/interaction/
DGyro2dController.kt256 axisX *= RAD_TO_DEG * dT * config.intensity in updateGyroRotation()
257 axisY *= RAD_TO_DEG * dT * config.intensity in updateGyroRotation()
314 val intensity: Float = 0.05f, constant in GyroConfig
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java463 float intensity = textColor == Color.WHITE ? 0 : 1; in updateIconsAndTextColors()
477 mDarkChange.setValue(new DarkChange(mEmptyTintRect, intensity, iconColor)); in updateIconsAndTextColors()
478 applyDarkness(R.id.battery, mEmptyTintRect, intensity, iconColor); in updateIconsAndTextColors()
479 applyDarkness(R.id.clock, mEmptyTintRect, intensity, iconColor); in updateIconsAndTextColors()
482 private void applyDarkness(int id, ArrayList<Rect> tintAreas, float intensity, int color) {
485 ((DarkReceiver) v).onDarkChanged(tintAreas, intensity, color);
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DButtonInterface.java26 void setDarkIntensity(float intensity); in setDarkIntensity() argument
DNavigationHandle.java51 public void setDarkIntensity(float intensity) { in setDarkIntensity() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DButtonInterface.java30 void setDarkIntensity(float intensity); in setDarkIntensity() argument
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationScaler.java270 private static int intensityToEffectStrength(int intensity) { in intensityToEffectStrength() argument
271 switch (intensity) { in intensityToEffectStrength()
279 Slog.w(TAG, "Got unexpected vibration intensity: " + intensity); in intensityToEffectStrength()
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/
DWeatherEffect.kt61 fun setIntensity(@FloatRange(from = 0.0, to = 1.0) intensity: Float)

12