7421 Commits

Author SHA1 Message Date
Christopher Tate
9c3cee9824 API CHANGE: Backup/restore API changes requested by the API Council
* @hide the android.app.backup.RestoreSession class and functionality

* Provide a public method on android.app.backup.BackupManager that apps
  can use to request a restore pass of their last-known-good dataset.
  The new method is called requestRestore().

* Provide the name of the package being restored, not just its ordinal,
  in the RestoreObserver's onUpdate() callback.

Part of bug #2545514

Change-Id: I9689bf8d6e2b808b4ee412424a36a835be0a5ca8
2010-03-26 14:26:44 -07:00
Grace Kloba
092cfaaa22 Merge "cherry-picked bf4650ca39c9153e38c76280ceb5e9af48b67751 to froyo" into froyo 2010-03-26 13:55:34 -07:00
Dianne Hackborn
d49258fed4 Fix issue #2544466: Car Home brightness icon comes and goes while phone is in car dock in FRE83
There was a really dumb bug that was causing us to not always apply
the new configuration.  As a result of fixing this, there were new
glithes in the transition between car and regular mode, so further
work here to fix that.  And since I was actually working during the
night and seeing night mode, I noticed how obnoxiously bright the
status bar is compared to the car home at night, so it now nicely
dims itself when we switch to the night config.  Oh and in doing
that I also found and fixed a bug in dispatching config changes to
a window (where they wouldn't get dispatched if the window didn't
resize).

FINALLY...  tweak the wallpaper enter/exit animations a bit to
make them a little smoother.

Change-Id: I4e062093cbcfbc919307799a794846db2920216f
2010-03-26 12:52:53 -07:00
Grace Kloba
7e8bc24f62 cherry-picked bf4650ca39c9153e38c76280ceb5e9af48b67751 to froyo
According to GMail profile, almost half of WebView
init time is spent in creating the zoomControl which
is not used by them. So change to lazy initialize
the ZoomButtonControl which will be used by Browser.

Fix http://b/issue?id=2546481
2010-03-26 11:44:48 -07:00
Jean-Baptiste Queru
cf7958f916 Hide download manager.
Not ready for public consumption yet.

Bug: 2544512
Change-Id: I4a5b3c5f6afbc911d31e24333c2898d0c36281a3
2010-03-26 10:29:28 -07:00
Brad Fitzpatrick
2911e8eff7 Merge "Clarify some Binder docs regarding things that are thread-local." 2010-03-25 21:02:46 -07:00
Brad Fitzpatrick
a0527f207b Clarify some Binder docs regarding things that are thread-local.
Change-Id: I433c9c2f4593866b2e9846893676b93a670817d4
2010-03-25 20:40:34 -07:00
Adam Powell
aeb30e6d22 Fix bug 2544916 - Fun with AbsListView touch mode
Change-Id: I79de051891d535f44c0910295976d1f3634aca4c
2010-03-25 18:09:09 -07:00
Adam Powell
7b8970b4ef Merge "API refactoring for OverScroller." 2010-03-25 17:03:58 -07:00
Adam Powell
6579b0b4ac API refactoring for OverScroller.
OverScroller is no longer a child class of Scroller and several
Scroller methods that do not make sense for OverScroller and could
cause misbehaving edge cases have been removed or hidden and
deprecated.

Change-Id: Ie055b607bd3b36c47ab9798d5c9518aef686b474
2010-03-25 16:02:27 -07:00
Irfan Sheriff
a3bd409a0a settings variable for wifi saved state
We add a variable for saving wifi state
to restore after tethering.

Bring up wifi on boot up if the state indicates so.

Bug: 2537983
Change-Id: I9c6548b93df6fcbc0cec1e6b857f7224dc6d1b2c
2010-03-25 15:10:34 -07:00
Robert Greenwalt
bfb7bfa538 Update Framework to support multiple dhpc ranges
Previously we only supported a single range - this was inadequate for
multiple interfaces.  Adding a second range so we can support
both usb and wifi tethering.

