Searched refs:tintController (Results 1 – 2 of 2) sorted by relevance
33 final GlobalSaturationTintController tintController = new GlobalSaturationTintController(); in setAndGetMatrix() local34 tintController.setMatrix(50); in setAndGetMatrix()35 assertThat(tintController.getMatrix()).hasValuesWithin(0.00001f) in setAndGetMatrix()42 final GlobalSaturationTintController tintController = new GlobalSaturationTintController(); in resetMatrix() local43 tintController.setMatrix(100); in resetMatrix()46 assertThat(tintController.getMatrix()).hasValuesWithin(0.00001f).of(matrix); in resetMatrix()
536 private void applyTint(TintController tintController, boolean immediate) { in applyTint() argument537 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 …]