blob: 8a39a7408058ed89391b692c1ef9168e1fe0e39b [file] [log] [blame]
Wale Ogunwale26c0dfe2016-12-14 14:42:30 -08001/*
2 * Copyright (C) 2016 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
17package com.android.server.wm;
18
19/** Interface used by the creator of the controller to listen to changes with the container. */
20public interface AppWindowContainerListener extends WindowContainerListener {
21 /** Called when the windows associated app window container are drawn. */
Sudheer Shankac766db02017-06-12 10:37:29 -070022 void onWindowsDrawn(long timestamp);
Wale Ogunwale26c0dfe2016-12-14 14:42:30 -080023 /** Called when the windows associated app window container are visible. */
24 void onWindowsVisible();
25 /** Called when the windows associated app window container are no longer visible. */
26 void onWindowsGone();
Jorim Jaggi3878ca32017-02-02 17:13:05 -080027
28 /**
29 * Called when the starting window for this container is drawn.
30 */
Sudheer Shankac766db02017-06-12 10:37:29 -070031 void onStartingWindowDrawn(long timestamp);
Jorim Jaggi3878ca32017-02-02 17:13:05 -080032
Wale Ogunwale26c0dfe2016-12-14 14:42:30 -080033 /**
34 * Called when the key dispatching to a window associated with the app window container
35 * timed-out.
Wale Ogunwale7402ddf2017-03-29 12:58:24 -070036 *
37 * @param reason The reason for the key dispatching time out.
38 * @param windowPid The pid of the window key dispatching timed out on.
39 * @return True if input dispatching should be aborted.
Wale Ogunwale26c0dfe2016-12-14 14:42:30 -080040 */
Wale Ogunwale7402ddf2017-03-29 12:58:24 -070041 boolean keyDispatchingTimedOut(String reason, int windowPid);
Wale Ogunwale26c0dfe2016-12-14 14:42:30 -080042}