19705 Commits

Author SHA1 Message Date
Dianne Hackborn
2ee89ea288 Applications should -not- be able to set preferred activities.
I can't believe I let this slip through.  And in the SDK no less. :(

The APIs for setting preferred activities will now throw a security
exception when used.  This may break some apps, we'll see how it
goes.  If it is too bad we can just make these log and not throw
anything, but I would much prefer they throw an exception.

Change-Id: I3aed434750eef8b202aa9d5bd774a0121be521c6
2010-03-10 21:26:23 -08:00
Yu Shan Emily Lau
d8929fa768 Merge "Modified the expected metadata result as the behavior of Stagefright." 2010-03-10 19:11:38 -08:00
Yu Shan Emily Lau
a6f9e38b7f Modified the expected metadata result as the behavior of Stagefright.
Change-Id: Id86e262f0d3375eeda68d5df04e4ebd2f21ffc4f
2010-03-10 19:03:56 -08:00
Omari Stephens
d2a2daaa89 Fix small typo in javadoc: "deleting" -> "updating"
Change-Id: Ie0464aa92d33eb5b076a8122f5bd6317fd44a7b2
2010-03-10 18:54:49 -08:00
Eric Fischer
26779e7e82 Merge "Don't break lines in the middle of a smiley or other graphic replacement." 2010-03-10 17:59:48 -08:00
Fabrice Di Meglio
1dfc8a2518 Fix bug #2493102 (Sync keeps getting stuck, or at least very slow)
- use sql bindargs and extract usefull sql statements
- code cleaning and formatting

Change-Id: I717bf063b3f009e7369b70618f834d780ad6baa3
2010-03-10 17:49:46 -08:00
Robert Greenwalt
94d4b034ad Merge "Disable USB Tethering when UMS is active" 2010-03-10 17:24:46 -08:00
Andreas Huber
fb1eb6fbc9 Reduce buffer sizes related to HTTP media data transfer in order to reduce the probability of a connection timeout/reset due to long periods of time between socket activity.
Change-Id: I799ce1d58d56a31088a89603d8a18d24780f5b57
related-to-bug: 2492187
2010-03-10 17:12:01 -08:00
Amith Yamasani
6c604690ac Merge "Fixing bug 2411394 - Monkey crash due to incorrect test service manifest" 2010-03-10 17:02:40 -08:00
Dan Egnor
ff34fc2b45 Merge "Fix rare NPE in DropBoxManagerService" 2010-03-10 16:53:15 -08:00
Robert Greenwalt
b9e1ed2b80 Merge "Make HiPri work when already connected." 2010-03-10 16:52:27 -08:00
Robert Greenwalt
030f5e18df Disable USB Tethering when UMS is active
Make the tethering module aware of UMS.

bug:2469818
Change-Id: I29995812db41bf01a17c303f31fd1707a8d55328
2010-03-10 16:51:35 -08:00
Dianne Hackborn
c3243e242d Merge "Further improvements to window management!" 2010-03-10 16:51:13 -08:00
Dan Egnor
f283e36210 Fix rare NPE in DropBoxManagerService
Change-Id: I2e9713802c59feb539d5d4c1ab1dfa21ec88d9f6
2010-03-10 16:49:55 -08:00
Dianne Hackborn
b8b11a0b1d Further improvements to window management!
Fix issue #2493497: Stuck in the Emergency dialer - Home/Back keys doesn't work
This was another case of not updating the window focus when needed, this time
when the lock screen was hidden.

Also re-arrange the layout/animate flow to address issues where you would see
a flicker of whatever was behind the lock screen when showing a new activity that
hides the lock screen.  This was because we were deciding to hide the lock screen
during the layout phase, which meant we had to do it without considering whether
it had drawn.  So we could hide the lock screen before the window is shown for the
first time after being drawn.  Now we can do this in the policy during animate, so
we can wait until the window is drawn and actually being shown.

The flow in perform layout is thus significantly changed, where the layout and
animate loops are both under the same repeating loop.  The actual flow from this
should be the same, but it now allows the policy to request a new layout after
the animation loop is done.  This actually cleans up a number of things in this
code as the complexity has increased.

Finally this includes a change to the ui mode manager when switching modes, to do
the resource configuration switch at a different time.  This makes transitions
between modes much cleaner (though not yet perfect).

