1/* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package com.android.launcher3.notification; 18 19import android.view.animation.Interpolator; 20import android.view.animation.PathInterpolator; 21 22/** 23 * Utility class to receive interpolators from. 24 * 25 * This class was copied from com.android.systemui. 26 */ 27public class Interpolators { 28 public static final Interpolator FAST_OUT_SLOW_IN = new PathInterpolator(0.4f, 0f, 0.2f, 1f); 29 public static final Interpolator FAST_OUT_LINEAR_IN = new PathInterpolator(0.4f, 0f, 1f, 1f); 30 public static final Interpolator LINEAR_OUT_SLOW_IN = new PathInterpolator(0f, 0f, 0.2f, 1f); 31 32 /** 33 * Interpolator to be used when animating a move based on a click. Pair with enough duration. 34 */ 35 public static final Interpolator TOUCH_RESPONSE = 36 new PathInterpolator(0.3f, 0f, 0.1f, 1f); 37} 38