Commit Graph

2605 Commits

Author SHA1 Message Date
Bjorn Bringert
df40a75249 am 70419aa4: am 98d88588: am ba223760: Close suggestion cursors that arrive after adapter is closed
Merge commit '70419aa4bb06ab62aa185f0999a578f36708e1e6'

* commit '70419aa4bb06ab62aa185f0999a578f36708e1e6':
  Close suggestion cursors that arrive after adapter is closed
2009-08-26 11:47:41 -07:00
Bjorn Bringert
98d8858890 am ba223760: Close suggestion cursors that arrive after adapter is closed
Merge commit 'ba223760895e62ad2fcb85476984cb29018860c9' into eclair

* commit 'ba223760895e62ad2fcb85476984cb29018860c9':
  Close suggestion cursors that arrive after adapter is closed
2009-08-26 11:41:40 -07:00
Bjorn Bringert
ba22376089 Close suggestion cursors that arrive after adapter is closed
Before, after using the Browser, memory-hungry apps could
become very sluggish. This was because the search dialog in the
system process had the BrowserProvider open, which in turn had
EnhancedGoogleSearch open. Since EhancedGoogleSearch runs in acore,
the system would keep both the Browser process and acore to stay
around forever.

The cause (or at least one common cause) for this was that
if the user types quickly, and clicks on a suggestion before
the displayed suggestions have caught up, some suggestion cursors
are not be closed.

This change solves this problem by adding a close() method to
SuggestionsAdapter. SuggestionsAdapter now closes any cursors
that are passed to it after close() is called.

Fixes http://b/issue?id=2078226
"global search holding reference to browser: system -> browser -> acore = :("
2009-08-26 13:18:40 +01:00
Ben Murdoch
576c26dd91 am 4cbbca0d: am d497d876: Pass the estimated size of new HTML 5 databases to the ChromeClient so it can use that amount to figure an initial default quota.
Merge commit '4cbbca0dd3c95dc3875914171d839eac78452562'

* commit '4cbbca0dd3c95dc3875914171d839eac78452562':
  Pass the estimated size of new HTML 5 databases to the ChromeClient so it can use that amount to figure an initial default quota.
2009-08-26 04:45:31 -07:00
Ben Murdoch
d497d87650 Pass the estimated size of new HTML 5 databases to the ChromeClient so it can use that amount to figure an initial default quota.
Change-Id:Ic9372b0c86472b42ba5d0b964aaff1e2bbfe3efa
2009-08-26 12:39:55 +01:00
Daisuke Miyakawa
69fd8c19c5 am 5d147264: am 97f87095: Merge change 22399 into eclair
Merge commit '5d147264c76db862d0782ea634a3e4a39a992619'

* commit '5d147264c76db862d0782ea634a3e4a39a992619':
  Refactor VCard handling code, phase 2, 3, 4, 5
2009-08-25 22:13:07 -07:00
Android (Google) Code Review
97f870956a Merge change 22399 into eclair
* changes:
  Refactor VCard handling code, phase 2, 3, 4, 5
2009-08-25 22:08:38 -07:00
Jeff Sharkey
d2b3a6fb89 am f1be6d0a: am ba176d6c: Don\'t reference hidden API from comments.
Merge commit 'f1be6d0acea4aad4396d76d1d3486783b3d0f4ae'

* commit 'f1be6d0acea4aad4396d76d1d3486783b3d0f4ae':
  Don't reference hidden API from comments.
2009-08-25 19:10:14 -07:00
Jeff Sharkey
ba176d6c8a Don't reference hidden API from comments. 2009-08-25 19:05:47 -07:00
Dmitri Plotnikov
fde0a6e124 am d30866fb: am 22e2aaaa: Merge change 22656 into eclair
Merge commit 'd30866fba31034bc72420506287390d4c347353e'

* commit 'd30866fba31034bc72420506287390d4c347353e':
  Adding an aggregation mode: AGGREGATION_SUSPENDED
2009-08-25 18:36:02 -07:00
Android (Google) Code Review
22e2aaaa5c Merge change 22656 into eclair
* changes:
  Adding an aggregation mode: AGGREGATION_SUSPENDED
