1 /*
2  * Copyright (C) 2024 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.systemui.display.shared.model
18 
19 import android.content.Context
20 import android.view.LayoutInflater
21 import android.view.WindowManager
22 
23 /** Represents a display specific group of window related properties. */
24 data class DisplayWindowProperties(
25     /** The id of the display associated with this instance. */
26     val displayId: Int,
27     /**
28      * The window type that was used to create the [Context] in this instance, using
29      * [Context.createWindowContext]. This is the window type that can be used when adding views to
30      * the [WindowManager] associated with this instance.
31      */
32     @WindowManager.LayoutParams.WindowType val windowType: Int,
33     /**
34      * The display specific [Context] created using [Context.createWindowContext] with window type
35      * associated with this instance.
36      */
37     val context: Context,
38 
39     /**
40      * The display specific [WindowManager] instance to be used when adding windows of the type
41      * associated with this instance.
42      */
43     val windowManager: WindowManager,
44 
45     /** The [LayoutInflater] to be used with the associated [Context]. */
46     val layoutInflater: LayoutInflater,
47 )
48