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 
__constructor__(int action, int code)13     public void __constructor__(int action, int code) {
14         this.action = action;
15         this.code = code;
16     }
17 
18     @Implementation
getAction()19     public final int getAction() {
20         return action;
21     }
22 
23     @Implementation
getKeyCode()24     public final int getKeyCode() {
25         return code;
26     }
27 }
28