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