1119 Commits

Author SHA1 Message Date
Jean-Michel Trivi
a9b417e9bf TextToSpeech javadoc update. 2009-09-14 10:34:13 -07:00
Eric Fischer
a82e99a89b Fix an emoji-measuring bug that caused an exception when editing a contact.
It was measuring the text to try to determine the size that it needed to
scale the emoji character to.  Unfortunately it was accidentally trying
to measure the character under the cursor instead of the emoji character
itself, which is wrong, but more seriously doesn't work at all when the
cursor is at the end of the line.

This was already fixed before in change 144474, but that change never got
merged over to donut.  So this merges it now.

Bug 2087915

Change-Id: Ib4804d330a029a966207b3b07271f84e6b2652c0
2009-09-01 10:28:11 -07:00
Mike LeBeau
05b775e0b7 Update SearchManager documentation to reflect latest behavior. 2009-08-28 15:52:56 -07:00
Android (Google) Code Review
1e3483780c Merge change 23043 into donut
* changes:
  Revert "Remove third party support for Quick Search Box (aka global search)."
2009-08-27 18:32:27 -07:00
Karl Rosaen
590f63433c Revert "Remove third party support for Quick Search Box (aka global search)."
This reverts commit a647b7f29d65a7792cede74284e714b591337992.
2009-08-27 17:42:48 -07:00
Dianne Hackborn
fd12af4e76 Various tweaks to try to improve low memory behavior.
- Reduce the amount that we ask processes to GC after a significant
  operation occurs, but introducing a minimum time between GCs and
  using this in various ways to schedule them.

- Don't spam all of the processes with onLowMemory().  Now deliver
  these using the same gc facility, so we do the processes one at a
  time, and don't allow the same process to get this call more than
  once a minute.

- Increase the time a service must run before we will reset its
  restart delay to 30 minutes (from 10).

- Increase the restart delay multiplication factor from 2 to 4.

- Ensure that we don't restart more than one service every 10 seconds
  (unless some external event causes a service's process to be started
  for some other reason of course).

- Increase the amount of time that a service must run before we
  decide to lower it to a background process.

And some other things:

- Catch IllegalArgumentException in ViewRoot like we do for no
  resources to avoid the system process crashing.

- Fix a number of places where we were missing breaks between the
  activity manager's message dispatch func(!!).

- Fix reason printed for processes in the background.

- Print the list of processing waiting to GC.
2009-08-27 01:03:24 -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
Android (Google) Code Review
36d5aaec2e Merge change 22322 into donut
* changes:
  Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary.
2009-08-21 14:47:41 -07:00
Eric Fischer
cc5dfa9ed0 Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary.
Without this, the runtime would restart when you tried to add a word
from the search widget.

Bug 2069689
2009-08-21 13:31:54 -07:00
Anonymous Coward
081a136d25 Remove third party support for Quick Search Box (aka global search).
- @hides relevant APIs
- removes relevant javadoc
- enforces that only system apps can participate

note: general support is still there, will be easy to reenable when we are ready.
2009-08-21 12:47:14 -07:00
Bob Lee
e97c2006bf Updated Browser and MCS to use shared default trust manager instead of initializing their own copies. 2009-08-20 18:48:31 -07:00
Jack Palevich
38710f4c0e Make ZoomButtonsController public. 2009-08-17 18:29:52 -07:00
Android (Google) Code Review
f5e6a211b1 Merge change 21572 into donut
* changes:
  Add constants to adjust Vending input and output buffer sizes.
2009-08-17 14:19:42 -07:00
Jasperln
b95277e762 Add constants to adjust Vending input and output buffer sizes.
- Needed for Bug: 2058060
2009-08-17 13:29:11 -07:00
Mike LeBeau
cfa419b754 Correct comments for startSearch in Activity and SearchManager to explain
Donut behavior correctly.
2009-08-17 11:10:32 -07:00
Jean-Michel Trivi
9f5eadd2ee Unhide the broadcast intent that signals completion of the TTS language
files. This is required for bug 2022435.
Correct the javadoc where two intents were mislabelled as broadcast,
but were activity actions.
2009-08-14 15:44:31 -07:00
Android (Google) Code Review
ba52b3e08b Merge change 21149 into donut
* changes:
  DOCS ONLY. add manifest documentation for uses-feature and supports-screens elements. also update the navigation and manifest home page, update the uses-sdk element to include new maxSdk and targeSdk attributes, and add some sample code to DisplayMetrics to query the device for screen info.
