24880 Commits

Author SHA1 Message Date
Dianne Hackborn
ba24e4d8bb Fix issue #5229575: Youtube link shared through messaging is not...
...opening after selecting option "Youtube" as a luncher.

Also:

* Tweak window animations so that the wallpaper exist animations do not
stop too early (causing the wallpaper to suddenly disappear).
* Make sure no input is being processed while booting, to avoid
accidentally doing things especially in the upgrade dialog.
* Some other small cleanup.

Change-Id: I40a6b53731991d4e31ac4502e3d85f0e47507481
2011-09-01 12:39:17 -07:00
Robert Greenwalt
cccdd721e9 Make WRITE_APN_SETTINGS a system-only permission.
Protects us from apps getting packet snooping ability
(ie, routing all your traffic through their server by
modifing your APN settings).  We may eventually revert this
if/when we have time to provide a proper API and scary UI
like VPN has.

bug:5242750
Change-Id: I71d73807ca5268c6aacc2156839b4d11427048c4
2011-09-01 12:30:47 -07:00
Erik Pasternak
31f8e91028 Merge "Revert "Fixed the problem with the calendar sort order using the column name"" 2011-09-01 12:26:14 -07:00
Erik Pasternak
07d5caaba6 Revert "Fixed the problem with the calendar sort order using the column name"
This reverts commit 9fd17460a73c46ea1c3d2174555cfcc0886ca112
2011-09-01 12:26:00 -07:00
John Reck
45576fae46 Fix destroy race condition
Bug: 5246901

Change-Id: I97a211b23afb17314d7a37779593556529be7e32
2011-09-01 11:50:19 -07:00
Gilles Debunne
8a16f92270 Merge "Using ListView for Suggestion popup window" 2011-09-01 11:42:23 -07:00
Fabrice Di Meglio
8b5a8b5bed Merge "Code cleaning" 2011-09-01 11:41:42 -07:00
John Reck
90afe21dbb Prevent serialization after being destroyed
Bug: 5246900

Change-Id: Ic0be139b26e1b52203b8d0286c12175df6a1a46c
2011-09-01 11:39:37 -07:00
Svetoslav Ganov
6a13dd5544 Merge "Accessibility hover events are fired if hover otside of modal window." 2011-09-01 11:27:37 -07:00
John Reck
39bb698cd2 Partial rollback of I9ebc92dc
Bug: 5239166
 Turns out nativeRecordButtons is necessary even if we are not
 using the native selection rings.

Change-Id: I8e7713928b77c0098640b51ce8e8815dad0c9545
2011-09-01 11:05:03 -07:00
Mangesh Ghiware
b5f9fc32ec Set reading level scale to display density instead of a fixed minimum.
On a double tap, zoom to either reading level scale or 0.5f more than
current (overview) scale, whichever is greater. This addresses the
scenario for large screen devices where overview and reading level scale
are the same.

Bug: 5165527
Change-Id: I50216d60f98b2904f06742336b9c8c7c512328a6
2011-09-01 10:49:04 -07:00
Michael Chan
9fd17460a7 Fixed the problem with the calendar sort order using the column name
Change-Id: Ib50e0a10f001d1b5626e460fecaefff6d6a2a308
2011-09-01 10:46:14 -07:00
Dianne Hackborn
ec8917dccb Merge "Increase orientation settle time. Bug: 4981385" 2011-09-01 10:44:17 -07:00
Ben Murdoch
ea24a4015a Merge "Preload libchromium_net in addition to libwebcore." 2011-09-01 10:40:29 -07:00
John Reck
6c859576ad Merge "Draw text selection in Java" 2011-09-01 08:43:30 -07:00
Wu-cheng Li
98bb251c8b Add video snapshot camera parameter.
The API is still hidden.

bug:5187868

Change-Id: I59e1b5774ca32be049723d1a0887faa90d8884bb
2011-09-01 13:37:14 +08:00
Jeff Brown
7552c044fc Increase orientation settle time.
Bug: 4981385

Improves noise tolerance and reduces the chance of mispredicted
orientation changes.

Change-Id: I27f2c05a981ae93b0de41c542d41377b2ea25450
2011-08-31 22:22:24 -07:00
Svetoslav Ganov
4c1c101a91 Accessibility hover events are fired if hover otside of modal window.
1. Added a check whether the received hover event is in the bounds
   if the view before sending accessiiblity hover events. Hence, if
   a widnow gets a hover event and it gets to its topmost view the
   latter will not fire an accessibility event.

bug:5233588