2009-08-25 18:33:13 -07:00
Fred Quintana
361ed21177 am 381bc383: am 16c758fb: Merge change 22702 into eclair
Merge commit '381bc38355ae05efee92d369076b3228969c0e1d'

* commit '381bc38355ae05efee92d369076b3228969c0e1d':
  run the sync thread at background priority
2009-08-25 17:46:11 -07:00
Android (Google) Code Review
16c758fb15 Merge change 22702 into eclair
* changes:
  run the sync thread at background priority
2009-08-25 17:42:26 -07:00
Jeff Sharkey
a5cc0b7257 am 77a2bc56: am 534aa012: Mark all legacy contacts APIs as deprecated.
Merge commit '77a2bc56d09242b3e358308641d8f0bb1c184eb2'

* commit '77a2bc56d09242b3e358308641d8f0bb1c184eb2':
  Mark all legacy contacts APIs as deprecated.
2009-08-25 17:33:45 -07:00
Jeff Sharkey
534aa012b5 Mark all legacy contacts APIs as deprecated.
Now that we've merged ContactsContract and are relying on
compatibility mode, we're marking the previous public
contacts API as deprecated.

Fixes http://b/2076016
2009-08-25 17:27:15 -07:00
Dianne Hackborn
f0f7426413 am ab5eed16: am 9acc030b: Implement issue #2071750: add a pre-boot upgrade step.
Merge commit 'ab5eed16f7eeb14094d95a32791e2de133d1c0c8'

* commit 'ab5eed16f7eeb14094d95a32791e2de133d1c0c8':
  Implement issue #2071750: add a pre-boot upgrade step.
2009-08-25 15:36:30 -07:00
Dianne Hackborn
9acc030be4 Implement issue #2071750: add a pre-boot upgrade step.
Change-Id: I7133a03a6bf302dbac00c5f8b0420071d2453f89
2009-08-25 15:15:31 -07:00
Dmitri Plotnikov
5223b1668a Adding an aggregation mode: AGGREGATION_SUSPENDED 2009-08-25 15:15:06 -07:00
Fred Quintana
75d797c2e7 run the sync thread at background priority 2009-08-25 15:05:02 -07:00
Jack Wang
49fba412e9 am d22f4d85: am c69a8807: Merge change 22109 into eclair
Merge commit 'd22f4d856e049b33f86c93761a38046644688d90'

* commit 'd22f4d856e049b33f86c93761a38046644688d90':
  Fix bug 1546445: Correct spelling errors in API
2009-08-25 12:50:39 -07:00
Jack Wang
7aba54b2ed Fix bug 1546445: Correct spelling errors in API
- InstrumentationTestCase.injectInsrumentation
- AndroidTestRunner.setInstrumentaiton
2009-08-25 12:44:56 -07:00
Fred Quintana
5a8bbb903e am ab3996f2: am 5fe00057: Merge change 22549 into eclair
Merge commit 'ab3996f2c6c7c6e3e18e11fa32dac5c5d546ea67'

* commit 'ab3996f2c6c7c6e3e18e11fa32dac5c5d546ea67':
  - make it ok to modify the accounts before boot
2009-08-25 11:50:59 -07:00
Android (Google) Code Review
5fe00057dd Merge change 22549 into eclair
* changes:
  - make it ok to modify the accounts before boot - allow packages in the system image to access any authtokens they wish
2009-08-25 11:47:11 -07:00
Amith Yamasani
7f48e806a7 am 657bf5b7: am 91ba1c3f: Merge change 22521 into eclair
Merge commit '657bf5b751b7d2008dff0f91082a75bc1d699fa9'

* commit '657bf5b751b7d2008dff0f91082a75bc1d699fa9':
  Revert volume if it wasn't okayed by user.
2009-08-25 10:27:42 -07:00
Android (Google) Code Review
91ba1c3f9d Merge change 22521 into eclair
* changes:
  Revert volume if it wasn't okayed by user.
2009-08-25 10:23:29 -07:00
Chih-Chung Chang
3429d3439c am c607435c: am 4804c3e2: Merge change 22564 into eclair
Merge commit 'c607435cae64d2f9c7af408e10e1e72eb637c458'

