40784 Commits

Author SHA1 Message Date
Jean-Michel Trivi
834662d422 Fix bug 3395289 Use MODE_IN_COMMUNICATION to evaluate stream vol changes
When the user is in a phone or VoIP call, the volume keys should
 control the STREAM_VOICE_CALL volume. Before MODE_IN_COMMUNICATION
 was introduced to cover VoIP use cases, having an active VoIP call
 was determined by checking whether there was any track used the
 output stream STREAM_VOICE_CALL, which can give false positives.
This CL checks instead against the audio mode to see if
 MODE_IN_COMMUNICATION is selected to determine if a VoIP call
 is in progress.

This implies that applications that play on STREAM_VOICE_CALL
 shouldn't rely on that fact alone to expect the volume keys
 to control the STREAM_VOICE_CALL volume, and should instead,
 rely on the official mechanism for that:
   android.app.Activity.setVolumeControlStream(int)

Change-Id: Ia487951ea1684477aa3d522c9031fad484d8a40d
2011-01-27 17:54:13 -08:00
Daniel Sandler
e2c251b564 Tapping the ticker again activates the notification.
(Previous behavior: the tap would pass through to the clock,
which would open the shade. Only sometimes it wouldn't,
because you'd have hit the left-hand-side of the ticker
where there's no clock underneath. So this fixes that too.)

Additionally, tapping the ticker will now immediately
dismiss the ticker.

Bug: 3365129
Change-Id: Ic641184c518b18d799a560c8da6b4c5844c912de
2011-01-27 20:51:03 -05:00
Svetoslav Ganov
8a2a89588c Accessibility support to NumberPicker, DatePicker, and TimePicker
bug:3400707

Change-Id: I0d4b10e9c744e7221a9a7a74081bcee351abbaf2
2011-01-27 17:50:14 -08:00
Robert Greenwalt
164ca032b6 Fix data network type notifications.
These trackers have two copies of the network type: newSS and newNetworkType.  I think thats wrong,
but this was the smaller change on code that will hopefully be refactored soon.

On radio_off we were making a new, empty newSS but not clearing newNetworkType so it
still thought we were on 3G and when we reconnect and get 3G state changes new==old and we don't
send the update.  In this fix I reset newNetworkType every time we apply it to networkType.

bug:3389886
Change-Id: I294f34259dc6c6f8f445bf2cb5466c8be747e25c
2011-01-27 17:48:52 -08:00
Jim Miller
a85b789a4a Merge "Fix 3381322: Update transition animation from lockscreen to home." into honeycomb 2011-01-27 17:42:52 -08:00
Adam Powell
f95e8c5bb2 Merge "Fix bug 3400213 - MenuItem ignores String spannable colors" into honeycomb 2011-01-27 17:18:11 -08:00
Dianne Hackborn
83a6f450bd Maybe fix issue #3358322: Status and nav bar died while watching youtube
Or at least make it better.  Now if we get a failure locking the surface,
we mark to do a full relayout pass later to try to get a new good surface.

Also fix some bugs in how activity manager was classifying processes for
their OOM adjustment to make better choices in what to kill.

Change-Id: I8e4aa86744211ba7693f9828291d8bbf2698274f
2011-01-27 17:17:19 -08:00
Adam Powell
6650185cae Fix bug 3400213 - MenuItem ignores String spannable colors
Make MenuInflater preserve spannable strings.

Change-Id: I1e01827def3a87ea7814078df53debcc35f245d2
2011-01-27 17:10:40 -08:00
Jim Miller
8932ff6d7f Fix 3381322: Update transition animation from lockscreen to home.
Also removed android:detachWallpaper="false" from lock_screen_exit
since it's not guaranteed to do something sane when windows aren't
owned by applications.

Change-Id: I28b5fc6b68d1aef93f092538d1318ce2b2a835ef
2011-01-27 17:10:26 -08:00
Dan Morrill
ed11f117ff As of honeycomb, all touchscreen devices should also report faketouch.
Change-Id: Iddcdfc19868be1ed356bdd27f08646ccec14f97b
2011-01-27 16:47:24 -08:00
Gilles Debunne
b7fc63f7aa Fix for TextView's error popup behavior when using soft keyboard.
Bug 3370191

The documented behavior is to hide the error when the text changes.
However, this should not be the case if the error was reset by a text watcher.

Comparing errorBefore and errorAfter as was done before is not sufficient in the
case where the error is reset to the same value. String pool optimization will re-use
the same Object and it will look like the error has not been modified (hence the
blinking behavior reported in the bug).

For this reason, TextView has a mErrorWasChanged flag. The fix is to export methods
that can use this flag as in done inside TextView when a physical keyboard is used.

These methods are hidden.

Change-Id: Ie3ec59a368f3b1588b81242890b971ac48e8ff7e
2011-01-27 16:03:52 -08:00
Santosh Madhava
270cbcc16a Merge "Fix for issue 3370007 Overlay transparency in Java" into honeycomb 2011-01-27 16:00:15 -08:00
Adam Powell
d1f94e36da Merge "Fix bug 3399725 - externally reported issue 14317: android:scrollbarSize attribute does not work in ScrollView tag" into honeycomb 2011-01-27 15:58:18 -08:00
Xavier Ducrohet
a3e586af43 Merge "LayoutLib: Properly compute available space to layouts." into honeycomb 2011-01-27 15:51:13 -08:00
Justin Ho
0a5481db22 Merge "Pushing in fixed scrubber asset" into honeycomb 2011-01-27 15:47:31 -08:00
Justin Ho
c1913eccb1 Merge "Removing old pocket assets" into honeycomb 2011-01-27 15:46:45 -08:00
Justin Ho
e43649e863 Pushing in fixed scrubber asset
Bug: 3362749
Bug: 3398524
Change-Id: Ib8a830bc23c7d1283ef44ba13f3b8fe4f72afbf3
2011-01-27 15:45:46 -08:00
Xavier Ducrohet
1658422512 LayoutLib: Properly compute available space to layouts.
Also display placeholders for status/title/action bars depending
on if the app is a tablet and its theme.

Change-Id: I651c1a2e5cfde165e004c11b236e6df056853dec
2011-01-27 15:41:38 -08:00
Romain Guy
0250bc2fac Merge "Catch exception when ViewRoot's surface is not valid. Bug #3399426" into honeycomb 2011-01-27 15:41:08 -08:00
Romain Guy
fea12b87f2 Catch exception when ViewRoot's surface is not valid.
Bug #3399426

Change-Id: Id4e0b8714c9520c4e84e81c2978752d46c912b6b
2011-01-27 15:36:40 -08:00
Derek Sollenberger
8f9fb94741 Merge "Add Plugin API for controling the device power states" into honeycomb 2011-01-27 15:26:53 -08:00
Dianne Hackborn
e79b55482e Fix issue #3398767: Need translucent holo theme
Change-Id: I2ce87798ff58315cb96968ab06e5a52da9f35ef8
2011-01-27 15:18:46 -08:00
Derek Sollenberger
f3196cd70a Add Plugin API for controling the device power states
This is an initial API that will allow the plugin to request to
keep the screen on.

companion change is in external/webkit

bug: 3331493
Change-Id: Ic18787e7ecd705a5b2e31a34ea884fd39ad9d11a
2011-01-27 18:00:14 -05:00
Adam Powell
3ba6774263 Fix bug 3399725 - externally reported issue 14317:
android:scrollbarSize attribute does not work in ScrollView tag

Change-Id: Ic2cc908936991f473ccfc60d9c2711edfd45c132
2011-01-27 14:25:44 -08:00
Santosh Madhava
73f376cf64 Fix for issue 3370007 Overlay transparency in Java
Change-Id: I68be6f56ad58672a771485a028fc0cd8a0514e8a
2011-01-27 14:03:34 -08:00
Basavapatna Dattaguru
64a2c359ae Merge "Fix Issue: 3373525: reduces app. 100mS in create" into honeycomb 2011-01-27 13:54:52 -08:00
Adam Powell
43d7b83ed9 Merge "Fix bug 3391818 - Keyboard covers the "Show in chat list" selection in talk > Friend Info" into honeycomb 2011-01-27 13:53:03 -08:00
Gilles Debunne
6f7a6bc345 Merge "Soft keyboard is not shown when text selection mode is aborted." into honeycomb 2011-01-27 13:51:48 -08:00
Joe Malin
32736f085b sdk doc change: Copy/Paste/Drag/Drop
Change-Id: Ifb9ed554ae1a72ce6badff1c79d95c02f30525e9
2011-01-27 13:40:04 -08:00
Adam Powell
6f5e934b96 Fix bug 3391818 - Keyboard covers the "Show in chat list" selection in
talk > Friend Info

Make spinner dropdowns cover the IME if present without being touched
first.

Change-Id: Ie47df1ad684649de73b102e2ecf5528a35301d93
2011-01-27 13:30:55 -08:00
Huahui Wu
cbcdc6147a Merge "b/3347670 Support installing online certs to the system keystore." into honeycomb 2011-01-27 13:26:27 -08:00
Justin Ho
c7b032d95b Fixing download notification icons
Bug: 3362749

Change-Id: I3e88f1be56da7ee702b59d9b84a0ef13551b8c43
2011-01-27 13:20:28 -08:00
Gilles Debunne
17d31decef Soft keyboard is not shown when text selection mode is aborted.
Bug 3381317

Also generalized and uniformized the use of peekInstance. Added null
tests, and isActive tests before hiding.

Change-Id: Ifd1a053fd920841333e0ebab3e2a8d26b469a0f6
2011-01-27 12:55:28 -08:00
Vasu Nori
ce3b35a7b0 Merge "bug:3398527 return List insttead of ArrayList from public API" into honeycomb 2011-01-27 12:46:00 -08:00
Basavapatna Dattaguru
737bd08db0 Fix Issue: 3373525: reduces app. 100mS in create
Updated by removing code duplication

Updated with review comments

Change-Id: I57a596ed09d4d543964059e18a86e143108305ec
2011-01-27 12:24:19 -08:00
Vasu Nori
a017edace7 bug:3398527 return List insttead of ArrayList from public API
Change-Id: Idbdcb59fe860a9168c9ef6c00eb128b05fce84ff
2011-01-27 11:47:28 -08:00
Daniel Sandler
74d39bd902 Merge "Correct the translationY of the empty notification panel." into honeycomb 2011-01-27 11:11:37 -08:00
Gilles Debunne
315f386598 Merge "CustomSelectionActionModeCallback can prevent selection mode from starting." into honeycomb 2011-01-27 11:07:16 -08:00
Gilles Debunne
bbdd9d3fbc Merge "Refresh the list of preloaded drawables and color state lists" into honeycomb 2011-01-27 11:07:04 -08:00
Justin Ho
1d93b30ab3 Removing old pocket assets
Change-Id: I0ea29ec09bdd838dbe815d78dbd0315b377136e2
2011-01-27 11:02:38 -08:00
Chet Haase
246bf85aaa Merge "Fix NPE with display lists when view not attached" into honeycomb 2011-01-27 10:41:26 -08:00
Chet Haase
f4ac547f86 Fix NPE with display lists when view not attached
There was logic in ViewGroup that assumed that an accelerated
view must always be able to get a display list for any child
that it was drawing. One situation occurred, however, that
caused a problem with this - a contacts activity was started
and not yet attached, but was being asked to render into an
accelerated canvas. We assumed that the child would have a display
list and simply called getDisplayList(). But since that call
returned null, we later deref'd the null object.

The fix is to check whether a child can have a display list
instead of assuming that it can just because the container view
is accelerated.

Change-Id: I7de62fd597ad50720c9585d621bec02e77c171df
2011-01-27 10:30:25 -08:00
Gilles Debunne
c446bdf886 Refresh the list of preloaded drawables and color state lists
Bug 3266751

The boot time is 43 compared to 44 seconds, which is within the precision of the measure.

Starting 15 activities in a sequence takes 20-24 seconds with the old version and 17-18
seconds with the new pre-load (12/13 when ran a second time, all apps being loaded).
The standard deviation is high, but it seems consistently better.

Change-Id: Ieac3cb93be03e8186979b894adda29f0549b9734
2011-01-27 09:57:41 -08:00
Gil Dobjanschi
eea200a96a Bug fix: 3398192 NPE at android.media.videoeditor.VideoEditorImpl.clearSurface
Change-Id: Ib7cb994e995d934cf896b856da462c9240fcb5f0
2011-01-27 09:51:46 -08:00
Huahui Wu
c7939b1750 b/3347670 Support installing online certs to the system keystore.
Requires another CL in external/webkit.
    https://android-git.corp.google.com/g/#change,93328

Change-Id: I33d642d370ddf330199f2b296d5f8b08923e49cd
2011-01-27 09:51:37 -08:00
Gilles Debunne
ddd6f39287 CustomSelectionActionModeCallback can prevent selection mode from starting.
Bug 3381317

Change-Id: I9fb52077216ed56c101ed58f8897478343369528
2011-01-27 09:49:41 -08:00
Justin Ho
bbc1d355f8 Updated stat_sys for battery and bluetooth and USB in hdpi, mdpi and xlarge-hdpi
Change-Id: I02f644287847ca8b7d0246c7eba303bfd2088086
2011-01-27 07:48:50 -08:00
Ben Murdoch
811ba6c6a2 Implement the double tap to zoom animation with HW accleration.
Bug: 3164010

Change-Id: I6d3b5973ee0aa95dd810755263e615e226cc965b
2011-01-27 15:41:48 +00:00
Chet Haase
e38ba4acbe Fix gmail crossfade artifacts.
Display lists could not handle custom views that did their
own draw dispatching, as is the case with gmail. This fix makes that
possible and display lists handle this case robustly. Now the
crossfade works because the display lists contain the right content.

Change-Id: Iea7d6e99239b24f833701d546fe083aa00e2b31b
2011-01-27 01:25:18 -08:00
Jeff Brown
da910fd5ea Merge "Handle ActivityNotFoundException in the WM policy." into honeycomb 2011-01-26 23:52:41 -08:00