3045 Commits

Author SHA1 Message Date
Android (Google) Code Review
301b97ac19 Merge change 22883 into donut
* changes:
  Various tweaks to try to improve low memory behavior.
2009-08-27 01:14:00 -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
Mike Lockwood
7566c1debe LocationManager: Fix problem replacing GPS and network providers with a mock provider.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 23:34:18 -07:00
Android (Google) Code Review
b0f5b755e7 Merge change 22090 into donut
* changes:
      docs only.     add new documentation for installing the new winusb driver.     also add a link to the HTC support site for ADP flashing     and remove references to the G1 and generalize to "consumer devices"
2009-08-26 12:55:54 -07:00
Scott Main
7991745ea0 docs only.
add new documentation for installing the new winusb driver.
    also add a link to the HTC support site for ADP flashing
    and remove references to the G1 and generalize to "consumer devices"
2009-08-26 11:56:57 -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
Yu Shan Emily Lau
b56de7474d Revert " modified: MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerApiTest.java"
This reverts commit 051d8d6692a4f8d852f6336d1e31a3a907913ac7.
2009-08-25 10:21:31 -07:00
Scott Main
b385508d89 Add more code samples to the online docs.
Add build rules to include the development samples in the droiddoc build process.
Add all the sample screenshots to a new samples/images/ directory
Revise the samples homepage to include links to new samples
2009-08-24 14:45:00 -07:00
Android (Google) Code Review
8c937a1766 Merge change 22379 into donut
* changes:
  	modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerApiTest.java         Fixed the passing incorrect media names and add the localH263AMRprepareAsync test.
2009-08-24 10:11:00 -07:00
Yu Shan Emily Lau
051d8d6692 modified: MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerApiTest.java
Fixed the passing incorrect media names and add the localH263AMRprepareAsync test.

	modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerApiTest.java
2009-08-21 19:20:42 -07: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
Android (Google) Code Review
185d74ba56 Merge change 21977 into donut
* changes:
  docs only. add reference information for new <path-permission> element
2009-08-20 11:19:08 -07:00
Scott Main
29b57764e7 docs only.
add reference information for new <path-permission> element
2009-08-19 15:19:53 -07:00
Suchi Amalapurapu
d50066f8d2 invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService 2009-08-18 17:03:10 -07:00
Android (Google) Code Review
ad4bc607bd Merge change 21772 into donut
* changes:
  Fix Resources#opeRawResource(int, TypedValue) in layoutlib.
2009-08-18 13:39:50 -07:00
Xavier Ducrohet
72e4bcd3d0 Fix Resources#opeRawResource(int, TypedValue) in layoutlib. 2009-08-18 13:35:55 -07:00
Eric Fischer
79dbf7c8fc Import revised translations. DO NOT MERGE 2009-08-18 11:19:17 -07:00
Android (Google) Code Review
238f8fe645 Merge change 21652 into donut
* changes:
  Make ZoomButtonsController public.
2009-08-17 18:38:53 -07:00
Jack Palevich
38710f4c0e Make ZoomButtonsController public. 2009-08-17 18:29:52 -07:00
Android (Google) Code Review
6ba69734d8 Merge change 21178 into donut
* changes:
  Simplified algorithm used to generate the preloaded-classes list. Generated a new preloaded-classes file.
2009-08-17 17:58:05 -07:00
Suchi Amalapurapu
d9d2576017 Remove dead locks in system process when installing packages 2009-08-17 17:21:56 -07:00
Bob Lee
9d2d6e14b0 Simplified algorithm used to generate the preloaded-classes list. Generated a new preloaded-classes file. 2009-08-17 15:36:15 -07:00
Android (Google) Code Review
ace6a5cfc0 Merge change 21408 into donut
* changes:
  Improved drawing/matrix support in layoutlib
2009-08-17 14:22:24 -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
Xavier Ducrohet
2473ef5654 Improved drawing/matrix support in layoutlib
- Make the custom Canvas actually replace the original one so that it's used
  even by parts of the framework that allocate their own temp Canvas object.
