OSDN Git Service

android-x86/frameworks-base.git
14 years agoIf no interpolator is specified for a progress bar in the theme, default to a LinearI...
Karl Rosaen [Wed, 12 Aug 2009 00:57:50 +0000 (17:57 -0700)]
If no interpolator is specified for a progress bar in the theme, default to a LinearInterpolator.

Fixes bug 2031844.

14 years agoMerge change 20673 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 22:18:29 +0000 (15:18 -0700)]
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.

14 years agoFix bug 2043140.
Jean-Michel Trivi [Mon, 10 Aug 2009 23:13:18 +0000 (16:13 -0700)]
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.

14 years agoMerge change 20806 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 21:45:08 +0000 (14:45 -0700)]
Merge change 20806 into donut

* changes:
  Remove flaky auto complete tests from continuous.

14 years agoRemove flaky auto complete tests from continuous.
Brett Chabot [Tue, 11 Aug 2009 21:31:30 +0000 (14:31 -0700)]
Remove flaky auto complete tests from continuous.

BUG 2036517

14 years agoMerge change 20768 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 20:58:59 +0000 (13:58 -0700)]
Merge change 20768 into donut

* changes:
  Docs only change: finish documentation of Android Quick Search Box related information in SearchManager.

14 years agoDocs only change: finish documentation of Android Quick Search Box related informatio...
Karl Rosaen [Tue, 11 Aug 2009 18:35:07 +0000 (11:35 -0700)]
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.

14 years agoMerge snapshot version of donut back into main tree
Jean-Baptiste Queru [Tue, 11 Aug 2009 20:32:23 +0000 (13:32 -0700)]
Merge snapshot version of donut back into main tree

14 years agodonut snapshot
Jean-Baptiste Queru [Tue, 11 Aug 2009 20:12:34 +0000 (13:12 -0700)]
donut snapshot

14 years agoMerge change 20713 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 19:48:36 +0000 (12:48 -0700)]
Merge change 20713 into donut

* changes:
  Updated preloaded-classes file.

14 years agoMerge change 20779 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 19:47:36 +0000 (12:47 -0700)]
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.

14 years agoDO NOT MERGE. This is merged from master.
Grace Kloba [Tue, 11 Aug 2009 19:43:08 +0000 (12:43 -0700)]
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.

14 years agoUpdated preloaded-classes file.
Bob Lee [Tue, 11 Aug 2009 08:16:03 +0000 (01:16 -0700)]
Updated preloaded-classes file.

14 years agoMerge change 20738 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 17:01:18 +0000 (10:01 -0700)]
Merge change 20738 into donut

* changes:
  Fix a bug in getSocketError() in VpnService.

14 years agoFix a bug in getSocketError() in VpnService.
Hung-ying Tyan [Tue, 11 Aug 2009 16:53:36 +0000 (00:53 +0800)]
Fix a bug in getSocketError() in VpnService.

14 years agoMerge change 20719 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 16:44:26 +0000 (09:44 -0700)]
Merge change 20719 into donut

* changes:
  Fix order of setting/saving state in VpnService.

14 years agoMerge change 20729 into donut
Android (Google) Code Review [Tue, 11 Aug 2009 15:54:10 +0000 (08:54 -0700)]
Merge change 20729 into donut

* changes:
  Fix the bug that EXIF attributes are always cached.

14 years agoFix the bug that EXIF attributes are always cached.
Wu-cheng Li [Tue, 11 Aug 2009 15:35:28 +0000 (23:35 +0800)]
Fix the bug that EXIF attributes are always cached.

b2039501

14 years agoFix order of setting/saving state in VpnService.
Hung-ying Tyan [Tue, 11 Aug 2009 10:09:57 +0000 (18:09 +0800)]
Fix order of setting/saving state in VpnService.

and also refactor code making sure a thread won't grab two locks (which
may cause deadlocks in some corner cases).

