Home
last modified time | relevance | path

Searched refs:toTag (Results 1 – 6 of 6) sorted by relevance

/packages/services/Telephony/src/com/android/services/telephony/rcs/
DSipDialog.java140 public void earlyResponse(String toTag) { in earlyResponse() argument
141 if (TextUtils.isEmpty(toTag) || mState != STATE_EARLY) { in earlyResponse()
148 mToTag = toTag; in earlyResponse()
156 public void confirm(String toTag) { in confirm() argument
165 mToTag = toTag; in confirm()
196 String toTag = SipMessageParsingUtils.getToTag(m.getHeaderSection()); in isRequestAssociatedWithDialog() local
199 if (fromTag == null || toTag == null || mToTag == null) return false; in isRequestAssociatedWithDialog()
202 return (mFromTag.equals(fromTag) || mFromTag.equals(toTag)) in isRequestAssociatedWithDialog()
203 && (mToTag.equals(toTag) || mToTag.equals(fromTag)); in isRequestAssociatedWithDialog()
DSipSessionTracker.java367 String toTag = SipMessageParsingUtils.getToTag(m.getHeaderSection());
369 + toTag);
379 if (toTag == null) logw("updateSipDialogState: No to tag for message: " + m);
382 d.confirm(toTag);
387 d.earlyResponse(toTag);
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipMessageUtils.java38 String toTag) { in generateSipRequest() argument
44 header += "To: " + ((toTag != null) in generateSipRequest()
45 ? addParamToHeader(toContact, "tag", toTag) : toContact); in generateSipRequest()
56 String toTag) { in generateSipResponse() argument
62 header += "To: " + ((toTag != null) in generateSipResponse()
63 ? addParamToHeader(toContact, "tag", toTag) : toContact); in generateSipResponse()
DSipDialogTest.java55 String toTag = "testToTag"; in testCreateEarlyDialog() local
56 dialog.earlyResponse(toTag); in testCreateEarlyDialog()
57 assertEquals(toTag, dialog.getToTag()); in testCreateEarlyDialog()
149 String toTag = "testToTag"; in testIsRequestAssociated() local
156 dialog.earlyResponse(toTag); in testIsRequestAssociated()
160 SIP_URI_BOB, branchId, callId, fromTag, toTag); in testIsRequestAssociated()
177 SIP_URI_BOB, branchId, callId2, fromTag, toTag); in testIsRequestAssociated()
DSipSessionTrackerTest.java78 public String toTag; field in SipSessionTrackerTest.DialogAttributes
91 String fromTag, String toUri, String toTag) { in DialogAttributes() argument
99 this.toTag = toTag; in DialogAttributes()
103 if (toTag == null) { in setToTag()
104 toTag = getNextString(); in setToTag()
113 return new DialogAttributes(branchId, callId, toUri, fromTag, mFromUri, toTag); in invertFromTo()
613 attr.toUri, attr.branchId, attr.callId, attr.fromTag, attr.toTag); in generateSipRequest()
618 attr.toHeader, attr.branchId, attr.callId, attr.fromTag, attr.toTag); in generateSipResponse()
DTransportSipMessageValidatorTest.java541 String toTag = ""; in generateSipResponse() local
543 toHeader, branchId, callId, fromTag, toTag); in generateSipResponse()
551 String toTag = ""; in generateSipRequest() local
554 toUri, branchId, callId, fromTag, toTag); in generateSipRequest()