Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDualToneHandler.kt75 fun getSingleColor(intensity: Float) =
76 getColorForDarkIntensity(intensity, lightColor.single, darkColor.single)
85 fun getBackgroundColor(intensity: Float) =
86 getColorForDarkIntensity(intensity, lightColor.background, darkColor.background)
95 fun getFillColor(intensity: Float) =
96 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/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/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 …]
Dbricked.rscript57 int intensity = 0xFFFF & rsGetElementAt_short(volume, px, py, pz);
58 uchar op = rsGetElementAt_uchar(opacity, intensity);
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationScaler.java147 private static int intensityToEffectStrength(int intensity) { in intensityToEffectStrength() argument
148 switch (intensity) { in intensityToEffectStrength()
156 Slog.w(TAG, "Got unexpected vibration intensity: " + intensity); in intensityToEffectStrength()
DVibrationSettings.java553 int intensity = mCurrentVibrationIntensities.valueAt(i); in toString() local
555 .append("=(").append(intensityToString(intensity)) in toString()
613 private static String intensityToString(int intensity) { in intensityToString() argument
614 switch (intensity) { in intensityToString()
624 return "UNKNOWN INTENSITY " + intensity; in intensityToString()
/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/
DNotificationIconDozeHelper.java83 private void updateImageColorFilter(ImageView target, float intensity) { in updateImageColorFilter() argument
84 int color = NotificationUtils.interpolateColors(mColor, mImageDarkColor, intensity); in updateImageColorFilter()
DNotificationDozeHelper.java108 public void updateGrayscaleMatrix(float intensity) { in updateGrayscaleMatrix() argument
109 mGrayscaleColorMatrix.setSaturation(1 - intensity); in updateGrayscaleMatrix()
/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
DKeyButtonDrawable.java124 public void setDarkIntensity(float intensity) { in setDarkIntensity() argument
125 mState.mDarkIntensity = intensity; in setDarkIntensity()
127 .evaluate(intensity, mState.mLightColor, mState.mDarkColor); in setDarkIntensity()
DNavigationBarView.java377 public void setDarkIntensity(@FloatRange(from = 0.0f, to = 1.0f) float intensity) { in setDarkIntensity()
379 mButtonDispatchers.valueAt(i).setDarkIntensity(intensity); in setDarkIntensity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardStatusBarView.java435 float intensity = textColor == Color.WHITE ? 0 : 1; in updateIconsAndTextColors() local
449 mDarkChange.setValue(new DarkChange(mEmptyTintRect, intensity, iconColor)); in updateIconsAndTextColors()
450 applyDarkness(R.id.battery, mEmptyTintRect, intensity, iconColor); in updateIconsAndTextColors()
451 applyDarkness(R.id.clock, mEmptyTintRect, intensity, iconColor); in updateIconsAndTextColors()
454 private void applyDarkness(int id, ArrayList<Rect> tintAreas, float intensity, int color) { in applyDarkness() argument
457 ((DarkReceiver) v).onDarkChanged(tintAreas, intensity, color); in applyDarkness()
DLightBarTransitionsController.java146 float intensity = mTintAnimator != null && mTintAnimator.isRunning() in saveState() local
148 outState.putFloat(EXTRA_DARK_INTENSITY, intensity); in saveState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DNavigationHandle.java97 public void setDarkIntensity(float intensity) { in setDarkIntensity() argument
98 int color = (int) ArgbEvaluator.getInstance().evaluate(intensity, mLightColor, mDarkColor); in setDarkIntensity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DButtonInterface.java30 void setDarkIntensity(float intensity); in setDarkIntensity() argument
DKeyButtonDrawable.java120 public void setDarkIntensity(float intensity) { in setDarkIntensity() argument
121 mState.mDarkIntensity = intensity; in setDarkIntensity()
123 .evaluate(intensity, mState.mLightColor, mState.mDarkColor); in setDarkIntensity()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterView.java448 float intensity = DarkIconDispatcher.isInAreas(areas, this) ? darkIntensity : 0; in onDarkChanged() local
449 mNonAdaptedSingleToneColor = mDualToneHandler.getSingleColor(intensity); in onDarkChanged()
450 mNonAdaptedForegroundColor = mDualToneHandler.getFillColor(intensity); in onDarkChanged()
451 mNonAdaptedBackgroundColor = mDualToneHandler.getBackgroundColor(intensity); in onDarkChanged()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp117 for (const auto&[id, intensity] : param.id2Intensity) { in hapticSettingToString()
118 ss << "\t\t\t- id=" << id << ", intensity=" << (int) intensity; in hapticSettingToString()
327 for (const auto&[id, intensity] : context->param.id2Intensity) { in HapticGenerator_SetParameter()
329 context->param.maxHapticIntensity, intensity); in HapticGenerator_SetParameter()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibrationSettingsTest.java811 private void setDefaultIntensity(@Vibrator.VibrationIntensity int intensity) { in setDefaultIntensity() argument
812 when(mVibrationConfigMock.getDefaultVibrationIntensity(anyInt())).thenReturn(intensity); in setDefaultIntensity()
816 @Vibrator.VibrationIntensity int intensity) { in setDefaultIntensity() argument
817 when(mVibrationConfigMock.getDefaultVibrationIntensity(eq(usage))).thenReturn(intensity); in setDefaultIntensity()
DVibrationScalerTest.java268 @Vibrator.VibrationIntensity int intensity) {
269 when(mVibrationConfigMock.getDefaultVibrationIntensity(eq(usage))).thenReturn(intensity);

12