14 years agoFix NPE in SearchDialog (and thereby fix bug 2045398).
Karl Rosaen [Tue, 11 Aug 2009 00:08:05 +0000 (17:08 -0700)]
Fix NPE in SearchDialog (and thereby fix bug 2045398).

14 years agoMerge change 20665 into donut
Android (Google) Code Review [Mon, 10 Aug 2009 23:38:00 +0000 (16:38 -0700)]
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.

14 years agoFirst update of SearchManager docs to reflect the new Donut Quick Search Box feature.
Mike LeBeau [Mon, 10 Aug 2009 22:24:49 +0000 (15:24 -0700)]
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.

14 years agoMerge change 20514 into donut
Android (Google) Code Review [Mon, 10 Aug 2009 22:23:39 +0000 (15:23 -0700)]
Merge change 20514 into donut

* changes:
  Fix bug 2022435. Add new intent and matching extra to signal the completion of the language pack installer. This is used by CL 20513.

14 years agoTest for issue 2041105: CPU pegged after lost of bluetooth connection[WAR ROOM].
Eric Laurent [Sat, 8 Aug 2009 13:41:09 +0000 (06:41 -0700)]
Test for issue 2041105: CPU pegged after lost of bluetooth connection[WAR ROOM].

Merge change 7419 from master that may help eliminate the problem.
This change was for a different use case (when disabling A2DP to switch output to SCO) but without a repro case it is worth trying.

14 years agoFix bug 2022435.
Jean-Michel Trivi [Sat, 8 Aug 2009 00:26:36 +0000 (17:26 -0700)]
Fix bug 2022435.
Add new intent and matching extra to signal the completion of the
language pack installer. This is used by CL 20513.

14 years agoImport revised translations.
Eric Fischer [Fri, 7 Aug 2009 17:49:49 +0000 (10:49 -0700)]
Import revised translations.

14 years agoFix AppWidget layout inflation to resolve references.
Jeff Sharkey [Fri, 7 Aug 2009 04:24:25 +0000 (21:24 -0700)]
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

14 years agoCapture the start and end memory usage in the output file. Move the start memory...
Yu Shan Emily Lau [Fri, 7 Aug 2009 00:35:51 +0000 (17:35 -0700)]
Capture the start and end memory usage in the output file. Move the start memory catpure after 10 loops.

14 years agoDismiss both the soft keyboard and the search dialog on back if there is no text...
Karl Rosaen [Thu, 6 Aug 2009 23:13:14 +0000 (16:13 -0700)]
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.

14 years agoSend a special respond to the cursor in SuggestionsAdapter to tell it to
Mike LeBeau [Thu, 6 Aug 2009 21:23:16 +0000 (14:23 -0700)]
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.

14 years agoMerge change 20304 into donut
Android (Google) Code Review [Thu, 6 Aug 2009 20:51:04 +0000 (13:51 -0700)]
Merge change 20304 into donut

* changes:
  More work on issue #2030135: Device sluggish

14 years agoandroid: cgroups: Don't switch threads >= nice 10 when moving all threads to default
San Mehat [Thu, 6 Aug 2009 20:19:19 +0000 (13:19 -0700)]
android: cgroups: Don't switch threads >= nice 10 when moving all threads to default

Signed-off-by: San Mehat <san@google.com>
14 years agoMore work on issue #2030135: Device sluggish
Dianne Hackborn [Thu, 6 Aug 2009 19:40:56 +0000 (12:40 -0700)]
More work on issue #2030135: Device sluggish

Also include the page faults in the cpu info, to help determine if the system is
paging at the time of an ANR.

14 years agoMerge change 20267 into donut
Android (Google) Code Review [Thu, 6 Aug 2009 17:17:15 +0000 (10:17 -0700)]
Merge change 20267 into donut

* changes:
  Do not merge

14 years agoDo not merge
Andrei Popescu [Thu, 6 Aug 2009 13:08:27 +0000 (14:08 +0100)]
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

