1 /* 2 * Copyright (C) 2023 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 android.virtualdevice.cts.common; 18 19 import android.content.ComponentName; 20 21 public class StreamedAppConstants { 22 23 public static final String STREAMED_APP_PACKAGE = "android.virtualdevice.streamedtestapp"; 24 25 public static final ComponentName CLIPBOARD_TEST_ACTIVITY = new ComponentName( 26 STREAMED_APP_PACKAGE, STREAMED_APP_PACKAGE + ".ClipboardTestActivity"); 27 28 public static final ComponentName PERMISSION_TEST_ACTIVITY = new ComponentName( 29 STREAMED_APP_PACKAGE, STREAMED_APP_PACKAGE + ".PermissionTestActivity"); 30 31 public static final ComponentName DEFAULT_HOME_ACTIVITY = new ComponentName( 32 STREAMED_APP_PACKAGE, STREAMED_APP_PACKAGE + ".HomeActivity"); 33 34 public static final ComponentName CUSTOM_HOME_ACTIVITY = new ComponentName( 35 STREAMED_APP_PACKAGE, STREAMED_APP_PACKAGE + ".CustomHomeActivity"); 36 37 // The test activity should attempt to write a ClipData to the clipboard. 38 public static final String ACTION_WRITE = "writeClipboard"; 39 40 // The test activity should attempt to read the clipboard contents and send them back. 41 public static final String ACTION_READ = "readClipboard"; 42 43 // A boolean used to return the result of hasPrimaryClip() 44 public static final String EXTRA_HAS_CLIP_DATA = "hasClipData"; 45 46 // A parcelable containing ClipData that was written or read from the clipboard. 47 public static final String EXTRA_CLIP_DATA = "clipData"; 48 49 // The id of the device whose clipboard to access. 50 public static final String EXTRA_DEVICE_ID = "deviceId"; 51 } 52