1526 Commits

Author SHA1 Message Date
Bjorn Bringert
6266e40a75 Better JavaDoc for Activity.onSearchRequested().
Fixes http://b/issue?id=1248721
2009-09-25 14:25:41 +01:00
Bjorn Bringert
2f2daf8ed4 Fix search intent component bug DO NOT MERGE
This is the Donut version of the fix for http://b/issue?id=2130474
"Shortcuts created by pivoted-in search do not
have intent_component_name set"

This fix is already in Eclair, so it should not be automerged.
2009-09-21 20:28:28 +01:00
Android (Google) Code Review
b5308a7051 Merge change 24816 into donut
* changes:
  TextToSpeech javadoc update.
2009-09-14 13:54:00 -04:00
Jean-Michel Trivi
a9b417e9bf TextToSpeech javadoc update. 2009-09-14 10:34:13 -07:00
Scott Main
d27b108375 docs only.
add Searchable resource information to the Available Resources doc
and update some some of the attribute documentation to indicate
that the icon label is not recommended.
and fixing merge issue...

Change-Id: I1b1a62aa9804f4a0bf2f93328dde90b9f7aec50a
2009-09-10 19:22:48 -07:00
Scott Main
df4578e8ab docs only.
add documentation to notify developers about variable
camera specifications and add some more links

Change-Id: I46ef9811af17858cbc6547f88e626becb481b043
2009-09-10 15:02:49 -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
Eric Fischer
b7aec9124a Import revised translations. DO NOT MERGE 2009-08-20 14:07:18 -07:00
Eric Fischer
79dbf7c8fc Import revised translations. DO NOT MERGE 2009-08-18 11:19:17 -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
Android (Google) Code Review
093918a628 Merge change 21549 into donut
* changes:
  Import revised translations.  DO NOT MERGE
2009-08-17 13:42:24 -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
Eric Fischer
4d399f7e59 Import revised translations. DO NOT MERGE 2009-08-17 13:13:44 -07:00
Dianne Hackborn
c678a93a73 Fix issue #2056585: applications can put phone in inconsistent state wrt airplane mode 2009-08-17 12:51:17 -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
4431a06507 Merge change 21055 into donut
* changes:
  Lock in final resource identifiers.
2009-08-12 21:36:22 -07:00
Dianne Hackborn
244c99283c Lock in final resource identifiers. 2009-08-12 20:55:20 -07:00
Android (Google) Code Review
c41dca14ee Merge change 21045 into donut
* changes:
  Last minute change: Replace default app icon with a prettier one - droid on a software box sort of thing. :)
2009-08-12 18:40:22 -07:00
Mike LeBeau
e4ad69020c Last minute change: Replace default app icon with a prettier one - droid on a software box sort of thing. :)
Addresses http://b/2000048
2009-08-12 18:38:21 -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
Android (Google) Code Review
b3fa1084ba Merge change 20768 into donut
* changes:
  Docs only change: finish documentation of Android Quick Search Box related information in SearchManager.
2009-08-11 13:58:59 -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
Android (Google) Code Review
802527c6a8 Merge change 20713 into donut
* changes:
  Updated preloaded-classes file.
2009-08-11 12:48:36 -07:00
Android (Google) Code Review
c8ddd37aa0 Merge change 20779 into donut
* changes:
  DO NOT MERGE. This is merged from master. Fix couple of bugs in the meminfo report.  . added the new "/data/dalvik-cache/" to dalvik heap  . shortened the starting line's length from 40 to 30 to handle the case where there is no name  . fixed the pri/shared for others. It was swapped.
2009-08-11 12:47:36 -07:00
Grace Kloba
628e086664 DO NOT MERGE. This is merged from master.
Fix couple of bugs in the meminfo report.
 . added the new "/data/dalvik-cache/" to dalvik heap
 . shortened the starting line's length from 40 to 30 to handle the case where there is no name
 . fixed the pri/shared for others. It was swapped.
2009-08-11 12:43:08 -07:00
Bob Lee
2e93f65cab Updated preloaded-classes file. 2009-08-11 12:42:02 -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