OSDN Git Service

android-x86/frameworks-base.git
14 years agoMerge "doc change: cherry pick 75c66da20927e7e854397c00ef1974140270c57f. (clarify...
Dirk Dougherty [Thu, 1 Apr 2010 17:35:21 +0000 (10:35 -0700)]
Merge "doc change: cherry pick 75c66da20927e7e854397c00ef1974140270c57f. (clarify fill_parent/match_parent transition in ViewGroup.LayoutParams and R.attr. Mention match_parent in dev guide "declaring layout" doc.)" into froyo

14 years agoMerge "Public API changes for CameraProfile and CamcorderProfile classes" into froyo
James Dong [Thu, 1 Apr 2010 17:33:45 +0000 (10:33 -0700)]
Merge "Public API changes for CameraProfile and CamcorderProfile classes" into froyo

14 years agoMerge "NetworkManagementService: Add interface counters & throttle API" into froyo
Robert Greenwalt [Thu, 1 Apr 2010 17:19:57 +0000 (10:19 -0700)]
Merge "NetworkManagementService: Add interface counters & throttle API" into froyo

14 years agoMerge "Fix for bug 2558156: Encodig is null" into froyo
Kristian Monsen [Thu, 1 Apr 2010 16:54:47 +0000 (09:54 -0700)]
Merge "Fix for bug 2558156: Encodig is null" into froyo

14 years agoFix for bug 2558156: Encodig is null
Kristian Monsen [Thu, 1 Apr 2010 16:04:27 +0000 (17:04 +0100)]
Fix for bug 2558156: Encodig is null

This does not actually pass the test since the test has wrong expectations, but it is at least doing the right thing.

Change-Id: I7da29a3f101647bb628805514cf2bdef24864e50

