1{
2    "comment": "Verify that the task should be reused (vs. the affinity task on top) while start the activity again",
3    "setup": {
4        "initialIntents": [
5            {
6                "flags": "FLAG_ACTIVITY_NEW_TASK",
7                "class": "android.server.wm.intent.Activities$RegularActivity",
8                "package": "android.server.wm.cts",
9                "startForResult": false
10            }
11        ],
12        "act": [
13            {
14                "flags": "FLAG_ACTIVITY_NEW_TASK",
15                "class": "android.server.wm.intent.Activities$SingleInstancePerTaskActivity",
16                "package": "android.server.wm.cts",
17                "startForResult": false
18            },
19            {
20                "flags": "FLAG_ACTIVITY_NEW_TASK",
21                "class": "android.server.wm.intent.Activities$RegularActivity",
22                "package": "android.server.wm.cts",
23                "startForResult": false
24            },
25            {
26                "flags": "FLAG_ACTIVITY_NEW_TASK",
27                "class": "android.server.wm.intent.Activities$SingleInstancePerTaskActivity",
28                "package": "android.server.wm.cts",
29                "startForResult": false
30            }
31        ]
32    },
33    "initialState": {
34        "tasks": [
35            {
36                "activities": [
37                    {
38                        "name": "android.server.wm.cts/android.server.wm.intent.Activities$RegularActivity",
39                        "state": "RESUMED"
40                    }
41                ]
42            }
43        ]
44    },
45    "endState": {
46        "tasks": [
47            {
48                "activities": [
49                    {
50                        "name": "android.server.wm.cts/android.server.wm.intent.Activities$SingleInstancePerTaskActivity",
51                        "state": "RESUMED"
52                    }
53                ]
54            },
55            {
56                "activities": [
57                    {
58                        "name": "android.server.wm.cts/android.server.wm.intent.Activities$RegularActivity",
59                        "state": "STOPPED"
60                    }
61                ]
62            }
63        ]
64    }
65}