5102 Commits

Author SHA1 Message Date
Bjorn Bringert
84ee74335f Only parse search suggestions that look like HTML
HTML parsing of search suggestions is still a major
CPU hog in the search dialog. This change first
checks if the text contains any HTML markup
(by looking for < and &) before bothering to
treat it as HTML.
2009-07-16 14:31:00 +01:00
Android (Google) Code Review
5380aa2947 Merge change 7512 into donut
* changes:
  Get rid of drawing hacks for search dialog suggestions
2009-07-16 06:08:59 -07:00
Bjorn Bringert
391eaa3ba8 Get rid of drawing hacks for search dialog suggestions
Before, SuggestionsAdapter parsed every HTML formatted
string three times, to support state-dependent colors
in <font> tags. Now that there is support in Html
for color resources (added in
https://android-git.corp.google.com/g/7441),
we can get rid of this code.

Also, SuggestionsAdapter had a special purpose view
for drawing background colors when suggestion items
were not selected or pressed. This change replaces that
code with a StateListDrawable of ColorDrawables.

Before this change, HTML parsing used ~17% (uncontrolled benchmark,
just did some random searching) of the system_process CPU.
This change should reduce that by 2/3, i.e. about ~11% total
system_process reduction.
2009-07-16 13:57:20 +01:00
Patrick Scott
4c3ca701fe Check for a null url before trying to load it.
There are some bad things that happen if WebCore gets a blank url.
2009-07-16 08:37:27 -04:00
Bjorn Bringert
ee716fa2b0 Make sure SearchDialog.mSearchable != null in key handlers
This change adds checking that the searchdialog is initialized
properly to a few key event listeners where it was missing
before.

Also makes sure that the search dialog is not shown if the
global search is requested but the global search provider
cannot be found.

Should fix http://b/issue?id=1982128
"Device rebooting after search results"
where SearchDialog.onKeyDown() threw an NPE
2009-07-16 09:15:37 +01:00
Android (Google) Code Review
c93af6dc5b Merge change 7441 into donut
* changes:
  Allow system colors in <font> tags
2009-07-16 00:06:23 -07:00
Android (Google) Code Review
0d039ba328 Merge change 7508 into donut
* changes:
  keystore: Fix a compile warning.
2009-07-15 23:55:58 -07:00
Chia-chi Yeh
ef33cddcce keystore: Fix a compile warning. 2009-07-16 14:45:11 +08:00
Mathias Agopian
a2fb72e08f remove libagl's dependency on gralloc_priv.h 2009-07-15 18:53:32 -07:00
jsh
90b34b3773 resolved conflicts for merge of 8e0fb366 to master 2009-07-15 18:42:47 -07:00
Android (Google) Code Review
0c421c0d27 Merge change 7490
* changes:
  Fix master build errors post merge with master_gl branch.
2009-07-15 18:34:24 -07:00
Android (Google) Code Review
4cc8c7dd8e Merge change 7489
* changes:
  More test app work
2009-07-15 18:34:11 -07:00
Android (Google) Code Review
49763e4246 Merge change 7480
* changes:
  Make sync not start until setup wizard is done.
2009-07-15 18:28:16 -07:00
Android (Google) Code Review
c3350ab5b2 am 82b283a9: Merge change 7451 into donut
Merge commit '82b283a9bf8e3508e1b5c6d4b6b8cae04597b83c'

* commit '82b283a9bf8e3508e1b5c6d4b6b8cae04597b83c':
  Include 'calling_package' extra for uses of in-app voice search so that
2009-07-15 18:15:01 -07:00
Android (Google) Code Review
dfceeb8c0a am 6ce4236d: Merge change 7401 into donut
Merge commit '6ce4236d70c8543021bb521731ac9f05d22b3002'

* commit '6ce4236d70c8543021bb521731ac9f05d22b3002':
  Adding missing addEarcon method. Not having this was a bug as
2009-07-15 18:14:38 -07:00
Android (Google) Code Review
545f979bdb am b9bae58e: Merge change 7402 into donut
Merge commit 'b9bae58ecba8a25cc54dfd119a9edbeed6f230de'

* commit 'b9bae58ecba8a25cc54dfd119a9edbeed6f230de':
  Added fade-in out animation for compatible apps
2009-07-15 18:14:33 -07:00
Android (Google) Code Review
2d22760e38 am c122824f: Merge change 7396 into donut
Merge commit 'c122824f48266c5df1b1b3a0a915619e5963ed7a'

* commit 'c122824f48266c5df1b1b3a0a915619e5963ed7a':
  Run background threads associated with filtering at background priority.
2009-07-15 18:14:28 -07:00
Android (Google) Code Review
24490e8ea6 am 66f60875: Merge change 7421 into donut
Merge commit '66f608758b59517d7db2168806f9764edd28ae1f'

* commit '66f608758b59517d7db2168806f9764edd28ae1f':
  Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes.
2009-07-15 18:14:18 -07:00
Android (Google) Code Review
7ee5a4b15a am 5a76ae46: Merge change 7406 into donut
Merge commit '5a76ae46854ac449f94e1f75ef13ce035e4c65cd'

* commit '5a76ae46854ac449f94e1f75ef13ce035e4c65cd':
  Update Searchables test with new GlobalSearch name
2009-07-15 18:14:12 -07:00
Android (Google) Code Review
c538c79ea4 Merge change 7482
* changes:
  Fix a bug introduced in obex cleanup
2009-07-15 18:10:09 -07:00
Tao Liejun
8d95d0a13a Fix a bug introduced in obex cleanup
Avoid exception when an empty array is passed to convert to Unicode
Before cleanup, there used to be an empty try/catch
2009-07-15 18:08:10 -07:00
Joe Onorato
8294fadb15 Make sync not start until setup wizard is done. 2009-07-15 18:03:28 -07:00
Dmitri Plotnikov
c991bfc53f Replicating contact option columns between Aggregate and Contact. 2009-07-15 17:31:53 -07:00
Android (Google) Code Review
8a733e8fa2 Merge change 7473 into donut
* changes:
  Fixes #1844366. Prevents window leak in Spinner.
2009-07-15 17:02:25 -07:00
Romain Guy
5275d69b04 Fixes #1844366. Prevents window leak in Spinner. 2009-07-15 17:01:48 -07:00
Android (Google) Code Review
8e0fb366fc Merge change 7359 into donut
* changes:
  Minor tweak to CDMA_SUBSCRIPTION.
2009-07-15 16:58:11 -07:00
Christopher Tate
e97e807a46 The rest of ever-backed-up tracking
When a package is uninstalled we now remove our notion of its having been backed
up, thereby forcing a backup pass if it is reinstalled at some point in the
future.  Removal from the log means rewriting it and doing an atomic rename to
the canonical version.  The temporary existence used during the rewrite is *not*
written synchronously; there's no need and it keeps the load on the flash part
much lower.

Because we might crash & reboot in the middle of the rewrite operation, there's
now code during init that sanity-checks the contents of the ever-backed-up log
and ensures that it's in a coherent state.
2009-07-15 16:50:24 -07:00
jsh
ae49180f28 Minor tweak to CDMA_SUBSCRIPTION.
H_SID and H_NID are now comma separated lists, so update CdmaServiceTracker
accordingly. Note: For now, we still only store away the first of each.

Also remove H_SID and H_NID fetching from RuimRecords.java, since it is unused
(and unlikely to be used) in that class.
2009-07-15 16:41:11 -07:00
Android (Google) Code Review
f3ea3e0968 Merge change 7435
* changes:
  Ensure that everything gets backed up at least once
2009-07-15 15:38:59 -07:00
Android (Google) Code Review
82b283a9bf Merge change 7451 into donut
* changes:
  Include 'calling_package' extra for uses of in-app voice search so that the server can tailor recognition to an individual app.
2009-07-15 15:33:46 -07:00
Mike LeBeau
260dfb5716 Include 'calling_package' extra for uses of in-app voice search so that
the server can tailor recognition to an individual app.
2009-07-15 15:20:14 -07:00
Bjorn Bringert
9cab7f7684 Allow system colors in <font> tags
Fixes http://b/issue?id=1970693
2009-07-15 22:47:03 +01:00
Android (Google) Code Review
5b9aa652a0 am 37b939a6: Merge change 7395 into donut
Merge commit '37b939a63742c9a0cea4e6982bfb0581def45d6d'

* commit '37b939a63742c9a0cea4e6982bfb0581def45d6d':
  Move the silent ringtone to ringtones/notifications, so it can be used for both.
2009-07-15 14:39:48 -07:00
Grace Kloba
d7f2036aaa resolved conflicts for merge of 21d769da to master 2009-07-15 14:38:20 -07:00
Christopher Tate
73e025296f Ensure that everything gets backed up at least once
We now schedule a backup pass for any new application we see (at boot or
package-install time) for which we have never performed a backup.  The
bookkeeping is a log file with the names of all the packages we've successfully
completed a backup pass on, maintained with synchronous journal-type behavior.

Also, make a bunch of private fields package-scoped to permit cheaper access
from the various worker / binder threads that run under the Backup Manager's
aegis.
2009-07-15 14:18:26 -07:00
Android (Google) Code Review
ac63bd7365 Merge change 7381
* changes:
  Remove all our old high priority knowledge since WebCore will manage it.
2009-07-15 14:10:23 -07:00
Android (Google) Code Review
f47042614e Merge change 7419
* changes:
  Standby A2DP audio hardware interface when disabling A2DP.
2009-07-15 13:58:02 -07:00
Android (Google) Code Review
31ee5e0de7 am 83fa3565: Merge change 7356 into donut
Merge commit '83fa3565896ed19846f6498c00de3cc9a29b1a57'

* commit '83fa3565896ed19846f6498c00de3cc9a29b1a57':
  Fixing a bug in how stop works - keep stop from always stopping
2009-07-15 13:41:54 -07:00
Android (Google) Code Review
cc320c81a4 am b197021e: Merge change 7335 into donut
Merge commit 'b197021e160091897391cd27093c35bd3c22a7fc'

* commit 'b197021e160091897391cd27093c35bd3c22a7fc':
  Making sure that the audio buffers for speech are cleared
2009-07-15 13:41:25 -07:00
Android (Google) Code Review
201e3abd3b Merge change 7150
* changes:
  Ignore pause and seek for live streaming.
2009-07-15 13:40:32 -07:00
Android (Google) Code Review
6ce4236d70 Merge change 7401 into donut
* changes:
  Adding missing addEarcon method. Not having this was a bug as this method is needed to add earcons; otherwise, there is nothing for playEarcon to play.
2009-07-15 13:38:34 -07:00
Android (Google) Code Review
b9bae58ecb Merge change 7402 into donut
* changes:
  Added fade-in out animation for compatible apps  (This CL only add this when the app on the top is in compatibility mode for now. I need some help to do the same   when the closing app is in compatibility mode) Refactored DimAnimator
2009-07-15 13:32:07 -07:00
Android (Google) Code Review
c122824f48 Merge change 7396 into donut
* changes:
  Run background threads associated with filtering at background priority.
2009-07-15 13:29:38 -07:00
Nicolas Catania
a5ccb22a3d Partial implementation of the parsing of Parcel into Metadata.
In this first cut, a raw parcel is parsed to check that the overall
format is correct.

At the same time, we record the metadata seen and their position in
the parcel for later retrieval using the get* methods.

This means that the 'has' method to check the existence of a metadata
should work.

Removed size and iterator methods. Instead, I added a new method
to give access to the set of keys. The user can make use of the set
to call size(), empty(), iterator() etc...
2009-07-15 13:27:49 -07:00
Android (Google) Code Review
0a305da8ee am 211aef30: Merge change 7134 into donut
Merge commit '211aef308bc6ca55d99777d19227f412492db9c2'

* commit '211aef308bc6ca55d99777d19227f412492db9c2':
  Unhide required definitions in TextToSpeech.Engine that cover return codes and
2009-07-15 13:13:26 -07:00
Android (Google) Code Review
657dcd666c am 4c3a589e: (-s ours) Merge change 7137 into donut
Merge commit '4c3a589e8e4efbd6f4c5e63bd94cb6181f189b7d'

* commit '4c3a589e8e4efbd6f4c5e63bd94cb6181f189b7d':
  Remove the Google domains from the Gears permission table when the global location setting is set to false
2009-07-15 13:13:16 -07:00
Patrick Scott
fe4fec7c66 Remove all our old high priority knowledge since WebCore will manage it.
Also removed an unused variable in RequestQueue.java.
2009-07-15 15:48:02 -04:00
Evan Millar
b926375cda Add Uri for filtering the aggregate summary on group name.
New Uri is:

                content://com.android.contacts/aggregates_summary/group/*

Where * should be replaced by the group name.
2009-07-15 12:47:53 -07:00
Android (Google) Code Review
66f608758b Merge change 7421 into donut
* changes:
  Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes.
2009-07-15 12:37:08 -07:00
Nick Pelly
92d2b40739 Standby A2DP audio hardware interface when disabling A2DP.
Patch supplied on advice of partner. This causes us to send suspend_sink to
Bluez via socket interface, so we enter suspend on the A2DP link faster.
This is especially important when switching to SCO so that we come closer to
whitepaper recommendations to suspend A2DP before setting up SCO.

We have another patch set to add DBUS A2DP suspend and resume calls to Bluez
that will do a better job of following whitepaper recommendations for
A2DP -> SCO -> A2DP, but this small patch is still an improvement.
2009-07-15 12:22:55 -07:00