* commit 'c607435cae64d2f9c7af408e10e1e72eb637c458':
  Add an extra intent parameter for recording duration limit.
2009-08-25 00:00:50 -07:00
Daisuke Miyakawa
f4ddea7690 Refactor VCard handling code, phase 2, 3, 4, 5
Phase 2
Make VCard Importer use Data structures in ContactsContract instead of
using old Conatacts structure.

Phase 3
Developed VCardComposer, which was originally in Contacts package, but
now in base/core/java. Also made it use queryEntries() as per jsharkey's
suggestion.

Phase 4
Added VCardUtils and moved some common methods to it, some of which should be
in public API, but hidden for now.

Phase 5
Made VCardComposer emits (almost) valid vCard 3.0 data.
Confirmed with vCard data emitted by Mac.

Related issue:
1784580, 1728351, 1967349

Note:
Probable next step:
- Add "fast parse" mode in VCradBuilder, in which, VCardBuilder skip parsing the value of
each property. It will make the parsing faster.
-- Note that parsing the parameters of each entry cannot be skipped, since it may contains
the information about Encoding of the property. In other words, if the line is
in Quoted-Printable format, the next line may be the part of the property, not a
separated property, which should be parsed accordingly.

- Needs test
2009-08-25 15:39:06 +09:00
Chih-Chung Chang
eb0098d8e8 Add an extra intent parameter for recording duration limit. 2009-08-25 12:59:54 +08:00
Fred Quintana
7be5964e74 - make it ok to modify the accounts before boot
- allow packages in the system image to access any authtokens they wish
2009-08-24 19:35:52 -07:00
Jackson Fan
5e511dbdfa am 8e40bad2: am 094f44ba: Merge change 22545 into eclair
Merge commit '8e40bad232741703bfd584ac4c8fde13bd716162'

* commit '8e40bad232741703bfd584ac4c8fde13bd716162':
  Use correct UUID to authorize AVRCP
2009-08-24 19:09:49 -07:00
Android (Google) Code Review
094f44ba6c Merge change 22545 into eclair
* changes:
  Use correct UUID to authorize AVRCP
2009-08-24 19:05:06 -07:00
Jackson Fan
9abcf0982e Use correct UUID to authorize AVRCP 2009-08-24 19:02:58 -07:00
Mike Lockwood
dc195bd4d8 am 9e521c10: am 4358731c: Merge change 22534 into eclair
Merge commit '9e521c10b3ca59e170c8edc0b9b292e673e16a02'

* commit '9e521c10b3ca59e170c8edc0b9b292e673e16a02':
  ContactsContract: Fix null pointer exception in openContactPhotoInputStream()
2009-08-24 18:24:53 -07:00
Android (Google) Code Review
4358731c98 Merge change 22534 into eclair
* changes:
  ContactsContract: Fix null pointer exception in openContactPhotoInputStream()
2009-08-24 18:20:41 -07:00
Mike Lockwood
7d6eb9a4b4 ContactsContract: Fix null pointer exception in openContactPhotoInputStream()
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-24 18:12:51 -07:00
Robert Greenwalt
130764d2ff am 7a47b54f: am 0badd0b7: Note net availability even when apn not enabled
Merge commit '7a47b54f13566892839da8edeac182bfc0f94bc9'

* commit '7a47b54f13566892839da8edeac182bfc0f94bc9':
  Note net availability even when apn not enabled
2009-08-24 17:49:05 -07:00
Robert Greenwalt
0badd0b700 Note net availability even when apn not enabled
Fixes a problem where mms apn was on when we lost the network (airplane mode) but mms was
off when airplane mode was turned off so it kept thinking we didn't have access and
future mms always failed.

bug: 2075145
2009-08-24 17:41:49 -07:00
Dianne Hackborn
6dcccf59c2 am 964fd32a: am 4a51c20c: I am getting tired of the java doc warnings, so fix them.
Merge commit '964fd32a733e099e7daa15bbf44b3d2b7a1f3571'

* commit '964fd32a733e099e7daa15bbf44b3d2b7a1f3571':
  I am getting tired of the java doc warnings, so fix them.
