76370 Commits

Author SHA1 Message Date
Gilles Debunne
41347e9e8b Spell checker underlines words even when there are no suggestions
Bug 6222722

Also fixed a cast to Long warning.

Change-Id: Ief299cc3cb952b83f774ca1be13dc69352015a3e
2012-05-08 15:39:17 -07:00
Romain Guy
328b35827e Make window shade fast on non-high end gfx displays
Change-Id: I64a4861845978f9209c2b7d24c40c65ce7483dcb
2012-05-08 15:30:57 -07:00
Carlos Valdivia
3fcf1c8587 Merge "Fix a race condition with respect to clients of SyncStorageEngine." into jb-dev 2012-05-08 15:27:03 -07:00
Jeff Brown
9ac663ef9a Merge "Disable input dispatch until boot finished." into jb-dev 2012-05-08 15:15:56 -07:00
Eric Laurent
c8ade15dad Merge "Silent and Vibrate mode clean up" into jb-dev 2012-05-08 15:15:49 -07:00
Gilles Debunne
2e999d1274 Merge "Removed debug code in TextView" into jb-dev 2012-05-08 15:13:41 -07:00
Eric Laurent
bffc3d1bd3 Silent and Vibrate mode clean up
Clean up related to new Vibration policy.
The vibrate behavior is now only derived from:
 - presence of a vibrator on the device
 - current ringer mode selected: NORMAL, VIBRATE or SILENT
If no vibrator is present the ringer mode can only be NORMAL or SILENT.

The control of ringer mode via volume keys when volume keys control the "master"
stream type (RING on phones, MUSIC on tablets) is as follows:
If a vibrator is present:
 VOL- and volume equals 1: NORMAL => VIBRATE
 VOL- and volume equals 0 and not continuous press: VIBRATE => SILENT
 VOL+ and in SILENT mode: SILENT => VIBRATE
 VOL+ and in VIBRATE mode: VIBRATE => NORMAL, volume = 1
If no vibrator is present:
 VOL- and volume equals 0 and not continuous press: NORMAL => SILENT
 VOL+ and in SILENT mode: SILENT => NORMAL, volume = 0

VIBRATE_ON and VIBRATE_IN_SILENT settings are not stored/retreived any more.

AudioService checks and corrects ringer mode and stream volumes if necessary when reading from
DB at boot time.

Also:
 Added dump for stream volumes in AudioService.
 Added device names missing in AudioSystem for USB accessory and USB device.

Issue: 6036529
Issue: 6414950
Issue: 6448163

Change-Id: I77fb821ec63e4e566320cac2701b4ac466e86aef
2012-05-08 15:10:37 -07:00
Gilles Debunne
5fae996751 Removed debug code in TextView
Bug 6462527

The String parameter was used to debug code during the
refactoring process.

Change-Id: I49a78bbfa3b45c185311d0dbebddddc52515c099
2012-05-08 14:53:30 -07:00
Dianne Hackborn
83e6eb11d7 Support for changing traces from development settings.
Publish information needed to build UI, fix SystemProperties.getLong()
to be able to read this property, fix some issues in
MultiCheckPreference.

Change-Id: I10c8ff84a167fdb42f6c93500201b78b844cfb8b
2012-05-08 14:53:24 -07:00
Romain Guy
27ef44c46d Merge "Invalidate display lists immediately when views are removed/added quickly" into jb-dev 2012-05-08 14:52:48 -07:00
alanv
c1d7e770e1 Delegate list item focus and click actions to the parent list.
Change-Id: Ie05c79f049896bfb498d4b33f0611da38f381140
2012-05-08 14:50:02 -07:00
Romain Guy
2a0f228a30 Invalidate display lists immediately when views are removed/added quickly
The deferred invalidation of display list could cause problems with
view like TextureView who destroy resources when detached from the
window but only recreate them later at draw time. This would cause
temporary flashes or other visual glitches on screen.

Change-Id: I018488ba09743df21c6434ea610813014fb80a85
2012-05-08 14:46:26 -07:00
Svetoslav Ganov
14326fd456 Merge "DefaultGestureHandlingHelperService should not include non-important views." into jb-dev 2012-05-08 14:46:01 -07:00
Andreas Huber
eb194d5d3c Merge "Return codec buffers that are marked as having host endianness." into jb-dev 2012-05-08 14:32:23 -07:00
Svetoslav Ganov
87bd0dccf7 Renaming the constants for activation and long press.
1. We will have a double tap to activate an item and
   tap and hold to perform a long press.