14 years agofix broken links
Scott Main [Thu, 6 Aug 2009 10:09:08 +0000 (03:09 -0700)]
fix broken links

14 years agoedits to the API Level doc
Scott Main [Thu, 6 Aug 2009 09:57:33 +0000 (02:57 -0700)]
edits to the API Level doc

14 years agofix image reference for offline docs
Scott Main [Thu, 6 Aug 2009 09:37:46 +0000 (02:37 -0700)]
fix image reference for offline docs

14 years agoadd preview flags to terms doc so the early look title appears in nav
Scott Main [Thu, 6 Aug 2009 09:09:36 +0000 (02:09 -0700)]
add preview flags to terms doc so the early look title appears in nav

14 years agofinal changes to make the sdk sidenav work for the offline preview docs
Scott Main [Thu, 6 Aug 2009 08:56:25 +0000 (01:56 -0700)]
final changes to make the sdk sidenav work for the offline preview docs

14 years agoAdd support for preview SDK handling in doc templates. Add preview SDK docs.
Dirk Dougherty [Thu, 6 Aug 2009 02:04:18 +0000 (19:04 -0700)]
Add support for preview SDK handling in doc templates. Add preview SDK docs.

Bug: 2031559

14 years agoMerge change 20230 into donut
Android (Google) Code Review [Thu, 6 Aug 2009 05:14:47 +0000 (22:14 -0700)]
Merge change 20230 into donut

* changes:
  Cleanup - Specify the version and rel id.

14 years agoMerge change 20229 into donut
Android (Google) Code Review [Thu, 6 Aug 2009 05:10:10 +0000 (22:10 -0700)]
Merge change 20229 into donut

* changes:
  Add 3->donut diff report to SDK docs.

14 years agoMerge change 20228 into donut
Android (Google) Code Review [Thu, 6 Aug 2009 05:06:40 +0000 (22:06 -0700)]
Merge change 20228 into donut

* changes:
  add installing/upgrading docs for donut preview sdk and update eclipse ide doc to include new AVD Manager

14 years agoadd installing/upgrading docs for donut preview sdk
Scott Main [Thu, 6 Aug 2009 02:31:00 +0000 (19:31 -0700)]
add installing/upgrading docs for donut preview sdk
and update eclipse ide doc to include new AVD Manager

14 years agoCleanup - Specify the version and rel id.
Dirk Dougherty [Thu, 6 Aug 2009 02:54:52 +0000 (19:54 -0700)]
Cleanup - Specify the version and rel id.

Bug: 2031559

14 years agoAdd 3->donut diff report to SDK docs.
Dirk Dougherty [Thu, 6 Aug 2009 02:31:13 +0000 (19:31 -0700)]
Add 3->donut diff report to SDK docs.

Bug: 2031559

14 years agoMerge change 20140 into donut
Android (Google) Code Review [Thu, 6 Aug 2009 01:34:55 +0000 (18:34 -0700)]
Merge change 20140 into donut

* changes:
  Work on issue #2030135: Device sluggish

14 years agoMerge change 20144 into donut
Android (Google) Code Review [Thu, 6 Aug 2009 00:49:41 +0000 (17:49 -0700)]
Merge change 20144 into donut

* changes:
  Remove flaky MonitorTest#testInterrupt from continuous, and attempt to make AutoCompletePopup tests more reliable.

14 years agoWork on issue #2030135: Device sluggish
Dianne Hackborn [Wed, 5 Aug 2009 19:26:15 +0000 (12:26 -0700)]
Work on issue #2030135: Device sluggish

This adds some new debugging code to make it easier to see why a process is at
a certain oom_adj level -- for example telling you that a certain other process
has a binding to a certain one of its services.  This has helped a lot in
identifying cases where processes are holding references to other processes that
they don't need and thus not allowing the system to get memory it needs.

Also fix a few problems with leaking entries on the service restarting and
service stopping lists.