Change-Id: I61e81fbf0ce59a7f57377262ce066bcf8db98f56
2011-08-31 20:14:41 -07:00
Ben Murdoch
492bbe3f7b Preload libchromium_net in addition to libwebcore.
To improve WebView app startup time, preload libchromium_net which
was recently split from libwebcore into its own shared library.

Bug: 5112647
Change-Id: I4417d5a4f8c7783e8fa7b8eaddf89aaeb3693fac
2011-09-01 03:33:43 +01:00
Fabrice Di Meglio
7d892dcc8a Code cleaning
- remove unused constant
- fix spelling

Change-Id: I0053129b33c2ee472db84e14d4b2ace5d97d20a8
2011-08-31 19:31:51 -07:00
Fred Quintana
bf3c634dc5 Make the SyncManager timeout syncs if it takes too long to bind to them.
Bug: 5222661
Change-Id: Ia6b995744860a27d13ad1ee64fa06bef137b7731
2011-08-31 18:04:27 -07:00
Robert Greenwalt
2d012c128f Merge "Create new isNetworkSupported API" 2011-08-31 17:44:50 -07:00
John Reck
086a514e6b Draw text selection in Java
Bug: 5208328
 Bug: 5224394
 Also use framework assets

Change-Id: If704fd7df5aa95648d78e615571d4a2658d29534
2011-08-31 17:09:44 -07:00
David Brown
93d77b633e Don't log PII when launching intents with "sms:" or "sip:" URIs
We were already redacting phone numbers from "tel:" and "smsto:" URIs.

Now, do that for "sms:" and "sip:" too, since those schemes are equally
likely to contain PII in the scheme-specific part.

TESTED: Received incoming call; selected "Respond via SMS" -> "Custom
        message"; confirmed no PII in the system log.

Bug: 5244735
Change-Id: If2444c8901249aac9fd8e6b809d6da01db2e27c1
2011-08-31 17:04:17 -07:00
Jeff Brown
b695741330 Merge "Fix JNI leak in copyStringToBuffer Bug: 5244396" 2011-08-31 16:55:08 -07:00
Robert Greenwalt
9b2886e243 Create new isNetworkSupported API
Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
2011-08-31 16:53:12 -07:00
Adam Powell
5a0a47a006 Merge "Make EdgeEffect public API." 2011-08-31 16:11:45 -07:00
Jeff Brown
f786b6ca5d Fix JNI leak in copyStringToBuffer
Bug: 5244396

Code was acquiring the char array twice for FIELD_TYPE_INTEGER
or FIELD_TYPE_FLOAT but only releasing it once.

Removed the redundant calls to GetCharArrayElements.

Change-Id: If767d3295d5a663a823e5ca0cd979379a3ccd024
2011-08-31 16:09:24 -07:00
Adam Powell
89935e41c5 Make EdgeEffect public API.
This enables apps to make use of the system's visual edge effect used
during overscroll in 2D content.

Also un-@hide the getCurrVelocity methods from Scroller/OverScroller,
without which it becomes cumbersome to obtain values to pass to the
EdgeEffect#onAbsorb method.

Change-Id: I40e452455f5cb5d45d1fb3687f739fc8eae65560
2011-08-31 14:59:19 -07:00
Peter Ng
9c1b694df4 Merge "Switches now have checked state" 2011-08-31 14:28:23 -07:00
Dianne Hackborn
d040edbae9 Use floating point window positions.
Gets rid of gapps between windows during animations.

Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
2011-08-31 14:18:32 -07:00
Makoto Onuki
630f6b1cf8 Add AbstractCursor.setExtras()
This allows providers to return SQLiteCursor with a bundle, without wrapping
it in a CursorWrapper, which has performance penalty on cross-process
queries.

Bug 5220669

Change-Id: I46b9dfb3d8e01e9caf080bb24acfd97551441e25
2011-08-31 14:17:55 -07:00
Fabrice Di Meglio
be566b488a Merge "Fix bug #5243493 TextView selection is not working correctly when there is some RTL run into it" 2011-08-31 14:14:11 -07:00
Fabrice Di Meglio
3716601573 Fix bug #5243493 TextView selection is not working correctly when there is some RTL run into it
- make the selection green highlight work

Change-Id: I4e3b88e3720288f973b1b9e68afa8f800ad13779
2011-08-31 13:56:37 -07:00
Nick Pelly
4684857479 Merge "NFC API updates." 2011-08-31 13:24:14 -07:00
Jeff Brown
9d4bc852ea Merge "Fix input channel leak. Bug: 5156144" 2011-08-31 13:01:16 -07:00
Adam Powell
07a047fdd6 Fix bug 5220390 - action bar title metrics
Adjust action bar title layout metrics to match UX specs.

