Home
last modified time | relevance | path

Searched refs:tintController (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
DReduceBrightColorsTintControllerTest.java54 final ReduceBrightColorsTintController tintController = in setAndGetMatrix() local
56 tintController.setUp(mContext, /* needsLinear= */ true); in setAndGetMatrix()
57 tintController.setMatrix(50); in setAndGetMatrix()
58 tintController.setActivated(true); in setAndGetMatrix()
59 assertThat(tintController.getStrength()).isEqualTo(50); in setAndGetMatrix()
60 assertThat(tintController.getMatrix()).usingTolerance(0.00001f) in setAndGetMatrix()
71 final ReduceBrightColorsTintController tintController = in setAndGetMatrixClampToZero() local
73 tintController.setUp(mContext, /* needsLinear= */ true); in setAndGetMatrixClampToZero()
74 tintController.setMatrix(-50); in setAndGetMatrixClampToZero()
75 tintController.setActivated(true); in setAndGetMatrixClampToZero()
[all …]
DGlobalSaturationTintControllerTest.java33 final GlobalSaturationTintController tintController = new GlobalSaturationTintController(); in setAndGetMatrix() local
34 tintController.setMatrix(50); in setAndGetMatrix()
35 assertThat(tintController.getMatrix()).usingTolerance(0.00001f) in setAndGetMatrix()
44 final GlobalSaturationTintController tintController = new GlobalSaturationTintController(); in resetMatrix() local
45 tintController.setMatrix(100); in resetMatrix()
48 assertThat(tintController.getMatrix()).usingTolerance(0.00001f) in resetMatrix()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java685 private void applyTint(TintController tintController, boolean immediate) { in applyTint() argument
686 tintController.cancelAnimator(); in applyTint()
689 final float[] from = dtm.getColorMatrix(tintController.getLevel()); in applyTint()
690 final float[] to = tintController.getMatrix(); in applyTint()
693 dtm.setColorMatrix(tintController.getLevel(), to); in applyTint()
697 tintController.setAnimator(valueAnimator); in applyTint()
698 valueAnimator.setDuration(tintController.getTransitionDurationMilliseconds()); in applyTint()
703 dtm.setColorMatrix(tintController.getLevel(), value); in applyTint()
718 Slog.d(TAG, tintController.getClass().getSimpleName() in applyTint()
729 dtm.setColorMatrix(tintController.getLevel(), to); in applyTint()
[all …]