TestIWindow.java revision 446079600ece83b22cb91865bcbeb694292b0108
1/* 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 19import com.android.internal.os.IResultReceiver; 20 21import android.graphics.Rect; 22import android.os.Bundle; 23import android.os.ParcelFileDescriptor; 24import android.os.RemoteException; 25import android.util.MergedConfiguration; 26import android.view.DragEvent; 27import android.view.IWindow; 28 29public class TestIWindow extends IWindow.Stub { 30 @Override 31 public void executeCommand(String command, String parameters, 32 ParcelFileDescriptor descriptor) 33 throws RemoteException { 34 35 } 36 37 @Override 38 public void resized(Rect frame, Rect overscanInsets, Rect contentInsets, Rect visibleInsets, 39 Rect stableInsets, Rect outsets, boolean reportDraw, MergedConfiguration mergedConfig, 40 Rect backDropFrame, boolean forceLayout, boolean alwaysConsumeNavBar, int displayId) 41 throws RemoteException { 42 43 } 44 45 @Override 46 public void moved(int newX, int newY) throws RemoteException { 47 48 } 49 50 @Override 51 public void dispatchAppVisibility(boolean visible) throws RemoteException { 52 53 } 54 55 @Override 56 public void dispatchGetNewSurface() throws RemoteException { 57 58 } 59 60 @Override 61 public void windowFocusChanged(boolean hasFocus, boolean inTouchMode) 62 throws RemoteException { 63 64 } 65 66 @Override 67 public void closeSystemDialogs(String reason) throws RemoteException { 68 69 } 70 71 @Override 72 public void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep, 73 boolean sync) 74 throws RemoteException { 75 76 } 77 78 @Override 79 public void dispatchWallpaperCommand(String action, int x, int y, int z, Bundle extras, 80 boolean sync) throws RemoteException { 81 82 } 83 84 @Override 85 public void dispatchDragEvent(DragEvent event) throws RemoteException { 86 87 } 88 89 @Override 90 public void updatePointerIcon(float x, float y) throws RemoteException { 91 92 } 93 94 @Override 95 public void dispatchSystemUiVisibilityChanged(int seq, int globalVisibility, int localValue, 96 int localChanges) throws RemoteException { 97 98 } 99 100 @Override 101 public void dispatchWindowShown() throws RemoteException { 102 103 } 104 105 @Override 106 public void requestAppKeyboardShortcuts(IResultReceiver receiver, int deviceId) 107 throws RemoteException { 108 109 } 110 111 @Override 112 public void dispatchPointerCaptureChanged(boolean hasCapture) { 113 } 114} 115