Home | History | Annotate | Download | only in protocol
      1 /* Copyright (C) 2010 The Android Open Source Project
      2 **
      3 ** This software is licensed under the terms of the GNU General Public
      4 ** License version 2, as published by the Free Software Foundation, and
      5 ** may be copied, distributed, and modified under those terms.
      6 **
      7 ** This program is distributed in the hope that it will be useful,
      8 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
      9 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     10 ** GNU General Public License for more details.
     11 */
     12 
     13 #ifndef _ANDROID_PROTOCOL_UI_COMMANDS_H
     14 #define _ANDROID_PROTOCOL_UI_COMMANDS_H
     15 
     16 /*
     17  * Contains declarations related to the UI control commands sent by the Core and
     18  * handled by the UI.
     19  */
     20 
     21 #include "android/protocol/ui-common.h"
     22 
     23 /* Sets window scale. */
     24 #define AUICMD_SET_WINDOWS_SCALE        1
     25 
     26 /* Changes display brightness. */
     27 #define AUICMD_CHANGE_DISP_BRIGHTNESS   2
     28 
     29 /* Formats AUICMD_SET_WINDOWS_SCALE UI control command parameters.
     30  * Contains parameters required by android_emulator_set_window_scale routine.
     31  */
     32 typedef struct UICmdSetWindowsScale {
     33     double  scale;
     34     int     is_dpi;
     35 } UICmdSetWindowsScale;
     36 
     37 /* Formats AUICMD_CHANGE_DISP_BRIGHTNESS UI control command parameters.
     38  */
     39 typedef struct UICmdChangeDispBrightness {
     40     int     brightness;
     41     char    light[0];
     42 } UICmdChangeDispBrightness;
     43 
     44 #endif /* _ANDROID_PROTOCOL_UI_COMMANDS_H */
     45