Change-Id: I5d9e75c1e79df1106108dd522f8ffed6058ef82b
2010-03-10 16:47:57 -08:00
Irfan Sheriff
0f34406009 Clean up native access from framework
Driver commands should be issued when driver has started.
Supplicant commands should be issued when Wi-Fi is enabled
Bug: 2339709
Bug: 2371609
Change-Id: I9ba6ddfa0cf4c4b8ca049b0eb7eaaa8edb42bad1
2010-03-10 16:42:23 -08:00
Erik
191bbafacc Merge "Noticed comment field when splitting guests wasn't being cleared." 2010-03-10 16:29:44 -08:00
Joe Onorato
6a5f5ad6be Merge "use ifContentScrolls in the windowshade" 2010-03-10 16:27:50 -08:00
Joe Onorato
02a5cd13b7 use ifContentScrolls in the windowshade
Change-Id: Ia261e60233cc6dd23d0fcf8459ed8f17597e8448
2010-03-10 16:26:35 -08:00
Robert Greenwalt
78a640af95 Make HiPri work when already connected.
A recent change made the HiPri MobileDataStateTracker listen for notifications
about the default connection (which HiPri shadows).  Local code was sending
itself a notification using the old HiPri badging instead of the new Default
badging and those notifications where therefore ignored.

Manifested itself on HiPri connections when we were already on 3g.

See change 42422 on master platform/frameworks/base for the change this is completing.

Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
2010-03-10 16:19:18 -08:00
Nicolas Catania
88f3b81d06 Allow invoke in all the player states except idle and error.
Previously invoke would work only after prepare but not
when the player is in play or pause state (for instance).
This new change just check that the player has been initialized
and is not in the error state.

Bug:2488931

Change-Id: I7a69d1b6e3eec1e5dbdf7378ff2085329062595a
2010-03-10 16:17:30 -08:00
Suchi Amalapurapu
5e1573601b Merge "Dont include code size for apps on sdcard. Use constants defined in PackageHelper for user preferences to install auto, internal, external. Set default install location to external. Update settings db version number" 2010-03-10 16:15:35 -08:00
Suchi Amalapurapu
089262dc02 Dont include code size for apps on sdcard.
Use constants defined in PackageHelper for user preferences
to install auto, internal, external.
Set default install location to external.
Update settings db version number

Change-Id: Ib5110c9377990e20a48cee923e55898dfddfd1e6
2010-03-10 16:08:51 -08:00
Svetoslav Ganov
49274c7239 Fixing bug 2411394 - Monkey crash due to incorrect test service manifest
Change-Id: I81f7b29f98d22f9d587cd056bc3ce4a86a41a18a
2010-03-10 15:51:01 -08:00
Eric Fischer
de61f78340 Don't break lines in the middle of a smiley or other graphic replacement.
The code that was supposed to keep this from happening was not being
executed when the text was all ASCII.

Bug 1899722

Change-Id: Ifc97a4423d6136e19abbc4c82eb36ac0216ce415
2010-03-10 14:51:09 -08:00
Fred Quintana
8af295af91 Merge "check if the binding to the authenticator has been disconnected during the GetAccuintsByTypeAndFeature operation and abort if it has been, thus avoiding an NPE" 2010-03-10 14:08:29 -08:00
Fred Quintana
29e94b81c7 check if the binding to the authenticator has been disconnected
during the GetAccuintsByTypeAndFeature operation and abort
if it has been, thus avoiding an NPE

Change-Id: I7f707c7b0a1bdf80c0de9dfa7a3ae32323d623de
http://b/2497196
2010-03-10 13:45:05 -08:00
Fred Quintana
3802141d17 Merge "make the syncmanager keep track if whether a service has been unbound from so that it knows whether to call unbind at a later time" 2010-03-10 13:41:44 -08:00
Andreas Huber
e38cd3926d Merge "Extend stagefright tool to extract either album art or video frame." 2010-03-10 13:33:51 -08:00
Nick Kralevich
e182a92ae4 Merge "Don't rely on the system locale for converting to/from bytes." 2010-03-10 13:11:46 -08:00
Amith Yamasani
c357df1261 Merge "Fixing bug 2502522 - Accessibility events contain text of invisible views" 2010-03-10 12:53:20 -08:00
Romain Guy
80ea00c839 Fix the build.
Change-Id: I7ed20f3d2fb1a80974fbbfe42fdd2f8f135ee401
2010-03-10 12:40:04 -08:00
Fred Quintana
3ec4730e37 make the syncmanager keep track if whether a service has been unbound
from so that it knows whether to call unbind at a later time

