Home
last modified time | relevance | path

Searched refs:sessionParams (Results 1 – 15 of 15) sorted by relevance

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeSessionParamsTest.java194 private void verifyIkeParamsMinimum(IkeSessionParams sessionParams) { in verifyIkeParamsMinimum() argument
195 assertEquals(mTunNetworkContext.tunNetwork, sessionParams.getNetwork()); in verifyIkeParamsMinimum()
196 assertEquals(IPV4_ADDRESS_REMOTE.getHostAddress(), sessionParams.getServerHostname()); in verifyIkeParamsMinimum()
197 assertEquals(Arrays.asList(SA_PROPOSAL), sessionParams.getSaProposals()); in verifyIkeParamsMinimum()
198 assertEquals(LOCAL_ID, sessionParams.getLocalIdentification()); in verifyIkeParamsMinimum()
199 assertEquals(REMOTE_ID, sessionParams.getRemoteIdentification()); in verifyIkeParamsMinimum()
201 IkeAuthConfig localConfig = sessionParams.getLocalAuthConfig(); in verifyIkeParamsMinimum()
204 IkeAuthConfig remoteConfig = sessionParams.getRemoteAuthConfig(); in verifyIkeParamsMinimum()
211 IkeSessionParams sessionParams = createIkeParamsBuilderMinimum().build(); in testBuildWithMinimumSet() local
213 verifyIkeParamsMinimum(sessionParams); in testBuildWithMinimumSet()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionParamsTest.java164 private void verifyIkeParamsWithSeverIpAndDefaultValues(IkeSessionParams sessionParams) { in verifyIkeParamsWithSeverIpAndDefaultValues() argument
165 verifyIkeSessionParamsCommon(sessionParams); in verifyIkeParamsWithSeverIpAndDefaultValues()
167 assertEquals(REMOTE_IPV4_HOST_ADDRESS, sessionParams.getServerHostname()); in verifyIkeParamsWithSeverIpAndDefaultValues()
168 assertFalse(sessionParams.hasIkeOption(IKE_OPTION_ACCEPT_ANY_REMOTE_ID)); in verifyIkeParamsWithSeverIpAndDefaultValues()
169 assertEquals(IKE_DPD_DELAY_SEC_DEFAULT, sessionParams.getDpdDelaySeconds()); in verifyIkeParamsWithSeverIpAndDefaultValues()
172 sessionParams.getRetransmissionTimeoutsMillis()); in verifyIkeParamsWithSeverIpAndDefaultValues()
175 private void verifyIkeSessionParamsCommon(IkeSessionParams sessionParams) { in verifyIkeSessionParamsCommon() argument
177 new SaProposal[] {mIkeSaProposal}, sessionParams.getSaProposalsInternal()); in verifyIkeSessionParamsCommon()
179 assertEquals(mLocalIdentification, sessionParams.getLocalIdentification()); in verifyIkeSessionParamsCommon()
180 assertEquals(mRemoteIdentification, sessionParams.getRemoteIdentification()); in verifyIkeSessionParamsCommon()
[all …]
DChildSessionParamsTest.java65 ChildSessionParams sessionParams = in testBuild() local
68 assertArrayEquals(new SaProposal[] {mSaProposal}, sessionParams.getSaProposalsInternal()); in testBuild()
71 sessionParams.getInboundTrafficSelectorsInternal()); in testBuild()
74 sessionParams.getOutboundTrafficSelectorsInternal()); in testBuild()
75 assertFalse(sessionParams.isTransportMode()); in testBuild()
80 ChildSessionParams sessionParams = in testInternalGetterReturnsDifferentInstances() local
83 sessionParams.getSaProposalsInternal()[0] = null; in testInternalGetterReturnsDifferentInstances()
84 assertNotNull(sessionParams.getSaProposalsInternal()[0]); in testInternalGetterReturnsDifferentInstances()
85 sessionParams.getInboundTrafficSelectorsInternal()[0] = null; in testInternalGetterReturnsDifferentInstances()
86 assertNotNull(sessionParams.getInboundTrafficSelectorsInternal()[0]); in testInternalGetterReturnsDifferentInstances()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/
DUtils.java208 final RtpSessionParams sessionParams = new RtpSessionParams(); in buildSessionParams() local
210 sessionParams.pTimeMillis = audioConfig.getPtimeMillis(); in buildSessionParams()
211 sessionParams.maxPtimeMillis = audioConfig.getMaxPtimeMillis(); in buildSessionParams()
212 sessionParams.dscp = audioConfig.getDscp(); in buildSessionParams()
213 sessionParams.dtmfParams = buildDtmfParams(audioConfig); in buildSessionParams()
214 sessionParams.codecParams = buildCodecParams(audioConfig); in buildSessionParams()
216 return sessionParams; in buildSessionParams()
244 rtpConfig.sessionParams = buildSessionParams(audioConfig); in convertToRtpConfig()
287 || rtpConfig.sessionParams == null in buildEvsParams()
288 || rtpConfig.sessionParams.codecParams == null in buildEvsParams()
[all …]
DVideoService.java81 public int openSession(final int sessionId, final OpenSessionParams sessionParams) { in openSession() argument
82 if (mNativeObject == 0 || sessionParams == null) { in openSession()
86 ParcelFileDescriptor rtpSockFd = sessionParams.getRtpFd(); in openSession()
87 ParcelFileDescriptor rtcpSockFd = sessionParams.getRtcpFd(); in openSession()
103 if (sessionParams.getRtpConfig() != null) { in openSession()
104 sessionParams.getRtpConfig().writeToParcel(parcel, ImsMediaSession.SESSION_TYPE_VIDEO); in openSession()
DTextService.java80 public int openSession(final int sessionId, final OpenSessionParams sessionParams) { in openSession() argument
81 if (mNativeObject == 0 || sessionParams == null) { in openSession()
85 ParcelFileDescriptor rtpSockFd = sessionParams.getRtpFd(); in openSession()
86 ParcelFileDescriptor rtcpSockFd = sessionParams.getRtcpFd(); in openSession()
102 if (sessionParams.getRtpConfig() != null) { in openSession()
103 sessionParams.getRtpConfig().writeToParcel(parcel, ImsMediaSession.SESSION_TYPE_RTT); in openSession()
DAudioService.java81 public int openSession(final int sessionId, final OpenSessionParams sessionParams) { in openSession() argument
82 if (mNativeObject == 0 || sessionParams == null) { in openSession()
86 ParcelFileDescriptor rtpSockFd = sessionParams.getRtpFd(); in openSession()
87 ParcelFileDescriptor rtcpSockFd = sessionParams.getRtcpFd(); in openSession()
103 if (sessionParams.getRtpConfig() != null) { in openSession()
104 sessionParams.getRtpConfig().writeToParcel(parcel, ImsMediaSession.SESSION_TYPE_AUDIO); in openSession()
DAudioOffloadService.java82 public void openSession(int sessionId, OpenSessionParams sessionParams) { in openSession() argument
85 (AudioConfig)sessionParams.getRtpConfig()); in openSession()
91 mMediaControllerCallback = sessionParams.getCallback(); in openSession()
94 lep.rtpFd = sessionParams.getRtpFd(); in openSession()
95 lep.rtcpFd = sessionParams.getRtcpFd(); in openSession()
DTextSession.java98 public void openSession(OpenSessionParams sessionParams) { in openSession() argument
99 Utils.sendMessage(mHandler, CMD_OPEN_SESSION, sessionParams); in openSession()
100 RtpConfig rtpConfig = sessionParams.getRtpConfig(); in openSession()
204 private void handleOpenSession(OpenSessionParams sessionParams) { in handleOpenSession() argument
205 mTextListener.setMediaCallback(sessionParams.getCallback()); in handleOpenSession()
207 int result = mTextService.openSession(mSessionId, sessionParams); in handleOpenSession()
DVideoSession.java110 public void openSession(OpenSessionParams sessionParams) { in openSession() argument
111 Utils.sendMessage(mHandler, CMD_OPEN_SESSION, sessionParams); in openSession()
112 RtpConfig rtpConfig = sessionParams.getRtpConfig(); in openSession()
255 private void handleOpenSession(OpenSessionParams sessionParams) { in handleOpenSession() argument
256 mVideoListener.setMediaCallback(sessionParams.getCallback()); in handleOpenSession()
257 int result = mVideoService.openSession(mSessionId, sessionParams); in handleOpenSession()
DAudioSession.java147 public void openSession(OpenSessionParams sessionParams) { in openSession() argument
148 Utils.sendMessage(mHandler, CMD_OPEN_SESSION, sessionParams); in openSession()
149 RtpConfig rtpConfig = sessionParams.getRtpConfig(); in openSession()
349 private void handleOpenSession(OpenSessionParams sessionParams) { in handleOpenSession() argument
351 mOffloadService.openSession(mSessionId, sessionParams); in handleOpenSession()
353 mAudioListener.setMediaCallback(sessionParams.getCallback()); in handleOpenSession()
354 int result = mAudioService.openSession(mSessionId, sessionParams); in handleOpenSession()
DIMediaSession.java27 void openSession(OpenSessionParams sessionParams); in openSession() argument
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java265 mChildSessionParams = childSmConfig.sessionParams; in ChildSessionStateMachine()
291 public final ChildSessionParams sessionParams; field in ChildSessionStateMachine.Config
299 ChildSessionParams sessionParams, in Config() argument
305 this.sessionParams = sessionParams; in Config()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbSessionNotificationManager.java667 Params sessionParams, long elapsedRealtimeNanos, UwbSession uwbSession) { in getRangingReport() argument
683 FiraOpenSessionParams openSessionParams = (FiraOpenSessionParams) sessionParams; in getRangingReport()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java7564 IkeSessionParams sessionParams = in testNattKeepaliveStarts() local
7573 mIkeSessionStateMachine = makeAndStartIkeSession(sessionParams); in testNattKeepaliveStarts()