- Better support for Matrix: added support for mapPoint() and mapRect(), and invert()
- Implemented drawBitmap() with a Matrix, and made the paint object not NPE when null.
2009-08-17 14:17:05 -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
Android (Google) Code Review
d5884a9ba4 Merge change 21358 into donut
* changes:
  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 16:28:12 -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
Suchi Amalapurapu
75c498426a Add maxSdkVersion information in dump badging option 2009-08-14 15:13:09 -07:00
Android (Google) Code Review
c1c432f57b Merge change 21241 into donut
* changes:
  Layoutlib now uses the dimen status_bar_height instead of hard-coded value
2009-08-14 10:57:25 -07:00
Android (Google) Code Review
0950c5de86 Merge change 21226 into donut
* changes:
  Fix bug 2046705 where the output of the speech synthesizer is too low. The language files for the SVOX Pico engine result in the output of the synthesizer to be too soft, and barely audible on a phone speaker. The change implements a low shelf filter on the output of the synthesis and a drastic amplification. This works as intended because the synthesized data contains too much energy in the lower frequencies that is wasted on a phone speaker. Once filtered out, they leave room for amplication to address the volume issue.
2009-08-14 10:24:07 -07:00
Jean-Michel Trivi
4fb7d882b2 Fix bug 2046705 where the output of the speech synthesizer is too low.
The language files for the SVOX Pico engine result in the output of
the synthesizer to be too soft, and barely audible on a phone speaker.
The change implements a low shelf filter on the output of the synthesis
and a drastic amplification. This works as intended because the
synthesized data contains too much energy in the lower frequencies that
is wasted on a phone speaker. Once filtered out, they leave room for
amplication to address the volume issue.
2009-08-14 10:05:19 -07:00
Android (Google) Code Review
c8ab08aa86 Merge change 21124 into donut
* changes:
  Add license-related files
2009-08-14 09:04:59 -07:00
Xavier Ducrohet
09701011bc Layoutlib now uses the dimen status_bar_height instead of hard-coded value
BUG: 2053956
2009-08-13 21:48:03 -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
696b912e85 Merge change 21100 into donut
* changes:
  Use dataRoaming in dataConnectionTracker.
2009-08-13 12:36:22 -07:00
Android (Google) Code Review
94ff3f1f08 Merge change 21063 into donut
* changes:
  Fix handling of reference XML file in layout files
2009-08-13 11:31:07 -07:00
Xavier Ducrohet
08e2a4b56f Fix handling of reference XML file in layout files
This allows layout that references animation to properly load
in the layout editor in ADT
2009-08-13 11:23:40 -07:00
Android (Google) Code Review
e1b63d224a Merge change 21033 into donut
* changes:
  Mock ServiceManager and AccesibilityManager to make the view renders in ADT
2009-08-13 11:13:46 -07:00
Jean-Baptiste Queru
979b142fa5 Add license-related files
BUG=1573996
2009-08-13 10:58:11 -07:00
John Wang
8c6b883cd3 Use dataRoaming in dataConnectionTracker.
Seperate dataRoaming from gsmRoaming. dataRoaming is based on +CGREG returns in GSM while gsmRoaming is based on +CREG returns. Previously, the status of dataRoaming is always treated the same as gsmRoaming. However there is a situation where +CREG returns 0 and +CGREG returns 5, i.e., gsmRoaming is off and dataRoaming is on. In such situation, the phone should setup data connection if the phone enables data service when roaming (for example, data only card). The phone shouldn't setup data connection if the phone disable data service when roaming (to prevent roaming data charge). So gsmDataConnectionTracker should use dataRoaming instead of gsmRoaming to decide if data service allowed.

	modified:   GsmDataConnectionTracker.java
	modified:   GsmServiceStateTracker.java
2009-08-13 08:42:18 -07:00