android按钮光标流程分析(三)——框架
发布时间
阅读量:
阅读量
一、初始化信息
首先需要了解Android系统中所定义的多种电源状态,这些状态值用于标识不同的LED灯开关情况以及LCD背光所采用的亮度调节模式:
// flags for setPowerState
private static final int SCREEN_ON_BIT = 0x00000001;
private static final int SCREEN_BRIGHT_BIT = 0x00000002;
private static final int BUTTON_BRIGHT_BIT = 0x00000004;
private static final int KEYBOARD_BRIGHT_BIT = 0x00000008;
private static final int BATTERY_LOW_BIT = 0x00000010;
// values for setPowerState
// SCREEN_OFF == everything off
private static
全部评论 (0)
还没有任何评论哟~
