• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2019 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;
17 
18 import static com.android.systemui.shared.system.RemoteAnimationTargetCompat.MODE_CLOSING;
19 
20 import android.graphics.Rect;
21 
22 import com.android.systemui.shared.system.RemoteAnimationTargetCompat;
23 
24 /**
25  * Extension of {@link RemoteAnimationTargets} with additional information about swipe
26  * up animation
27  */
28 public class RecentsAnimationTargets extends RemoteAnimationTargets {
29 
30     public final Rect homeContentInsets;
31     public final Rect minimizedHomeBounds;
32 
RecentsAnimationTargets(RemoteAnimationTargetCompat[] apps, RemoteAnimationTargetCompat[] wallpapers, Rect homeContentInsets, Rect minimizedHomeBounds)33     public RecentsAnimationTargets(RemoteAnimationTargetCompat[] apps,
34             RemoteAnimationTargetCompat[] wallpapers, Rect homeContentInsets,
35             Rect minimizedHomeBounds) {
36         super(apps, wallpapers, MODE_CLOSING);
37         this.homeContentInsets = homeContentInsets;
38         this.minimizedHomeBounds = minimizedHomeBounds;
39     }
40 
hasTargets()41     public boolean hasTargets() {
42         return unfilteredApps.length != 0;
43     }
44 }
45