14 years agoMerge change 20037 into donut
Android (Google) Code Review [Wed, 5 Aug 2009 22:42:54 +0000 (15:42 -0700)]
Merge change 20037 into donut

* changes:
  fix issue with gids not being added for packages with shared user id

14 years agofix issue with gids not being added for packages with shared user id
Suchi Amalapurapu [Wed, 5 Aug 2009 19:43:00 +0000 (12:43 -0700)]
fix issue with gids not being added for packages with shared user id

Squashed commit of the following:

commit 2bc4c29dab22d8a541dfca0a20320b307ba64cfb
Author: Suchi Amalapurapu <asuchitra@google.com>
Date:   Tue Aug 4 16:24:55 2009 -0700

    fix issue with gids not being added for packages with shared user id

14 years agoRemove flaky MonitorTest#testInterrupt from continuous, and attempt to make
Brett Chabot [Wed, 5 Aug 2009 20:30:19 +0000 (13:30 -0700)]
Remove flaky MonitorTest#testInterrupt from continuous, and attempt to make
AutoCompletePopup tests more reliable.

Bugs 2036517 and 1636810.

14 years agoMerge change 20038 into donut
Android (Google) Code Review [Wed, 5 Aug 2009 19:32:40 +0000 (12:32 -0700)]
Merge change 20038 into donut

* changes:
  Remove debug code which reads the max_events_per_sec property on every touch event

14 years agoRemove the memory capture in the first run and make it the same as the cupcake test...
Yu Shan Emily Lau [Wed, 5 Aug 2009 18:44:51 +0000 (11:44 -0700)]
Remove the memory capture in the first run and make it the same as the cupcake test case.

14 years agoRemove debug code which reads the max_events_per_sec property on every touch event
Michael Chan [Wed, 5 Aug 2009 00:37:46 +0000 (17:37 -0700)]
Remove debug code which reads the max_events_per_sec property on every touch event

14 years agoMerge change 20108 into donut
Android (Google) Code Review [Wed, 5 Aug 2009 17:41:09 +0000 (10:41 -0700)]
Merge change 20108 into donut

* changes:
  Guard against remote process dying when retrieving column from cursor.

14 years agoGuard against remote process dying when retrieving column from cursor.
Karl Rosaen [Wed, 5 Aug 2009 16:44:06 +0000 (09:44 -0700)]
Guard against remote process dying when retrieving column from cursor.

Fixes bug 2035791.

14 years agoRemove the menu from the search dialog since there are a couple of issues with it...
Karl Rosaen [Wed, 5 Aug 2009 17:07:06 +0000 (10:07 -0700)]
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).

14 years agoMoved Market related Checkin Stats enum to Events enum and merged
Tadashi G. Takaoka [Tue, 4 Aug 2009 21:27:25 +0000 (14:27 -0700)]
Moved Market related Checkin Stats enum to Events enum and merged

Internal Bug: bug1844952

14 years agoMerge change 20006 into donut
Android (Google) Code Review [Tue, 4 Aug 2009 21:27:07 +0000 (14:27 -0700)]
Merge change 20006 into donut

* changes:
  After each test, the WebView cache should be cleared, otherwise the cache data will pile up.

14 years agoMerge change 9704 into donut
Android (Google) Code Review [Tue, 4 Aug 2009 21:24:06 +0000 (14:24 -0700)]
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.

14 years agoAfter each test, the WebView cache should be cleared, otherwise the cache data will...
Guang Zhu [Tue, 4 Aug 2009 21:04:06 +0000 (14:04 -0700)]
After each test, the WebView cache should be cleared, otherwise the cache data will pile up.

14 years agoClose the search dialog before starting voice search in all cases, i.e.,
Mike LeBeau [Tue, 4 Aug 2009 20:24:19 +0000 (13:24 -0700)]
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.

14 years agoGuard against index out of bounds exception in lock pattern widget.
Karl Rosaen [Tue, 4 Aug 2009 20:18:47 +0000 (13:18 -0700)]
Guard against index out of bounds exception in lock pattern widget.

