【按键】灭屏后瞬间按返回键,可以点亮屏幕

frameworks/base/core/java/android/view/KeyEvent.java
    /** @hide */                              
     public static final boolean isWakeKey(int keyCode) {  
         switch (keyCode) {                          
           case KeyEvent.KEYCODE_BACK: //删除      
             case KeyEvent.KEYCODE_MENU:              
            case KeyEvent.KEYCODE_PAIRING:                        
             case KeyEvent.KEYCODE_STEM_2:                              
          case KeyEvent.KEYCODE_STEM_3:                          
                 return true;                                        
       }                                                          
        return false;                                          
   }

你可能感兴趣的:(Android,android)