• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 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 package com.android.quickstep.util;
17 
18 import android.annotation.FloatRange;
19 import android.annotation.IntRange;
20 
21 /*
22  * Adds getter methods to {@link MultiValueUpdateListener} specific to app close animation,
23  * so that the entire animation can be defined in one place.
24  */
25 public abstract class AppCloseConfig extends MultiValueUpdateListener {
26 
27     /**
28      * Returns the translation y of the workspace contents.
29      */
getWorkspaceTransY()30     public abstract float getWorkspaceTransY();
31 
32     /*
33      * Returns the scale of the workspace contents.
34      */
getWorkspaceScale()35     public abstract float getWorkspaceScale();
36 
37     /*
38      * Returns the alpha of the window.
39      */
getWindowAlpha()40     public abstract @FloatRange(from = 0, to = 1) float getWindowAlpha();
41 
42     /*
43      * Returns the alpha of the foreground layer of an adaptive icon.
44      */
getFgAlpha()45     public abstract @IntRange(from = 0, to = 255) int getFgAlpha();
46 
47     /*
48      * Returns the corner radius of the window and icon.
49      */
getCornerRadius()50     public abstract float getCornerRadius();
51 
52     /*
53      * Returns the interpolated progress of the animation.
54      */
getInterpolatedProgress()55     public abstract float getInterpolatedProgress();
56 
57 }
58