Fixes bug 2027516.

14 years agoFix broken calendar tests. DO NOT MERGE
Ken Shirriff [Tue, 4 Aug 2009 19:32:03 +0000 (12:32 -0700)]
Fix broken calendar tests. DO NOT MERGE

The tests end up in the widget code, which calls getResources(). This needs to
be supported by the mock.

This is a back-port of change 8886 from eclair to donut.

bug=1985641

14 years agoMerge change 9676 into donut
Android (Google) Code Review [Tue, 4 Aug 2009 18:32:44 +0000 (11:32 -0700)]
Merge change 9676 into donut

* changes:
  Merge abbreviated Russian month name fix over from cupcake.

14 years agoMerge change 9670 into donut
Android (Google) Code Review [Tue, 4 Aug 2009 18:20:12 +0000 (11:20 -0700)]
Merge change 9670 into donut

* changes:
  Make aidl annotate onTransact with @Override

14 years agoMerge abbreviated Russian month name fix over from cupcake.
Eric Fischer [Tue, 4 Aug 2009 18:01:37 +0000 (11:01 -0700)]
Merge abbreviated Russian month name fix over from cupcake.

Bug 2022144: Fix abbreviated Russian month names.

14 years agoRevert "Fix bug 2025765."
Jean-Michel Trivi [Tue, 4 Aug 2009 16:23:18 +0000 (09:23 -0700)]
Revert "Fix bug 2025765."

This reverts commit 9ebb59b8aa75cab1e5bb53983893b579abb63edd.

14 years agoMake aidl annotate onTransact with @Override
Xavier Ducrohet [Tue, 4 Aug 2009 02:51:54 +0000 (19:51 -0700)]
Make aidl annotate onTransact with @Override

BUG: 1902262

14 years agoMerge changes 9554,9555 into donut
Android (Google) Code Review [Mon, 3 Aug 2009 23:59:37 +0000 (16:59 -0700)]
Merge changes 9554,9555 into donut

* changes:
  Import revised translations.  DO NOT MERGE
  Merge Korean abbreviated date format fix from cupcake.

14 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Mon, 3 Aug 2009 23:06:54 +0000 (16:06 -0700)]
Import revised translations.  DO NOT MERGE

14 years agoMerge change 9522 into donut
Android (Google) Code Review [Mon, 3 Aug 2009 22:16:18 +0000 (15:16 -0700)]
Merge change 9522 into donut

* changes:
  Merge Korean abbreviated date format fix from cupcake.

14 years agoMerge Korean abbreviated date format fix from cupcake.
Eric Fischer [Mon, 3 Aug 2009 19:31:25 +0000 (12:31 -0700)]
Merge Korean abbreviated date format fix from cupcake.

Bug 2018804: Use month/day/year characters instead of periods in
abbreviated Korean date formats.

14 years agoMerge Korean abbreviated date format fix from cupcake.
Eric Fischer [Mon, 3 Aug 2009 19:31:25 +0000 (12:31 -0700)]
Merge Korean abbreviated date format fix from cupcake.

Bug 2018804: Use month/day/year characters instead of periods in
abbreviated Korean date formats.

14 years agoChange browser reliability test to start a new activity for each url
Guang Zhu [Mon, 3 Aug 2009 17:47:44 +0000 (10:47 -0700)]
Change browser reliability test to start a new activity for each url

14 years agoDO NOT MERGE
Grace Kloba [Mon, 3 Aug 2009 19:13:15 +0000 (12:13 -0700)]
DO NOT MERGE
Fix the build, which has been also fixed separately in the master

14 years agoMerge change 9378 into donut
Android (Google) Code Review [Mon, 3 Aug 2009 18:59:48 +0000 (11:59 -0700)]
Merge change 9378 into donut

* changes:
  add "since" info for reference docs

14 years agoMerge change 9502 into donut
Android (Google) Code Review [Mon, 3 Aug 2009 18:52:25 +0000 (11:52 -0700)]
Merge change 9502 into donut