Change-Id: Ibd9d8774e5a4693d8868d1128e55a82ff0c3a80b
2012-05-08 14:29:33 -07:00
Jeff Brown
af67fc65bf Check for null fd when constructing AssetFileDescriptor.
An AssetFileDescriptor with a null fd is pretty useless and should
never happen during normal operation.  It can't even be parcelled
without hitting an NPE.  To make it easier to find bugs where a null
fd might have been generated, check at construction time.

Bug: 5655036
Change-Id: I1da6dbee0cab9c11e309f3cebe698bf44dc5e27d
2012-05-08 14:29:09 -07:00
Stephen Hines
1d56afc6ac Merge "Revert "Deprecate"" into jb-dev 2012-05-08 14:25:49 -07:00
Chris Craik
b5dc215a19 Pass webview instance when getting base layer / color, and prevent null value
Depends on external/webkit change: https://android-git.corp.google.com/g/#/c/188470/

bug:6429897
Change-Id: Ic948f102034dbe57c61d7fc6de73a4ddd062f686
2012-05-08 14:00:32 -07:00
Jeff Brown
c042ee2acd Disable input dispatch until boot finished.
Bug: 6263070
Change-Id: I25e15e3d8af8eb3343c7b684fec345337d9f6aab
2012-05-08 13:58:32 -07:00
Andreas Huber
3dd7fd08a8 Return codec buffers that are marked as having host endianness.
Change-Id: Iedfd829d108e65ee368909af14ace68b63e0e168
related-to-bug: 6364139
2012-05-08 13:50:45 -07:00
Chris Craik
aa9972943c Merge "Revert "Add temporary functor lifetime logging"" into jb-dev 2012-05-08 13:35:09 -07:00
Chris Craik
12d434a9be Revert "Add temporary functor lifetime logging"
bug:6445573

This reverts commit 2fe99801e81bb7c0ff846b536cbb7a12707410ed
2012-05-08 13:07:13 -07:00
Svetoslav Ganov
59f3f5853c Merge "Add performAccessibilityAction to AccessibilityDelegate." into jb-dev 2012-05-08 12:52:57 -07:00
Kenny Root
8a2fe26873 Merge "Prune hidden system apps when removed via OTA" into jb-dev 2012-05-08 12:50:07 -07:00
Colin Cross
fdb7412af3 Merge "Don't call into power HAL if it isn't loaded." into jb-dev 2012-05-08 12:25:45 -07:00
Colin Cross
c814c16b7f Don't call into power HAL if it isn't loaded.
The patch to call into libsuspend accidentally dropped the
test for sPowerModule == NULL.  Put it back, and fix some
tabs too.

Change-Id: I1f934a41540f3b7be01d6399512482d87acceb94
2012-05-08 12:18:38 -07:00
Andreas Huber
c2182c67d6 Merge "Clarification of MediaCodec behaviour when codec specific data is included" into jb-dev 2012-05-08 12:00:39 -07:00
Andreas Huber
8aa735f71e Clarification of MediaCodec behaviour when codec specific data is included
in the format passed to configure().

Change-Id: I150f52e8092c0f7d897891f02ba6b1d89b6230f4
related-to-bug: 6364139
2012-05-08 11:33:12 -07:00
Svetoslav Ganov
6704c23339 Merge "AccessibilityNodeInfo for visible views should reported." into jb-dev 2012-05-08 11:32:20 -07:00
Svetoslav Ganov
cdbbecf357 Merge "Accessibility focus on temporary detached view not cleared." into jb-dev 2012-05-08 11:29:37 -07:00
Adam Powell
1705b2a5da Merge "Fix some oddities in ResolverActivity" into jb-dev 2012-05-08 11:27:27 -07:00
Adam Powell
9bee4664f8 Fix some oddities in ResolverActivity
* Fix layout for small-screen devices in landscape.

* Properly re-enable buttons after restoring instance state.

* Scroll to the currently selected item after restoring instance
  state.

* Smooth scroll to the currently selected item if the user changes
  selection to an item slightly out of view.

* Place grid scroll bar outside the grid's padding.

* Make the current text read a bit more naturally.

Bug 6460135

