Searched refs:SppConstants (Results 1 – 10 of 10) sorted by relevance
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
D | UpdateResponseMessage.java | 47 new SoapObject(SoapEnvelope.NS20, SppConstants.METHOD_UPDATE_RESPONSE); in serializeToSoapEnvelope() 48 requestObject.addAttribute(SoapEnvelope.NS20, SppConstants.ATTRIBUTE_SPP_VERSION, in serializeToSoapEnvelope() 49 SppConstants.SUPPORTED_SPP_VERSION); in serializeToSoapEnvelope() 50 requestObject.addAttribute(SoapEnvelope.NS20, SppConstants.ATTRIBUTE_SESSION_ID, sessionId); in serializeToSoapEnvelope() 52 requestObject.addAttribute(SoapEnvelope.NS20, SppConstants.ATTRIBUTE_SPP_STATUS, in serializeToSoapEnvelope() 53 SppConstants.mapStatusIntToString(SppConstants.SppStatus.ERROR)); in serializeToSoapEnvelope() 55 new SoapObject(SoapEnvelope.NS20, SppConstants.PROPERTY_SPP_ERROR); in serializeToSoapEnvelope() 56 sppError.addAttribute(SppConstants.ATTRIBUTE_ERROR_CODE, in serializeToSoapEnvelope() 57 SppConstants.mapErrorIntToString( in serializeToSoapEnvelope() 58 SppConstants.SppError.MO_ADD_OR_UPDATE_FAILED)); in serializeToSoapEnvelope() [all …]
|
D | PostDevDataMessage.java | 59 new SoapObject(SoapEnvelope.NS20, SppConstants.METHOD_POST_DEV_DATA); in serializeToSoapEnvelope() 60 requestObject.addAttribute(SoapEnvelope.NS20, SppConstants.ATTRIBUTE_SPP_VERSION, in serializeToSoapEnvelope() 61 SppConstants.SUPPORTED_SPP_VERSION); in serializeToSoapEnvelope() 62 requestObject.addAttribute(SppConstants.ATTRIBUTE_REQUEST_REASON, requestReason); in serializeToSoapEnvelope() 64 requestObject.addAttribute(SppConstants.ATTRIBUTE_REDIRECT_URI, redirectUri); in serializeToSoapEnvelope() 67 requestObject.addAttribute(SoapEnvelope.NS20, SppConstants.ATTRIBUTE_SESSION_ID, in serializeToSoapEnvelope() 71 requestObject.addProperty(SoapEnvelope.NS20, SppConstants.PROPERTY_SUPPORTED_SPP_VERSIONS, in serializeToSoapEnvelope() 72 SppConstants.SUPPORTED_SPP_VERSION); in serializeToSoapEnvelope() 73 requestObject.addProperty(SoapEnvelope.NS20, SppConstants.PROPERTY_SUPPORTED_MO_LIST, in serializeToSoapEnvelope() 74 String.join(" ", SppConstants.SUPPORTED_MO_LIST)); in serializeToSoapEnvelope() [all …]
|
D | SppResponseMessage.java | 44 private int mError = SppConstants.INVALID_SPP_CONSTANT; 65 mStatus = SppConstants.mapStatusStringToInt( in SppResponseMessage() 68 SPPSessionIDAttribute) || mStatus == SppConstants.INVALID_SPP_CONSTANT) { in SppResponseMessage() 73 if (mStatus == SppConstants.SppStatus.ERROR) { in SppResponseMessage() 84 mError = SppConstants.mapErrorStringToInt( in SppResponseMessage() 151 if (mError != SppConstants.INVALID_SPP_CONSTANT) { in toString()
|
D | PostDevDataResponse.java | 40 if (getStatus() == SppConstants.SppStatus.ERROR) { in PostDevDataResponse()
|
D | SppConstants.java | 30 public class SppConstants { class
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/ |
D | UpdateResponseMessageTest.java | 49 assertEquals(SppConstants.mapStatusIntToString(SppConstants.SppStatus.OK), in serializeUpdateResponseMessageWithSessionIdWithoutError() 51 SppConstants.ATTRIBUTE_SPP_STATUS)); in serializeUpdateResponseMessageWithSessionIdWithoutError() 67 assertEquals(SppConstants.mapStatusIntToString(SppConstants.SppStatus.ERROR), in serializeUpdateResponseMessageWithError() 69 SppConstants.ATTRIBUTE_SPP_STATUS)); in serializeUpdateResponseMessageWithError() 76 SppConstants.mapErrorIntToString(SppConstants.SppError.MO_ADD_OR_UPDATE_FAILED), in serializeUpdateResponseMessageWithError() 77 sppError.getAttributeAsString(SppConstants.ATTRIBUTE_ERROR_CODE)); in serializeUpdateResponseMessageWithError() 82 assertEquals(request.getName(), SppConstants.METHOD_UPDATE_RESPONSE); in verifyCommonFields() 83 assertEquals(SppConstants.SUPPORTED_SPP_VERSION, in verifyCommonFields() 85 SppConstants.ATTRIBUTE_SPP_VERSION)); in verifyCommonFields() 89 SppConstants.ATTRIBUTE_SESSION_ID)); in verifyCommonFields()
|
D | PostDevDataMessageTest.java | 108 assertFalse(soapRequest.hasAttribute(SoapEnvelope.NS20, SppConstants.ATTRIBUTE_SESSION_ID)); in serializePostDevDataRequestWithoutSessionId() 125 SppConstants.ATTRIBUTE_SESSION_ID)); in serializePostDevDataRequestWithSessionId() 131 assertEquals(request.getName(), SppConstants.METHOD_POST_DEV_DATA); in verifyCommonFields() 132 assertEquals(SppConstants.SUPPORTED_SPP_VERSION, in verifyCommonFields() 134 SppConstants.ATTRIBUTE_SPP_VERSION)); in verifyCommonFields() 140 if (propertyInfo.name.equals(SppConstants.PROPERTY_MO_CONTAINER)) { in verifyCommonFields() 142 String moUrn = soapPrimitive.getAttributeAsString(SppConstants.ATTRIBUTE_MO_URN); in verifyCommonFields() 153 request.hasProperty(SoapEnvelope.NS20, SppConstants.PROPERTY_MO_CONTAINER)); in verifyCommonFields() 156 request.getAttribute(SppConstants.ATTRIBUTE_REQUEST_REASON)); in verifyCommonFields() 157 assertEquals(TEST_REDIRECT_URL, request.getAttribute(SppConstants.ATTRIBUTE_REDIRECT_URI)); in verifyCommonFields()
|
D | SppResponseMessageTest.java | 68 assertEquals(SppConstants.mapStatusStringToInt(TEST_STATUS), in verifySppSoapResponseWithoutErrorAttribute() 75 assertEquals(SppConstants.INVALID_SPP_CONSTANT, sppResponseMessage.getError()); in verifySppSoapResponseWithoutErrorAttribute() 99 assertEquals(SppConstants.mapStatusStringToInt(TEST_ERROR_STATUS), in verifySppSoapResponseWithErrorAttribute() 106 assertEquals(SppConstants.mapErrorStringToInt(TEST_ERROR), sppResponseMessage.getError()); in verifySppSoapResponseWithErrorAttribute()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvisioner.java | 49 import com.android.server.wifi.hotspot2.soap.SppConstants; 538 != SppConstants.SppStatus.EXCHANGE_COMPLETE) { in handleSoapMessageResponse() 546 if (exchangeCompleteMessage.getError() != SppConstants.INVALID_SPP_CONSTANT) { in handleSoapMessageResponse() 729 SppConstants.SppReason.SUBSCRIPTION_REGISTRATION, null))) { in initSoapExchange() 821 SppConstants.SppReason.USER_INPUT_COMPLETED, mSessionId))) { in secondSoapExchange()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProvisionerTest.java | 76 import com.android.server.wifi.hotspot2.soap.SppConstants; 248 SppConstants.SppStatus.EXCHANGE_COMPLETE); in setUp() 250 when(mExchangeCompleteMessage.getError()).thenReturn(SppConstants.INVALID_SPP_CONSTANT); in setUp() 865 SppConstants.SppError.PROVISIONING_FAILED); in verifyHandlingErrorPropertyInThirdSoapResponse()
|