Home
last modified time | relevance | path

Searched refs:StringUtils (Results 1 – 25 of 52) sorted by relevance

123

/external/smack/src/org/jivesoftware/smackx/packet/
DVCard.java45 import org.jivesoftware.smack.util.StringUtils;
377 String encodedImage = StringUtils.encodeBase64(bytes); in setAvatar()
420 return StringUtils.decodeBase64(photoBinval); in getAvatar()
487 return StringUtils.encodeHex(digest.digest()); in getAvatarHash()
493 sb.append(StringUtils.escapeForXML(firstName)).append(' '); in updateFN()
496 sb.append(StringUtils.escapeForXML(middleName)).append(' '); in updateFN()
499 sb.append(StringUtils.escapeForXML(lastName)); in updateFN()
754 appendTag("TYPE", StringUtils.escapeForXML(photoMimeType)); in appendPhoto()
765 appendTag("USERID", StringUtils.escapeForXML(email)); in appendEmail()
779 appendTag("NUMBER", StringUtils.escapeForXML(entry.getValue())); in appendPhones()
[all …]
DDiscoverItems.java24 import org.jivesoftware.smack.util.StringUtils;
113 buf.append(StringUtils.escapeForXML(getNode())); in getChildElementXML()
241 buf.append(" name=\"").append(StringUtils.escapeForXML(name)).append("\""); in toXML()
244 buf.append(" node=\"").append(StringUtils.escapeForXML(node)).append("\""); in toXML()
247 buf.append(" action=\"").append(StringUtils.escapeForXML(action)).append("\""); in toXML()
DDiscoverInfo.java24 import org.jivesoftware.smack.util.StringUtils;
197 buf.append(StringUtils.escapeForXML(getNode())); in getChildElementXML()
360 buf.append(" xml:lang=\"").append(StringUtils.escapeForXML(lang)).append("\""); in toXML()
362 buf.append(" category=\"").append(StringUtils.escapeForXML(category)).append("\""); in toXML()
364 buf.append(" name=\"").append(StringUtils.escapeForXML(name)).append("\""); in toXML()
367 buf.append(" type=\"").append(StringUtils.escapeForXML(type)).append("\""); in toXML()
486 buf.append("<feature var=\"").append(StringUtils.escapeForXML(variable)).append("\"/>"); in toXML()
DStreamInitiation.java26 import org.jivesoftware.smack.util.StringUtils;
342 buffer.append("name=\"").append(StringUtils.escapeForXML(getName())).append("\" "); in toXML()
350 buffer.append("date=\"").append(StringUtils.formatXEP0082Date(date)).append("\" "); in toXML()
360 … buffer.append("<desc>").append(StringUtils.escapeForXML(getDesc())).append("</desc>"); in toXML()
DDelayInfo.java18 import org.jivesoftware.smack.util.StringUtils;
92 buf.append(StringUtils.formatXEP0082Date(getStamp())); in toXML()
/external/smack/src/org/jivesoftware/smackx/workgroup/agent/
DAgentRoster.java30 import org.jivesoftware.smack.util.StringUtils;
249 key = StringUtils.parseBareAddress(user).toLowerCase(); in getPresenceMapKey()
317 userPresences.put(StringUtils.parseResource(from), presence); in processPacket()
323 … if (entry.toLowerCase().equals(StringUtils.parseBareAddress(key).toLowerCase())) { in processPacket()
334 userPresences.remove(StringUtils.parseResource(from)); in processPacket()
344 … if (entry.toLowerCase().equals(StringUtils.parseBareAddress(key).toLowerCase())) { in processPacket()
368 String key = StringUtils.parseName(StringUtils.parseName(agentJID) + "@" + in processPacket()
369 StringUtils.parseServer(agentJID)); in processPacket()
/external/smack/src/org/jivesoftware/smackx/workgroup/settings/
DSoundSettings.java24 import org.jivesoftware.smack.util.StringUtils;
41 return StringUtils.decodeBase64(incomingSound); in getIncomingSoundBytes()
45 return StringUtils.decodeBase64(outgoingSound); in getOutgoingSoundBytes()
/external/smack/src/org/jivesoftware/smack/packet/
DPresence.java23 import org.jivesoftware.smack.util.StringUtils;
239 buf.append(" to=\"").append(StringUtils.escapeForXML(getTo())).append("\""); in toXML()
242 buf.append(" from=\"").append(StringUtils.escapeForXML(getFrom())).append("\""); in toXML()
249 buf.append("<status>").append(StringUtils.escapeForXML(status)).append("</status>"); in toXML()
DAuthentication.java23 import org.jivesoftware.smack.util.StringUtils;
112 this.digest = StringUtils.hash(connectionID + password); in setDigest()
172 … buf.append("<password>").append(StringUtils.escapeForXML(password)).append("</password>"); in getChildElementXML()
DMessage.java23 import org.jivesoftware.smack.util.StringUtils;
420 buf.append(" to=\"").append(StringUtils.escapeForXML(getTo())).append("\""); in toXML()
423 buf.append(" from=\"").append(StringUtils.escapeForXML(getFrom())).append("\""); in toXML()
432 …buf.append("<subject>").append(StringUtils.escapeForXML(defaultSubject.subject)).append("</subject… in toXML()
440 buf.append(StringUtils.escapeForXML(subject.subject)); in toXML()
446 … buf.append("<body>").append(StringUtils.escapeForXML(defaultBody.message)).append("</body>"); in toXML()
454 buf.append(StringUtils.escapeForXML(body.getMessage())); in toXML()
DRosterPacket.java23 import org.jivesoftware.smack.util.StringUtils;
219 buf.append(" name=\"").append(StringUtils.escapeForXML(name)).append("\""); in toXML()
229 … buf.append("<group>").append(StringUtils.escapeForXML(groupName)).append("</group>"); in toXML()
DIQ.java23 import org.jivesoftware.smack.util.StringUtils;
84 buf.append("to=\"").append(StringUtils.escapeForXML(getTo())).append("\" "); in toXML()
87 buf.append("from=\"").append(StringUtils.escapeForXML(getFrom())).append("\" "); in toXML()
DPacket.java38 import org.jivesoftware.smack.util.StringUtils;
83 private static String prefix = StringUtils.randomString(5) + "-";
400 buf.append("<name>").append(StringUtils.escapeForXML(name)).append("</name>"); in getExtensionsXML()
419 buf.append(StringUtils.escapeForXML((String)value)); in getExtensionsXML()
433 String encodedVal = StringUtils.encodeBase64(byteStream.toByteArray()); in getExtensionsXML()
/external/smack/src/org/jivesoftware/smack/filter/
DFromMatchesFilter.java24 import org.jivesoftware.smack.util.StringUtils;
55 matchBareJID = "".equals(StringUtils.parseResource(address)); in FromMatchesFilter()
/external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/
DSocks5Utils.java20 import org.jivesoftware.smack.util.StringUtils;
41 return StringUtils.hash(b.toString()); in createDigest()
/external/smack/src/org/jivesoftware/smackx/provider/
DDelayInformationProvider.java29 import org.jivesoftware.smack.util.StringUtils;
46 stamp = StringUtils.parseDate(stampString); in parseExtension()
/external/smack/src/org/jivesoftware/smackx/muc/
DRoomListenerMultiplexor.java28 import org.jivesoftware.smack.util.StringUtils;
165 return roomAddressTable.containsKey(StringUtils.parseBareAddress(from).toLowerCase()); in accept()
206 roomListenersByAddress.get(StringUtils.parseBareAddress(from).toLowerCase()); in processPacket()
DOccupant.java26 import org.jivesoftware.smack.util.StringUtils;
59 this.nick = StringUtils.parseResource(presence.getFrom()); in Occupant()
/external/smack/src/org/jivesoftware/smack/
DRoster.java30 import org.jivesoftware.smack.util.StringUtils;
340 String key = StringUtils.parseName(item.getUser()) + "@" + in insertRosterItem()
341 StringUtils.parseServer(item.getUser()); in insertRosterItem()
608 String key = getPresenceMapKey(StringUtils.parseBareAddress(user)); in getPresence()
668 String resource = StringUtils.parseResource(userWithResource); in getPresenceResource()
751 key = StringUtils.parseBareAddress(user); in getPresenceMapKey()
863 userPresences.put(StringUtils.parseResource(from), presence); in processPacket()
874 if ("".equals(StringUtils.parseResource(from))) { in processPacket()
891 userPresences.put(StringUtils.parseResource(from), presence); in processPacket()
928 "".equals(StringUtils.parseResource(from))) in processPacket()
DChatManager.java36 import org.jivesoftware.smack.util.StringUtils;
64 private static String prefix = StringUtils.randomString(5);
177 baseJidChats.put(StringUtils.parseBareAddress(userJID), chat); in createChat()
208 match = baseJidChats.get(StringUtils.parseBareAddress(userJID)); in getUserChat()
/external/smack/asmack-master/static-src/custom/de/measite/smack/
DAndroidDebugger.java154 boolean isAnonymous = "".equals(StringUtils.parseName(user)); in userHasLogged()
157 + (isAnonymous ? "" : StringUtils.parseBareAddress(user)) in userHasLogged()
162 title += "/" + StringUtils.parseResource(user); in userHasLogged()
/external/smack/src/org/jivesoftware/smack/debugger/
DConsoleDebugger.java168 boolean isAnonymous = "".equals(StringUtils.parseName(user)); in userHasLogged()
171 + (isAnonymous ? "" : StringUtils.parseBareAddress(user)) in userHasLogged()
176 title += "/" + StringUtils.parseResource(user); in userHasLogged()
/external/smack/src/org/jivesoftware/smackx/pubsub/
DSubscribeForm.java24 import org.jivesoftware.smack.util.StringUtils;
129 return StringUtils.parseDate(dateTime); in getExpiry()
147 setAnswer(SubscribeOptionFields.expire.getFieldName(), StringUtils.formatXEP0082Date(expire)); in setExpiry()
/external/smack/src/de/measite/smack/
DAndroidDebugger.java154 boolean isAnonymous = "".equals(StringUtils.parseName(user)); in userHasLogged()
157 + (isAnonymous ? "" : StringUtils.parseBareAddress(user)) in userHasLogged()
162 title += "/" + StringUtils.parseResource(user); in userHasLogged()
/external/smack/src/org/jivesoftware/smack/sasl/
DSASLMechanism.java26 import org.jivesoftware.smack.util.StringUtils;
118 authenticationText = StringUtils.encodeBase64(response, false); in authenticate()
139 response = sc.evaluateChallenge(StringUtils.decodeBase64(challenge)); in challengeReceived()
149 responseStanza = new Response(StringUtils.encodeBase64(response, false)); in challengeReceived()

123