summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* Add getSuggestions() to SearchBjorn Bringert2012-03-021-0/+75
| | | | | | | | This is a copy of the hidden SearchManager.getSuggestions(), which I plan to remove. It doesn't depend on any hidden APIs and is purely a helper method. Change-Id: I7915cdf327cca9f701e56bcedbf3f5388acf3a66
* Adding minor tweaks to SQLiteContentProvider.Tom Wilson2012-02-231-1/+11
| | | | | | | Allows sub-classes to specify a max number of batch operations, and makes this data accessible as a public method. Change-Id: I3d1cb7b996b23e45b479613b0af4f01a8a641f04
* Add an addAll(String[]) method to ProjectionMap.Dave Santoro2012-01-261-0/+7
| | | | | | | This is useful if the columns for a table are already declared in a String[]. Change-Id: I0140081f149a6354984bf3eb1cb3763f5edf369b
* am f7da24b3: Make static fields of DUSU package-privateConley Owens2011-12-211-2/+2
|\ | | | | | | | | * commit 'f7da24b37a0c94e9bfb5e317548999d418fb12ae': Make static fields of DUSU$DUF package-private
| * Make static fields of DUSU$DUF package-privateConley Owens2011-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | DataUsageStatUpdater$DataUsageFeedback This makes a little more sense since they are accessed outside of the class that they are defined in. In addition, this fixes errors created by proguard when building with OpenJDK. Change-Id: I2c2c514e83fbf789cca59a8ff11df9fd0ac7ffda
* | Moving ProjectionMap into frameworks/ex.Dave Santoro2011-12-131-0/+85
|/ | | | Change-Id: Ida7831c961dd4a132e6c5bb3fffacceca2f41d44
* Remove ArrayListCursor.Jeff Brown2011-10-121-167/+0
| | | | Change-Id: Iadf4bfbc86efdb04ba2917d9def65061e3cc3a23
* Use ICS version codeDaisuke Miyakawa2011-09-141-6/+3
| | | | | Bug: 5047678 Change-Id: I748525684b82f16d7a799b035ad2cfed22fa02d9
* Use ICS release name instead of version codeDaisuke Miyakawa2011-08-231-2/+3
| | | | | Bug: 5148810 Change-Id: I1b4d5d6280fb94e8cd514e3379aecee888eba479
* b/5122753 Make Rfc822Validator a bit smarterErik2011-08-052-3/+63
| | | | Change-Id: Iffea9735b906466077ce03a97ab49b614917dbf3
* Adds tests for Variable Speed code.Hugo Hudson2011-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test changes: - Adds many, many test cases against a MediaPlayerProxy, checking that it behaves to the contract of a MediaPlayer. - Adds the RealMediaPlayer class to check a real MediaPlayer. - Adds the VariableSpeed class, to check a VariableSpeed instance against the same contract as the MediaPlayer. - Adds an Android.mk for the unit tests. - Adds also an AndroidManifest.xml for the unit tests. - Adds some test asset media files (3gpp file and mp3 file). Required for the test changes: - Adds a DynamicProxy class to adapt a MediaPlayer as a MediaPlayerProxy class, i.e. to test the implementation of MediaPlayerProxy, required to avoid writing an adapter. - Adds a couple of listeners, OnErrorListener and OnCompletionListener, that can be waited for synchronously in unit tests. Improvements as a result of the tests: - During the testing, fixes the case where we weren't throwing IllegalStateException if asked for the duration on released player. - Refactored the create engine, create and realize output mix, create and realize audio player, get play interfaces and callbacks, all separated into their own static methods. - This allows me to create the audio player during the main while loop actually after the decoding has begun rather than before starting. This work is a precursor to using the decoder's report on sample rate and channels as the input to these methods. - slSampleRate and slOutputChannels no longer computed in the constructor, but computed when needed in the construction and realization of the audio player. Other changes: - Remove some overly verbose logs on getDuration() and getCurrentPosition(). - Adding the decoder interface to the callback. - Extract metadata from decoder method now takes the metadata interface, so this will be usable from the decoder callack in a follow up. - Temporarily stop getting the metadata out of the decoder, I'm going to be doing it on the decoding callback instead. - Renames the comment in AndroidManifest.xml to describe the correct invocation to run the common tests. Bug: 5048252 Bug: 5048257 Change-Id: Icdc18b19ef89c9924f73128b70aa4696b4e727c5
* Use HC MR3's verison code instead of MR2'sDaisuke Miyakawa2011-07-191-2/+2
| | | | | Bug: 5047405 Change-Id: I479778c36b2e6706dd0d171bfbe9123cc45c0217
* Enhance the URL Regex script to handle i18n TLDs.Shimeng (Simon) Wang2011-07-181-4/+10
| | | | | | | | Decode punycode and put in Unicode scripts also into the Regex matcher, this will match internationalized characters in TopLevelDomains. issue: 4384739 Change-Id: Ic1aac6e05509f00ef3a2c19a06cacda6e9cd8b42
* Adds the MoreCloseables utility file.Hugo Hudson2011-07-141-0/+46
| | | | | | | | | | - This has methods for closing objects iff they are not-null, in exactly the same way as Closeables, but for objects that don't implement the Closeable interface. - Specifically at the moment this involves Cursor and AssetFileDescriptor objects. Change-Id: I92e8719e6deab7652f940d129594cdee3c8f3061
* Add the new global-search field to android-common.Mark Brophy2011-07-071-0/+11
| | | | | | | For unbundled apps which don't build against ICS yet, but need to support this feature. Change-Id: I3aca93d007ae05e2c59dc8e0613e761ec52ecdea
* Merge "Pass query parameters for primary account."Daisuke Miyakawa2011-06-151-3/+12
|\
| * Pass query parameters for primary account.Daisuke Miyakawa2011-04-071-3/+12
| | | | | | | | | | | | | | | | | | Should be after: - Ibce363d336cb3e3a1fca10bddbd912ec96e4b059 - I2a22be56822226e3ea6b6f2ef23bb77816d0345a Bug: 3510087 Change-Id: I7e4f4fa01a237fa82521c5f57c258ee599933d60
* | Introduce utility library for sending usage feedback.Daisuke Miyakawa2011-06-091-0/+263
|/ | | | | | | | | | | | | | | | | | | It allows each app to conveniently send data usage feedback to ContactsProvider, which includes TIMES_CONTACTED/LAST_TIME_CONTACTED existing before ICS and DataUsageFeedback stuff introduced in ICS. This library checks API version and update relevant data appropriately, so each application doesn't need to take care of details of API (and possible API change in ICS) TODO: - need test for this. Must be after I602c0b83afca674904946f59bbdfc4dca07d46e4 Bug: 4371572 Change-Id: Id84ef81392c48d8c59eb89e0407eec0c592f3b31
* am 86018e02: Merge "Preventive fix in setNotificationsEnabled" into honeycombGilles Debunne2011-01-191-2/+2
|\ | | | | | | | | * commit '86018e0266578b120b9ad4133a6f189d2a3eac47': Preventive fix in setNotificationsEnabled
| * Preventive fix in setNotificationsEnabledGilles Debunne2011-01-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This code setNotificationsEnabled(false); ... notifyDataChanged(); ... setNotificationsEnabled(false); should not notify that a change happended. Change-Id: Ia639530dcc2a34c24a7edbe2d2ba3530d22cacb9
* | am 10c28c7f: Don\'t change the visibility of overridden methods.Ficus Kirkpatrick2011-01-161-4/+4
|\| | | | | | | | | * commit '10c28c7f31687ff57476d0a7381461fef71cc5cb': Don't change the visibility of overridden methods.
| * Don't change the visibility of overridden methods.Ficus Kirkpatrick2011-01-151-4/+4
| | | | | | | | | | | | | | | | ArrowKeyMovementMethod defines up, down, left, and right to be protected, so StyledTextArrowKeyMethod shouldn't change them to be private. Change-Id: I0e58b9d2ee042b5c7985b664bab299ff618f8116
* | Merge "Fix: don't change values of constants"Maryam Garrett2011-01-061-1/+1
|\ \ | |/ |/|
| * Fix: don't change values of constantsMaryam Garrett2010-12-011-1/+1
| | | | | | | | | | | | I shouldnt have renamed length -> mlength. This reverts that mistake. Change-Id: I92eff11b395933912d4010a3e9b996f7b47cf756
* | Moving SQLiteContentProvider to the ex frameworkDmitri Plotnikov2011-01-041-0/+259
|/ | | | Change-Id: I54d3d6e7fb3df41196dc2a9b647fd5d23b83d43a
* am 046a9e08: add "transaction_event" eventlog tagDoug Zongker2010-11-101-0/+1
|\ | | | | | | | | * commit '046a9e0835f0922e9388001b157daa504356a4cf': add "transaction_event" eventlog tag
| * add "transaction_event" eventlog tagDoug Zongker2010-11-091-0/+1
| | | | | | | | | | Bug: 3171309 Change-Id: I55a3cc5c35281796352379ab548249b19f4156ea
* | am 66189d61: Only call VoiceSearch if there are IME logging actionsMaryam Garrett2010-10-141-7/+24
|\| | | | | | | | | | | | | Merge commit '66189d6156b4aa76f25bb1465d9e0e6f39668b9e' * commit '66189d6156b4aa76f25bb1465d9e0e6f39668b9e': Only call VoiceSearch if there are IME logging actions
| * Only call VoiceSearch if there are IME logging actionsMaryam Garrett2010-10-011-7/+24
| | | | | | | | | | | | | | | | | | | | LatinIME/VoiceInput will set a boolean value if there are actions which need to be logged. This value will be checked before sending the intent to VS. This way applications which use IME can call this function without worrying about sending "empty" logging intents. Change-Id: If02971c1cada70aaac954a8a4dcf94794677fab9
* | ex: Move SyncStateContentProviderHelper to frameworks/exBjorn Bringert2010-10-101-0/+146
| | | | | | | | Change-Id: I9584926a41d002d4e4153fcf241e98cecd74278c
* | Moving GroupingListAdapter to frameworks/exDmitri Plotnikov2010-10-062-0/+798
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving from packages/apps/Contacts adb shell am instrument -e class com.android.common.widget.GroupingListAdapterTests -w com.android.common.tests/android.test.InstrumentationTestRunner com.android.common.widget.GroupingListAdapterTests:............. Test results for InstrumentationTestRunner=............. Time: 0.03 OK (13 tests) Change-Id: Ia58fe362afdc5c64e3740c89049be29f5b329a5b
* | am b4f5e0e5: Fixed the Rfc822ValidatorPaul Westbrook2010-09-302-1/+58
|\| | | | | | | | | | | | | Merge commit 'b4f5e0e5755938f2be9a2f1a1a6609b018c530ad' * commit 'b4f5e0e5755938f2be9a2f1a1a6609b018c530ad': Fixed the Rfc822Validator
| * Fixed the Rfc822ValidatorPaul Westbrook2010-09-302-1/+58
| | | | | | | | | | | | | | | | Make sure that the validator doesn't consider an email address that has a domain that has more than one adjacent '.' characters valid Bug: 3048703 Change-Id: I1c227f393738850d89b6da52693d806c231f3136
* | De-duping autocomplete email addressesDmitri Plotnikov2010-09-291-6/+82
| | | | | | | | Change-Id: I5029a9fb49862d87a32dcf87772a4e746887d0fa
* | Revert "ExpandoLayout"repo sync2010-09-162-335/+1
| | | | | | | | This reverts commit 112087b9bd4a239df4359c144b11512c56be896d.
* | ExpandoLayoutrepo sync2010-09-152-1/+335
| | | | | | | | Change-Id: I6e9bdcca682f11038332b6c0065af78a67cc5d42
* | am 575e1982: Use SharedPreferences.apply() when possible, else use commit()Brad Fitzpatrick2010-09-092-15/+73
|\| | | | | | | | | | | | | Merge commit '575e19825099eb83d1d452ffce93314aa66432ed' * commit '575e19825099eb83d1d452ffce93314aa66432ed': Use SharedPreferences$Editor.apply() when possible, else use commit()
| * Use SharedPreferences$Editor.apply() when possible, else use commit()Brad Fitzpatrick2010-09-092-15/+73
| | | | | | | | Change-Id: I48b18015214c90dd071b74bd807eb4346c0179c2
| * Backport https://android-git.corp.google.com/g/50799 from master intoMike LeBeau2010-06-301-0/+5
| | | | | | | | | | | | | | | | | | gingerbread. The gingerbread branch didn't exist when davidi made that change, but it was intended for anything after Froyo. Without this, the android-common.jar in the gingerbread branch was incompatible with the new voice search. Change-Id: Ia1d2221cf63d506ccb739da6c811bc8790225949
* | More smooth UI for email autocompleteDmitri Plotnikov2010-08-311-1/+34
| | | | | | | | | | | | | | | | The "Searching..." UI is only shown if the results take longer than MESSAGE_SEARCH_PENDING_DELAY to arrive. Change-Id: I05a5cdd05c0a35ec728fe3e79e0032ac68371ebf
* | Limiting the number of email suggestions for autocompleteDmitri Plotnikov2010-08-311-10/+58
| | | | | | | | | | | | | | Directories will need handle the "limit=" query parameter as well. Change-Id: I71486b187aa05cabc3194bd5a50fcbdd13e9284b
* | Correct formating of an email when name is unknownDmitri Plotnikov2010-08-312-14/+58
| | | | | | | | | | | | Also, reducing the number of change notifications Change-Id: If075fee9a96dc8191c264fc34162969afe4027b6
* | Merge changes I78f3d743,I5fc85898Maryam Garrett2010-08-301-1/+4
|\ \ | | | | | | | | | | | | | | | * changes: New LoggingEvent Extra for NBEST selections in Voice IME New LoggingEvent Extra for NBEST selections in Voice IME
| * | New LoggingEvent Extra for NBEST selections in Voice IMEMaryam Garrett2010-08-301-2/+2
| | | | | | | | | | | | Change-Id: I78f3d743d417a688342feb167e50a4e5114bc0b0
| * | New LoggingEvent Extra for NBEST selections in Voice IMEMaryam Garrett2010-08-301-0/+3
| | | | | | | | | | | | Change-Id: I5fc858986c90b1153218bf6c6e187e5324e92a36
* | | Temporary fix for the user and userdebug buildsDmitri Plotnikov2010-08-272-14/+32
| | | | | | | | | | | | Change-Id: I4c7c55e6a362d4ae0d4896dfc5a5820f7c6a36ce
* | | General purpose email address autocompleteDmitri Plotnikov2010-08-273-1/+414
|/ / | | | | | | Change-Id: I3545805e2e31eb645c54394545f625b35a6e366f
* | Moving CompositeCursorAdapter from contacts/widget to common/widgetDmitri Plotnikov2010-08-202-0/+749
| | | | | | | | | | | | | | | | The class has been used in contacts for a while, now it will be shared with Gmail, Email and Calendar for the purposes of integration with Directory API. Change-Id: I86258dfff426e246d7791b737af574c47b935c7f
* | Move EditStyledText from framework to the static library.satok2010-07-021-0/+3355
| | | | | | | | | | | | | | | | | | | | - Move from core/java/com/android/internal/widget/EditStyledText.java - Package name was changed to com.android.ex.editstyledtext -- New naming rule com.android.ex.<package>.<class> - Deleted all internal APIs - COnfirmend that the framework was built completely Change-Id: I371dd034356cde5a7502fbf5cfed090acb0978c4
* | am 915260ea: Add RESULT_CLICKED logging event to LoggingEvents.Mike LeBeau2010-06-301-0/+2
|\| | | | | | | | | | | | | Merge commit '915260ea53a7363038cf65d851e2e2d616429868' * commit '915260ea53a7363038cf65d851e2e2d616429868': Add RESULT_CLICKED logging event to LoggingEvents.