* changes:
  Fix bug 2025765. Talkback produced a null pointer exception when being enabled and disabled repeatedly due to a race condition between the onDestroy() of the service, and the use of the service itself. The error occurs when one Talkback thread initiates the destruction of the service (call to onDestroy()) when it invokes shutdown() on its TextToSpeech instance (the client of the service). At the same time, Talkback tries to say that "Accessibility" is unchecked from another thread. During onDestroy(), the reference to the TTS engine (sNativeSynth) is reset to null, which is used in the service in speakInternalOnly(), and setLanguage(). The fix consists in the addition of a static variable that signals that the service has entered onDestroy(). Once this flag is set, all method invocations on sNativeSynth will be dismissed. Note that access to the native resources used by sNativeSynth are synchronized at the native layer, therefore preventing sNativeSynth.shutdown() to interfere with a sNativeSynth.speak() call already underway.

14 years agoMerge change 9390 into donut
Android (Google) Code Review [Mon, 3 Aug 2009 18:35:18 +0000 (11:35 -0700)]
Merge change 9390 into donut

* changes:
  Name unknown albums after the folder they're in, similar to how songs with no title metadata are named after the file. Only files that are in the root of the card will still belong to the "Unknown Album"

14 years agoFix bug 2025765.
Jean-Michel Trivi [Mon, 3 Aug 2009 17:50:51 +0000 (10:50 -0700)]
Fix bug 2025765.
Talkback produced a null pointer exception when being enabled and disabled
repeatedly due to a race condition between the onDestroy() of the service,
and the use of the service itself. The error occurs when one Talkback
thread initiates the destruction of the service (call to onDestroy()) when
it invokes shutdown() on its TextToSpeech instance (the client of the
service). At the same time, Talkback tries to say that "Accessibility" is
unchecked from another thread. During onDestroy(), the reference to the
TTS engine (sNativeSynth) is reset to null, which is used in the service
in speakInternalOnly(), and setLanguage().
The fix consists in the addition of a static variable that signals that
the service has entered onDestroy(). Once this flag is set, all method
invocations on sNativeSynth will be dismissed. Note that access to the
native resources used by sNativeSynth are synchronized at the native
layer, therefore preventing sNativeSynth.shutdown() to interfere with
a sNativeSynth.speak() call already underway.

14 years agoMerge change 9330 into donut
Android (Google) Code Review [Mon, 3 Aug 2009 17:07:00 +0000 (10:07 -0700)]
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.

14 years agoIssue an error when VPN connection is lost.
Hung-ying Tyan [Mon, 3 Aug 2009 08:22:24 +0000 (16:22 +0800)]
Issue an error when VPN connection is lost.

+ Add new error code CONNECTION_LOST to VpnManager.
+ Make VpnService call onError() instead of onDisconnect() when
connection is lost.
+ Make VpnService broadcast CONNECTION_LOST when that happens.

14 years agoFix the auto notification cleanup when vpn is disconnected.
Chung-yih Wang [Mon, 3 Aug 2009 07:01:58 +0000 (15:01 +0800)]
Fix the auto notification cleanup when vpn is disconnected.

+ add the log print if the browser give the incorrect data in addCertificate().

14 years agoMerge change 9438 into donut
Android (Google) Code Review [Sat, 1 Aug 2009 03:15:15 +0000 (20:15 -0700)]
Merge change 9438 into donut

* changes:
  Change some log.i to log.d.

14 years agoChange some log.i to log.d.
Hung-ying Tyan [Sat, 1 Aug 2009 02:11:46 +0000 (10:11 +0800)]
Change some log.i to log.d.

14 years agoMerge snapshot variant of donut back into the tree
Jean-Baptiste Queru [Sat, 1 Aug 2009 00:43:55 +0000 (17:43 -0700)]
Merge snapshot variant of donut back into the tree

