36478 Commits

Author SHA1 Message Date
Patrick Dubroy
eb4e475d94 Merge "Reduce amount of garbage created when flipping StackViews" 2010-11-16 17:02:29 -08:00
Chris Tate
44ab8453e1 Permission fix: don't require BACKUP perm for self-restores
The public API is not supposed to require the BACKUP permission in order
for an application to restore its own last-known-good backup data.  However,
as currently implemented, BackupManager.requestRestore() [the public API
in question] depends on private Backup Manager methods that *do* enforce
that permission.  The net result is that the method cannot be successfully
used by third party applications: it will throw an exception if attempted.
This CL restructures the permission checking involved.

First, the underlying beginRestoreSession() operation can now be passed a
'null' transport name; if this is done, then the restore session is begun
on whatever the currently-active transport is.  Looking up the name of the
active transport is one of the permission-guarded actions that was required
with the initial implementation.

Second, a package name can now be passed to beginRestoreSession().  If
this is done, then the restore session can only be used to perform a
single-package restore of that one application.  The BACKUP permission is
not required if the caller is tying the restore to its own package name.

In combination, these changes permit BackupManager.requestRestore() to
function without the calling app needing to hold any special permission.
The no-permission case is intentionally quite narrow:  the caller must
hold the permission unless they both (a) pass 'null' for the transport
name, thereby accepting whatever the currently active transport is, and
(b) pass their own package name to restrict the restore session only
to their own app.

External bug http://code.google.com/p/android/issues/detail?id=10094
Internal bug 3197202

Change-Id: Ibc9d652323f2da03727d850f991b4096af6520d2
2010-11-16 16:57:29 -08:00
Costin Manolache
aa3e778b0e Merge "Remove notifications for account when account is removed." 2010-11-16 16:54:45 -08:00
Amith Yamasani
7eea0f18b4 Merge "3049240 TalkBack on Accessibility Options reads out passwords entered in during Lock screen" 2010-11-16 16:47:40 -08:00
Svetoslav Ganov
1d1e1105ad 3049240 TalkBack on Accessibility Options reads out passwords entered in during Lock screen
Change-Id: I70b29611d798df1da10e0e950154ef5f49aba7c5
2010-11-16 16:44:03 -08:00
Svetoslav Ganov
9b756acfbd Metakeys incorrectly delivered to JavaScript
Change-Id: I373eee0c4eb44c2dfd1e8534f5cb241e0c04a473
2010-11-16 16:37:37 -08:00
Gilles Debunne
162bf0f1b9 Fix for IOOBoundsExc in SpannableStringBuilder
Bug 3182953

Change-Id: Idc7faa86b8250bf325e2547d7d4c094300a06686
2010-11-16 16:23:55 -08:00
Patrick Dubroy
e80202d5c3 Reduce amount of garbage created when flipping StackViews 2010-11-16 16:23:44 -08:00
Wink Saville
0dcea08af3 Merge "Cleanup some debug output." 2010-11-16 16:15:36 -08:00
Wink Saville
e613adcc55 Cleanup some debug output.
Change-Id: Iac39e7ffb1f7409647ce112f9347c42d2909846a
2010-11-16 16:11:41 -08:00
Costin Manolache
ec0c4f4183 Remove notifications for account when account is removed.
Change-Id: I21b5d757231401c10c922443cecd04b68f922c0b
2010-11-16 16:08:22 -08:00
Andreas Huber
66b8994ed2 Merge "Support post-decode video rotation." 2010-11-16 16:03:25 -08:00
Dianne Hackborn
05434e9fa7 Final API 9. Really! Honestly! I hope.
Change-Id: I2ee5844587b5745556d621e4b9ef0efa3ec5edcf
2010-11-16 15:40:56 -08:00
Andreas Huber
940c866c99 Support post-decode video rotation.
Change-Id: I9ac90871269c5e132e98a9bf3ad8cae00f329f17
2010-11-16 15:26:30 -08:00
Gil Dobjanschi
3ee66f7b34 Merge "Invalidate transitions when the start time or duration of an effect or overlay changes." 2010-11-16 15:26:01 -08:00
Adam Powell
3afce6687c Merge "Improve docs around ActionBar as noted in bug 3111444." 2010-11-16 15:12:41 -08:00
Adam Powell
ef70444768 Improve docs around ActionBar as noted in bug 3111444.
Rename method that was missed in previous ActionBar
refactoring. Deprecated previous version for compatibility for apps in
development.