2009-08-13 17:33:03 -07:00
Scott Main
71d4b289a7 DOCS ONLY.
add manifest documentation for uses-feature and supports-screens elements.
also update the navigation and manifest home page,
update the uses-sdk element to include new maxSdk and targeSdk attributes,
and add some sample code to DisplayMetrics to query the device for screen info.
2009-08-13 16:58:02 -07:00
Android (Google) Code Review
370e1f7439 Merge change 21038 into donut
* changes:
  Propagate info about whether a "call" command was issued in RecognitionResult.
2009-08-12 18:05:50 -07:00
Mike LeBeau
840d0f528f Propagate info about whether a "call" command was issued in RecognitionResult.
This is needed for the fix of http://b/2018041.
2009-08-12 18:03:31 -07:00
Android (Google) Code Review
6550076f6c Merge change 21025 into donut
* changes:
  The DONUT constant also needs to be updated to the official SDK version.
2009-08-12 18:00:16 -07:00
Dianne Hackborn
fe77ec8e08 The DONUT constant also needs to be updated to the official SDK version.
Also remove all of the resource value padding.
2009-08-12 17:57:14 -07:00
Android (Google) Code Review
4c85f133e1 Merge change 20869 into donut
* changes:
  If no interpolator is specified for a progress bar in the theme, default to a LinearInterpolator.
2009-08-12 09:24:05 -07:00
Karl Rosaen
4ebc4fb528 If no interpolator is specified for a progress bar in the theme, default to a LinearInterpolator.
Fixes bug 2031844.
2009-08-12 08:07:16 -07:00
Android (Google) Code Review
b854600170 Merge change 20878 into donut
* changes:
  Fix issue #2048263: More debugging information
2009-08-11 19:58:36 -07:00
Dianne Hackborn
82e1ee93ee Fix issue #2048263: More debugging information
We now hopefully do better about generating the anr reports, and include
information about the malloc loaded assets in meminfo.
2009-08-11 18:56:41 -07:00
Android (Google) Code Review
eccd6fdd0d Merge change 20673 into donut
* changes:
  Fix bug 2043140. A race condition is encountered when an application invokes shutdown() on its TextToSpeech object while is has speak() requests still running. Since the TTS service destructor releases the synthesizer resources and sets the corresponding synth reference to null, an NPE was observed. The fix consists in catching NPEs whenever the sNativeSynth object is accessed, and return the matching error for the call. This change is a "low risk" version of the fix for bug 2025765i (same issue) which was reverted because it was higher risk than this CL: it affected the logic of each call to sNativeSynth. This CL only sets an error code when an NPE is fired because sNativeSynth is null.
2009-08-11 15:18:29 -07:00
Jean-Michel Trivi
69e67a3e2e Fix bug 2043140.
A race condition is encountered when an application invokes shutdown()
on its TextToSpeech object while is has speak() requests still running.
Since the TTS service destructor releases the synthesizer resources and
sets the corresponding synth reference to null, an NPE was observed.
The fix consists in catching NPEs whenever the sNativeSynth object is
accessed, and return the matching error for the call.
This change is a "low risk" version of the fix for bug 2025765i (same
issue) which was reverted because it was higher risk than this CL:
it affected the logic of each call to sNativeSynth. This CL only sets
an error code when an NPE is fired because sNativeSynth is null.
2009-08-11 15:09:45 -07:00
Karl Rosaen
b504136852 Docs only change: finish documentation of Android Quick Search Box related information in SearchManager.
Includes:
- an overview section on including search suggestions in quick search box
- additional table of searchable metadata attributes related to quick search box
- additional column descriptions that we've added for quick search box.
- description of how to expose your content provider's search suggestions to
the search infrastructure if you have permissions guarding your content provider.
2009-08-11 13:43:14 -07:00
Karl Rosaen
abf44279ad Fix NPE in SearchDialog (and thereby fix bug 2045398). 2009-08-10 17:09:24 -07:00
Android (Google) Code Review
021fa3fa6f Merge change 20665 into donut
* changes:
  First update of SearchManager docs to reflect the new Donut Quick Search Box feature. This simply cleans up any inconsistencies or weirdnesses, we still need to add the new info for QSB.
2009-08-10 16:38:00 -07:00
Mike LeBeau
8c91dd7ec8 First update of SearchManager docs to reflect the new Donut Quick Search Box feature.
This simply cleans up any inconsistencies or weirdnesses, we still need to add the new
info for QSB.
2009-08-10 16:32:29 -07:00
Jean-Michel Trivi
77a5d39343 Fix bug 2022435.
Add new intent and matching extra to signal the completion of the
language pack installer. This is used by CL 20513.
2009-08-07 17:29:15 -07:00
Jeff Sharkey
b8560b66fd Fix AppWidget layout inflation to resolve references.
When RemoteViews inflates a layout and set of actions, it
uses a cloned remote Context so it can fully access the
resources needed to complete the inflate.  However, in one
specific case when inflating the root view, LayoutInflater
calls back to the soon-to-be parent view to request the
correct set of LayoutParams through generateLayoutParams().

