1 /*
2  * Copyright (C) 2020 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.dynamicmime.common;
18 
19 public class Constants {
20     public static final String ACTION_REQUEST = "android.dynamicmime.UPDATE_MIME_GROUP_REQUEST";
21     public static final String ACTION_RESPONSE = "android.dynamicmime.UPDATE_MIME_GROUP_RESPONSE";
22 
23     public static final String EXTRA_GROUP = "EXTRA_GROUP";
24     public static final String EXTRA_MIMES = "EXTRA_MIME";
25     public static final String EXTRA_REQUEST = "EXTRA_REQUEST";
26     public static final String EXTRA_RESPONSE = "EXTRA_RESPONSE";
27 
28     public static final String GROUP_FIRST = "group_first";
29     public static final String GROUP_SECOND = "group_second";
30     public static final String GROUP_THIRD = "group_third";
31 
32     public static final String ALIAS_BOTH_GROUPS = "group_both";
33     public static final String ALIAS_BOTH_GROUPS_AND_TYPE = "groups_and_type";
34 
35     public static final int REQUEST_SET = 1;
36     public static final int REQUEST_GET = 2;
37 
38     public static final String MIME_TEXT_PLAIN = "text/plain";
39     public static final String MIME_TEXT_XML = "text/xml";
40     public static final String MIME_TEXT_ANY = "text/*";
41     public static final String MIME_IMAGE_PNG = "image/png";
42     public static final String MIME_IMAGE_JPEG = "image/jpeg";
43     public static final String MIME_IMAGE_ANY = "image/*";
44     public static final String MIME_ANY = "*/*";
45 
46     public static final String PACKAGE_TEST_APP = "android.dynamicmime.testapp";
47     public static final String PACKAGE_ACTIVITIES = "android.dynamicmime.common.activity";
48     public static final String PACKAGE_HELPER_APP = "android.dynamicmime.helper";
49     public static final String PACKAGE_UPDATE_APP = "android.dynamicmime.update";
50     public static final String PACKAGE_PREFERRED_APP = "android.dynamicmime.preferred";
51 
52     public static final String ACTIVITY_FIRST = ".FirstActivity";
53     public static final String ACTIVITY_SECOND = ".SecondActivity";
54     public static final String ACTIVITY_BOTH = ".TwoGroupsActivity";
55     public static final String ACTIVITY_BOTH_AND_TYPE = ".TwoGroupsAndTypeActivity";
56 
57     public static final String DATA_DIR = "/data/local/tmp/dynamic-mime-test/";
58 
59     public static final String APK_PREFERRED_APP = DATA_DIR + "CtsDynamicMimePreferredApp.apk";
60     public static final String APK_BOTH_GROUPS = DATA_DIR + "CtsDynamicMimeUpdateAppBothGroups.apk";
61     public static final String APK_FIRST_GROUP = DATA_DIR + "CtsDynamicMimeUpdateAppFirstGroup.apk";
62     public static final String APK_SECOND_GROUP = DATA_DIR +
63             "CtsDynamicMimeUpdateAppSecondGroup.apk";
64 
65 }
66