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 
17 package android.server.wm.intent;
18 
19 import android.app.Activity;
20 
21 /**
22  * A collection of activities with various launch modes used in the intent tests.
23  * Each activity is named after the LaunchMode it has enabled.
24  *
25  * They reflect the activities present in the IntentPlayground app. The IntentPlayground app
26  * resides in development/samples/IntentPlayground
27  */
28 public class Activities {
29 
30     public static class TrackerActivity extends Activity {
31     }
32 
33     public static class RegularActivity extends Activity {
34     }
35 
36     public static class SingleTopActivity extends Activity {
37     }
38 
39     public static class SingleInstanceActivity extends Activity {
40     }
41 
42     public static class SingleInstanceActivity2 extends Activity {
43     }
44 
45     public static class SingleTaskActivity extends Activity {
46     }
47 
48     public static class SingleTaskActivity2 extends Activity {
49     }
50 
51     public static class TaskAffinity1Activity extends Activity {
52     }
53 
54     public static class TaskAffinity1Activity2 extends Activity {
55     }
56 
57     public static class TaskAffinity2Activity extends Activity {
58     }
59 
60     public static class TaskAffinity3Activity extends Activity {
61     }
62 
63     public static class ClearTaskOnLaunchActivity extends Activity {
64     }
65 
66     public static class DocumentLaunchIntoActivity extends Activity {
67     }
68 
69     public static class DocumentLaunchAlwaysActivity extends Activity {
70     }
71 
72     public static class DocumentLaunchNeverActivity extends Activity {
73     }
74 
75     public static class NoHistoryActivity extends Activity {
76     }
77 
78     public static class LauncherActivity extends Activity {
79     }
80 }
81