blob: 83aa620b9573befc2344a0152de9e647d6e48533 [file] [log] [blame]
Wale Ogunwaleb699ce02016-07-18 12:05:30 -07001/*
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
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070014 * limitations under the License.
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070015 */
16
17package com.android.server.wm;
18
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070019import android.graphics.Rect;
20import android.os.Bundle;
21import android.os.ParcelFileDescriptor;
22import android.os.RemoteException;
Andrii Kulian44607962017-03-16 11:06:24 -070023import android.util.MergedConfiguration;
Adrian Roos5c6b6222017-11-07 17:36:10 +010024import android.view.DisplayCutout;
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070025import android.view.DragEvent;
26import android.view.IWindow;
Jorim Jaggib6030952018-10-23 18:31:52 +020027import android.view.InsetsSourceControl;
Jorim Jaggif96c90a2018-09-26 16:55:15 +020028import android.view.InsetsState;
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070029
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070030import com.android.internal.os.IResultReceiver;
31
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070032public class TestIWindow extends IWindow.Stub {
33 @Override
34 public void executeCommand(String command, String parameters,
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070035 ParcelFileDescriptor descriptor) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070036 }
37
38 @Override
39 public void resized(Rect frame, Rect overscanInsets, Rect contentInsets, Rect visibleInsets,
Andrii Kulian44607962017-03-16 11:06:24 -070040 Rect stableInsets, Rect outsets, boolean reportDraw, MergedConfiguration mergedConfig,
Brad Stenninge0573692019-03-11 13:52:46 -070041 Rect backDropFrame, boolean forceLayout, boolean alwaysConsumeSystemBars, int displayId,
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070042 DisplayCutout.ParcelableWrapper displayCutout) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070043 }
Jorim Jaggib6030952018-10-23 18:31:52 +020044
Jorim Jaggif96c90a2018-09-26 16:55:15 +020045 @Override
46 public void insetsChanged(InsetsState insetsState) throws RemoteException {
47 }
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070048
49 @Override
Jorim Jaggib6030952018-10-23 18:31:52 +020050 public void insetsControlChanged(InsetsState insetsState, InsetsSourceControl[] activeControls)
51 throws RemoteException {
52 }
53
54 @Override
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070055 public void moved(int newX, int newY) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070056 }
57
58 @Override
59 public void dispatchAppVisibility(boolean visible) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070060 }
61
62 @Override
63 public void dispatchGetNewSurface() throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070064 }
65
66 @Override
Tiger Huang51c5a1d2018-12-11 20:24:51 +080067 public void windowFocusChanged(boolean hasFocus, boolean inTouchMode) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070068 }
69
70 @Override
71 public void closeSystemDialogs(String reason) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070072 }
73
74 @Override
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070075 public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep, boolean sync)
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070076 throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070077 }
78
79 @Override
80 public void dispatchWallpaperCommand(String action, int x, int y, int z, Bundle extras,
81 boolean sync) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070082 }
83
84 @Override
85 public void dispatchDragEvent(DragEvent event) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070086 }
87
88 @Override
89 public void updatePointerIcon(float x, float y) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070090 }
91
92 @Override
93 public void dispatchSystemUiVisibilityChanged(int seq, int globalVisibility, int localValue,
94 int localChanges) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070095 }
96
97 @Override
98 public void dispatchWindowShown() throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070099 }
100
101 @Override
102 public void requestAppKeyboardShortcuts(IResultReceiver receiver, int deviceId)
103 throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -0700104 }
Vladislav Kaznacheev3787de12016-12-21 10:36:35 -0800105
106 @Override
107 public void dispatchPointerCaptureChanged(boolean hasCapture) {
108 }
Wale Ogunwaleb699ce02016-07-18 12:05:30 -0700109}