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.server.wm.overlay;
18 
19 import android.content.ComponentName;
20 import android.server.wm.component.ComponentsBase;
21 
22 
23 public class Components extends ComponentsBase {
24     public interface UntrustedTouchTestService {
25         ComponentName COMPONENT = component("UntrustedTouchTestService");
26     }
27 
28     public interface OverlayActivity {
29         ComponentName COMPONENT = component("OverlayActivity");
30         String EXTRA_OPACITY = "opacity";
31         String EXTRA_TOUCHABLE = "touchable";
32         String EXTRA_TOKEN_RECEIVER = "token_receiver";
33         String EXTRA_TOKEN = "token";
34     }
35 
36     public interface ExitAnimationActivity {
37         ComponentName COMPONENT = component("ExitAnimationActivity");
38     }
39 
40     public interface ExitAnimationActivityReceiver {
41         String ACTION_FINISH =
42                 "android.server.wm.overlay.ExitAnimationActivityReceiver.ACTION_FINISH";
43         String EXTRA_ANIMATION = "animation";
44         int EXTRA_VALUE_ANIMATION_EMPTY = 0;
45         int EXTRA_VALUE_ANIMATION_0_7 = 1;
46         int EXTRA_VALUE_ANIMATION_0_9 = 2;
47         int EXTRA_VALUE_LONG_ANIMATION_0_7 = 3;
48     }
49 
50     public interface ToastActivity {
51         ComponentName COMPONENT = component("ToastActivity");
52     }
53 
component(String className)54     private static ComponentName component(String className) {
55         return component(Components.class, className);
56     }
57 }
58