Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.view.KeyEvent;
      4 import com.xtremelabs.robolectric.internal.Implementation;
      5 import com.xtremelabs.robolectric.internal.Implements;
      6 
      7 @SuppressWarnings({"UnusedDeclaration"})
      8 @Implements(KeyEvent.class)
      9 public class ShadowKeyEvent {
     10     private int action;
     11     private int code;
     12 
     13     public void __constructor__(int action, int code) {
     14         this.action = action;
     15         this.code = code;
     16     }
     17 
     18     @Implementation
     19     public final int getAction() {
     20         return action;
     21     }
     22 
     23     @Implementation
     24     public final int getKeyCode() {
     25         return code;
     26     }
     27 }
     28