• 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.interactive.annotations.Interactive;
21 import com.android.interactive.annotations.SupportMultiDisplayMode;
22 import com.android.tradefed.testtype.DeviceJUnit4ClassRunner;
23 
24 import org.junit.Test;
25 import org.junit.runner.RunWith;
26 
27 @RunWith(DeviceJUnit4ClassRunner.class)
28 public final class DeskClockTest extends CtsVerifierTest {
29 
30     @Interactive
31     @Test
32     @SupportMultiDisplayMode
33     // MultiDisplayMode
34     @ApiTest(
35             apis = {
36                 "android.provider.AlarmClock#ACTION_SHOW_ALARMS",
37                 "android.provider.AlarmClock#ACTION_SET_ALARM",
38                 "android.provider.AlarmClock#ACTION_SET_TIMER"
39             })
DeskClockTest()40     public void DeskClockTest() throws Exception {
41         // This has 7 subtests with no common setup - we should split them out
42         excludeFeatures(
43                 "android.hardware.type.television",
44                 "android.software.leanback",
45                 "android.hardware.type.automotive");
46 
47         runTest(".deskclock.DeskClockTestsActivity");
48     }
49 }
50