summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Move the public method HttpDateTime.parse() into AndroidHttpClient.Jesse Wilson2010-04-091-2/+2
| | | | | | See bug http://b/2553589 Change-Id: Ide3399c7c63daf9c0b8c18669076f2f4d6e9a876
* Fix OperationScheduler moratorium calculation for clock rollback case.Dan Egnor2010-04-082-55/+114
| | | | | | | | Make the unit test exercise some clock-rollback scenarios, using a properly injected artificial clock. Bug: 2579585 Change-Id: I6f81c32318ba27429bd30ff53b48449218e4ac64
* Add test annotations to frameworks common tests.Brett Chabot2010-04-021-0/+5
| | | | Change-Id: Iaf5af2cbd49015ac8f1bf23a4d20f055ac9a000e
* Add GoogleLogTags that includes event log tags used by Google appsDan Egnor2010-03-182-2/+104
| | | | | Bug: 2523742 Change-Id: I0e61127ac58cbc954240b30c1f55c2518d833aaa
* Add a voice search hint context for the launcher.Mike LeBeau2010-03-111-0/+1
| | | | Change-Id: If22471517d8ee34b750278666277d50deaf9ce47
* Add new LoggingEvents for more detailed text modification actions for voice ↵Mike LeBeau2010-03-091-0/+6
| | | | | | input. Change-Id: I70df3612067f1c8c512a7bbe6c02381724f76bbf
* Fix Proguard flags.Ying Wang2010-03-021-0/+2
|
* Move the pointer location thing out of common.Dianne Hackborn2010-03-011-337/+0
|
* Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-2518-3513/+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.
* Add the API constants to support providing hint strings in the response toMike LeBeau2010-02-251-2/+35
| | | | | | | | RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS. This will use the new support for ArrayList<CharSequence> bundles added in http://b/2468093. This and the corresponding VoiceSearch CL should not be submitted until that is.
* Add some useful methods to OperationScheduler to inquire intoDan Egnor2010-02-172-5/+44
| | | | the history, in case you want to second-guess its scheduling.
* Merge "Add constant to android-common for voice search's ↵Mike LeBeau2010-02-161-0/+36
|\ | | | | | | EXTRA_CALLING_PACKAGE, and use it from SearchDialog."
| * Add constant to android-common for voice search's EXTRA_CALLING_PACKAGE,Mike LeBeau2010-02-121-0/+36
| | | | | | | | and use it from SearchDialog.
* | Merge "Enhance URL regular expression to match more Unicode chars."Shimeng (Simon) Wang2010-02-163-38/+58
|\ \
| * | Enhance URL regular expression to match more Unicode chars.Shimeng (Simon) Wang2010-02-113-38/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enhance URL regular expression to match legal one byte Unicode characters in Internationalized Resource Identifiers as detailed in RFC 3987. Specifically two byte Unicode characters are not included. Not all things in RFC 3987 is implemented, this is just an enhancement for recognizing more common used one byte Unicode characters. This change helps Browser address bar identify more valid URL without scheme typed in, such as 현금영수증.kr make-iana-tld-pattern.py is modified to contain only Top Level Domain regular expression generation. Other parts of WEB_URL pattern are in solely in Patters.java for better consistency and maintenance.
* | | remove Base64 from android-commonDoug Zongker2010-02-144-1547/+0
| | | | | | | | | | | | | | | | | | This is now available in the framework as android.util.base64.*; Change-Id: I54901d32b2b5b291cfa0b4c2479b805038ba12ac
* | | Fix MotionEvent pointer API.Dianne Hackborn2010-02-121-9/+13
| |/ |/| | | | | | | | | | | Ooops. The API said that the pointer down and up actions contained the pointer id, but it is actually the index. Actually it makes much more sense for it to be the index, and those ACTION_POINTER_1_DOWN etc. constants were stupid.
* | Merge "Oops, unbreak the build by removing Recognition.java, not intended ↵Mike LeBeau2010-02-121-38/+0
|\ \ | | | | | | | | | for submission at this time."
| * | Oops, unbreak the build by removing Recognition.java, not intended forMike LeBeau2010-02-121-38/+0
| | | | | | | | | | | | submission at this time.
* | | Merge "Make the corresponding frameworks change to add ↵Mike LeBeau2010-02-121-0/+38
|\ \ \ | |/ / | | | | | | VoiceRecognitionService to the list of SDK sample apps."
| * | Make the corresponding frameworks change to add VoiceRecognitionService toMike LeBeau2010-02-121-0/+38
| | | | | | | | | | | | the list of SDK sample apps.
* | | Add Pointer Location to the window manager.Dianne Hackborn2010-02-121-0/+333
| | | | | | | | | | | | | | | The window manager now has pointer location built into it. Viva la touch!
* | | add Base64InputStreamDoug Zongker2010-02-122-53/+332
| | | | | | | | | | | | Change-Id: I777b54bd6d01c86105b473a6701a06d350cee8d1
* | | add NO_CLOSE flag for use by Base64OutputStreamDoug Zongker2010-02-112-1/+14
|/ / | | | | | | Change-Id: Ib2884e7b3853e4e4b2e329edf47c6f64c2f165a7
* | Merge "Add back lost python script."Shimeng (Simon) Wang2010-02-101-0/+160
|\ \ | |/
| * Add back lost python script.Shimeng (Simon) Wang2010-02-101-0/+160
| | | | | | | | | | | | | | The script is used to generate top level domains' regular expressions. This is enhanced and used to regenerate the new top level domains. new file: common/tools/make-iana-tld-pattern.py
* | API CHANGE: Add SSLSessionCache public API to allow unbundled SSL session ↵Dan Egnor2010-02-103-58/+16
| | | | | | | | | | | | | | | | | | | | | | caching. Generally clean up the associated SSLCertificateSocketFactory API as well, change AndroidHttpClient to use this new thing, and make the android-common library build SDK-clean (woo hoo). Bug: 2362543 Bug: 2357311
* | add Base64OutputStream to android-commonDoug Zongker2010-02-103-69/+612
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Base64OutputStream is a FilterOutputStream that can encode or decode base-64 data (with any of the flags supported by the Base64 class -- crlf, padding vs not, line wrapping vs not, etc.) We change Base64 to have package-private decodeInternal and encodeInternal methods that save all their state in objects and can be called multiple times to stream data. The existing functions for in-memory encoding/decoding call the internal method once; the output stream calls it multiple times. Change-Id: Iac661d05329bc2e6b2863088efcedc974415ec44
* | Add Search.SOURCE to android-commonBjorn Bringert2010-02-101-0/+38
|/ | | | | | Part of http://b/issue?id=2429556 Change-Id: I1e37e092c8a1319d5f703b065dba8a6fbde31db5
* Regenerate the TopLevelDomain from iana.org website.Shimeng (Simon) Wang2010-02-092-74/+100
| | | | | | | This is to capture recently added top level domains. modified: common/java/com/android/common/Patterns.java modified: common/tests/src/com/android/common/PatternsTest.java
* add explicit Base64.DEFAULT flag to request default behaviorDoug Zongker2010-02-081-11/+18
| | | | | | | Also fix some grammar problems in the javadoc, and prevent the class from being instantiated. Change-Id: I4d83184236566a1e77d5f5cce1c4dd3776bcfca3
* Merge "rename encodeString to encodeToString"Doug Zongker2010-02-052-62/+62
|\
| * rename encodeString to encodeToStringDoug Zongker2010-02-042-62/+62
| | | | | | | | Change-Id: I777530b80a9e8be8c487e140574621cd9d35dc35
* | Merge "Add ability to parse HTTP-format moratorium times (since pretty much ↵Dan Egnor2010-02-042-1/+51
|\ \ | |/ |/| | | every user wants this)."
| * Add ability to parse HTTP-format moratorium timesDan Egnor2010-02-032-1/+51
| | | | | | | | (since pretty much every user wants this).
* | a new java implementation of base64 for android-commonDoug Zongker2010-02-042-0/+705
|/ | | | | | | | | | | | | | | | | | | | | | | | A new Base64 encoder/decoder class. Some benchmarks comparing the decoder it to those from android.os.Base64Utils (a decode-only native implementation not accessible to apps) and org.apache.commons.codec.binary.Base64, all with the JIT enabled: 1k encoded data APACHE avg: 811 us min: 244 us max: 13671 us COMMON avg: 263 us min: 30 us max: 4730 us NATIVE avg: 102 us min: 61 us max: 5493 us 10k encoded data APACHE avg: 3624 us min: 2746 us max: 23895 us COMMON avg: 979 us min: 518 us max: 7751 us NATIVE avg: 817 us min: 762 us max: 3143 us 100k encoded data APACHE avg: 33167 us min: 31829 us max: 140411 us COMMON avg: 6047 us min: 5493 us max: 45227 us NATIVE avg: 10109 us min: 10009 us max: 12451 us Change-Id: Ic622e3a967a62d57d30bd25b80cbe4e0dd60e764
* move HttpDateTime from android.webkit to android-common jarDoug Zongker2010-02-031-0/+224
| | | | | | Some to-be-unbundled classes want to use HttpDateTime as well. Change-Id: I40a001970682f6fbd4d9cd3546bd3f63ebfbe89b
* Remove 2 unused imports.Maryam Garrett2010-02-011-3/+0
| | | | Change-Id: I4ada5f3dccdbb2e7ede29693f7211068808f2d75
* Move LoggingEvents.java to android-common & add UserHappinessMaryam Garrett2010-01-292-0/+178
| | | | | | | | | | | | | | | | | | | | | The LoggingEvents move will allow Gmail, Voice Search and other apps to access the LoggingEvents needed. This file will replace packages/inputmethods/LatinIMEsrc/com/android/inputmethod/voice/LoggingEvents.java vendor/google/apps/VoiceSearch/apps/VoiceSearch/src/com/google/android/voicesearch/logging/LoggingEvents.java In addition to moving the file, I have added 3 new fields: TIMESTAMP, IME_TEXT_ACCEPTED, CALLING_APP_NAME. I needed to create CALLING_APP_NAME b/c I can't re-use EXTRA_APP_NAME because that is reserved for one of two values: voice search or voice IME. I added another file to android-common: UserHappinessSignals This can be imported by different applications to broadcast various user happiness metrics. It is currently used by Gmail's CompseActivity.java to indicate that a user "accepted" the IME text when they pressed the send button. Change-Id: Ia859140facb7fb66a12706735d5132ba9eaa5ea0
* Bug 2330111Paul Westbrook2010-01-212-498/+0
| | | | | | | | Make NumberPicker public Made setCurrent() more robust, as the value needs to be within the range specified earlier. setCurrent() will now throw an exception if the specified doesn't fall in the range
* DomainNameValiator: Remove workaroundMakoto Onuki2010-01-201-15/+6
| | | | | | | Remove the workaround introduced in CL 68137-p9. Validation should fail when a certification can't be parsed. Bug: 2369689
* Addign more tests for DomainNameValidator.Makoto Onuki2010-01-198-10/+182
| | | | | | Added tests that use actual certificates. See bug:2369689 for background.
* allow + in usernamesFred Quintana2010-01-141-1/+1
|
* Moved DomainNameChecker to android common.Makoto Onuki2010-01-124-0/+1113
| | | | | | | | - Moved DomainNameChecker from android.net.http to android common, and renamed to DomainNameValidator. - Added a simplified version of DNParser, which DomainNameValidator uses instead of X509Name in order to extract Subject Name from a certificate. - Added unit tests for DomainNameChecker and DNParser. There's a suspicious comment in DomainNameChecker saying something like "X509Certificate fails to parse a certificate when a subject alt name begins with '*'". I think we should fix it if it's really the case -- otherwise certificates with the wildcard wouldn't work. I'll see if it's true after submitting this patch.
* change remaining frameworks/base Gservices to Secure settingsDoug Zongker2010-01-071-13/+3
| | | | Change-Id: I61bdb05a2526523700c2833154d5a4133881ef10
* Move various utility classes to android-commonTom Taylor2009-12-184-0/+1557
| | | | | | | In the process of making Mms unbundled, copy a few non-public-API classes into the android-common library. The Mms app now uses this library. The next step is to update the other apps that use these classes and then delete the classes from their original location.
* Unbundling workPaul Westbrook2009-12-145-0/+1203
| | | | | | Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator NumberPicker, NumberPickerButton to android-common ---
* Add OperationScheduler (and test) to the common static library;Dan Egnor2009-11-214-14/+430
| | | | includes new string parsing function (and test).
* Solve the mutual interdependency problem between common and framework:Dan Egnor2009-11-182-3/+4
| | | | | | | | Have framework include the common source files directly when building, then build common as a static library separately (depending on framework, like everything else). Goes with a companion change to build/core/pathmap.mk.
* Attempt to fix the build server build: make the common libraryDan Egnor2009-11-181-0/+2
| | | | not depend on the framework library (for now, at least).