Change-Id: I2c466aed8ed620aec5056026257e131fadf8843e
2010-11-16 15:08:35 -08:00
Andreas Huber
840f1263b3 Merge "Apparently SystemProperties jni native support must now be registered before Binder's." 2010-11-16 14:50:40 -08:00
Andreas Huber
a8079bfb9a Apparently SystemProperties jni native support must now be registered before Binder's.
Change-Id: Ia7197f41052c4d47dbecec400a7c789317f743a0
2010-11-16 14:48:44 -08:00
Jason Sams
db42351b0f Merge "Fix crash with extended debugging." 2010-11-16 14:24:40 -08:00
Gilles Debunne
c50f1505aa Merge "Multiline EditText have top and bottom brackets to differentiate from single line." 2010-11-16 14:11:17 -08:00
Andreas Huber
f4726a22c8 Merge "Remove all traces of legacy renderer support in stagefright." 2010-11-16 13:59:02 -08:00
Brad Fitzpatrick
c5f99f39c6 Merge "Fix more things that CloseGuard found." 2010-11-16 13:50:07 -08:00
Jeff Sharkey
4bd1a3dbca Show Bitmap.Config value when unable to handle.
Part of investigating http://b/3201172.

Change-Id: I76a31c968b4c60beb079349a0722aa9a4ea5921c
2010-11-16 13:47:37 -08:00
Brad Fitzpatrick
ba22d21c3a Merge "Fast no-op path for StrictMode.Span on user builds." 2010-11-16 13:33:06 -08:00
Adam Powell
0046bd8ea6 Fix bug 3192412 - ListView doesn't reportScrollStateChange properly
for programmatic scrolls

Allow for onScrollStateChanged implementations that end up changing
scroll state again.

Change-Id: I53105f5be708bacc0d3ec8e76ba1cc22f4131467
2010-11-16 13:28:27 -08:00
Andreas Huber
c23dabfb20 Remove all traces of legacy renderer support in stagefright.
Change-Id: I17b8e0dbf53fca37c96830c41131b4bc0c24ca6d
2010-11-16 13:05:53 -08:00
Brad Fitzpatrick
1181cbbfd7 Fast no-op path for StrictMode.Span on user builds.
Change-Id: I3eb75288d670a8ac1e10547715d8c1a855a5fdc9
2010-11-16 12:46:16 -08:00
Jason Sams
7a21ee6148 Fix crash with extended debugging.
Change-Id: I982a7c7ea7ccae074be5254032c43a862137747a
2010-11-16 12:19:37 -08:00
Gilles Debunne
fe4d5defd0 Multiline EditText have top and bottom brackets to differentiate from single line.
Change-Id: Iab6da75e7a823018221399c0b03dd47f7f768f21
2010-11-16 12:01:16 -08:00
Gil Dobjanschi
f1d8f2a140 Invalidate transitions when the start time or duration of an effect or overlay changes.
Change-Id: Ibc4d80e92ff46b4ecabed5b998f5b0f2c9ca3473
2010-11-16 11:37:08 -08:00
Mike Lockwood
af376a5427 Merge "MediaScanner: Always use mime type provided to the media scanner" 2010-11-16 11:16:03 -08:00
Andreas Huber
7a218d7a3a Merge "Make sure live streamed http live content does not start playing from the very beginning." 2010-11-16 11:13:43 -08:00
Dianne Hackborn
3a57fb9e9c Fix issue #3191573: PreferenceFragment.onActivityResult cannot
launch a new fragment on the same call.

There were some problems with the API design where you could do
things in such a way that a back stack entry that was not at the
top would get popped.  Ouch.  Hopefully this change prevents that
from being able to happen.

Change-Id: I8cbc952e12ddd231ff6c84b6e9bbf5125f449f04
2010-11-16 10:50:31 -08:00
Eric Rowe
248caac22e Merge "Remove asserts in bluetooth test utils" 2010-11-16 10:41:11 -08:00
Eric Rowe
16013b37cb Merge "Add acceptPair method to BT stress." 2010-11-16 10:39:24 -08:00
Andreas Huber
8c7cb61cff Make sure live streamed http live content does not start playing from the very beginning.
The different bandwidth streams may not all start on the same seqnum, so switching bandwidths may fail lateron if we start playing from the very beginning.