Change-Id: Ic60330365cdd815e7517f01b36bcdc9d1c857f30
2012-05-08 11:20:27 -07:00
Fabrice Di Meglio
92d7f9ff1c Merge "Fix bug #6408393 Character corruption is caused when locale is changed" into jb-dev 2012-05-08 10:54:41 -07:00
Jeff Brown
947f1c8db0 Merge "Move CancellationSignal to android.os package." into jb-dev 2012-05-08 10:51:12 -07:00
Elliott Hughes
6d6d186cd1 Merge "The 'localize' tool is dead." into jb-dev 2012-05-08 10:45:38 -07:00
Dianne Hackborn
4a337ec99e Merge "New preference for multi-selection check boxes." into jb-dev 2012-05-08 10:38:10 -07:00
Amith Yamasani
369d78f128 Merge "Switch 7 inch tablets to single-pane preferences, like phones." into jb-dev 2012-05-08 10:30:01 -07:00
Nick Pelly
c4eb11db04 Merge "Increase interval threshold below which we just leave the GPS on." into jb-dev 2012-05-08 10:27:22 -07:00
Amith Yamasani
1aba409f2f Switch 7 inch tablets to single-pane preferences, like phones.
Move a bunch of dimensions around so that 7" tablets use phone-style
UI but with different margins to reduce the width.

24dp margin for portrait and 48dp margin for landscape.
Existing sw600dp values moved to sw720dp.
New sw600dp values created.

Bug: 6445803
Change-Id: I835c8f4b0423b295dd453161f4e32406e6267515
2012-05-08 10:21:24 -07:00
George Mount
312cad6e2f Scroll edit text into view when keyboard shows.
Bug 6445642

Change-Id: Iaf08b7e441b7abc07499b731575ab0a60c5175a2
2012-05-08 10:17:16 -07:00
Adam Powell
ef31e7cab5 Fix for toggling menu item visibility outside of create/prepare menu
Allow applications to transition from 0=>1+ visible menu items outside
of onCreatePanelMenu/onPreparePanel. Previously, having 0 visible items
at this point would require an invalidation of the options menu.

Bug 6452605

Change-Id: I6cbfc46d0e5ec42b8d78ee516e9b57fdeaf1a890
2012-05-08 10:01:35 -07:00
Svetoslav Ganov
961bf0e9b4 Accessibility focus on temporary detached view not cleared.
1. When a view that has accessibility focus is temporary detached
   we try to draw the focus highlight and crash. Since the detached
   view will be modified and then either attached or detached from
   the window we should not keep accessibility focus on a temporary
   detached view. Otherwise, we may have a scenario where the user
   thinks he is in one item scroll acound and being in completely
   different item because of the view being recycled but the user
   has no clue.

2. Clearing accessibility focus when the view is removed from the
   parent as opposed as when it is detached from the window. Since
   we may have transitioning views for removal we do not want
   accessibility focus on such views during the anumation.

bug:6457339

Change-Id: I62287a089ec6850fb1d691ae26dea54e1da39c94
2012-05-08 09:50:28 -07:00
Teng-Hui Zhu
87156c96f5 Merge "Replace tree observer with a JNI call at draw time" into jb-dev 2012-05-08 09:26:46 -07:00
John Reck
7c38077edf Merge "Fix inval issue" into jb-dev 2012-05-08 09:14:50 -07:00
John Reck
0bb0198d5b Fix inval issue
Bug: 6323847

Change-Id: Ibe9fc46af597cd97ae76339533faacfaa6d952fc
2012-05-08 09:08:50 -07:00
John Reck
975b9b787a Merge "Delay creating Java objects for WebHistoryItem" into jb-dev 2012-05-08 08:49:39 -07:00
Chris Wren
89139d74b2 Allow more kinds of two-finger gestures to open and close notificaitons.
Also make sure glow always animates to zero when set to zero.

Bug: 6430737
Bug: 6423826
Change-Id: I1ebeb6c0012ac17a942901bfd22e579393348584
2012-05-08 08:10:37 -07:00
Daniel Sandler
28612b29f0 Merge "Visual refresh of notification panel header." into jb-dev 2012-05-08 07:34:17 -07:00
Chris Wren
195ba5047c Merge "Clear out any existing buttons before adding the set of requested actions." into jb-dev 2012-05-08 07:34:12 -07:00
Chris Wren
407f2fdcfe Merge "Don't allow actions to intrude into the notification area." into jb-dev 2012-05-08 07:33:59 -07:00