summaryrefslogtreecommitdiffstats
path: root/common/java/com
Commit message (Collapse)AuthorAgeFilesLines
* Fix StaleDataExceptionsJay Shrauner2014-12-191-2/+9
| | | | | | | | | In ensureCacheValid, check whether the cursor is closed before querying its count. In getItem, check whether the cursor is closed before moving it to position, as was already being done in getItemId. Bug:18815354 Change-Id: I4cf2509923695afe9499d0507383c4e0d51bd23e
* Add public method to check if the partition is empty.Nancy Chen2014-08-151-1/+5
| | | | | | | | | Currently the size of the partition is hidden from public. The isEmpty method will allow outside classes to check if the partition does not have any entries in it. Bug: 15596340 Change-Id: I0a0f8f7c7a350b802e58e9138801c13b6e74a059
* fix race condition in OperationSchedulerDoug Zongker2014-06-231-4/+12
| | | | | | | | | | | | | OperationScheduler's toString() method got the set of keys from a SharedPreferences, and then did individual lookups of those keys assuming they would all succeed, but the shared prefs object can be mutated by a another thread while that is going on. Fix to take a snapshot with getAll() and then iterate over the snapshot. Bug: 15744821 Change-Id: I6a901ec7f4e632e149db3bf6c226f935bc152402
* am 4edf1e54: am a03388cf: am e53ad9ba: Merge "Let Rfc822Validator validate ↵Régis Décamps2014-06-111-8/+38
|\ | | | | | | | | | | | | IEA in Punycode or Unicode." into klp-ub-dev * commit '4edf1e548cec17a3856f1ac659c08b865ecd7817': Let Rfc822Validator validate IEA in Punycode or Unicode.
| * Let Rfc822Validator validate IEA in Punycode or Unicode.Régis Décamps2014-06-061-8/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let Rfc822Validator validator internation email adresses. The implementation is based on a regular expression. Fixes: - b/13364030 ComposeActivity rejects TLD that are Punycode - ComposeActivity rejects TLD that are Unicode Improve unit tests: - Use RFC example domains, instead of potentially existing domains. - Add unicode punycode internationalized email address. - Add validity check for email with special characters. - Add validity check "a..b@example.com" (RFC says dot cannot be succesive but it is allowed by major providers) - Add invalidity check for "a@b-.com" (domain name cannot end with a dash) ; "john@doe@example.com" (@ must be unique) - Remove a@b.12 from invalid emails. There is no tld made of numbers, but no spec strictly prohibits it. Bug: 13364030 Change-Id: I78bc5d696f587753d776020ef1f9feded2065ad0
* | am 92591524: am e0b5c555: am 49f3ffd3: am 194dda10: Fix some warningsScott Kennedy2014-03-251-1/+2
|\| | | | | | | | | * commit '92591524182a086e666f66e087032a646a27d20e': Fix some warnings
| * Fix some warningsScott Kennedy2014-03-241-1/+2
| | | | | | | | Change-Id: I43b3b9e5d6ecf4f5ca46da2cfe8d07e2d647355e
* | Resolve tag conflict between exp_det_snet and gmail_perf_end.William Luh2014-01-311-1/+1
| | | | | | | | Change-Id: I4fd904113cd09ea84c3e80bb25b4e433f35638be
* | Rename exp_det_snet tag to snet.William Luh2014-01-301-1/+3
| | | | | | | | | | Bug:12824174 Change-Id: Ia81c998aa3ec7309c68f98ee04a5364be37b52b5
* | Add event log tag for Android SNet.William Luh2014-01-061-0/+3
|/ | | | | Bug: 12004174 Change-Id: I0023bbadba93354db2c0e5cc5b3b803d58d6f94a
* Refactor List<Partition> to Partition[]Alon Albert2013-08-261-69/+66
| | | | | | | And add an addPartition(int location, Partition partition) method. The refactoring make adding this method much easier. Change-Id: Ife051b19837c2719e9487d7bc4f14095e76cc141
* am b5e00794: Fix some javadoc bugs.Andrew Sapperstein2013-07-011-5/+4
|\ | | | | | | | | * commit 'b5e0079419300f09253f160e0bdd28aa1bef4605': Fix some javadoc bugs.
| * Fix some javadoc bugs.Andrew Sapperstein2013-07-011-5/+4
| | | | | | | | Change-Id: I10c04c3b69f68b44ff27bbbb1abcc2a0b60fd18a
* | Fix for CompositeCursorAdapter returning wrong item view typesYorke Lee2013-05-281-2/+6
|/ | | | | | | | | | | | Cherrypick of https://googleplex-android-review.googlesource.com/#/c/306995/, which fixes the bug that causes getItemViewType to be called with the wrong position, causing new views to be created unnecessarily. Bug: 8398321 Change-Id: I6c921fe7d5135cf9f9d9bdd08b5aa4df7662ac1c
* add exponential backoff option to OperationSchedulerDoug Zongker2012-11-071-12/+41
| | | | Change-Id: I583f2d628726a3579aba66a49310a0ccffa94c0a
* 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-051-3/+31
| | | | Change-Id: Iffea9735b906466077ce03a97ab49b614917dbf3
* Use HC MR3's verison code instead of MR2'sDaisuke Miyakawa2011-07-191-2/+2
| | | | | Bug: 5047405 Change-Id: I479778c36b2e6706dd0d171bfbe9123cc45c0217
* 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-061-0/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-301-1/+1
|\| | | | | | | | | | | | | Merge commit 'b4f5e0e5755938f2be9a2f1a1a6609b018c530ad' * commit 'b4f5e0e5755938f2be9a2f1a1a6609b018c530ad': Fixed the Rfc822Validator
| * Fixed the Rfc822ValidatorPaul Westbrook2010-09-301-1/+1
| | | | | | | | | | | | | | | | 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-161-335/+0
| | | | | | | | This reverts commit 112087b9bd4a239df4359c144b11512c56be896d.
* | ExpandoLayoutrepo sync2010-09-151-0/+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()