Also moving out of the zero-conf range as our dhcp client won't
accept ip addrs in that range (no nexus to nexus wifi action).

bug: 2537963
bug: 2533491
bug: 2538303
Change-Id: I600b421343c28c2f9839ed2076122ae3d0ff5d3d
2010-03-25 14:46:13 -07:00
Fred Quintana
838bfef915 Merge "check for nulls" 2010-03-25 14:39:15 -07:00
Fred Quintana
382601fc8b check for nulls
Change-Id: Ie02749db1dceb4288a70e5b28040459d669904c1
http://b/issue?id=2527346
2010-03-25 13:55:02 -07:00
Patrick Scott
661a19765b Merge "Add .3gpp as the preferred extension for video/3gpp." 2010-03-25 13:27:57 -07:00
Patrick Scott
c9048a683d Add .3gpp as the preferred extension for video/3gpp.
As it appears earlier in the list, .3gpp will be used as the extension for
video/3gpp mime types.

Bug: 2542939
Change-Id: I7d9188b460774af7bc29f4e8f1ebada43bf2ed10
2010-03-25 16:18:05 -04:00
Jean-Baptiste Queru
3435485164 Revert "Hide download manager."
This reverts commit aaaf1232177ca008818ddac13f5f98405b789ff2.
2010-03-25 13:09:03 -07:00
Jean-Baptiste Queru
292c361cfd Merge "Hide download manager." 2010-03-25 12:35:22 -07:00
Joe Onorato
8f2bd4328a Add window flags and window types to hierarchyviewer.
For debugging http://b/issue?id=2544870

Change-Id: I4b7775e6fd275bb7a9041bf5736e076122bfb5f1
2010-03-25 11:52:06 -07:00
Steve Block
c6a90a59b3 Provides ability to store HTTP authentication credentials supplied to an XHR from JavaScript
This change forwards to the WebViewClient HTTP authentication credentials that
are supplied to an XHR from JavaScript. This allows the client to store these
credentials for use with later requests.

Currently, the browser only stores credentials that have been entered manually
by the user through the authentication dialog.

Bug: 2544330
Change-Id: I913e35d80b7ad41ff75586092408b86ea9f543d8
2010-03-25 18:18:36 +00:00
Grace Kloba
26f1faa122 Turn on plugin signature checking.
Fix http://b/issue?id=2465450
2010-03-25 10:25:59 -07:00
Jean-Baptiste Queru
aaaf123217 Hide download manager.
Not ready for public consumption yet.

Bug: 2544512
Change-Id: I8be1a4aa24581c6d272b087439f3e22ef1fc29d2
2010-03-25 09:48:50 -07:00
Patrick Scott
11f5738424 Use ViewRoot.addConfigCallback instead of a BroadcastReceiver.
Store a list of Handlers in a global ComponentCallbacks instance. Use
WeakReference to avoid leaking BrowserFrame objects.

Bug: 2542935
Change-Id: I67b102288f47f9fa6e855ba6558f2b1d611e8427
2010-03-25 11:51:37 -04:00
Grace Kloba
9c4750a676 Draw a hairline border in the overscroll mode.
Fix http://b/issue?id=2542449
2010-03-25 08:32:22 -07:00
Bjorn Bringert
98bfa39596 Use a secure setting for default browser geolocation permissions
Partly reverts I6308b476ad18b1d71d7438b936c592a45365c9f0

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

Change-Id: Ib488c6d4f10a87b714ecb78eef6fe58f572907c6
2010-03-25 14:04:45 +00:00
Brad Fitzpatrick
2c5da313dd Log blocking Binder calls to the EventLog.
This mimics what we do already for SQLiteDatabase's db_operation and
ContentProvider's content_query_operation and
content_update_operation:  over a threshold things are always logged,
and under which they're sub-sampled.

