Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/packages/apps/Tag/src/com/android/apps/tag/message/
DNdefMessageParser.java43 public static ParsedNdefMessage parse(NdefMessage message) { in parse() method in NdefMessageParser
55 elements.add(UriRecord.parse(record)); in getRecords()
57 elements.add(TextRecord.parse(record)); in getRecords()
59 elements.add(SmartPoster.parse(record)); in getRecords()
61 elements.add(ImageRecord.parse(record)); in getRecords()
63 elements.add(VCardRecord.parse(record)); in getRecords()
65 elements.add(MimeRecord.parse(record)); in getRecords()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DAddressUnitTests.java178 result = Address.parse(null); in testEmptyParse()
182 result = Address.parse(""); in testEmptyParse()
186 result = Address.parse(" "); in testEmptyParse()
190 result = Address.parse(" , "); in testEmptyParse()
198 Address[] address1 = Address.parse("address1@dom1.com"); in testSingleParse()
203 Address[] address2 = Address.parse("<address2@dom2.com>"); in testSingleParse()
208 Address[] address3 = Address.parse("first last <address3@dom3.org>"); in testSingleParse()
213 Address[] address4 = Address.parse("\"first,last\" <address4@dom4.org>"); in testSingleParse()
223 Address[] address1 = Address.parse("address1"); in testIllegalParse()
226 Address[] address2 = Address.parse("address2@"); in testIllegalParse()
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/
DIntentUtilitiesTests.java70 i = new Intent(Intent.ACTION_VIEW, Uri.parse( in testGetIdFromIntent()
78 Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "ACCOUNT_ID"))); in checkGetIdFromIntent()
81 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MAILBOX_ID"))); in checkGetIdFromIntent()
84 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MESSAGE_ID"))); in checkGetIdFromIntent()
96 i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://s/")); in testGetAccountUuidFromIntent()
100 i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://s/?ACCOUNT_UUID=")); in testGetAccountUuidFromIntent()
104 i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://s/?ACCOUNT_UUID=xyz")); in testGetAccountUuidFromIntent()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherSettings.java100 static final Uri CONTENT_URI = Uri.parse("content://" +
108 static final Uri CONTENT_URI_NO_NOTIFICATION = Uri.parse("content://" +
121 return Uri.parse("content://" + LauncherProvider.AUTHORITY + in getContentUri()
/packages/apps/Browser/tests/src/com/android/browser/
DIntentHandlerTests.java39 intent.setData(Uri.parse("http://google.com/")); in testSwitchToTabWithUrl()
46 intent.setData(Uri.parse("http://maps.google.com/")); in testSwitchToTabWithUrl()
52 intent.setData(Uri.parse("http://google.com/")); in testSwitchToTabWithUrl()
85 intent.setData(Uri.parse("http://google.com/")); in testApplication()
93 intent.setData(Uri.parse("http://maps.google.com/")); in testApplication()
/packages/apps/Tag/src/com/android/apps/tag/record/
DImageRecord.java53 public static ImageRecord parse(NdefRecord record) { in parse() method in ImageRecord
54 MimeRecord underlyingRecord = MimeRecord.parse(record); in parse()
68 parse(record); in isImage()
DVCardRecord.java134 parser.parse(new ByteArrayInputStream(mVCard), constructor); in getVCardEntries()
138 parser.parse(new ByteArrayInputStream(mVCard), constructor); in getVCardEntries()
152 public static VCardRecord parse(NdefRecord record) { in parse() method in VCardRecord
153 MimeRecord underlyingRecord = MimeRecord.parse(record); in parse()
178 parse(record); in isVCard()
DSmartPoster.java124 public static SmartPoster parse(NdefRecord record) { in parse() method in SmartPoster
129 return parse(subRecords.getRecords()); in parse()
135 public static SmartPoster parse(NdefRecord[] recordsRaw) { in parse() method in SmartPoster
152 parse(record); in isPoster()
DUriRecord.java176 public static UriRecord parse(NdefRecord record) { in parse() method in UriRecord
189 Uri uri = Uri.parse(new String(payload, Charset.forName("UTF-8"))); in parseAbsolute()
215 Uri uri = Uri.parse(new String(fullUri, Charset.forName("UTF-8"))); in parseWellKnown()
221 parse(record); in isUri()
DMimeRecord.java70 public static MimeRecord parse(NdefRecord record) { in parse() method in MimeRecord
79 parse(record); in isMime()
/packages/apps/Contacts/src/com/android/contacts/
DContactsLiveFolders.java30 Uri.parse("content://contacts/live_folders/favorites");
53 Uri.parse("content://contacts/live_folders/people_with_phones");
76 Uri.parse("content://contacts/live_folders/people");
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/address/
DAddressList.java111 public static AddressList parse(String rawAddressList) throws ParseException { in parse() method in AddressList
113 return Builder.getInstance().buildAddressList(parser.parse()); in parse()
129 AddressList list = parse(line); in main()
/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/
DDelegatingFieldParser.java43 public Field parse(final String name, final String body, final String raw) { in parse() method in DelegatingFieldParser
45 return parser.parse(name, body, raw); in parse()
DAddressListField.java50 public Field parse(final String name, final String body, final String raw) { in parse() method in AddressListField.Parser
54 addressList = AddressList.parse(body); in parse()
DMailboxListField.java52 public Field parse(final String name, final String body, final String raw) { in parse() method in MailboxListField.Parser
56 mailboxList = AddressList.parse(body).flatten(); in parse()
DDateTimeField.java54 public Field parse(final String name, String body, final String raw) { in parse() method in DateTimeField.Parser
61 date = DateTime.parse(body).getDate(); in parse()
DMailboxField.java52 public Field parse(final String name, final String body, final String raw) { in parse() method in MailboxField.Parser
56 MailboxList mailboxList = AddressList.parse(body).flatten(); in parse()
DField.java85 public static Field parse(final String raw) { in parse() method in Field
106 return parser.parse(name, body, raw); in parse()
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityMediumTests.java127 assertEquals(Uri.parse("content://com.android.email.provider?limit=1"), in testBuildLimitOneUri()
128 Utility.buildLimitOneUri(Uri.parse("content://com.android.email.provider"))); in testBuildLimitOneUri()
131 assertEquals(Uri.parse("content://com.android.email.attachmentprovider"), in testBuildLimitOneUri()
132 Utility.buildLimitOneUri(Uri.parse("content://com.android.email.attachmentprovider" in testBuildLimitOneUri()
134 assertEquals(Uri.parse("content://gmail-ls/android@gmail.com"), in testBuildLimitOneUri()
135 Utility.buildLimitOneUri(Uri.parse("content://gmail-ls/android@gmail.com" in testBuildLimitOneUri()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DMimeMessage.java119 parse(in); in MimeMessage()
122 protected void parse(InputStream in) throws IOException, MessagingException { in parse() method in MimeMessage
137 parser.parse(new EOLConvertingInputStream(in)); in parse()
160 DateTimeField field = (DateTimeField)Field.parse("Date: " in getSentDate()
221 mTo = Address.parse(MimeUtility.unfold(getFirstHeader("To"))); in getRecipients()
226 mCc = Address.parse(MimeUtility.unfold(getFirstHeader("CC"))); in getRecipients()
231 mBcc = Address.parse(MimeUtility.unfold(getFirstHeader("BCC"))); in getRecipients()
294 mFrom = Address.parse(list); in getFrom()
315 mReplyTo = Address.parse(MimeUtility.unfold(getFirstHeader("Reply-to"))); in getReplyTo()
/packages/providers/MediaProvider/src/com/android/providers/media/
DUsbReceiver.java47 context.getContentResolver().insert(Uri.parse( in onReceive()
52 context.getContentResolver().delete(Uri.parse( in onReceive()
/packages/apps/Mms/src/com/android/mms/dom/smil/parser/
DSmilXmlParser.java51 public SMILDocument parse(InputStream in) throws IOException, SAXException { in parse() method in SmilXmlParser
54 mXmlReader.parse(new InputSource(in)); in parse()
/packages/apps/Contacts/src/com/android/contacts/util/
DDateUtils.java80 Date date = f.parse(string, parsePosition); in parseDate()
109 date = NO_YEAR_DATE_FORMAT.parse(string, parsePosition); in formatDate()
125 date = f.parse(string, parsePosition); in formatDate()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java321 intent.setData(Uri.parse("tel:800-4664411")); in onListItemClick()
327 intent.setData(Uri.parse("tel:800-4664411")); in onListItemClick()
370 final Uri legacyContentUri = Uri.parse("content://contacts/people"); in onListItemClick()
402 final Uri legacyContentUri = Uri.parse("content://contacts/people"); in onListItemClick()
445 final Uri legacyContentUri = Uri.parse("content://contacts/people"); in onListItemClick()
461 final Uri legacyContentUri = Uri.parse("content://contacts/phones"); in onListItemClick()
471 final Uri legacyContentUri = Uri.parse("content://contacts/people"); in onListItemClick()
479 startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("voicemail:"))); in onListItemClick()
487 startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:555-123-4567"))); in onListItemClick()
491 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("tel:555-123-4567"))); in onListItemClick()
/packages/apps/Browser/src/com/android/browser/
DUrlHandler.java42 static final Uri RLZ_PROVIDER_URI = Uri.parse("content://" + RLZ_PROVIDER + "/");
73 Uri.parse(WebView.SCHEME_TEL + in shouldOverrideUrlLoading()
107 Uri siteUri = Uri.parse(url); in shouldOverrideUrlLoading()
145 .parse("market://search?q=pname:" + packagename)); in startActivityForUrl()

12345678910>>...12