1 /*
2  * Copyright (C) 2021 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.server.wm.traces.common.service
18 
19 object PlatformConsts {
20     /**
21      * The default Display id, which is the id of the primary display assuming there is one.
22      *
23      * Duplicated from [Display.DEFAULT_DISPLAY] because this class is used by JVM and KotlinJS
24      */
25     const val DEFAULT_DISPLAY = 0
26 
27     /**
28      * Window type: an application window that serves as the "base" window
29      * of the overall application
30      *
31      * Duplicated from [WindowManager.LayoutParams.TYPE_BASE_APPLICATION] because this class
32      * is used by JVM and KotlinJS
33      */
34     const val TYPE_BASE_APPLICATION = 1
35 
36     /**
37      * Window type: special application window that is displayed while the
38      * application is starting
39      *
40      * Duplicated from [WindowManager.LayoutParams.TYPE_APPLICATION_STARTING] because this class
41      * is used by JVM and KotlinJS
42      */
43     const val TYPE_APPLICATION_STARTING = 3
44 
45     /**
46      * Rotation constant: 0 degree rotation (natural orientation)
47      *
48      * Duplicated from [Surface.ROTATION_0] because this class is used by JVM and KotlinJS
49      */
50     const val ROTATION_0 = 0
51 
52     /**
53      * Rotation constant: 90 degree rotation.
54      *
55      * Duplicated from [Surface.ROTATION_90] because this class is used by JVM and KotlinJS
56      */
57     const val ROTATION_90 = 1
58 
59     /**
60      * Rotation constant: 180 degree rotation.
61      *
62      * Duplicated from [Surface.ROTATION_180] because this class is used by JVM and KotlinJS
63      */
64     const val ROTATION_180 = 2
65 
66     /**
67      * Rotation constant: 270 degree rotation.
68      *
69      * Duplicated from [Surface.ROTATION_270] because this class is used by JVM and KotlinJS
70      */
71     const val ROTATION_270 = 3
72 }