Refresh new metrics properly after a config change.

Change-Id: If19fad837ca2919193d4a3a8eb01c1caff68ca67
2011-08-31 11:36:02 -07:00
Gilles Debunne
0eea668151 Using ListView for Suggestion popup window
New background assets from Bug 5204807.
New text selection color and associated handles, bug 5217848.

Change-Id: I4eaea6be732843d8ff344400d029b4a1b80b084f
2011-08-31 11:18:52 -07:00
satok
bfe561c54a Merge "Add a comment for setAdditionalInputMethodSubtypes" 2011-08-31 08:43:59 -07:00
satok
75917b603f Add a comment for setAdditionalInputMethodSubtypes
Change-Id: I3a19471b80a6f8a68473cba6f0fc934bd052af10
2011-09-01 00:33:40 +09:00
satok
0158a1e9ff Add a functionality to disable the spell checker
Change-Id: I1c2292f457d1911c149d594c175e638c92ad3917
2011-08-31 21:15:17 +09:00
Narayan Kamath
5b8f29d077 Merge "Change the heuristics for waiting for audiotracks to finish." 2011-08-31 03:53:03 -07:00
satok
b669d6d8d8 Improve the fallback of the locale of the spell checker
Change-Id: I79655dd13e60f221b07346596fb05cf7d3d5cf7d
2011-08-31 18:07:06 +09:00
Peter Ng
6cb074156e Switches now have checked state
Bug: 5238933
Change-Id: I1ceca648f57d239c9c0935d4c8d2b129063fec04
2011-08-30 23:08:03 -07:00
Jeff Brown
cc4f7db698 Fix input channel leak.
Bug: 5156144

Input channels could leak or simply live longer than they should
in some cases.

1. Monitor channels (used by the pointer location overlay) are never
   unregistered, so they would leak.

   Added code to handle failures in the receive callback by closing
   the input channel.

2. The DragState held onto its input window and application handles
   even after the input channel was disposed.

   Added code to null these handles out when they are no longer needed.

3. Input channels previously used as input event targets would stick
   around until the targets were cleared (usually on the next
   event).

   Added code to detect when the input dispatcher is in
   an idle state and to proactively clear the targets then
   to ensure that resources are released promptly.

4. Native input window handles held onto the input channel even
   after the input window was removed from the input dispatcher.
   Consequently, the input channel would not be disposed until
   the input window handle itself was freed.  Since the input
   window handle is held from managed code, this meant that the
   window's input channel could stick around until the next GC.

   Refactored the input window handle to separate the properties
   (info) and identify (handle) state into different objects.
   Then modified the dispatcher to release the properties (info)
   when no longer needed, including the input channel.

7. The pointer location overlay does not actually use its
   standard input channel, only the monitor input channel.

   Added INPUT_FEATURE_NO_INPUT_CHANNEL to allow windows to
   request that they not be provided with an input channel
   at all.

Improved some of the error handling logic to emit the status
code as part of the exception message.

Change-Id: I01988d4391a70c6678c8b0e936ca051af680b1a5
2011-08-30 21:40:28 -07:00
Nick Pelly
82328bfd40 NFC API updates.
o NfcAdapter.set*(): enforce at least one activity is provided at compile time.
o Unhide and update javadoc for some API's scheduled for ICS release.

Change-Id: I2bf4ea101442dcdeb359be26d3869f82e6e3748b
2011-08-30 21:16:32 -07:00
Mathias Agopian
c21843a8b5 Merge "fix Surface positions are not floats" 2011-08-30 19:24:04 -07:00
Mathias Agopian
34cb9f2a96 fix Surface positions are not floats
Added Surface.setPosition(float, float) which allows to set a surface's
position in float.

Bug: 5239859
Change-Id: I903aef4ad5b5999142202fb8ea30fe216d805711
2011-08-30 18:51:54 -07:00
Svetoslav Ganov
57df88bc94 Cleaning up the accessibility of MultiWaveView
Change-Id: I13bd71670b38a917d62118ddef5ed6982c9eba99
2011-08-30 18:15:07 -07:00
Adam Powell
282e377d8b Ellipsize marquee TextViews that aren't currently animating
On some devices the fading edge effect can be expensive. Offer an
alternative for screens full of textviews.

Change-Id: I0382b4ea0f8b0c6948cb68611f3679dbf5e2898a
2011-08-30 17:35:15 -07:00