22400 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Dianne Hackborn
4a337ec99e Merge "New preference for multi-selection check boxes." into jb-dev 2012-05-08 10:38:10 -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
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
2c22eb0a49 Clear out any existing buttons before adding the set of requested actions.
Bug: 6459557
Change-Id: Id19050e7280208d4f98c1aabe8087c6fe6c8d72a
2012-05-08 09:49:13 -04:00
satok
05f5236f60 Merge "Make InputMethodSubtype thread safe" into jb-dev 2012-05-08 00:04:16 -07:00
satok
e52eb4e289 Make InputMethodSubtype thread safe
Bug: 6327800
Change-Id: I549d1ec377793e918800d919b39fd8f4b6f0db41
2012-05-08 14:45:09 +09:00
Fabrice Di Meglio
30ca5cd11a Fix bug #6408393 Character corruption is caused when locale is changed
- free the TextLayoutCache on Locale change

- also free TextLayoutCache when memory is low

Change-Id: I39a37ac8ec3c292cfb1c0eea4bb41ff71897d089
2012-05-07 20:17:38 -07:00
Jeff Brown
a7771df369 Move CancellationSignal to android.os package.
Bug: 6427830
Change-Id: I39451bb1e1d4a8d976ed1c671234f0c8c61658dd
2012-05-07 20:06:46 -07:00
Dianne Hackborn
7746f91065 New preference for multi-selection check boxes.
This will be used for a new settings preference.

Change-Id: Ia748cd3e0e8b80ff40942fe2978bd27ce929499a
2012-05-07 19:17:58 -07:00
Svetoslav Ganov
775bcac6bc Updating the documentation of share action provider.
1. Added some clarification how a developer can use the
   same provide with different historical files in a
   context dependent manner.

Change-Id: I2a3390ade7e4b8b1170d381668e1439e52c17b7e
2012-05-07 19:05:50 -07:00
Jeff Brown
41a4704b09 Merge "Small tweaks to orientation." into jb-dev 2012-05-07 18:55:20 -07:00
alanv
8eeefefc84 Add performAccessibilityAction to AccessibilityDelegate.
Change-Id: I43dff2ced959af5d8a9ce9ed18858a6e74cb35c6
2012-05-07 18:42:31 -07:00
Kenny Root
29bb27ef90 Merge "Add encryption parameters to package installation" into jb-dev 2012-05-07 18:41:27 -07:00
Svetoslav Ganov
d57521c674 Fix the build.
Change-Id: I9b9e26e22a6be27341f4b0b95cb8edd1629fa812
2012-05-07 18:39:07 -07:00
Jeff Brown
daf5d894ef Small tweaks to orientation.
Improved threshold for detecting external acceleration.

Bug: 5976859
Change-Id: Iaf2298fba8eda72d1cacbb2f3aea72f460a9262f
2012-05-07 18:30:18 -07:00
Svetoslav Ganov
911b0c0b15 Merge "Accessibility focus actinos incorectly set on accessibility node info." into jb-dev 2012-05-07 18:29:09 -07:00
Adam Powell
ae9c72d9a8 Merge "AbsListView: Toss transient state views once they no longer have transient state." into jb-dev 2012-05-07 18:24:09 -07:00
Svetoslav Ganov
b1ae25cb37 Merge "ActivityChooserModel does not handle package changes on the thread that created it." into jb-dev 2012-05-07 18:23:44 -07:00
Svetoslav Ganov
0a1bb6dffc AccessibilityNodeInfo for visible views should reported.
1. AccessibilityNodeInfos for visible views should always
   be reported and the clients should be able to check
   whether that node info is shown to the user. For example,
   focus search may return a node that is not on the screen
   and the accessibility layer may decide to give it focus
   which scroll the source view in the screen.

bug:6421991

Change-Id: Idc1fd8512dda767abe802aacedb0c69582e6fc2a
2012-05-07 18:22:59 -07:00
Adam Powell
bf1b81fb25 AbsListView: Toss transient state views once they no longer have
transient state.

Bug 6365897

Change-Id: Ib2bd546c74d3303ac01bcae9b01e221db36c1440
2012-05-07 18:17:51 -07:00
Svetoslav Ganov
ef5889810c DefaultGestureHandlingHelperService should not include non-important views.
1. Since we are using a stateless proxy accessibility service to
   perform default accessibility gesture handling it shuld not
   operate against not important views.

bug:6422069

Change-Id: I74df9c2415ab3b164d9ac5873f7004c0459e2bfa
2012-05-07 18:05:31 -07:00
Svetoslav Ganov
b2ee0d5767 Merge "Text traversal at various granularities." into jb-dev 2012-05-07 17:54:31 -07:00
Svetoslav Ganov
02afe2cfd3 Accessibility focus actinos incorectly set on accessibility node info.
bug:6456267

Change-Id: I9fce268623cebef49dd613d193a36a0a1a0654aa
2012-05-07 17:54:07 -07:00
Teng-Hui Zhu
658e99908a Replace tree observer with a JNI call at draw time
webkit change:
https://android-git.corp.google.com/g/#/c/188148/

bug:6447729

Change-Id: I8062583751cc10fc65b30d10277b2f2271b58661
2012-05-07 17:48:23 -07:00
Romain Guy
e79e875812 Merge "Remove ViewTreeObserver allocations" into jb-dev 2012-05-07 17:45:33 -07:00
Adam Powell
e601efd375 Merge "Fix a bug in Activity Up navigation dispatching" into jb-dev 2012-05-07 17:40:09 -07:00
Adam Powell
07304f5299 Fix a bug in Activity Up navigation dispatching
Propagate the return value from onNavigateUp as the result of
onMenuItemSelected. This fixes a bug where the action bar Up nav
button clicks would not be propagated to support lib FragmentActivity
or other activity subclasses that rely on processing otherwise
unhandled onMenuItemSelected events.

Change-Id: Id879dd1756ed06b8a7b720ebf0eae2a8ddc66ca8
2012-05-07 17:32:44 -07:00
Svetoslav Ganov
6d17a936f7 Text traversal at various granularities.
1. Implementing text content navigation at various granularities.
   For views that have content description but no text the
   content description is the traversed at character and word
   granularities. For views that inherit from TextView the
   supported granularities are character, word, line, and page.

bug:5932640

Conflicts:

	core/java/android/view/View.java

Conflicts:

	core/java/android/view/View.java

Change-Id: I66d1e16ce9ac5d6b49f036b17c087b2a7075e4c0
2012-05-07 17:31:52 -07:00
Jeff Brown
2fd54c416b Merge "Improve animation timing." into jb-dev 2012-05-07 17:12:27 -07:00
Adam Powell
6392a3609c Merge "Fix misc. bugs in AbsListView smooth scrolling." into jb-dev 2012-05-07 17:10:42 -07:00
Jeff Brown
59bbef0cd7 Improve animation timing.
Detect when a vsync message was significantly delayed which may
indicate that a frame was skipped.  When this happens, update
the frame time to reflect the approximate start time of the
current frame instead of the start time of the frame that was
skipped a long time ago.

Removed an unnecessary call to getCurrentPlayTime() in the
animator framework.  The result was always zero and the call
just made the code confusing.

Bug: 6443611
Change-Id: I92b24f7ffd74c59b75a727b6bfc0bb51fc92a73a
2012-05-07 16:49:42 -07:00