14 years agodoc change: cherry pick 75c66da20927e7e854397c00ef1974140270c57f. (clarify fill_paren...
Dirk Dougherty [Thu, 25 Mar 2010 23:33:33 +0000 (16:33 -0700)]
doc change: cherry pick 75c66da20927e7e854397c00ef1974140270c57f. (clarify fill_parent/match_parent transition in ViewGroup.LayoutParams and R.attr. Mention match_parent in dev guide "declaring layout" doc.)

Change-Id: I1d2b80b8dc3f8b2e3c1befcbb7c4c522d78a2db8

14 years agoUpdate AMR codec.
Dave Sparks [Thu, 1 Apr 2010 00:44:00 +0000 (17:44 -0700)]
Update AMR codec.

Change-Id: I8ecd2712863f6962b762f26898002912d1c77afb

14 years agoMerge changes Ic9531e3c,I3f04433b into froyo
Ben Murdoch [Thu, 1 Apr 2010 15:42:14 +0000 (08:42 -0700)]
Merge changes Ic9531e3c,I3f04433b into froyo

* changes:
  Cherry pick from master.
  Cherry pick from master.

14 years agoCherry pick from master.
Steve Block [Thu, 25 Mar 2010 14:48:13 +0000 (14:48 +0000)]
Cherry pick from master.

Fixes DumpRenderTree to re-use HTTP authentication credentials

This is required for layout test http/tests/appcache/auth.html

Bug: 2098423
Change-Id: Ic9531e3c23a2fa9ebfab70cde3172550f572a404

14 years agoNetworkManagementService: Add interface counters & throttle API
San Mehat [Wed, 31 Mar 2010 21:31:36 +0000 (14:31 -0700)]
NetworkManagementService: Add interface counters & throttle API

Change-Id: I4976549cdbb027ba7859335e69bf866e738961c9
Signed-off-by: San Mehat <san@google.com>
14 years agoCherry pick from master.
Steve Block [Fri, 26 Mar 2010 09:10:58 +0000 (09:10 +0000)]
Cherry pick from master.

This change forwards to the WebView HTTP authentication credentials that
are supplied to an XHR from JavaScript. This allows the WebView to store these
credentials for use with later requests.

This is a re-working of https://android-git.corp.google.com/g/46430

Bug: 2544330
Change-Id: I3f04433b00233d7b7bf4f7e3471d8d15d8817f93

14 years agoMerge "As we don't support over scroll any more, we need to pin the (x,y) if we handl...
Grace Kloba [Thu, 1 Apr 2010 15:15:09 +0000 (08:15 -0700)]
Merge "As we don't support over scroll any more, we need to pin the (x,y) if we handle the drag after the plugin choose not to handle the event." into froyo

14 years agoPublic API changes for CameraProfile and CamcorderProfile classes
James Dong [Wed, 31 Mar 2010 20:56:29 +0000 (13:56 -0700)]
Public API changes for CameraProfile and CamcorderProfile classes

1. CamcorderProfile: “@see” links are broken; Remove m prefix from fields; remove “final”
2. CamcorderProfile.Quality: use an int rather than an enum
3. Add API on MediaRecorder to pass in a CamcorderProfile
4. CameraProfile.getImageEncodingQualityLevels @hide or make it consistent with CamcorderProfile
5. Remove a convenient method and instead let the (mms) app do that task

bug - 2553862

Change-Id: I759215c7892f772aeddf3651d17038489c6fbc50

14 years agoMerge "Fix isssue 2548710: Native AudioTrack resources never freed." into froyo
Eric Laurent [Thu, 1 Apr 2010 06:33:52 +0000 (23:33 -0700)]
Merge "Fix isssue 2548710: Native AudioTrack resources never freed." into froyo

14 years agoAs we don't support over scroll any more, we need
Grace Kloba [Thu, 1 Apr 2010 06:04:56 +0000 (23:04 -0700)]
As we don't support over scroll any more, we need
to pin the (x,y) if we handle the drag after the
plugin choose not to handle the event.

Fix http://b/issue?id=2563143

14 years agoMerge "Fix issue #2529154 Found SurfaceFlinger timeout in logcat when wake up Camcord...
Dianne Hackborn [Thu, 1 Apr 2010 06:04:22 +0000 (23:04 -0700)]
Merge "Fix issue #2529154 Found SurfaceFlinger timeout in logcat when wake up Camcorder" into froyo

14 years agoMerge "Fix issue #2560791: Expose API to go in to car mode." into froyo
Dianne Hackborn [Thu, 1 Apr 2010 06:03:26 +0000 (23:03 -0700)]
Merge "Fix issue #2560791: Expose API to go in to car mode." into froyo

14 years agoFix issue #2529154 Found SurfaceFlinger timeout in logcat when wake up Camcorder
Dianne Hackborn [Thu, 1 Apr 2010 05:04:36 +0000 (22:04 -0700)]
Fix issue #2529154 Found SurfaceFlinger timeout in logcat when wake up Camcorder

We need to make sure, if the window size changes, to have onSurfaceChanged()
called for the surface to be redrawn.

Change-Id: Iad518199fa400de8059a77ed34d50d6eb93a6aff

14 years agoMerge "Fix issue #2561067: Screen Display half faded..." into froyo
Dianne Hackborn [Thu, 1 Apr 2010 05:49:30 +0000 (22:49 -0700)]
Merge "Fix issue #2561067: Screen Display half faded..." into froyo

14 years agoFix issue #2561067: Screen Display half faded...
Dianne Hackborn [Thu, 1 Apr 2010 05:19:32 +0000 (22:19 -0700)]
Fix issue #2561067: Screen Display half faded...

Also a little tweak to the activity manager to behave better when
an application crash, to hopefully mostly avoid situations where
you get into a crash loop.

Change-Id: I627cc1da3a0f16a180957f02bfbe5c81ecd31758

14 years agoMerge "Test connecitvity manager functionality in state change. * Verify state change...
Xia Wang [Thu, 1 Apr 2010 03:29:10 +0000 (20:29 -0700)]
Merge "Test connecitvity manager functionality in state change. * Verify state change when enabling/disabling wifi * Verify network connectivity change while switching among 3G, Wifi, and Airplane mode" into froyo

14 years agoMerge "Fix bug 2562240 and clean up scrollbar behavior" into froyo
Adam Powell [Thu, 1 Apr 2010 03:11:33 +0000 (20:11 -0700)]
Merge "Fix bug 2562240 and clean up scrollbar behavior" into froyo

14 years agoChange certificate policy.
Suchi Amalapurapu [Tue, 30 Mar 2010 21:01:02 +0000 (14:01 -0700)]
Change certificate policy.

The certificates of the package and its shared user certificates
 are initialized only when installing the package.

When scanning the packages, the certificates are collected from the apk
if the time stamp changes. If not the one's from
PackageSetting(read from packages.xml) are reused.

Removed mergeSignatures and updateSignatures since we don't support
this any more.
Also fix some bugs related to reinstalling failed upgrades.

Some unit tests.

Change-Id: Ibdeff170bd386d723f774136b18e0ad59d9cdabb

14 years agoMerge "Fix crash while turning bluetooth on, due to a race condition." into froyo
Jaikumar Ganesh [Thu, 1 Apr 2010 01:36:35 +0000 (18:36 -0700)]
Merge "Fix crash while turning bluetooth on, due to a race condition." into froyo

14 years agoFix bug 2562240 and clean up scrollbar behavior
Adam Powell [Thu, 1 Apr 2010 00:27:49 +0000 (17:27 -0700)]
Fix bug 2562240 and clean up scrollbar behavior

Change-Id: I551803a1c997c9d10e1d004ce14472af6090f432

14 years agoFix issue #2560791: Expose API to go in to car mode.
Dianne Hackborn [Wed, 31 Mar 2010 06:12:22 +0000 (23:12 -0700)]
Fix issue #2560791: Expose API to go in to car mode.

Also fix bug where night mode was being used in desk dock.

Change-Id: I56c1cf3d6fe800a4f986d40cc4cb2e70b76ac261

14 years agoTest connecitvity manager functionality in state change.
Xia Wang [Sun, 28 Mar 2010 01:25:14 +0000 (18:25 -0700)]
Test connecitvity manager functionality in state change.
* Verify state change when enabling/disabling wifi
* Verify network connectivity change while switching among 3G, Wifi, and Airplane mode

Change-Id: Ia4581b10b794c7b301d28019563bca832bcd8b90

14 years agodoc change: fix link in guidelines index.
Dirk Dougherty [Wed, 31 Mar 2010 23:12:13 +0000 (16:12 -0700)]
doc change: fix link in guidelines index.

Change-Id: I2b9eb38eb503df5b3fd65e3d23e28712f40b09cd

14 years agoMerge "Fix alarms with negative or very large wakup times." into froyo
Jeff Brown [Wed, 31 Mar 2010 22:56:30 +0000 (15:56 -0700)]
Merge "Fix alarms with negative or very large wakup times." into froyo

14 years agoFix alarms with negative or very large wakup times.
Jeff Brown [Wed, 31 Mar 2010 22:29:40 +0000 (15:29 -0700)]
Fix alarms with negative or very large wakup times.

When the wakeup time is negative, the kernel /dev/alarm driver
never triggers the alarm.  This can cause alarms to back up in the
priority queue since an alarm at the head with a negative wakup time
will never be triggered.  Now we use 0 as the wakup time which causes
an immediate triggering.

When the wakeup time is very large, it is possible for a numeric
overflow to occur when converting the timestamp from milliseconds
since epoch to nanoseconds.  This has been fixed by avoiding the
intermediate conversion in the JNI call so that overflow cannot
occur.

Bug: b/2558820
Change-Id: I4f5b4646a04090cc749a9fc5d3982a68402954ef

14 years agodoc change: several fixes for UI Guidelines doc.
Dirk Dougherty [Wed, 31 Mar 2010 21:45:59 +0000 (14:45 -0700)]
doc change: several fixes for UI Guidelines doc.

Change-Id: I351a076929e1fde0348460f4dfb269cfbcb262f2

14 years agodoc change: cherry pick c87f7a658ea586a5271fabc6e0516a2ddf6f from master
Dirk Dougherty [Thu, 25 Mar 2010 00:45:02 +0000 (17:45 -0700)]
doc change: cherry pick c87f7a658ea586a5271fabc6e0516a2ddf6f from master

14 years agoMerge "Fix bug 2553575 API REVIEW: android.media Change 1 of 3 Notes from API Counci...
Jean-Michel Trivi [Wed, 31 Mar 2010 20:40:42 +0000 (13:40 -0700)]
Merge "Fix bug 2553575 API REVIEW: android.media  Change 1 of 3 Notes from API Council review:   Rename onAudioFocusChanged -> onAudioFocusChange" into froyo

14 years agoFix isssue 2548710: Native AudioTrack resources never freed.
Eric Laurent [Wed, 31 Mar 2010 19:21:17 +0000 (12:21 -0700)]
Fix isssue 2548710: Native AudioTrack resources never freed.

The problem is a bug in AudioFlinger::MixerThread::prepareTracks_l() that makes that even if the TrackHandle
is destroyed, the corresponding Track will remain active as long as frames are ready for mixing.
If the track uses shared memory (static mode) and the sound is looped, this track will play for ever.

The fix consists in removing the track from active list immediately if the track is terminated.

Change-Id: I4582aa1d981079ab79be442fb6185f5afaed5cf3

14 years agoFix bug 2553575 API REVIEW: android.media Change 1 of 3
Jean-Michel Trivi [Wed, 31 Mar 2010 18:30:24 +0000 (11:30 -0700)]
Fix bug 2553575 API REVIEW: android.media  Change 1 of 3
Notes from API Council review:
  Rename onAudioFocusChanged -> onAudioFocusChange

Change-Id: I8296cc84381506dabe8a9ceb1b5e3c0ab6d4af25

14 years agoMerge "Skip any number of leading ID3v2 tags (instead of just the first), also simpli...
Andreas Huber [Wed, 31 Mar 2010 18:33:19 +0000 (11:33 -0700)]
Merge "Skip any number of leading ID3v2 tags (instead of just the first), also simplify/fix the find-consecutive-mp3-frames functionality." into froyo

14 years agoFix crash while turning bluetooth on, due to a race condition.
Jaikumar Ganesh [Wed, 31 Mar 2010 18:23:49 +0000 (11:23 -0700)]
Fix crash while turning bluetooth on, due to a race condition.

Bug: 2561150

Race condition: We were basing whether the event loop is
running or not on whether nat->pollData was null or not.
In rare cases, eventLoopMain would have not started,
isEventLoopRunning returns true; java side makes a dbus call
and the watches get set to null, causing a crash in
dbus_connection_set_watch_functions when eventLoopMain starts.

Change-Id: I863f182185a8e956fd53cb58783b7fe0ecfb2ddb

14 years agoSkip any number of leading ID3v2 tags (instead of just the first), also simplify...
Andreas Huber [Wed, 31 Mar 2010 18:08:23 +0000 (11:08 -0700)]
Skip any number of leading ID3v2 tags (instead of just the first), also simplify/fix the find-consecutive-mp3-frames functionality.

Change-Id: I30b93b21de9bd5509b617cca21f46331562c30ac
related-to-bug: 2553445

14 years agoFix issue #2558391: Package manager problem when not replacing existing system partit...
Dianne Hackborn [Wed, 31 Mar 2010 02:24:44 +0000 (19:24 -0700)]
Fix issue #2558391: Package manager problem when not replacing existing system partition app

This fixes the package manager to ensure we can't get in this bad state of
an update to a system app being installed as a separate app.

Change-Id: I2a3f601bbc06b74f31ca09192993614bc6885ff7

14 years agoMerge "added a cleanspec since ActiveSyncInfo.aidl was removed" into froyo
Fred Quintana [Wed, 31 Mar 2010 18:01:41 +0000 (11:01 -0700)]
Merge "added a cleanspec since ActiveSyncInfo.aidl was removed" into froyo

14 years agoadded a cleanspec since ActiveSyncInfo.aidl was removed
Fred Quintana [Wed, 31 Mar 2010 17:59:43 +0000 (10:59 -0700)]
added a cleanspec since ActiveSyncInfo.aidl was removed

Change-Id: I1fb57d2a4d28211f0adaf8c1d184a8c5f7701d7f

14 years agoUse case insensitive matching.
Patrick Scott [Wed, 31 Mar 2010 17:35:24 +0000 (13:35 -0400)]
Use case insensitive matching.

Use the lowercase version of the protocol.

Bug: 2560217
Change-Id: Ibfadf4ba363968df9caf22c9ab36f666ee44d1db

14 years agoMerge "Add thermal shutdown. If battery temp >= 68C." into froyo
Eric Olsen [Wed, 31 Mar 2010 17:04:24 +0000 (10:04 -0700)]
Merge "Add thermal shutdown.  If battery temp >= 68C." into froyo

14 years agoMerge "Properly send a MEDIA_SEEK_COMPLETE notification for a seek request while...
Andreas Huber [Wed, 31 Mar 2010 16:48:22 +0000 (09:48 -0700)]
Merge "Properly send a MEDIA_SEEK_COMPLETE notification for a seek request while paused (legacy behaviour)." into froyo

14 years agoProperly send a MEDIA_SEEK_COMPLETE notification for a seek request while paused...
Andreas Huber [Wed, 31 Mar 2010 16:40:15 +0000 (09:40 -0700)]
Properly send a MEDIA_SEEK_COMPLETE notification for a seek request while paused (legacy behaviour).

Change-Id: I64da5eb97c75b269b4668b3628ed0f05f2e36e51
related-to-bug: 2557482

14 years agoAdd thermal shutdown. If battery temp >= 68C.
Eric Olsen [Fri, 26 Mar 2010 22:38:41 +0000 (15:38 -0700)]
Add thermal shutdown.  If battery temp >= 68C.

Change-Id: I625fa47939d8ecc532457b5c6e13f91d83bfbcc5

14 years agoMerge "Fix HttpProxy." into froyo
Robert Greenwalt [Wed, 31 Mar 2010 15:32:03 +0000 (08:32 -0700)]
Merge "Fix HttpProxy." into froyo

14 years agoSupport for apps search in apps provider contract
Bjorn Bringert [Wed, 31 Mar 2010 12:18:33 +0000 (13:18 +0100)]
Support for apps search in apps provider contract

Bug http://b/issue?id=2559078

Change-Id: Ic0d3ac3af2ca5f066618e279786af2df11cd0113

14 years agoShow SD unavailable icon for apps on SD when ejected.
Jeff Brown [Wed, 31 Mar 2010 02:57:08 +0000 (19:57 -0700)]
Show SD unavailable icon for apps on SD when ejected.

This change include a minor refactoring of PackageItemInfo and related
classes to eliminate code duplication and to avoid redundant work
searching for an ApplicationInfo instance we already have.

Bug: b/2537578
Change-Id: Id0794c3f055ea58b943028f7a84abc7dec9d0aac

14 years agoRevert "fix [2542425] memory leak during video recording"
Dianne Hackborn [Wed, 31 Mar 2010 04:04:17 +0000 (21:04 -0700)]
Revert "fix [2542425] memory leak during video recording"

This reverts commit 544592e14f8d7643238e40ba9879727497900f35.

14 years agoFix HttpProxy.
Robert Greenwalt [Wed, 31 Mar 2010 02:15:32 +0000 (19:15 -0700)]
Fix HttpProxy.

A key bit of code was lost in change 38/25338/5 (2009/09/17 change
of RequestQueue.java) which caused us to not pick up proxy settings.
Putting it back.

bug:2364475
Change-Id: I1e79858f64d8e793a966ef8e6f7a0d3f2a02251f

14 years agofix [2542425] memory leak during video recording
Mathias Agopian [Tue, 30 Mar 2010 23:53:40 +0000 (16:53 -0700)]
fix [2542425] memory leak during video recording

[Sorted|Keyed]Vector<TYPE> would leak their whole storage when resized
from the end and TYPE had trivial dtor and copy operators.

Change-Id: I8555bb1aa0863df72de27d67ae50e20706e90cf5

14 years ago- changed periodic sync scheduling to just creating pending
Fred Quintana [Tue, 30 Mar 2010 05:20:26 +0000 (22:20 -0700)]
- changed periodic sync scheduling to just creating pending
  and changed the "get next operation to sync" logic just look
  at pending syncs, rather than them and periodic syncs
- made syncoperation dup-detection ignore the initialization
  sync extra
- made the sync dispatcher treat initialization syncs as just
  a regular sync request and also made it explicitly set or
  clear the initialization extra based on whether the sync
  adapter was in the syncable or unknown state
- change the getNextSync logic to prioritize syncable "unknown"
  syncs above everything else (since they should be fast and
  are important)
- make it reschedule completed initialization syncs if the
  sync adapter is now marked syncable
- fix some logging in SyncStorageEngine
- change SyncStorageEngine to not reuse authority ids when one
  is removed

http://b/issue?id=2531359
http://b/issue?id=2429638

Change-Id: I79805b582da74f4f0b6193eafaff24c2371d51e8

14 years agomissing current.xml change
Fred Quintana [Wed, 31 Mar 2010 01:16:40 +0000 (18:16 -0700)]
missing current.xml change

Change-Id: I355dae4213ee8a93a79ff57e1d7c36d2b9d3495f

14 years agosome changes due to an API review
Fred Quintana [Tue, 30 Mar 2010 22:16:21 +0000 (15:16 -0700)]
some changes due to an API review
 - make EntityIterator extend Iterator and thus not throw a
   RemoteException, instead converting it into a RuntimeException.
 - rename ActiveSyncInfo to SyncInfo
 - change getActiveSync to getCurrentSync
 - remove the accessors in SyncInfo and instead make the final
   fields publicly accessible
 - made AbstractThreadedSyncAdapter.cancelSync not take a thread

Change-Id: I99fde5585bc5f1e95f4873ffbba189074a8d6372
http://b/issue?id=2553539
http://b/issue?id=2553541
http://b/issue?id=2553550

14 years agoMerge "Add support for GPS privacy lock. DO NOT MERGE" into froyo
Mike Lockwood [Wed, 31 Mar 2010 00:29:41 +0000 (17:29 -0700)]
Merge "Add support for GPS privacy lock.  DO NOT MERGE" into froyo

14 years agoMerge "Don't load photo if it's id is 0. Saves one database query Bug:2546767" into...
Daniel Lehmann [Tue, 30 Mar 2010 23:58:38 +0000 (16:58 -0700)]
Merge "Don't load photo if it's id is 0. Saves one database query Bug:2546767" into froyo

14 years agoMerge "Fix bug 2523622 - ListView invokes onItemClick for disabled adapter items...
Adam Powell [Tue, 30 Mar 2010 23:46:21 +0000 (16:46 -0700)]
Merge "Fix bug 2523622 - ListView invokes onItemClick for disabled adapter items" into froyo

14 years agoFix bug 2523622 - ListView invokes onItemClick for disabled adapter items
Adam Powell [Tue, 30 Mar 2010 23:26:36 +0000 (16:26 -0700)]
Fix bug 2523622 - ListView invokes onItemClick for disabled adapter items

AbsListView was relying on TOUCH_MODE_DOWN to signal that the item was
enabled, but onInterceptTouchEvent uses it for other purposes. Check
before dispatching the event.

Change-Id: I6babd3872cb51ebdba8e97a3b349e0cc08cd1279

14 years agoAPI CHANGE: @hide AbsoluteFileBackupHelper
Christopher Tate [Tue, 30 Mar 2010 21:31:39 +0000 (14:31 -0700)]
API CHANGE: @hide AbsoluteFileBackupHelper

We don't want to publish this, but for risk mitigation we are hiding it
rather than rewriting/expanding the FileBackupHelper to accomodate the
absolute-path use cases that the system uses internally.

Change-Id: I513c97ec54de8dd7d28b10868d447d94b82d4ec3

14 years agoMerge "Fix issue #2553553: API REVIEW: android.context.Context" into froyo
Dianne Hackborn [Tue, 30 Mar 2010 22:55:37 +0000 (15:55 -0700)]
Merge "Fix issue #2553553: API REVIEW: android.context.Context" into froyo

14 years agoMerge "Properly fill in the component name for the software decoders." into froyo
Andreas Huber [Tue, 30 Mar 2010 22:40:38 +0000 (15:40 -0700)]
Merge "Properly fill in the component name for the software decoders." into froyo

14 years agoMerge "Fix for Never not existing in latest timeout values." into froyo
Amith Yamasani [Tue, 30 Mar 2010 22:19:00 +0000 (15:19 -0700)]
Merge "Fix for Never not existing in latest timeout values." into froyo

14 years agoFix for Never not existing in latest timeout values.
Amith Yamasani [Tue, 30 Mar 2010 00:58:53 +0000 (17:58 -0700)]
Fix for Never not existing in latest timeout values.

Bug: 2535288

Change-Id: I15ca60c7afe58fbe57e557e6d0028dc200d8b322

14 years agoMerge "Remove the shadow under url bar." into froyo
Grace Kloba [Tue, 30 Mar 2010 21:51:48 +0000 (14:51 -0700)]
Merge "Remove the shadow under url bar." into froyo

14 years agoFix issue #2553553: API REVIEW: android.context.Context
Dianne Hackborn [Tue, 30 Mar 2010 21:39:35 +0000 (14:39 -0700)]
Fix issue #2553553: API REVIEW: android.context.Context

Change-Id: I3e3ab7a909329d498544dc9ed4d500cbcc4ed281

14 years agoRemove the shadow under url bar.
Grace Kloba [Tue, 30 Mar 2010 21:16:43 +0000 (14:16 -0700)]
Remove the shadow under url bar.

This was introduced when we remove the over scroll.

Fix http://b/issue?id=2557916

14 years agoProperly fill in the component name for the software decoders.
Andreas Huber [Tue, 30 Mar 2010 20:50:38 +0000 (13:50 -0700)]
Properly fill in the component name for the software decoders.

Change-Id: I92071481f7ed94922b10856c981e507a9eec4c0c
related-to-bug: 2557787

14 years agocherry-pick d4f3958bde05d04f97e0a4054d2a6185989d99f3 into Froyo
Irfan Sheriff [Tue, 30 Mar 2010 18:00:41 +0000 (11:00 -0700)]
cherry-pick d4f3958bde05d04f97e0a4054d2a6185989d99f3 into Froyo

Setting the allowed channel count in the
driver can take a long time to potentially
cause ANR in the phone process. Make the call
asynchronous

Bug: 2555117
Change-Id: Ie3c2e6f90aa0ec8ee4b85c989ccae1ca0f2b94f9

14 years agoMerge "Package manager optimizations." into froyo
Dianne Hackborn [Tue, 30 Mar 2010 20:35:33 +0000 (13:35 -0700)]
Merge "Package manager optimizations." into froyo

14 years agoPackage manager optimizations.
Dianne Hackborn [Tue, 30 Mar 2010 17:42:20 +0000 (10:42 -0700)]
Package manager optimizations.

Addresses:
Issue #2550648: PackageManagerService setComponentEnabledSetting unconditionally
writes Settings xml
Issue #2549084: Make PackageManager.addPermission have async version

Also make the writing of settings when changing the preferred activities to use
the same async mechanism, and fiddle with thread priorities in the background
thread to go up to foreground priority when holding the lock to write settings
and a few other places.  (At some point we should really clean this up to never
acquire the main lock while in the background.)

Change-Id: Ib2b7632543f6fb3f92a225518579f3b2d15e1413

14 years agoDon't load photo if it's id is 0. Saves one database query
Daniel Lehmann [Mon, 29 Mar 2010 17:39:53 +0000 (10:39 -0700)]
Don't load photo if it's id is 0. Saves one database query
Bug:2546767

Change-Id: I0739cd45acecd18bafda9a200dff60fdcc219021

14 years agoMerge "Timeout on socket recv calls after 5secs, retry connection also if server...
Andreas Huber [Tue, 30 Mar 2010 20:31:57 +0000 (13:31 -0700)]
Merge "Timeout on socket recv calls after 5secs, retry connection also if server unexpectedly closed the connection on its end and we know that there should've been more data available." into froyo

14 years agoTimeout on socket recv calls after 5secs, retry connection also if server unexpectedl...
Andreas Huber [Tue, 30 Mar 2010 20:14:19 +0000 (13:14 -0700)]
Timeout on socket recv calls after 5secs, retry connection also if server unexpectedly closed the connection on its end and we know that there should've been more data available.

Change-Id: I749859dae28356080fe72ba035719754e7339c7f
related-to-bug: 2492187

14 years agoMerge "Make RestoreSession.getAvailableRestoreSets() asynchronous" into froyo
Christopher Tate [Tue, 30 Mar 2010 20:09:50 +0000 (13:09 -0700)]
Merge "Make RestoreSession.getAvailableRestoreSets() asynchronous" into froyo

14 years agoRemove logspew.
Daniel Sandler [Tue, 30 Mar 2010 19:45:31 +0000 (15:45 -0400)]
Remove logspew.

Change-Id: I8b56a9c289dcc87080116e6af27721e24d49c3b0

14 years agoMake RestoreSession.getAvailableRestoreSets() asynchronous
Christopher Tate [Tue, 30 Mar 2010 02:14:24 +0000 (19:14 -0700)]
Make RestoreSession.getAvailableRestoreSets() asynchronous

This transaction can involve the transport having to query a remote backend
over the wire, so it can take a Long Time(tm).  Make it main-thread-safe by
making it asynchronous, with the results passed as a callback to the invoker's
RestoreObserver.  We also make the IRestoreObserver callback interface
properly oneway.

Bug #2550665
Bug #2549422

Change-Id: If18a233a0a3d54c7b55101715c9e6195b762c5a0

14 years agoMerge "Fix a simple logic mistake." into froyo
Patrick Scott [Tue, 30 Mar 2010 18:41:29 +0000 (11:41 -0700)]
Merge "Fix a simple logic mistake." into froyo

14 years agoFix bug 2553592 API REVIEW: android.speech
Jean-Michel Trivi [Tue, 30 Mar 2010 01:31:19 +0000 (18:31 -0700)]
Fix bug 2553592 API REVIEW: android.speech
Change 1 of 4
Notes from API Council review:
Rename RecognitionManager to SpeechRecognizer

Change-Id: I892c0d714d928d5e31575c72b6a36281fc4c7a8a

14 years agoFix a simple logic mistake.
Patrick Scott [Tue, 30 Mar 2010 17:59:09 +0000 (13:59 -0400)]
Fix a simple logic mistake.

If the icon is precomposed or the icon IS null, set the touch icon url. This
ensures there will be a touch icon set if either precomposed or regular is
specified. Precomposed icons take precedence.

Bug: 2546984
Change-Id: Id9291006ecda8659b823ab9629eb98a6f8d45f5e

14 years agoMerge "framework: Hide StorageManager for froyo - DO NOT MERGE" into froyo
San Mehat [Tue, 30 Mar 2010 17:35:44 +0000 (10:35 -0700)]
Merge "framework: Hide StorageManager for froyo - DO NOT MERGE" into froyo

14 years agoRelax the requirement of making a DBUS call for creating the Bluez Device.
Jaikumar Ganesh [Mon, 29 Mar 2010 07:01:34 +0000 (00:01 -0700)]
Relax the requirement of making a DBUS call for creating the Bluez Device.

Bug: 2136464

When the bluez device is created, we get the onDeviceCreated signal.
We add it to our  cache when that happens. We can have a device created
even when its not bonded - as a result of OPP. So use this cache to avoid
a DBUS call to Bluez.

Change-Id: I9465da7d72a12a6888128ff40ac1fe598cbae3c3

14 years agoMerge "Import revised translations" into froyo
Kenny Root [Tue, 30 Mar 2010 16:23:16 +0000 (09:23 -0700)]
Merge "Import revised translations" into froyo

14 years agoImport revised translations
Kenny Root [Tue, 30 Mar 2010 16:15:10 +0000 (09:15 -0700)]
Import revised translations

Change-Id: I1580bddbcf945ed733725b486b2699582096d3a5

14 years agoframework: Hide StorageManager for froyo - DO NOT MERGE
San Mehat [Mon, 29 Mar 2010 22:01:44 +0000 (15:01 -0700)]
framework: Hide StorageManager for froyo - DO NOT MERGE

Change-Id: Icd58d5be0de1cc0549a5d766421bcc773c8cd868
Signed-off-by: San Mehat <san@google.com>
14 years agoClean up SearchableInfo API, JavaDoc and formatting
Bjorn Bringert [Mon, 29 Mar 2010 21:21:43 +0000 (22:21 +0100)]
Clean up SearchableInfo API, JavaDoc and formatting

This change cleans up the JavaDoc in SearchableInfo,
removes trailing whitespace, fixes an if-statement
style violoation, and re-hides some things that were
exposed for Froyo that query deprecated or discouraged
attributes:

SearchableInfo.getSearchButtonText()
SearchableInfo.getLabelId()
SearchableInfo.getIconlId()
class SearchableInfo.ActionKeyInfo
SearchableInfo.findActionKey()

Bug http://b/issue?id=2553524

Change-Id: Iee5521c844f74137166730e523d29ba07ef1856b

14 years agoFix issue #2547337: switching night modes
Dianne Hackborn [Tue, 30 Mar 2010 01:41:30 +0000 (18:41 -0700)]
Fix issue #2547337: switching night modes

Dumb.

Change-Id: Iaa72eaac54422f7fd95cf1050f6b7b6da55af0c3

14 years agoHopefully get rid of some ANRs.
Dianne Hackborn [Tue, 30 Mar 2010 01:08:45 +0000 (18:08 -0700)]
Hopefully get rid of some ANRs.

Don't hold the activity manager lock the entire time we are processing an ANR,
which often causes us to cause a second ANR as someone else calls into the
activity manager and gets blocked.

Change-Id: Ife4db82b12d6f4378ac2705bd6f60beb1244a1e6

14 years agoRemove overscrolling
Adam Powell [Mon, 29 Mar 2010 23:02:07 +0000 (16:02 -0700)]
Remove overscrolling

Change-Id: I7e9db8d8a9b8ef67f0c0c82bf57c9155b7ebabea

14 years agoMerge "DO NOT MERGE Removing unused features from source tree. Please refer to Bug...
Oscar Montemayor [Tue, 30 Mar 2010 01:56:57 +0000 (18:56 -0700)]
Merge "DO NOT MERGE Removing unused features from source tree. Please refer to Bug#2502219." into froyo

14 years agoMerge "Fix for bug 2548048 - it was impossible for applications to discover if their...
Charles Chen [Tue, 30 Mar 2010 01:37:41 +0000 (18:37 -0700)]
Merge "Fix for bug 2548048 - it was impossible for applications to discover if their TTS settings were being overridden by the user or not." into froyo

14 years agoFix for bug 2548048 - it was impossible for applications to discover
Charles Chen [Tue, 30 Mar 2010 01:30:30 +0000 (18:30 -0700)]
Fix for bug 2548048 - it was impossible for applications to discover
if their TTS settings were being overridden by the user or not.

Change-Id: I28856a1b79c9455435671d13ed614a1ccb4e95ea

14 years agoMerge "Fix preloaded classes for API rename of BackupAgentHelper" into froyo
Amith Yamasani [Tue, 30 Mar 2010 01:24:59 +0000 (18:24 -0700)]
Merge "Fix preloaded classes for API rename of BackupAgentHelper" into froyo

14 years agoDO NOT MERGE
Oscar Montemayor [Sat, 27 Mar 2010 01:44:14 +0000 (18:44 -0700)]
DO NOT MERGE
Removing unused features from source tree.
Please refer to Bug#2502219.

Change-Id: I879c29bfd5ffe933f64bb1082aaae7c956450a5a

14 years agoFix preloaded classes for API rename of BackupAgentHelper
Amith Yamasani [Tue, 30 Mar 2010 01:11:56 +0000 (18:11 -0700)]
Fix preloaded classes for API rename of BackupAgentHelper

Change-Id: Ica6301b2aac6879702b98edfcf67fc7bc62002db

14 years agofix the build
Joe Onorato [Tue, 30 Mar 2010 01:06:11 +0000 (18:06 -0700)]
fix the build

Change-Id: I39e1bdfbea1c9dfa6a4a09f94f6eb75095290427

14 years agoMerge "Fix possible security issue. Bug #2553187" into froyo
Romain Guy [Mon, 29 Mar 2010 23:31:14 +0000 (16:31 -0700)]
Merge "Fix possible security issue. Bug #2553187" into froyo

14 years agoReplace "safeMode" with a more specific name "vmSafeMode" in the public API.
Ben Cheng [Mon, 29 Mar 2010 22:47:26 +0000 (15:47 -0700)]
Replace "safeMode" with a more specific name "vmSafeMode" in the public API.

Bug: 2553512
Change-Id: Id0dad80ecdcb8c7430dcf1ac26132ccd9c0770f5

14 years agoMerge "Remove upside-down portrait orientation." into froyo
Steve Howard [Mon, 29 Mar 2010 23:05:35 +0000 (16:05 -0700)]
Merge "Remove upside-down portrait orientation." into froyo

14 years agoFix possible security issue.
Romain Guy [Mon, 29 Mar 2010 23:03:01 +0000 (16:03 -0700)]
Fix possible security issue.
Bug #2553187

Limit the max number of lines for each entry in the ResolveActivity to 2. Also
make sure to discard potential styling tags and newlines/space characters from
package name and activity labels.

Change-Id: Ibda3688267aa948b921164d3d3abc8c9236e61a2