Home
last modified time | relevance | path

Searched refs:decode (Results 1 – 25 of 135) sorted by relevance

123456

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapMessageTest.java69 EapMessage result = EapMessage.decode(EAP_SUCCESS_PACKET); in testDecode()
77 result = EapMessage.decode(EAP_REQUEST_SIM_START_PACKET); in testDecode()
87 EapMessage.decode(INVALID_CODE_PACKET); in testDecodeInvalidCode()
96 EapMessage.decode(INCOMPLETE_HEADER_PACKET); in testDecodeIncompleteHeader()
105 EapMessage.decode(SHORT_PACKET); in testDecodeShortPacket()
114 EapMessage.decode(LONG_SUCCESS_PACKET); in testDecodeSuccessIncorrectLength()
123 EapMessage.decode(REQUEST_MISSING_TYPE_PACKET); in testDecodeMissingTypeData()
132 EapMessage.decode(REQUEST_UNSUPPORTED_TYPE_PACKET); in testDecodeUnsupportedEapType()
154 EapMessage result = EapMessage.decode(eapMessage.encode()); in testEncodeDecode()
164 byte[] result = EapMessage.decode(EAP_REQUEST_SIM_START_PACKET).encode(); in testDecodeEncode()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaIdentityStateTest.java73 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIdentityRequest()
79 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIdentityRequest()
91 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessWithoutIdentityRequestAttributes()
96 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessWithoutIdentityRequestAttributes()
110 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMultipleIdentityRequestAttributes()
115 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMultipleIdentityRequestAttributes()
127 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessImsiUnavailable()
133 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessImsiUnavailable()
151 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
158 verify(mMockEapAkaTypeDataDecoder, times(2)).decode(DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapAkaPrimeChallengeStateTest.java119 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapIdentity()
127 verify(mMockTypeDataDecoder, times(2)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapIdentity()
141 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapAkaPrimeIdentity()
148 verify(mMockTypeDataDecoder, times(2)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapAkaPrimeIdentity()
154 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapAkaPrimeIdentity()
162 verify(mMockTypeDataDecoder, times(4)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapAkaPrimeIdentity()
180 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtKdf()
184 verify(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtKdf()
201 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtKdfInput()
205 verify(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtKdfInput()
[all …]
DEapAkaChallengeStateTest.java175 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtRand()
180 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtRand()
195 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtAutn()
200 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtAutn()
215 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtMac()
220 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtMac()
278 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIccAuthenticationNullResponse()
289 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIccAuthenticationNullResponse()
312 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIccAuthenticationInvalidTag()
323 verify(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIccAuthenticationInvalidTag()
[all …]
DEapAkaMethodStateMachineTest.java119 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapAkaFailsOnMultipleAkaNotifications()
123 verify(mMockEapAkaTypeDataDecoder).decode(DUMMY_EAP_TYPE_DATA); in testEapAkaFailsOnMultipleAkaNotifications()
130 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapAkaFailsOnMultipleAkaNotifications()
139 verify(mMockEapAkaTypeDataDecoder, times(3)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapAkaFailsOnMultipleAkaNotifications()
145 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapAkaFailsOnMultipleAkaNotifications()
151 verify(mMockEapAkaTypeDataDecoder, times(4)).decode(DUMMY_EAP_TYPE_DATA); in testEapAkaFailsOnMultipleAkaNotifications()
DEapSimMethodStateMachineTest.java121 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapSimFailsOnMultipleSimNotifications()
125 verify(mMockEapSimTypeDataDecoder).decode(DUMMY_EAP_TYPE_DATA); in testEapSimFailsOnMultipleSimNotifications()
132 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapSimFailsOnMultipleSimNotifications()
140 verify(mMockEapSimTypeDataDecoder, times(3)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapSimFailsOnMultipleSimNotifications()
145 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapSimFailsOnMultipleSimNotifications()
151 verify(mMockEapSimTypeDataDecoder, times(4)).decode(DUMMY_EAP_TYPE_DATA); in testEapSimFailsOnMultipleSimNotifications()
DEapAkaPrimeCreatedStateTest.java54 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToIdentityState()
61 verify(mMockTypeDataDecoder, times(2)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToIdentityState()
74 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
82 verify(mMockTypeDataDecoder, times(2)).decode(DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapAkaPrimeIdentityStateTest.java66 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIdentityRequest()
72 verify(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIdentityRequest()
86 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
93 verify(mMockTypeDataDecoder, times(2)).decode(DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapAkaCreatedStateTest.java61 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToIdentityState()
68 verify(mMockEapAkaTypeDataDecoder, times(2)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToIdentityState()
81 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
89 verify(mMockEapAkaTypeDataDecoder, times(2)).decode(DUMMY_EAP_TYPE_DATA); in testProcessTransitionToChallengeState()
DEapSimStateTest.java123 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessEapSimNotification()
128 verify(mMockEapSimTypeDataDecoder).decode(DUMMY_EAP_TYPE_DATA); in testProcessEapSimNotification()
140 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessInvalidDecodeResult()
144 verify(mMockEapSimTypeDataDecoder).decode(DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult()
DEapAkaStateTest.java122 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessEapAkaNotification()
127 verify(mMockEapAkaTypeDataDecoder).decode(DUMMY_EAP_TYPE_DATA); in testProcessEapAkaNotification()
139 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessInvalidDecodeResult()
143 verify(mMockEapAkaTypeDataDecoder).decode(DUMMY_EAP_TYPE_DATA); in testProcessInvalidDecodeResult()
DEapSimStartStateTest.java195 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(DUMMY_EAP_TYPE_DATA); in testAddIdentityAttributeToResponseImsiUnavailable()
227 .decode(DUMMY_EAP_TYPE_DATA); in testProcessWithoutIdentityRequest()
236 verify(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessWithoutIdentityRequest()
243 .decode(DUMMY_EAP_TYPE_DATA); in testProcessWithoutIdentityRequest()
254 verify(mMockEapSimTypeDataDecoder, times(3)).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessWithoutIdentityRequest()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapSimTypeDataTest.java84 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(EAP_SIM_START_SUBTYPE); in testDecode()
104 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(null); in testDecodeNullTypeData()
111 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(INVALID_SUBTYPE); in testDecodeInvalidSubtype()
119 mEapSimTypeDataDecoder.decode(TYPE_DATA_INVALID_AT_RAND); in testDecodeInvalidAtRand()
126 DecodeResult<EapSimTypeData> result = mEapSimTypeDataDecoder.decode(SHORT_TYPE_DATA); in testDecodeShortPacket()
134 mEapSimTypeDataDecoder.decode(TYPE_DATA_INVALID_ATTRIBUTE); in testDecodeInvalidEapAttribute()
153 mEapSimTypeDataDecoder.decode(EAP_SIM_START_DUPLICATE_ATTRIBUTES); in testDecodeDuplicateAttributes()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java60 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { in decode() method in DecodeUtils
77 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) { in decode() method in DecodeUtils
78 return decode(jc, bytes, 0, bytes.length, options); in decode()
81 public static Bitmap decode(JobContext jc, byte[] bytes, int offset, in decode() method in DecodeUtils
257 Bitmap bitmap = decode(jc, data, offset, length, options); in decodeUsingPool()
269 return decode(jc, data, offset, length, options); in decodeUsingPool()
284 Bitmap bitmap = DecodeUtils.decode(jc, fileDescriptor, options); in decodeUsingPool()
296 return decode(jc, fileDescriptor, options); in decodeUsingPool()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java114 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() method in IkeMessage
115 return sIkeMessageHelper.decode(expectedMsgId, header, inputPacket); in decode()
130 public static DecodeResult decode( in decode() method in IkeMessage
138 return sIkeMessageHelper.decode( in decode()
382 DecodeResult decode(int expectedMsgId, IkeHeader ikeHeader, byte[] packet); in decode() method
396 DecodeResult decode( in decode() method
545 public DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() method in IkeMessage.IkeMessageHelper
572 public DecodeResult decode( in decode() method in IkeMessage.IkeMessageHelper
580 return decode( in decode()
591 private DecodeResult decode( in decode() method in IkeMessage.IkeMessageHelper
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DInetDiagSocketTest.java70 HexEncoding.decode(INET_DIAG_REQ_V2_UDP_INET4_HEX.toCharArray(), false);
105 HexEncoding.decode(INET_DIAG_REQ_V2_TCP_INET6_HEX.toCharArray(), false);
142 HexEncoding.decode(INET_DIAG_REQ_V2_TCP_INET_INET_DIAG_HEX.toCharArray(), false);
188 HexEncoding.decode(INET_DIAG_REQ_V2_TCP_INET6_NO_ID_SPECIFIED_HEX.toCharArray(), false);
246 HexEncoding.decode(INET_DIAG_MSG_HEX.toCharArray(), false);
/packages/apps/TV/src/com/android/tv/data/
DWatchedHistoryManager.java80 decode(
148 decode(mSharedPreferences.getString(getSharedPreferencesKey(i), null)); in loadWatchedHistory()
156 decode(mSharedPreferences.getString(getSharedPreferencesKey(i), null)); in loadWatchedHistory()
237 return decode(mSharedPreferences.getString(getSharedPreferencesKey(index), null)); in getRecordFromSharedPreferences()
288 WatchedRecord decode(String encodedString) { in decode() method in WatchedHistoryManager
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java310 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeIkeMessage()
328 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeMessageWithUnsupportedUncriticalPayload()
383 IkeMessage.decode( in testDecodeEncryptedMessage()
399 IkeMessage.decode( in testDecodeEncryptedMessageWithWrongId()
419 IkeMessage.decode( in testDecodeEncryptedMessageWithWrongChecksum()
441 IkeMessage.decode( in testDecryptFail()
468 IkeMessage.decode( in testParsingErrorInEncryptedMessage()
494 ((DecodeResultOk) IkeMessage.decode(0, header, inputPacket)).ikeMessage; in testAttachEncodedHeader()
659 return IkeMessage.decode( in decodeSkf()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/
DUtility.java52 return decode(ASCII, b); in fromAscii()
65 private static String decode(Charset charset, byte[] b) { in decode() method in Utility
69 final CharBuffer cb = charset.decode(ByteBuffer.wrap(b)); in decode()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DEMmcWearInformationProvider.java93 lifetimeA = Integer.decode(lifetimes[0]); in load()
94 lifetimeB = Integer.decode(lifetimes[1]); in load()
95 eol = Integer.decode("0x" + eolData); in load()
DUfsWearInformationProvider.java89 eol = Optional.of(Integer.decode(value)); in load()
92 lifetimeA = Optional.of(Integer.decode(value)); in load()
95 lifetimeB = Optional.of(Integer.decode(value)); in load()
/packages/modules/DnsResolver/
DResolverStats.h53 ssize_t decode(const std::vector<int32_t>& in, ssize_t ofs);
78 inline ssize_t ResolverStats::decode(const std::vector<int32_t>& in, ssize_t ofs) { in decode() function
110 ofs = s.decode(in, ofs); in decodeAll()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapStateMachine.java117 protected DecodeResult decode(@NonNull byte[] packet) { in decode() method in EapStateMachine.EapState
127 EapMessage eapMessage = EapMessage.decode(packet); in decode()
188 DecodeResult decodeResult = decode(packet); in process()
219 DecodeResult decodeResult = decode(packet); in process()
270 DecodeResult decodeResult = decode(packet); in process()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
DPhoneLookupHistoryContentProvider.java107 Uri.decode(uri.getQueryParameter(PhoneLookupHistory.NUMBER_QUERY_PARAM)))); in query()
146 Uri.decode(uri.getQueryParameter(PhoneLookupHistory.NUMBER_QUERY_PARAM)); in insert()
192 String number = Uri.decode(uri.getQueryParameter(PhoneLookupHistory.NUMBER_QUERY_PARAM)); in delete()
252 Uri.decode(uri.getQueryParameter(PhoneLookupHistory.NUMBER_QUERY_PARAM)); in update()
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java131 mRSACertOne = Base64.decode(SELF_SIGNED_RSA_CERT_1_B64, Base64.DEFAULT); in setUp()
132 mRSACertTwo = Base64.decode(SELF_SIGNED_RSA_CERT_2_B64, Base64.DEFAULT); in setUp()
133 mECCertOne = Base64.decode(SELF_SIGNED_EC_CERT_1_B64, Base64.DEFAULT); in setUp()
134 mECCertTwo = Base64.decode(SELF_SIGNED_EC_CERT_2_B64, Base64.DEFAULT); in setUp()

123456