Change-Id: I03df8d1f44b3f7b4713d381a3d97847997e3ee59
related-to-bug: 2368598
2010-11-16 10:32:13 -08:00
Adam Powell
850a4c6688 Merge "Fix bug 3198503 - NPE at MenuPopupHelper.dismiss" 2010-11-16 10:27:54 -08:00
Jean-Michel Trivi
8f677d66d9 Add new audio mode for audio communications other than telelphony.
The audio mode MODE_IN_CALL signals the system the device a phone
 call is currently underway. There was no way for audio video
 chat or VoIP applications to signal a call is underway, but not
 using the telephony resources. This change introduces a new mode
 to address this. Changes in other parts of the system (java
 and native) are required to take this new mode into account.
The generic AudioPolicyManager is updated to not use its phone
 state variable directly, but to use two new convenience methods,
 isInCall() and isStateInCall(int) instead.

Change-Id: Id744cd26520ea1d1a4795eabe6a1f0c58789af76
2010-11-16 10:23:37 -08:00
Adam Powell
ed8b403cc8 Fix bug 3198503 - NPE at MenuPopupHelper.dismiss
Make sure dismiss() can be called even when the popup is not currently
showing.

Change-Id: I48077d8b3bfe0df04bceeb056ed54cbd79a6e660
2010-11-16 10:22:35 -08:00
Adam Powell
75663ceec4 Merge "Add protection for ActionMode-related window callbacks that may not implement new methods." 2010-11-16 10:18:04 -08:00
Brad Fitzpatrick
f342ac9182 am 8443dd16: am 383e95e2: Merge "DropBox: Read until the end of stream has been reached"
* commit '8443dd16c2dfd5f56e33fbe76129f56e6a83b23e':
  DropBox: Read until the end of stream has been reached
2010-11-16 09:40:52 -08:00
Brad Fitzpatrick
8443dd16c2 am 383e95e2: Merge "DropBox: Read until the end of stream has been reached"
* commit '383e95e245ceb87a2a6ad6422404ce641f0e08eb':
  DropBox: Read until the end of stream has been reached
2010-11-16 09:37:56 -08:00
Brad Fitzpatrick
383e95e245 Merge "DropBox: Read until the end of stream has been reached" 2010-11-16 09:22:31 -08:00
Xia Wang
4e74e181d1 am f55c9736: am d0a8f54a: Merge "Add Wi-Fi connection functional tests." into gingerbread
* commit 'f55c973637f2b17de0f5543260e7e409a8635112':
  Add Wi-Fi connection functional tests.
2010-11-16 09:18:48 -08:00
Xia Wang
f55c973637 am d0a8f54a: Merge "Add Wi-Fi connection functional tests." into gingerbread
* commit 'd0a8f54a5bcd6a10eaaa88d888c3cbb83869532c':
  Add Wi-Fi connection functional tests.
2010-11-16 09:16:54 -08:00
Xia Wang
d0a8f54a5b Merge "Add Wi-Fi connection functional tests." into gingerbread 2010-11-16 09:14:46 -08:00
Mike Lockwood
858caeaaa1 MediaScanner: Always use mime type provided to the media scanner
BUG: 3179926

Change-Id: Ib94aea43b83658e3ab31c5eacf7a5135cd14822a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-11-16 11:28:42 -05:00
Cary Clark
21a97ef9f2 make tap initiated scrolls more reliable
Programmatic scrolls fail when the scroll has not had a chance
to start. In this case, the current position equals the last
position; the logic erroneously cancels the scrolls, assuming
that in this case the scroll has finished.

Also, new scrolls should cancel the old velocity whether they
are animated or not.

This has a companion change in external/webkit, which is not
required, but makes tap initiated scrolls work more reliably.

bug:1331125
bug:3099569
Change-Id: I80ae8e8cdefce2d8d09532f79d1b2e1ae4738fa6
2010-11-16 10:22:11 -05:00
Christian Lindeberg
e9f1881521 DropBox: Read until the end of stream has been reached
Read the requested length or until the end of the input stream
has actually been reached.

Change-Id: I01bc0b81eca0225209bdd288dde6a778a19d1e2c
2010-11-16 09:57:54 +01:00