IWindow.aidl revision 9c79504225f60c72c947220b6aca928f11279e1c
1aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger/* //device/java/android/android/view/IWindow.aidl 2aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** 3aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** Copyright 2007, The Android Open Source Project 4aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** 5aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** Licensed under the Apache License, Version 2.0 (the "License"); 6aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** you may not use this file except in compliance with the License. 7aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** You may obtain a copy of the License at 8aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** 9aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** http://www.apache.org/licenses/LICENSE-2.0 10aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** 11aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** Unless required by applicable law or agreed to in writing, software 12aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** distributed under the License is distributed on an "AS IS" BASIS, 13aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** See the License for the specific language governing permissions and 15aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger** limitations under the License. 16aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger*/ 17aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 18aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerpackage android.view; 19aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 20aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerimport android.content.res.Configuration; 21aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerimport android.graphics.Rect; 22aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerimport android.os.Bundle; 23aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerimport android.os.ParcelFileDescriptor; 24aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerimport android.view.DragEvent; 25aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerimport android.view.KeyEvent; 26aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingerimport android.view.MotionEvent; 27aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 28aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger/** 29aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * API back to a client window that the Window Manager uses to inform it of 30aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * interesting things happening. 31aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * 324094db72b61dadd16e180eab5f62ccbc82e3976dosdl.org!shemminger * {@hide} 33aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 34aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemmingeroneway interface IWindow { 35aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 36aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * ===== NOTICE ===== 37aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * The first method must remain the first method. Scripts 38aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * and tools rely on their transaction number to work properly. 39aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 40aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 41aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 42aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * Invoked by the view server to tell a window to execute the specified 43aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * command. Any response from the receiver must be sent through the 44aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * specified file descriptor. 45aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 464094db72b61dadd16e180eab5f62ccbc82e3976dosdl.org!shemminger void executeCommand(String command, String parameters, in ParcelFileDescriptor descriptor); 47aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 48aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void resized(in Rect frame, in Rect overscanInsets, in Rect contentInsets, 49aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger in Rect visibleInsets, in Rect stableInsets, boolean reportDraw, 50aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger in Configuration newConfig); 51aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void moved(int newX, int newY); 52aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void dispatchAppVisibility(boolean visible); 53aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void dispatchGetNewSurface(); 54aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 55aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 56aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * Tell the window that it is either gaining or losing focus. Keep it up 57aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * to date on the current state showing navigational focus (touch mode) too. 58aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 59aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void windowFocusChanged(boolean hasFocus, boolean inTouchMode); 604094db72b61dadd16e180eab5f62ccbc82e3976dosdl.org!shemminger 61aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void closeSystemDialogs(String reason); 62aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 63aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 64aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * Called for wallpaper windows when their offsets change. 65aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 66aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void dispatchWallpaperOffsets(float x, float y, float xStep, float yStep, boolean sync); 67aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 68aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void dispatchWallpaperCommand(String action, int x, int y, 69aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger int z, in Bundle extras, boolean sync); 70aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 71aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 72aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * Drag/drop events 73aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 744094db72b61dadd16e180eab5f62ccbc82e3976dosdl.org!shemminger void dispatchDragEvent(in DragEvent event); 75aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 76aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 77aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * System chrome visibility changes 78aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 79aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void dispatchSystemUiVisibilityChanged(int seq, int globalVisibility, 80aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger int localValue, int localChanges); 81aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger 82aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 83aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * If the window manager returned RELAYOUT_RES_ANIMATING 84aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * from relayout(), this method will be called when the animation 85aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * is done. 86aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 87aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void doneAnimating(); 884094db72b61dadd16e180eab5f62ccbc82e3976dosdl.org!shemminger 89aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger /** 90aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger * Called for non-application windows when the enter animation has completed. 91aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger */ 92aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger void dispatchWindowShown(); 93aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger} 94aba5acdfdb347d2c21fc67d613d83d4430ca3937osdl.org!shemminger