14 years agodonut snapshot
Jean-Baptiste Queru [Sat, 1 Aug 2009 00:38:20 +0000 (17:38 -0700)]
donut snapshot

14 years agoadd "since" info for reference docs
Scott Main [Fri, 31 Jul 2009 20:03:36 +0000 (13:03 -0700)]
add "since" info for reference docs

14 years agoName unknown albums after the folder they're in, similar to how songs
Marco Nelissen [Fri, 31 Jul 2009 22:02:25 +0000 (15:02 -0700)]
Name unknown albums after the folder they're in, similar to how songs
with no title metadata are named after the file. Only files that are
in the root of the card will still belong to the "Unknown Album"

14 years agoadd api level doc to the appendix
Scott Main [Fri, 31 Jul 2009 20:11:07 +0000 (13:11 -0700)]
add api level doc to the appendix

14 years agoMerge change 9340 into donut
Android (Google) Code Review [Fri, 31 Jul 2009 15:50:45 +0000 (08:50 -0700)]
Merge change 9340 into donut

* changes:
  Fix issue 2025872: Deadlock in SoundPool.stop

14 years agoMerge change 9285 into donut
Android (Google) Code Review [Fri, 31 Jul 2009 14:11:25 +0000 (07:11 -0700)]
Merge change 9285 into donut

* changes:
  Clear singleton reference during JetPlayer.release()

14 years agoFix issue 2025872: Deadlock in SoundPool.stop
Eric Laurent [Fri, 31 Jul 2009 13:29:13 +0000 (06:29 -0700)]
Fix issue 2025872: Deadlock in SoundPool.stop

There were 2 problems in SoundPool:

1 If not using the shared memory buffer mode, there was a problem when a sound channel was stolen. The new channel could sometimes not be added to the restart
list if the AudioTrack callback thread was stopped before the underrun callback was called.

The SoundChannel::play() method is modified so that SoundPool::done() is called immediately after stopping the channel. There is a possibility that done() is called a second time by the callback; in this case it will be added 2 times to the restart list but the second start request will be ignored as the first one will have reset the next chennel ID when processed.

2 There was a deadlock on SoundPool::mLock if SoundPool::stop() was called while a channel restart was pending:
 SoundPool::stop() lock mLock -> SoundChannel::stop() -> SoundPool::done() -> SoundPool::addToRestartList() -> try to lock mLock == deadlock

A second mutex mRestartLock is added to protect the restart list mRestart. mLock is still used to protect mChannels list but mRestart is now used to
protect access to mRestart by restart thread and client thread.

14 years agoFix #2025900. If a https request is canceled while openConnection is called
Grace Kloba [Fri, 31 Jul 2009 06:13:34 +0000 (23:13 -0700)]
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.

14 years agoMerge change 9124 into donut
Android (Google) Code Review [Fri, 31 Jul 2009 02:53:47 +0000 (19:53 -0700)]
Merge change 9124 into donut

* changes:
  Fix a bug in ImageView: The drawing matrix is not updated when setImageMatrix is called.

14 years agoClear singleton reference during JetPlayer.release()
Phil Dubach [Fri, 31 Jul 2009 00:59:02 +0000 (17:59 -0700)]
Clear singleton reference during JetPlayer.release()

Only one JetPlayer instance is supported at a time. A singleton reference is
created and returned in JetPlayer.getInstance(). When calling release() on the
instance, the corresponding native player is finalized.  Therefore, release()
must also clear the singleton reference, so that any subsequent call to
getInstance() re-initializes the native player.

14 years agoMerge change 9265 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 23:18:21 +0000 (16:18 -0700)]
Merge change 9265 into donut

* changes:
  Highlight IMEI-reading as part of READ_PHONE_STATE description

14 years agoHighlight IMEI-reading as part of READ_PHONE_STATE description
Christopher Tate [Thu, 30 Jul 2009 23:13:03 +0000 (16:13 -0700)]
Highlight IMEI-reading as part of READ_PHONE_STATE description