Change-Id: Ida0d4b06454909d84380e2336fcc238834d292bc
http://b/2492397
2010-03-10 12:38:10 -08:00
Dianne Hackborn
7717beed37 Merge "Fix: Polished icons for car mode notification" 2010-03-10 12:26:40 -08:00
Daniel Sandler
8957da23aa Merge "Add VIBRATE_IN_SILENT to the settings database & backup." 2010-03-10 12:03:07 -08:00
Daniel Sandler
1c7fa4836b Add VIBRATE_IN_SILENT to the settings database & backup.
Change-Id: Id31e24ef0536278ccb66b22bba7ed2b47eb1a371
2010-03-10 15:01:25 -05:00
Svetoslav Ganov
be75659485 Fixing bug 2502522 - Accessibility events contain text of invisible views
Change-Id: I0eccc82ad9f3139e46942cb61212bb83f992c173
2010-03-10 11:51:20 -08:00
Kenny Root
7c5ce236a0 Merge "Revert "Dedupe resource config pointers"" 2010-03-10 11:39:12 -08:00
Kenny Root
774562275f Revert "Dedupe resource config pointers"
This reverts commit 7b467d8b44c00d14590c021928b6a9ad5a36348e.
2010-03-10 11:38:05 -08:00
Nick Kralevich
34c47c8558 Don't rely on the system locale for converting to/from bytes.
By default, when java converts Strings to bytes, it uses the
default system locale.  This can be specified by the -Dfile.encoding
option.  If no file encoding is specified, java uses ISO8859_1.

Unfortunately, not all unicode characters can be mapped to
ISO8859_1.  Unmappable characters may be replaced by a byte
within ISO8859_1, which may change the meaning of the String.
This is especially problematic for password strings, and has
been used to compromise the security of passwords in the
past.

Thankfully, Android uses UTF-8 by default, so this bug doesn't
effect Android devices.  However, it's recommended to explicitly
list the character set when converting to/from bytes to
avoid the potential ambiguity.

Change-Id: Iec927e27ed3fc103696c439f6bd3e8779a37ade8
2010-03-10 11:25:53 -08:00
Andreas Huber
b94b52b94e Merge "Instead of instantiating StagefrightMetadataRetriever directly, instantiate a MediaMetadataRetriever which will do-the-right-thing(tm) even for .wma/.wmv/.asf files." 2010-03-10 11:12:56 -08:00
Andreas Huber
edfeb1a3f5 Extend stagefright tool to extract either album art or video frame.
Change-Id: Iab50924e37a1aad057470a349c8f1a81858424e9
2010-03-10 11:07:12 -08:00
Marco Nelissen
8da2650df8 Merge "MEDIA_PLAYER_STATE_ERROR is not a bitmask (b/2502881)" 2010-03-10 10:58:23 -08:00
Andreas Huber
1ce986767a Instead of instantiating StagefrightMetadataRetriever directly, instantiate a MediaMetadataRetriever which will do-the-right-thing(tm) even for .wma/.wmv/.asf files.
Change-Id: Ibda4b5268514934f14a3d49a564902bc670f4384
related-to-bug: 2074137
2010-03-10 10:55:35 -08:00
Marco Nelissen
e44b41bada MEDIA_PLAYER_STATE_ERROR is not a bitmask
(b/2502881)

Change-Id: I08e427eb2c36f5d70e40f9aeb8638fa8262de989
2010-03-10 10:55:09 -08:00
Adam Powell
9ceaf70eab Merge "Added ViewConfiguration.getScaledPagingTouchSlop()" 2010-03-10 10:50:38 -08:00
Adam Powell
de8d0834fc Added ViewConfiguration.getScaledPagingTouchSlop()
Change-Id: I9ab5560c4b76d2b87e53d38b10ba8f5ec4868d85
2010-03-10 10:16:21 -08:00
Mike Reed
180403ac10 pin our visible content bounds to the bounds of the doc itself, to account for overscroll
Change-Id: I3c8165338e31da45a70b3f65ba8389a7a50d6e07
http://b/issue?id=2496502
2010-03-10 13:11:48 -05:00
Mike Reed
36ad54acef force purgeability for assets
Change-Id: I1067cfb91846a05290ed26ce9a62eb82d3170719
http://b/issue?id=1860187
2010-03-10 13:11:47 -05:00
Leon Scroggins
49658cb55b Merge "When context is voice, show the microphone." 2010-03-10 10:07:46 -08:00