The default implementation of generateLayoutParams() uses
the Context of the /local/ View instead of the remote
Context being used for the inflation, which means that any
LayoutParam references in the root view are unresolved.

To fix this, we internally create our own copy of the target
remote Context.  This way, when the remote LayoutInflater
calls generateLayoutParams(), we inflate it using the remote
Context to correctly resolve any references.

This change is required as part of http://b/2038594
2009-08-06 21:53:56 -07:00
Karl Rosaen
a7a3b6ef0f Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
Fixes bug 2039508.  This makes backing out of the search dialog easier when dismissing the soft keyboard doesn't really
add any value.
2009-08-06 16:23:19 -07:00
Mike LeBeau
e303d2cf94 Send a special respond to the cursor in SuggestionsAdapter to tell it to
close itself directly because it may not happen correctly for some cursors
currently. This fixes http://b/2036290, which is being caused by
http://b/2015069 which we are not fixing for Donut, so this is a hack around
that for the time being.
2009-08-06 14:52:15 -07:00
Andrei Popescu
bf70afa212 Do not merge
Fix for 1900694: create the full path to the Gears permission database file so SQLite can actually create the database on the device
2009-08-06 14:46:59 +01:00
Android (Google) Code Review
d4543c519b Merge change 20108 into donut
* changes:
  Guard against remote process dying when retrieving column from cursor.
2009-08-05 10:41:09 -07:00
Karl Rosaen
a02d0d6020 Guard against remote process dying when retrieving column from cursor.
Fixes bug 2035791.
2009-08-05 10:35:00 -07:00
Karl Rosaen
6942330251 Remove the menu from the search dialog since there are a couple of issues with it we don't have time to fix for donut.
Fixes bugs 2034242 and 2034216 (the issues with the menu showing up above the ime, and triggering the ime to reshow
when closed).
2009-08-05 10:34:53 -07:00
Tadashi G. Takaoka
94e114c951 Moved Market related Checkin Stats enum to Events enum and merged
Internal Bug: bug1844952
2009-08-04 18:46:29 -07:00
Android (Google) Code Review
cd540294db Merge change 9704 into donut
* changes:
  Close the search dialog before starting voice search in all cases, i.e., also when launching web search, not just when it's using the intent API.
2009-08-04 14:24:06 -07:00
Mike LeBeau
c5e7fe36fb Close the search dialog before starting voice search in all cases, i.e.,
also when launching web search, not just when it's using the intent API.
2009-08-04 13:24:19 -07:00
Android (Google) Code Review
b8802b2138 Merge change 9330 into donut
* changes:
  Fix #2025900. If a https request is canceled while openConnection is called and a ssl error happened, the http thread can be blocked for up to 10 min. Added code to detect this case and unlock the thread.
2009-08-03 10:07:00 -07:00
Grace Kloba
4c8db8a4fe Fix #2025900. If a https request is canceled while openConnection is called
and a ssl error happened, the http thread can be blocked for up to 10 min.
Added code to detect this case and unlock the thread.
2009-07-30 23:13:34 -07:00
Android (Google) Code Review
3e584428de Merge change 9124 into donut
* changes:
  Fix a bug in ImageView: The drawing matrix is not updated when setImageMatrix is called.
2009-07-30 19:53:47 -07:00
Mike LeBeau
c2e0607205 Tell the SearchManager to stopSearch before starting an in-app voice
search. Without this, because of the recent changes to how the search
dialog hides and resumes, we end up re-showing the search dialog after
returning to the app from voice search, obscuring the new voice search
results behind.

Fixes http://b/2025364
2009-07-30 15:48:24 -07:00
Bjorn Bringert
83dba19a8e Fix in-app search shortcut icons
When the suggstion provider is in a different package from the searchable
activity, the icons stored for shortcuts used the package of the
activity instead of the provider.

Fixes http://b/issue?id=2023993
2009-07-30 13:58:23 +01:00
Chih-Chung Chang
f88872655e Fix a bug in ImageView: The drawing matrix is not updated when setImageMatrix is called.
The drawing matrix used in onDraw() is mDrawMatrix, but in setImageMatrix()
only mMatrix is updated. We need to call configureBounds() to update
mDrawMatrix if it was null. The is found in bug 2023281.
2009-07-30 15:39:37 +08:00
Android (Google) Code Review
25dff70f15 Merge change 9039 into donut
* changes:
  Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
2009-07-29 19:44:48 -07:00