Change-Id: Ia0280b9b07b336ee88b17be2a31a7af0fd7c5770
2010-03-24 23:57:34 -07:00
Amith Yamasani
e861ec11c4 Fix 2242164 Soft keyboard keeps getting enabled even if I disable it
On keyboardful devices, it is possible to disable the system soft input
method. Something changed in eclair that caused the ime to be re-enabled
on every package manager update (packages added/deleted).

Now keep track of disabled system imes in the settings db and search
in that list before enabling a system IME on package changes.

Every time the user goes to settings to enable/disable imes, the list
is re-created.

Any new system IMEs that may be added via an OTA will get enabled if
they have a different package name.
2010-03-24 21:39:27 -07:00
Grace Kloba
2c9607137c Merge "There are two computeHorizontalScrollRange() got missed in the last conversion." 2010-03-24 18:27:18 -07:00
Dan Egnor
12331739e0 Merge "Limit DropBox storage to 1000 files (by default)." 2010-03-24 18:13:41 -07:00
Grace Kloba
1cd1c8e8be There are two computeHorizontalScrollRange() got
missed in the last conversion.

Fix http://b/issue?id=2542555
2010-03-24 18:05:37 -07:00
Dan Egnor
3a8b0c18a4 Limit DropBox storage to 1000 files (by default).
Also does trimming asynchronously (not directly in the broadcast receiver).

Bug: 2541253
Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76
2010-03-24 17:48:20 -07:00
Gilles Debunne
478a745e84 null header and footer allowed in HeaderViewListAdapter.
The view infos should never be null since they are created by ListView, which is
the natural and only use of this class.
However, some tests in CTS pass null pointers. Replace null by a static empty list.

http://b/issue?id=2527753

Change-Id: I9b92fa018c89007f12be899285f75130b2c8ac40
2010-03-24 15:27:41 -07:00
Adam Powell
26295d20e3 Merge "Fix some bugs/edge cases in ScrollView/HorizontalScrollView" 2010-03-24 15:11:45 -07:00
Gilles Debunne
34783aac26 Fixes for HeaderViewListAdapter.
Null header and footer, as used by CTS tests, were no longer supported.
Added a static empty list to avoid repetitive null tests in that case.
Fixed getItem/getItemId/getView to handle corner cases.
Changed ListAdapter isEnabled documentation for invalid positions.

http://b/issue?id=2527753
Change-Id: I55e5bf21cb0673d906caa7c669987a6ae869d90f
2010-03-24 15:09:50 -07:00
Adam Powell
352b978fa8 Fix some bugs/edge cases in ScrollView/HorizontalScrollView
Handle ACTION_CANCEL, fix edge cases related to grabbing content and
beginning a new scroll during overfling/springback. Will prevent
some cases where a view could get stuck overscrolled.

Change-Id: I7e89d9de9b7dc685d2ea278e6b2bd2c794364204
2010-03-24 14:23:43 -07:00
Adam Powell
3e8b72ac6e Merge "Fix for bug 2502886 - stupid monkeys." 2010-03-24 14:05:55 -07:00
Adam Powell
9d0335b1e3 Fix for bug 2502886 - stupid monkeys.
Plugged a possible edge case with ScrollView/HorizontalScrollView that
could cause this error.

Change-Id: I509004189b9f5e536d6213c9fdfff598d9f958ca
2010-03-24 13:42:51 -07:00
Dmitri Plotnikov
8f29c12d6e Forcing query execution in SQLiteDatabase.query
The issue is that our code often "executes" a query
on a background thread but iterates over the cursor
on the UI thread.  Since we actually do the fetch
on moveToFirst or moveToNext, the query is in reality
often run on the UI thread and causes an ANR.

Change-Id: Ia561135e974a44ad3e3774ecb23c6a3d0fc38176
2010-03-24 13:35:03 -07:00
Patrick Scott
dbde425e21 Use the Display orientation rather than the accelerometer.
Register to receive configuration changes and query the Display rotation as that
will reflect both device orientation and an open keyboard.

