1 package com.android.cts.verifier.nfc.hce;
2 
3 import android.content.ComponentName;
4 
5 public class ThroughputService extends HceService {
6     static final String TAG = "PaymentService1";
7 
8     static final ComponentName COMPONENT =
9             new ComponentName("com.android.cts.verifier",
10             ThroughputService.class.getName());
11 
12     public static final CommandApdu[] APDU_COMMAND_SEQUENCE = {
13         HceUtils.buildSelectApdu("F0010203040607FF", true),
14         HceUtils.buildCommandApdu("80CA010100", true),
15         HceUtils.buildCommandApdu("80CA010200", true),
16         HceUtils.buildCommandApdu("80CA010300", true),
17         HceUtils.buildCommandApdu("80CA010400", true),
18         HceUtils.buildCommandApdu("80CA010500", true),
19         HceUtils.buildCommandApdu("80CA010600", true),
20         HceUtils.buildCommandApdu("80CA010700", true),
21         HceUtils.buildCommandApdu("80CA010800", true),
22         HceUtils.buildCommandApdu("80CA010900", true),
23         HceUtils.buildCommandApdu("80CA010A00", true),
24         HceUtils.buildCommandApdu("80CA010B00", true),
25         HceUtils.buildCommandApdu("80CA010C00", true),
26         HceUtils.buildCommandApdu("80CA010D00", true),
27         HceUtils.buildCommandApdu("80CA010E00", true),
28         HceUtils.buildCommandApdu("80CA010F00", true),
29     };
30 
31     public static final String[] APDU_RESPOND_SEQUENCE = {
32         "9000",
33         "0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
34         "0001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
35         "0002FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
36         "0003FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
37         "0004FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
38         "0005FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
39         "0006FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
40         "0007FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
41         "0008FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
42         "0009FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
43         "000AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
44         "000BFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
45         "000CFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
46         "000DFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
47         "000EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9000",
48     };
49 
ThroughputService()50     public ThroughputService() {
51         initialize(APDU_COMMAND_SEQUENCE, APDU_RESPOND_SEQUENCE);
52     }
53 
54     @Override
getComponent()55     public ComponentName getComponent() {
56         return COMPONENT;
57     }
58 }