Merge commit '70419aa4bb06ab62aa185f0999a578f36708e1e6'
* commit '70419aa4bb06ab62aa185f0999a578f36708e1e6':
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
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 = :("
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.
Merge commit '381bc38355ae05efee92d369076b3228969c0e1d'
* commit '381bc38355ae05efee92d369076b3228969c0e1d':
run the sync thread at background priority
Merge commit '77a2bc56d09242b3e358308641d8f0bb1c184eb2'
* commit '77a2bc56d09242b3e358308641d8f0bb1c184eb2':
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
Merge commit 'ab3996f2c6c7c6e3e18e11fa32dac5c5d546ea67'
* commit 'ab3996f2c6c7c6e3e18e11fa32dac5c5d546ea67':
- make it ok to modify the accounts before boot
Merge commit '657bf5b751b7d2008dff0f91082a75bc1d699fa9'
* commit '657bf5b751b7d2008dff0f91082a75bc1d699fa9':
Revert volume if it wasn't okayed by user.
Merge commit 'c607435cae64d2f9c7af408e10e1e72eb637c458'
* commit 'c607435cae64d2f9c7af408e10e1e72eb637c458':
Add an extra intent parameter for recording duration limit.
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
Merge commit '7a47b54f13566892839da8edeac182bfc0f94bc9'
* commit '7a47b54f13566892839da8edeac182bfc0f94bc9':
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
Merge commit '964fd32a733e099e7daa15bbf44b3d2b7a1f3571'
* commit '964fd32a733e099e7daa15bbf44b3d2b7a1f3571':
I am getting tired of the java doc warnings, so fix them.
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.
Merge commit '2f4f63b501dfd6cc934d2d8d62850b98b57c6bfc'
* commit '2f4f63b501dfd6cc934d2d8d62850b98b57c6bfc':
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
Merge commit '123d6f372fcd7bdc18245cac984005bab3d534af'
* commit '123d6f372fcd7bdc18245cac984005bab3d534af':
Fix a race condition for data change notification
Merge commit 'ce80db469b3b4c229445548bdaa46a74a28a2912'
* commit 'ce80db469b3b4c229445548bdaa46a74a28a2912':
Add resources to specify display rotation when in keyboard open or docked state.