Home
last modified time | relevance | path

Searched refs:apdu (Results 1 – 9 of 9) sorted by relevance

/packages/apps/SecureElement/src/com/android/se/
DCommandApduValidator.java53 public static void execute(byte[] apdu) throws IllegalArgumentException { in execute() argument
54 if (apdu.length < CMD_APDU_LENGTH_CASE1) { in execute()
55 throw new IllegalArgumentException("Invalid length for command (" + apdu.length + ")."); in execute()
57 checkCla(apdu[OFFSET_CLA]); in execute()
58 checkIns(apdu[OFFSET_INS]); in execute()
60 if (apdu.length == CMD_APDU_LENGTH_CASE1) { in execute()
64 if (apdu.length == CMD_APDU_LENGTH_CASE2) { in execute()
65 checkLe((int) 0x0FF & apdu[OFFSET_P3]); in execute()
69 if (apdu[OFFSET_P3] != (byte) 0x00) { in execute()
70 int lc = ((int) 0x0FF & apdu[OFFSET_P3]); in execute()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/
DCommandApdu.java159 byte[] apdu = new byte[length]; in toBytes()
162 apdu[index] = (byte) mCla; in toBytes()
164 apdu[index] = (byte) mIns; in toBytes()
166 apdu[index] = (byte) mP1; in toBytes()
168 apdu[index] = (byte) mP2; in toBytes()
171 apdu[index] = (byte) mLc; in toBytes()
173 System.arraycopy(mData, 0, apdu, index, mData.length); in toBytes()
177 apdu[index] += (byte) mLe; // LE in toBytes()
180 return apdu; in toBytes()
185 CommandApdu apdu = new CommandApdu(); in clone() local
[all …]
DApduFilter.java50 public ApduFilter(byte[] apdu, byte[] mask) { in ApduFilter() argument
51 if (apdu.length != 4) { in ApduFilter()
57 mApdu = apdu; in ApduFilter()
82 public void setApdu(byte[] apdu) { in setApdu() argument
83 if (apdu.length != 4) { in setApdu()
86 mApdu = apdu; in setApdu()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/iso7816/
DCommandApdu.java159 byte[] apdu = new byte[len]; in getEncoded()
160 apdu[OFFSET_CLA] = mCla; in getEncoded()
161 apdu[OFFSET_INS] = mIns; in getEncoded()
162 apdu[OFFSET_P1] = mP1; in getEncoded()
163 apdu[OFFSET_P2] = mP2; in getEncoded()
171 apdu[off++] = 0; in getEncoded()
172 apdu[off++] = (byte) (mLc >> 8); in getEncoded()
173 apdu[off++] = (byte) (mLc & 0xff); in getEncoded()
174 System.arraycopy(mCdata, 0, apdu, off, mLc); in getEncoded()
177 apdu[off++] = (byte) mLc; in getEncoded()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/ara/
DAccessRuleApplet.java73 CommandApdu apdu = (CommandApdu) GET_ALL_CMD.clone(); in readAllAccessRules() local
74 ResponseApdu response = send(apdu); in readAllAccessRules()
105 apdu = (CommandApdu) GET_NEXT_CMD.clone(); in readAllAccessRules()
106 apdu.setLe(le); in readAllAccessRules()
108 response = send(apdu); in readAllAccessRules()
134 CommandApdu apdu = (CommandApdu) GET_REFRESH_TAG.clone(); in readRefreshTag() local
135 ResponseApdu response = send(apdu); in readRefreshTag()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/
DSapMessageTest.java80 byte[] apdu = new byte[] {0x01, 0x02}; in settersAndGetters()
96 mMessage.setApdu(apdu); in settersAndGetters()
112 assertThat(mMessage.getApdu()).isEqualTo(apdu); in settersAndGetters()
151 byte[] apdu = new byte[] {0x01, 0x02}; in writeAndRead()
164 mMessage.setApdu(apdu); in writeAndRead()
186 assertThat(msgFromInputStream.getApdu()).isEqualTo(apdu); in writeAndRead()
199 byte[] apdu = new byte[] {0x01, 0x02}; in send()
217 mMessage.setApdu(apdu); in send()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/iso7816/
DCommandApduTest.java145 CommandApdu apdu = CommandApdu.builder(0, 1, 2, 3) in testExtendedLe() local
147 assertThat(apdu.getEncoded()).isEqualTo(sHex.decode("00010203000000")); in testExtendedLe()
149 apdu = CommandApdu.builder(0, 1, 2, 3) in testExtendedLe()
151 assertThat(apdu.getEncoded()).isEqualTo(sHex.decode("00010203001234")); in testExtendedLe()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/
DSapMessage.java284 public void setApdu(byte[] apdu) { in setApdu() argument
285 this.mApdu = apdu; in setApdu()
292 public void setApdu7816(byte[] apdu) { in setApdu7816() argument
293 this.mApdu7816 = apdu; in setApdu7816()
/packages/inputmethods/LatinIME/dictionaries/
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...