blob: a7586810a824372408c9d7546a904d3e573c54d8 [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
Jackal Guoc43a0a62019-04-23 09:15:14 +080019import android.graphics.Point;
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070020import android.graphics.Rect;
21import android.os.Bundle;
22import android.os.ParcelFileDescriptor;
23import android.os.RemoteException;
Andrii Kulian44607962017-03-16 11:06:24 -070024import android.util.MergedConfiguration;
Adrian Roos5c6b6222017-11-07 17:36:10 +010025import android.view.DisplayCutout;
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070026import android.view.DragEvent;
27import android.view.IWindow;
Jorim Jaggib6030952018-10-23 18:31:52 +020028import android.view.InsetsSourceControl;
Jorim Jaggif96c90a2018-09-26 16:55:15 +020029import android.view.InsetsState;
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070030
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070031import com.android.internal.os.IResultReceiver;
32
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070033public class TestIWindow extends IWindow.Stub {
34 @Override
35 public void executeCommand(String command, String parameters,
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070036 ParcelFileDescriptor descriptor) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070037 }
38
39 @Override
40 public void resized(Rect frame, Rect overscanInsets, Rect contentInsets, Rect visibleInsets,
Andrii Kulian44607962017-03-16 11:06:24 -070041 Rect stableInsets, Rect outsets, boolean reportDraw, MergedConfiguration mergedConfig,
Brad Stenninge0573692019-03-11 13:52:46 -070042 Rect backDropFrame, boolean forceLayout, boolean alwaysConsumeSystemBars, int displayId,
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070043 DisplayCutout.ParcelableWrapper displayCutout) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070044 }
Jorim Jaggib6030952018-10-23 18:31:52 +020045
Jorim Jaggif96c90a2018-09-26 16:55:15 +020046 @Override
Jackal Guoc43a0a62019-04-23 09:15:14 +080047 public void locationInParentDisplayChanged(Point offset) throws RemoteException {
48 }
49
50 @Override
Jorim Jaggif96c90a2018-09-26 16:55:15 +020051 public void insetsChanged(InsetsState insetsState) throws RemoteException {
52 }
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070053
54 @Override
Jorim Jaggib6030952018-10-23 18:31:52 +020055 public void insetsControlChanged(InsetsState insetsState, InsetsSourceControl[] activeControls)
56 throws RemoteException {
57 }
58
59 @Override
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070060 public void moved(int newX, int newY) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070061 }
62
63 @Override
64 public void dispatchAppVisibility(boolean visible) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070065 }
66
67 @Override
68 public void dispatchGetNewSurface() throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070069 }
70
71 @Override
Tiger Huang51c5a1d2018-12-11 20:24:51 +080072 public void windowFocusChanged(boolean hasFocus, boolean inTouchMode) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070073 }
74
75 @Override
76 public void closeSystemDialogs(String reason) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070077 }
78
79 @Override
Tadashi G. Takaokab6e148c2018-11-03 02:59:06 -070080 public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep, boolean sync)
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070081 throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070082 }
83
84 @Override
85 public void dispatchWallpaperCommand(String action, int x, int y, int z, Bundle extras,
86 boolean sync) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070087 }
88
89 @Override
90 public void dispatchDragEvent(DragEvent event) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070091 }
92
93 @Override
94 public void updatePointerIcon(float x, float y) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -070095 }
96
97 @Override
98 public void dispatchSystemUiVisibilityChanged(int seq, int globalVisibility, int localValue,
99 int localChanges) throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -0700100 }
101
102 @Override
103 public void dispatchWindowShown() throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -0700104 }
105
106 @Override
107 public void requestAppKeyboardShortcuts(IResultReceiver receiver, int deviceId)
108 throws RemoteException {
Wale Ogunwaleb699ce02016-07-18 12:05:30 -0700109 }
Vladislav Kaznacheev3787de12016-12-21 10:36:35 -0800110
111 @Override
112 public void dispatchPointerCaptureChanged(boolean hasCapture) {
113 }
Wale Ogunwaleb699ce02016-07-18 12:05:30 -0700114}