Bug: 2219138
Change-Id: Ibd6119ae0c7d473e1a9ede3af24bb4b584c9db71
2010-03-24 16:03:56 -04:00
Leon Scroggins
e77852c885 Do not provide a way to use an AsyncTask from a non main thread.
Fix for http://b/issue?id=2539948

This public API can be called from any thread, so do not use an
AsyncTask.  In a separate changelist, the caller now uses an
AsyncTask instead.

Change-Id: I646950964323f8c749f9aa2176226561c6f2b21f
2010-03-24 15:11:13 -04:00
Dianne Hackborn
241cd54d7f Merge "Maybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor() killed the phone process" 2010-03-24 12:10:31 -07:00
Steve Block
ea08c51354 Fixes XHR requests to use the username and password supplied from JavaScript
Currently, the browser does not use the credentials supplied from JavaScript.
If a request returns a 401 Unauthorized, the browser always prompts the user.
This violates http://www.w3.org/TR/XMLHttpRequest/#the-send-method

Bug: 2533522
Change-Id: I8e72c1a0be187d193c4ad6b2ca8a624c7ae06fa1
2010-03-24 18:22:32 +00:00
Steve Block
c76bfa5bb5 Fixes synchronous XHR requests which require authentication to complete synchronously
Bug: 2540515
Change-Id: I58eebdf2db9388f66c75d86dc26b8055f513b038
2010-03-24 17:49:42 +00:00
Brad Fitzpatrick
722802e76b Log database lock contention as well (as seperate pseudo-queries).
This also makes the 500ms logging threshold (over which is always
logged, and under which is sub-sampled) configurable via a
SystemProperty, which is mostly useful for interactive debugging when
lock contention is suspected, but could also be useful in the future
as a quick way to adjust this threshold for dogfooders, without code
changes.

Change-Id: I769069d8d870331d89a4aa3239ba50db806fe4d4
2010-03-24 10:45:58 -07:00
Fred Quintana
1f343ebed1 Merge "fix bug where sync settings set lost upon upgrade from donut and eclair to froyo" 2010-03-24 10:39:28 -07:00
Fred Quintana
fb084400d6 fix bug where sync settings set lost upon upgrade from donut and eclair
to froyo

- intepret a missing syncavble attribute from donut as "unsynced"
  rather than the traditional "true"
- copy the sync settings from the authorities "contacts" and "calendar"
  to "com.android.contacts" and "com.android.calendar" if the latter
  don't already have settings
- delay the database cleanup until after boot completed, which will give
  the GoogleLoginService accounts migration code a chance to run; this
  was causing all the settings to get removed upon a donut to froyo upgrade

Change-Id: I8795e97ba0c9b930d1a50784229ca9ab15dff9d2
http://b/issue?id=2531359
2010-03-24 10:37:40 -07:00
Vasu Nori
cbac8ac6d4 Merge "when corruption occurs, log a warning before closing db" 2010-03-24 10:11:19 -07:00
Suchi Amalapurapu
b43bdf41f1 Merge "Add new activity manager method to get list of running applications installed on sdcard. Use new method in UsbStorageActivity. Fix moving dex files. moveDex should be suffixed with LI since it uses Installer" 2010-03-24 08:34:31 -07:00
Leon Scroggins
1bb1a911c3 If failUrl(now historyUrl) is null, use "about:blank" instead of "".
This prevents a crash that is caused by calling
WebView.loadDataWithBaseUrl with a null failUrl (which I have renamed
to historyUrl).  Also update the docs to be more accurate.

Fixes the general case of bug 2522457

Change-Id: I832351ce1e0016b00e924a2f9b0097ae15fba34a
2010-03-24 10:25:40 -04:00
Leon Clarke
7f49b9e474 Merge "Fix for when flash loads cached crossdomain.xml files. Cache the x-permitted-cross-domain-policies header. http://b/issue?id=2519669" 2010-03-24 05:09:53 -07:00