2009-08-24 17:40:39 -07:00
Dianne Hackborn
4a51c20ce6 I am getting tired of the java doc warnings, so fix them.
Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
2009-08-24 17:37:32 -07:00
Amith Yamasani
9b4742cf25 Revert volume if it wasn't okayed by user.
During orientation changes or homing, the volume is reverted. Also,
during pause/resume, the original and modified values are remembered and
restored if the dialog was up.
2009-08-24 17:28:17 -07:00
Dianne Hackborn
9ccc6714df am 2f4f63b5: am cf3a0830: Merge change 22400 into eclair
Merge commit '2f4f63b501dfd6cc934d2d8d62850b98b57c6bfc'

* commit '2f4f63b501dfd6cc934d2d8d62850b98b57c6bfc':
  Add more control over a service's start state.
2009-08-24 17:06:05 -07:00
Android (Google) Code Review
cf3a08307d Merge change 22400 into eclair
* changes:
  Add more control over a service's start state.
2009-08-24 17:01:50 -07:00
Dianne Hackborn
f6f9f2d025 Add more control over a service's start state.
One of the problems I have been noticing is background services
sitting around running and using resources.  Some times this is
due to the app developer doing this when they shouldn't, but there
are also a number of issues with the current Service interaction
model that make it very difficult (or impossible) to avoid
getting services stuck in the started state.  This is a
change/enhancement to the Service API to try to address this.

The main change is that Service.onStart() has been deprecated,
replaced with a new Service.onStartCommand() that allows the
service to better control how the system should manage it.  The
key part here is a new result code returned by the function, telling
the system what it should do with the service afterwards:

- START_STICKY is basically the same as the previous behavior,
  where we usually leave the service running.  The only difference
  is that it if it gets restarted because its process is killed,
  onStartCommand() will be called on the new service with a null
  Intent instead of not being called at all.

- START_NOT_STICKY says that, upon returning to the system, if
  its process is killed with no remaining start commands to
  deliver, then the service will be stopped instead of restarted.
  This makes a lot more sense for services that are intended to
  only run while executing commands sent to them.

- START_REDELIVER_INTENT is like START_NOT_STICKY, except if
  the service's process is killed before it calls stopSelf()
  for a given intent, that intent will be re-delivered to it
  until it completes (unless after 4 or more tries it still
  can't complete, at which point we give up).

Change-Id: I978f5ca420d70023d1b5e7f97de639d09381f8ad
2009-08-24 17:00:54 -07:00
Robert Greenwalt
e426654676 am 123d6f37: am ec9fe467: Fix a race condition for data change notification
Merge commit '123d6f372fcd7bdc18245cac984005bab3d534af'

* commit '123d6f372fcd7bdc18245cac984005bab3d534af':
  Fix a race condition for data change notification
2009-08-24 16:41:29 -07:00
Robert Greenwalt
ec9fe4672a Fix a race condition for data change notification
We could sometimes not be told about network state changes breaking subsequent mms access.
Turning on more logging too.

bug: 2069106
2009-08-24 16:19:42 -07:00
Mike Lockwood
335dd4e5e4 am ce80db46: am 2e951b55: Merge change 22493 into eclair
Merge commit 'ce80db469b3b4c229445548bdaa46a74a28a2912'

* commit 'ce80db469b3b4c229445548bdaa46a74a28a2912':
  Add resources to specify display rotation when in keyboard open or docked state.
2009-08-24 15:45:13 -07:00
Android (Google) Code Review
2e951b5511 Merge change 22493 into eclair
* changes:
  Add resources to specify display rotation when in keyboard open or docked state.
2009-08-24 15:41:30 -07:00
Mike Lockwood
391305e740 Add resources to specify display rotation when in keyboard open or docked state.
Also added constant for SW_LID input event.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-24 15:38:47 -07:00
Wei Huang
84018fd342 am b664235f: am 5e6ad478: Merge change 22496 into eclair
Merge commit 'b664235fd3210cda7e0be71d67bed3d9b60303fe'

* commit 'b664235fd3210cda7e0be71d67bed3d9b60303fe':
  fix typo
2009-08-24 15:09:41 -07:00
Android (Google) Code Review
5e6ad4786d Merge change 22496 into eclair
* changes:
  fix typo
2009-08-24 15:04:46 -07:00