Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DGlobalSaturationTintControllerTest.java33 final GlobalSaturationTintController tintController = new GlobalSaturationTintController(); in setAndGetMatrix() local
34 tintController.setMatrix(50); in setAndGetMatrix()
35 assertThat(tintController.getMatrix()).hasValuesWithin(0.00001f) in setAndGetMatrix()
42 final GlobalSaturationTintController tintController = new GlobalSaturationTintController(); in resetMatrix() local
43 tintController.setMatrix(100); in resetMatrix()
46 assertThat(tintController.getMatrix()).hasValuesWithin(0.00001f).of(matrix); in resetMatrix()
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java536 private void applyTint(TintController tintController, boolean immediate) { in applyTint() argument
537 tintController.cancelAnimator(); in applyTint()
540 final float[] from = dtm.getColorMatrix(tintController.getLevel()); in applyTint()
541 final float[] to = tintController.getMatrix(); in applyTint()
544 dtm.setColorMatrix(tintController.getLevel(), to); in applyTint()
546 tintController.setAnimator(ValueAnimator.ofObject(COLOR_MATRIX_EVALUATOR, in applyTint()
548 tintController.getAnimator().setDuration(TRANSITION_DURATION); in applyTint()
549 tintController.getAnimator().setInterpolator(AnimationUtils.loadInterpolator( in applyTint()
551 tintController.getAnimator().addUpdateListener((ValueAnimator animator) -> { in applyTint()
553 dtm.setColorMatrix(tintController.getLevel(), value); in applyTint()
[all …]