summaryrefslogtreecommitdiffstats
path: root/core/java/android/text/util
Commit message (Collapse)AuthorAgeFilesLines
* am 17eda7d0: am 4d907643: Merge "Frameworks/base: Fix trivial equals ↵Andreas Gampe2015-03-171-4/+0
|\ | | | | | | | | | | | | implementation" * commit '17eda7d0bed1d32a9b8f4a6a9d572aeabb43810a': Frameworks/base: Fix trivial equals implementation
| * Frameworks/base: Fix trivial equals implementationAndreas Gampe2015-03-171-4/+0
| | | | | | | | | | | | | | | | | | The comparator's equal implementation doesn't satisfy the constraints of an equals method, namely being reflexive. Use the standard Object implementation instead. Bug: 19797138 Change-Id: I74f888e99533e1945aab7ab10fe8ee3ded6388f4
* | Document the limitations of Linkify addressesRoozbeh Pournader2015-02-251-1/+4
| | | | | | | | | | | | | | | | | | Explain that we are using WebView#findAddresses() which is limited to US addresses at the moment (at least according to its documentation), among various other limitations. Bug: 5847264 Change-Id: If86c6d7c11cc080f0fe3401ffb7bce8068c6016f
* | Add @Nullable annotation where necessary in Rfc822TokenScott Kennedy2015-01-151-4/+10
| | | | | | | | Change-Id: I9b3088cbdfa09a8085b525674ff2540f23d4c96e
* | Revert "Change Linkify leniency to VALID"Raph Levien2014-12-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 9dfe86d4102b93885b947917fccee35053cfc9f2. That change moved the lenience from POSSIBLE to VALID, which eliminated false positive links, especially 4 digit phone numbers, but caused significant false negatives, leading to CTS test failures (android.text.util.cts.LinkifyTest#testAddLinks7 in particular). The true fix requires new functionality to validate phone numbers in a mobile context. In the meantime, the best solution is to revert. Bug: 18708556
* | Change Linkify leniency to VALIDRaph Levien2014-12-041-2/+2
|/ | | | | | | | | | The linkify logic used POSSIBLE as its leniency setting, which resulted in false positives such as 4-digit years being interpreted as phone numbers. Changing to VALID as per recommendation of libphonenumber people, which fixes this problem. Bug: 18489494 Change-Id: I77d330285de46de2fdda22daed41392106ec6ddd
* Catch OperationUnsupportedException when linkifying using WebViewAaron Whyte2014-06-091-23/+30
| | | | | | | | This fixes a CTS test for Wearable. We cannot check for FEATURE_WEBVIEW, because there's no way to get a PackageManager from within these static methods. Bug: 15131296 Change-Id: I7bf7564b6209f330a413ed54a94be1e07fedb30d
* If frameworks wants ASCII casing, it should explicity ask for it.Elliott Hughes2013-08-021-1/+1
| | | | | | | http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html Bug: https://code.google.com/p/android/issues/detail?id=58359 Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4
* use libphonenumber for Linkify.PHONE_NUMBERVictoria Lease2013-04-041-3/+20
| | | | | | | | This commit replaces a regex pattern match for Linkify.PHONE_NUMBER with a call to libphonenumber's PhoneNumberUtil.findNumbers(). Bug: 5533245 Change-Id: I0e0563b241fb62e77d7f49e4a8484c6b0685dd8f
* am 9b1b6439: am 2ed72048: Merge "Always return a valid index from ↵Brad Fitzpatrick2011-04-041-2/+2
|\ | | | | | | | | | | | | Rfc822Tokenizer.findTokenEnd()" * commit '9b1b64399502af0a08beac3014f2294644753602': Always return a valid index from Rfc822Tokenizer.findTokenEnd()
| * Always return a valid index from Rfc822Tokenizer.findTokenEnd()Mattias Niklewski2011-04-041-2/+2
| | | | | | | | | | | | | | | | | | If an invalid input string ends with a backslash inside a comment or quoted string, the returned index would be past the end of the string. In one case this would lead to a runtime exception being thrown from MultiAutoCompleteTextView.performValidation. Change-Id: If629372b429716c25cdc25764f088e95d4812d57
| * Removing wrong equals method in comparator.Jozef BABJAK2011-02-211-4/+0
|/ | | | | | | | | This implementation of equals method has been likely created by template in an IDE. It is useless, possibly leading to poor performance and completely violating the contract of equals method as defined in Object base class. Change-Id: I5e7fd759b7bd9370b44d9374b57390c4e9feba02
* merge from open-source masterThe Android Open Source Project2010-06-031-4/+8
|\ | | | | | | Change-Id: Idf8d5661d7b261b74ac0b1271af98795ac5faff9
| * Merge "Improved error-handling in Rfc822Tokenizer"Kenny Root2010-06-011-2/+6
| |\
| | * Improved error-handling in Rfc822TokenizerHenrik Hall2010-03-261-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The javadoc for the Rfc822Tokenizer states that it will try to be tolerant to broken syntax instead of returning an error (as in an unchecked exception). In some rare cases where the input is clearly incorrect, the tokenizer throws a StringIndexOutOfBoundsException, which was found during one of the monkey test runs. This commits fixes that crash, and teaches the tokenizer to just continue to run anyway. Two simple junit testcases has also been added for testing the default and the errornous case.
| * | Added WEB_URL_PATTERN for Montenegro ".me"Simon Schoar2010-05-051-2/+2
| |/ | | | | | | Change-Id: If725c5ee08ed840ae8323fa18b1d82ef2a42db87
* | Merge "Noticed comment field when splitting guests wasn't being cleared."Erik2010-03-101-1/+1
|\ \
| * | Noticed comment field when splitting guests wasn't being cleared.Erik2010-02-241-1/+1
| | | | | | | | | | | | The address field was being cleared twice instead of address and comment being cleared.
* | | Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-251-1/+1
|/ / | | | | | | | | | | | | This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
* | Keep Rfc822Tokenizer from crashing when the string ends with a backslash.Eric Fischer2010-02-161-2/+2
| | | | | | | | Bug 2442537
* | Unhiding Rfc822Tokenizer.tokenize(CharSequence text, Collection<Rfc822Token> ↵Michael Chan2010-02-041-1/+0
| | | | | | | | | | | | | | | | | | out) Note that Rfc822Tokenizer.tokenize(CharSequence text) is already in the SDK and it just wraps the version I am unhiding. Change-Id: I1ac3b405a04df960fc1e65ca4797d6f5adf85dc4
* | Unbundling workPaul Westbrook2009-12-142-190/+0
| | | | | | | | | | | | Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator NumberPicker, NumberPickerButton to android-common ---
* | Create android-common static library which gets included in frameworks.jar,Dan Egnor2009-11-182-208/+6
|/ | | | | | | but can also be used by unbundled apps. Move android.text.util.Regex there as a starting example, renamed to a more sensible (?) com.android.common.Patterns. Set up a corresponding test package, and move RegexTest (to PatternsTest). Update clients.
* add hashCode() and equals() to Rfc822Token, as well as a convenience ↵Debajit Ghosh2009-09-232-3/+48
| | | | tokenizer method to Rfc822Tokenizer, as part of a calendar guest bugfix.
* refactor copy-and-paste email address filtering code.Debajit Ghosh2009-09-161-0/+58
| | | | add a column to Calendar.Events contract class.
* Add "rtsp" to the list of URL schemes that get linkified.Eric Fischer2009-09-142-2/+2
| | | | Bug 1845298
* AI 144003: am: CL 144002 am: CL 144001 Fix tiny bug in Rfc822Token.javaTadashi Takaoka2009-04-021-1/+1
| | | | | | | | | Original author: takaoka Merged from: //branches/cupcake/... Original author: android-build Merged from: //branches/donutburger/... Automated import of CL 144003
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-131-6/+6
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-036-0/+1347
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-036-1347/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-4/+8
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-172-19/+39
|
* Initial ContributionThe Android Open Source Project2008-10-216-0/+1323