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.CddTest; 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 InstantAppsTest extends CtsVerifierTest { 29 30 @Interactive 31 @Test 32 @SupportMultiDisplayMode 33 // MultiDisplayMode 34 @CddTest(requirements = "3.15/C-0-6") NotificationTest()35 public void NotificationTest() throws Exception { 36 excludeFeatures( 37 "android.hardware.type.television", 38 "android.software.leanback", 39 "android.hardware.type.automotive", 40 "android.hardware.type.watch"); 41 42 runTest(".instantapps.NotificationTestActivity"); 43 } 44 45 @Interactive 46 @Test 47 @SupportMultiDisplayMode 48 // MultiDisplayMode 49 @CddTest(requirements = "3.15/C-0-7") RecentAppsTest()50 public void RecentAppsTest() throws Exception { 51 excludeFeatures( 52 "android.hardware.type.television", 53 "android.software.leanback", 54 "android.hardware.type.automotive", 55 "android.hardware.type.watch"); 56 57 runTest(".instantapps.RecentAppsTestActivity"); 58 } 59 60 @Interactive 61 @Test 62 @SupportMultiDisplayMode 63 // MultiDisplayMode 64 @CddTest(requirements = "3.15/C-0-5") AppInfoTest()65 public void AppInfoTest() throws Exception { 66 excludeFeatures( 67 "android.hardware.type.television", 68 "android.software.leanback", 69 "android.hardware.type.automotive", 70 "android.hardware.type.watch"); 71 72 runTest(".instantapps.AppInfoTestActivity"); 73 } 74 } 75