• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 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 com.android.cts.verifier;
18 
19 import com.android.compatibility.common.util.ApiTest;
20 import com.android.compatibility.common.util.CddTest;
21 import com.android.interactive.annotations.Interactive;
22 import com.android.interactive.annotations.SupportMultiDisplayMode;
23 import com.android.tradefed.testtype.DeviceJUnit4ClassRunner;
24 
25 import org.junit.Test;
26 import org.junit.runner.RunWith;
27 
28 @RunWith(DeviceJUnit4ClassRunner.class)
29 public final class TilesTest extends CtsVerifierTest {
30 
31     @Interactive
32     @Test
33     @SupportMultiDisplayMode
34     // MultiDisplayMode
35     @CddTest(requirements = {"3.13/C-1-1", "C-1-2", "C-1-3"})
TileServiceTest()36     public void TileServiceTest() throws Exception {
37         excludeFeatures(
38                 "android.hardware.type.television",
39                 "android.software.leanback",
40                 "android.hardware.type.watch",
41                 "android.hardware.type.automotive");
42 
43         runTest(".qstiles.TileServiceVerifierActivity", "config_quick_settings_supported");
44     }
45 
46     @Interactive
47     @Test
48     @SupportMultiDisplayMode
49     // MultiDisplayMode
50     @ApiTest(apis = "android.app.StatusBarManager#requestAddTileService")
TileServiceRequestTest()51     public void TileServiceRequestTest() throws Exception {
52         excludeFeatures(
53                 "android.hardware.type.television",
54                 "android.software.leanback",
55                 "android.hardware.type.watch",
56                 "android.hardware.type.automotive");
57 
58         runTest(".qstiles.TileServiceRequestVerifierActivity", "config_quick_settings_supported");
59     }
60 }
61