/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeMessageTest.java | 287 DecodeResult decodeResult, byte[] firstPacket) throws Exception { in verifyDecodeResultOkAndGetMessage() argument 288 assertEquals(DECODE_STATUS_OK, decodeResult.status); in verifyDecodeResultOkAndGetMessage() 290 DecodeResultOk resultOk = (DecodeResultOk) decodeResult; in verifyDecodeResultOkAndGetMessage() 298 DecodeResult decodeResult, int decodeStatus, byte[] firstPacket) throws Exception { in verifyDecodeResultErrorAndGetIkeException() argument 299 assertEquals(decodeStatus, decodeResult.status); in verifyDecodeResultErrorAndGetIkeException() 301 DecodeResultError resultError = (DecodeResultError) decodeResult; in verifyDecodeResultErrorAndGetIkeException() 312 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeIkeMessage() local 314 IkeMessage message = verifyDecodeResultOkAndGetMessage(decodeResult, inputPacket); in testDecodeIkeMessage() 330 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in testDecodeMessageWithUnsupportedUncriticalPayload() local 332 IkeMessage message = verifyDecodeResultOkAndGetMessage(decodeResult, inputPacket); in testDecodeMessageWithUnsupportedUncriticalPayload() [all …]
|
D | IkeTestUtils.java | 55 DecodeResult decodeResult = IkeMessage.decode(0, header, inputPacket); in decodeAndVerifyUnprotectedErrorMsg() local 57 assertEquals(DECODE_STATUS_UNPROTECTED_ERROR, decodeResult.status); in decodeAndVerifyUnprotectedErrorMsg() 58 DecodeResultError resultError = (DecodeResultError) decodeResult; in decodeAndVerifyUnprotectedErrorMsg()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/ttls/ |
D | EapTtlsAvpTest.java | 183 AvpDecodeResult decodeResult = in testAvpDecoding_success_multipleAvps_withoutVendorId() local 185 assertTrue(decodeResult.isSuccessfulDecode()); in testAvpDecoding_success_multipleAvps_withoutVendorId() 186 EapTtlsAvp avp = decodeResult.eapTtlsAvp; in testAvpDecoding_success_multipleAvps_withoutVendorId() 198 AvpDecodeResult decodeResult = in testAvpDecoding_success_multipleAvps_withVendorId() local 200 assertTrue(decodeResult.isSuccessfulDecode()); in testAvpDecoding_success_multipleAvps_withVendorId() 201 EapTtlsAvp avp = decodeResult.eapTtlsAvp; in testAvpDecoding_success_multipleAvps_withVendorId() 226 private void verifyAvpDecodingFailure(AvpDecodeResult decodeResult) { in verifyAvpDecodingFailure() argument 227 assertFalse(decodeResult.isSuccessfulDecode()); in verifyAvpDecodingFailure() 228 EapError eapError = decodeResult.eapError; in verifyAvpDecodingFailure() 272 AvpDecodeResult decodeResult = in testDecodeAndEncodeAvp() local [all …]
|
D | EapTtlsTypeDataTest.java | 79 DecodeResult decodeResult = mTypeDataDecoder.decodeEapTtlsRequestPacket(EAP_TTLS_REQUEST); in testDecodeEapTtlsRequest() local 80 assertTrue(decodeResult.isSuccessfulDecode()); in testDecodeEapTtlsRequest() 81 EapTtlsTypeData typeData = decodeResult.eapTypeData; in testDecodeEapTtlsRequest() 93 DecodeResult decodeResult = in testDecodeEapTtlsRequest_incorrectMessageLength() local 96 assertFalse(decodeResult.isSuccessfulDecode()); in testDecodeEapTtlsRequest_incorrectMessageLength() 97 EapError eapError = decodeResult.eapError; in testDecodeEapTtlsRequest_incorrectMessageLength() 103 DecodeResult decodeResult = in testDecodeEapTtlsStart() local 105 assertTrue(decodeResult.isSuccessfulDecode()); in testDecodeEapTtlsStart() 106 EapTtlsTypeData typeData = decodeResult.eapTypeData; in testDecodeEapTtlsStart()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapTtlsMethodStateMachine.java | 157 DecodeResult decodeResult = in process() local 159 if (!decodeResult.isSuccessfulDecode()) { in process() 160 LOG.e(mTAG, "Error parsing EAP-TTLS packet type data", decodeResult.eapError.cause); in process() 161 return decodeResult.eapError; in process() 162 } else if (!decodeResult.eapTypeData.isStart) { in process() 212 DecodeResult decodeResult = in process() local 214 if (!decodeResult.isSuccessfulDecode()) { in process() 215 LOG.e(mTAG, "Error parsing EAP-TTLS packet type data", decodeResult.eapError.cause); in process() 217 return decodeResult.eapError; in process() 220 mTAG, message.eapIdentifier, decodeResult.eapError); in process() [all …]
|
D | EapStateMachine.java | 189 DecodeResult decodeResult = decode(packet); in process() local 190 if (!decodeResult.isValidEapMessage()) { in process() 191 return decodeResult.eapResult; in process() 193 EapMessage message = decodeResult.eapMessage; in process() 220 DecodeResult decodeResult = decode(packet); in process() local 221 if (!decodeResult.isValidEapMessage()) { in process() 222 return decodeResult.eapResult; in process() 224 EapMessage message = decodeResult.eapMessage; in process() 293 DecodeResult decodeResult = decode(packet); in process() local 294 if (!decodeResult.isValidEapMessage()) { in process() [all …]
|
D | EapSimMethodStateMachine.java | 144 DecodeResult<EapSimTypeData> decodeResult = in process() local 146 if (!decodeResult.isSuccessfulDecode()) { in process() 150 decodeResult.atClientErrorCode); in process() 153 EapSimTypeData eapSimTypeData = decodeResult.eapTypeData; in process() 205 DecodeResult<EapSimTypeData> decodeResult = in process() local 207 if (!decodeResult.isSuccessfulDecode()) { in process() 211 decodeResult.atClientErrorCode); in process() 214 EapSimTypeData eapSimTypeData = decodeResult.eapTypeData; in process() 390 DecodeResult<EapSimTypeData> decodeResult = in process() local 392 if (!decodeResult.isSuccessfulDecode()) { in process() [all …]
|
D | EapAkaMethodStateMachine.java | 229 DecodeResult<? extends EapAkaTypeData> decodeResult = in process() local 231 if (!decodeResult.isSuccessfulDecode()) { in process() 233 message.eapIdentifier, getEapMethod(), decodeResult.atClientErrorCode); in process() 236 EapAkaTypeData eapAkaTypeData = decodeResult.eapTypeData; in process() 280 DecodeResult<? extends EapAkaTypeData> decodeResult = in process() local 282 if (!decodeResult.isSuccessfulDecode()) { in process() 284 message.eapIdentifier, getEapMethod(), decodeResult.atClientErrorCode); in process() 287 EapAkaTypeData eapAkaTypeData = decodeResult.eapTypeData; in process() 427 DecodeResult<? extends EapAkaTypeData> decodeResult = in process() local 429 if (!decodeResult.isSuccessfulDecode()) { in process() [all …]
|
D | EapMsChapV2MethodStateMachine.java | 234 DecodeResult<EapMsChapV2ChallengeRequest> decodeResult = in process() local 236 if (!decodeResult.isSuccessfulDecode()) { in process() 237 return decodeResult.eapError; in process() 254 DecodeResult<EapMsChapV2ChallengeRequest> decodeResult = in process() local 256 if (!decodeResult.isSuccessfulDecode()) { in process() 257 return decodeResult.eapError; in process() 260 EapMsChapV2ChallengeRequest challengeRequest = decodeResult.eapTypeData; in process()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/ |
D | EapAkaIdentityStateTest.java | 72 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIdentityRequest() local 75 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIdentityRequest() 91 DecodeResult<EapAkaTypeData> decodeResult = in testProcessWithoutIdentityRequestAttributes() local 93 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessWithoutIdentityRequestAttributes() 107 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMultipleIdentityRequestAttributes() local 112 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMultipleIdentityRequestAttributes() 126 DecodeResult<EapAkaTypeData> decodeResult = in testProcessImsiUnavailable() local 129 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessImsiUnavailable() 151 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState() local 153 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
|
D | EapAkaPrimeChallengeStateTest.java | 118 DecodeResult<EapAkaTypeData> decodeResult = in testTransitionWithEapIdentity() local 120 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapIdentity() 139 DecodeResult<EapAkaTypeData> decodeResult = in testTransitionWithEapAkaPrimeIdentity() local 142 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapAkaPrimeIdentity() 153 decodeResult = in testTransitionWithEapAkaPrimeIdentity() 155 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionWithEapAkaPrimeIdentity() 176 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtKdf() local 181 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtKdf() 198 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtKdfInput() local 202 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtKdfInput() [all …]
|
D | EapAkaChallengeStateTest.java | 179 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtRand() local 182 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtRand() 199 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtAutn() local 202 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtAutn() 219 DecodeResult<EapAkaTypeData> decodeResult = in testProcessMissingAtMac() local 222 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessMissingAtMac() 280 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIccAuthenticationNullResponse() local 285 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIccAuthenticationNullResponse() 314 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIccAuthenticationInvalidTag() local 319 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIccAuthenticationInvalidTag() [all …]
|
D | EapSimMethodStateMachineTest.java | 120 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(notificationTypeData); in testEapSimFailsOnMultipleSimNotifications() local 121 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapSimFailsOnMultipleSimNotifications() 129 decodeResult = in testEapSimFailsOnMultipleSimNotifications() 132 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapSimFailsOnMultipleSimNotifications() 144 decodeResult = new EapSimAkaTypeData.DecodeResult<>(notificationTypeData); in testEapSimFailsOnMultipleSimNotifications() 145 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapSimFailsOnMultipleSimNotifications()
|
D | EapAkaMethodStateMachineTest.java | 122 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(notificationTypeData); in testEapAkaFailsOnMultipleAkaNotifications() local 123 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapAkaFailsOnMultipleAkaNotifications() 131 decodeResult = in testEapAkaFailsOnMultipleAkaNotifications() 134 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapAkaFailsOnMultipleAkaNotifications() 148 decodeResult = new DecodeResult<>(notificationTypeData); in testEapAkaFailsOnMultipleAkaNotifications() 149 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testEapAkaFailsOnMultipleAkaNotifications()
|
D | EapAkaPrimeCreatedStateTest.java | 53 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToIdentityState() local 55 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToIdentityState() 73 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState() local 75 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
|
D | EapAkaPrimeIdentityStateTest.java | 65 DecodeResult<EapAkaTypeData> decodeResult = in testProcessIdentityRequest() local 68 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessIdentityRequest() 86 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState() local 88 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
|
D | EapAkaCreatedStateTest.java | 60 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToIdentityState() local 62 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToIdentityState() 80 DecodeResult<EapAkaTypeData> decodeResult = in testProcessTransitionToChallengeState() local 82 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessTransitionToChallengeState()
|
D | EapSimStateTest.java | 122 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(typeData); in testProcessEapSimNotification() local 123 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessEapSimNotification() 139 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(atClientErrorCode); in testProcessInvalidDecodeResult() local 140 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessInvalidDecodeResult()
|
D | EapAkaStateTest.java | 125 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(typeData); in testProcessEapAkaNotification() local 126 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessEapAkaNotification() 142 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(atClientErrorCode); in testProcessInvalidDecodeResult() local 143 doReturn(decodeResult).when(mMockEapAkaTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessInvalidDecodeResult()
|
D | EapAkaPrimeStateTest.java | 76 DecodeResult<EapAkaTypeData> decodeResult = new DecodeResult<>(atClientErrorCode); in testProcessInvalidDecodeResult() local 77 doReturn(decodeResult).when(mMockTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessInvalidDecodeResult()
|
D | EapSimCreatedStateTest.java | 92 DecodeResult<EapSimTypeData> decodeResult = in testTransitionToStartState() local 94 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testTransitionToStartState()
|
D | EapSimChallengeStateTest.java | 342 DecodeResult<EapSimTypeData> decodeResult = in testProcessUiccAuthenticationNullResponse() local 347 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testProcessUiccAuthenticationNullResponse() 388 DecodeResult<EapSimTypeData> decodeResult = new DecodeResult<>(typeData); in testHandleSimNotificationBeforeAuthenticated() local 389 doReturn(decodeResult).when(mMockEapSimTypeDataDecoder).decode(eq(DUMMY_EAP_TYPE_DATA)); in testHandleSimNotificationBeforeAuthenticated()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/ |
D | BatteryReattributeEntityTest.java | 50 final BatteryReattribute decodeResult = in constructor_createExpectedData() local 52 assertThat(decodeResult).isEqualTo(batteryReattribute); in constructor_createExpectedData()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachine.java | 2040 DecodeResult decodeResult = in handleReceivedIkePacket() local 2049 switch (decodeResult.status) { in handleReceivedIkePacket() 2056 DecodeResultOk resultOk = (DecodeResultOk) decodeResult; in handleReceivedIkePacket() 2067 (DecodeResultPartial) decodeResult, true /*isResp*/); in handleReceivedIkePacket() 2070 IkeException ikeException = ((DecodeResultError) decodeResult).ikeException; in handleReceivedIkePacket() 2087 ((DecodeResultError) decodeResult).ikeException); in handleReceivedIkePacket() 2092 "Unrecognized decoding status: " + decodeResult.status)); in handleReceivedIkePacket() 2119 DecodeResult decodeResult = in handleReceivedIkePacket() local 2128 switch (decodeResult.status) { in handleReceivedIkePacket() 2135 DecodeResultOk resultOk = (DecodeResultOk) decodeResult; in handleReceivedIkePacket() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | ConvertUtilsTest.java | 717 final BatteryReattribute decodeResult = ConvertUtils.decodeBatteryReattribute( in decodeBatteryReattribute_returnExpectedResult() local 720 assertThat(decodeResult.getTimestampStart()).isEqualTo(100L); in decodeBatteryReattribute_returnExpectedResult() 721 assertThat(decodeResult.getTimestampEnd()).isEqualTo(200L); in decodeBatteryReattribute_returnExpectedResult() 722 final Map<Integer, Float> reattributeDataMap = decodeResult.getReattributeDataMap(); in decodeBatteryReattribute_returnExpectedResult()
|