74300 Commits

Author SHA1 Message Date
Svetoslav Ganov
aa6f3de253 Some view not shown on the screen are reported for accessibility.
1. Some applications are keeping around visible views off screen
   to improve responsiveness by drawing them in layers, etc. While
   such a view is not visible on the screen the accessibility layer
   was reporting it since it was visible. Now the check is improved
   to verify whether the view is attached, is in visible window,
   is visible, and has a rectangle that is not clipped by its
   predecessors.

2. AccessibilityNodeInfo bounds in screen were not properly set
   since only the top left point was offset appropriately to
   take into account any predecessor's transformation matrix
   and the not transformed width and height were used. Now
   the bounds are properly offset.

bug:6291855

Change-Id: I244d1d9af81391676c1c9e0fe86cf4574ff37225
2012-04-12 12:51:27 -07:00
Daniel Sandler
a379eeca24 Merge "Fix notifications transitioning from small->big." 2012-04-09 12:00:52 -07:00
Scott Main
c1c2ca0cc6 am 3f23b713: am 5f257077: Merge "docs: add 101 Training class "Building Your First App"" into ics-mr1
* commit '3f23b71364e7a0960c6a1269ec2467937bc13388':
  docs: add 101 Training class "Building Your First App"
2012-04-09 11:28:53 -07:00
Jeff Sharkey
eaeee6a55c Merge "Migrate to @Override to remove warnings." 2012-04-09 11:26:34 -07:00
Jeff Brown
fd6ebee93c Merge "Fix lid switch interpretation." 2012-04-09 11:25:02 -07:00
Jeff Brown
3b0ea8dbb6 Merge "Use new EVIOCSCLOCKID ioctl if supported." 2012-04-09 11:24:16 -07:00
Jeff Brown
27fd3420ac Fix lid switch interpretation.
Also remove unnecessary permission check for method that is
only called internally.

Change-Id: I32f63fc3e96b06709d18b046ee2d3c8f310de70d
2012-04-09 11:22:12 -07:00
Daniel Sandler
84920cc56e Fix notifications transitioning from small->big.
We'll have to go back and tweak this when we add a more
sophisticated switch from contentView to bigContentView, but
for now, this ought to detect that the notification has
gotten bigger (or smaller).

Change-Id: I3816fe8ed321569d1ce07d8a62cb08a434e55c2d
2012-04-09 14:17:57 -04:00
Jeff Brown
eca3cf58c0 Use new EVIOCSCLOCKID ioctl if supported.
Bug: 6292993
Change-Id: I718f167c2cd41298ed54847dbc5de872cd4c7e4a
2012-04-09 11:00:37 -07:00
Jeff Sharkey
bfdd680ab4 Migrate to @Override to remove warnings.
Bug: 6303344
Change-Id: I0d33b2ed448467379d576ccd71fb5ae20c878852
2012-04-09 10:57:21 -07:00
Adam Powell
081cc9a1f5 Merge "Tweaks to Activity up navigation" 2012-04-09 10:52:26 -07:00
Jeff Sharkey
4b3c523210 Merge "Splice operations before collapsing ifaces." 2012-04-09 10:31:20 -07:00
Adam Powell
04d5811500 Tweaks to Activity up navigation
Be more explicit in docs about getParentActivityIntent and guard against
calls when a parent has not been declared in the manifest.

Move automatic up navigation to happen after dispatch of the menu
selection event of id android.R.id.home to fragments. (Last.)

Fixes bug 6305357

Change-Id: I944e5c40774121f9a28250d8d98da6aa646f9357
2012-04-09 10:31:15 -07:00
Jeff Sharkey
21a547823d Splice operations before collapsing ifaces.
Bug: 6241038
Change-Id: Ide9058703f7305df8fb070af149ddce0653a0abf
2012-04-09 10:27:55 -07:00
Scott Main
3f23b71364 am 5f257077: Merge "docs: add 101 Training class "Building Your First App"" into ics-mr1
* commit '5f2570773d9b4d7d55b9bac5c9fafb56e1dcce88':
  docs: add 101 Training class "Building Your First App"
2012-04-09 10:15:59 -07:00
Scott Main
5f2570773d Merge "docs: add 101 Training class "Building Your First App"" into ics-mr1 2012-04-09 10:13:58 -07:00
Scott Main
2d6faf9538 docs: add 101 Training class "Building Your First App"
Change-Id: I9a1f27dc2b44fac8b0e9fbeb9326b5c62a93bc41
2012-04-09 10:03:35 -07:00
Eric Laurent
079f09c6ca Merge "Added support for USB audio devices" 2012-04-09 08:39:05 -07:00
Daniel Sandler
d1404465df Merge "Remove Chronometer logspew." 2012-04-09 08:35:00 -07:00
Daniel Sandler
b9e90a3a8d Merge "Fix alignment of notification action buttons." 2012-04-09 07:28:59 -07:00
Daniel Sandler
4879f1f183 Remove Chronometer logspew.
Change-Id: Ie9ea1ac9fb0b8053b00ce162c191dfa44c1ff6ab
2012-04-09 10:18:28 -04:00
Daniel Lehmann
63c115c4aa Merge "Expose NORMALIZED_NUMBER in the API" 2012-04-06 20:22:57 -07:00
Jeff Brown
12578bde99 Merge "Ensure that apps crash if they throw exceptions." 2012-04-06 18:26:48 -07:00
Jeff Brown
603b445896 Ensure that apps crash if they throw exceptions.
Previously, if an app threw an uncaught exception in an input,
vsync or native activity callback, it would log the exception then
continue limping merrily along.  In the case of input, it
could result in an ANR occurring because we had not drained
all of the pending input events and marked them as finished
(we only marked the most recent one finished).

Bug: 6304124
Change-Id: I87d76f7fd605e1a8af1237c66d8d62973080277e
2012-04-06 18:25:09 -07:00
Eric Laurent
59f482764e Added support for USB audio devices
Two types of USB audio devices are defined:
- USB audio device: the audio device in USB device mode while
the Android device is in USB host mode.
- USB audio accessory: the audio device in USB host mode while
the Android device is in USB device mode.

Renamed intents for analog and digital docks to avoid confusion:
 - ACTION_USB_ANLG_HEADSET_PLUG to ACTION_ANALOG_AUDIO_DOCK_PLUG
 - ACTION_USB_DGTL_HEADSET_PLUG to ACTION_DIGITAL_AUDIO_DOCK_PLUG

Factorized code in AudioService broadcast receiver.

Change-Id: I1b6d0257a9d68ecb9495c78c98bac8c67fec7891
2012-04-06 18:24:48 -07:00
Craig Mautner
cd837070f6 Merge "Fix endless looping in layout." 2012-04-06 18:14:15 -07:00
Craig Mautner
3de422fe4f Fix endless looping in layout.
An odd alignment of the stars can end up with all of mAppToken.allDrawn
animating and mAppToken.startingDisplayed all false, and animation not
null. In such a case we can continue returning false but still pass
the test in WindowAnimator.updateWindowsAndRotation setting
wasAnimating to true. The combination continually sets the
FINISH_LAYOUT_REDO_WALLPAPER bit in mPendingLayoutChanges.

Fixes bug 6304838.

Change-Id: Ie7a7b39ea218213f51dc3df3eefe4ff03f1d885d
2012-04-06 18:04:13 -07:00
Dianne Hackborn
b7943811a2 Merge "Fix issue #6242583: ResolverActivity is considered as home activity" 2012-04-06 17:53:59 -07:00
Adam Powell
e2427cac77 Merge "Add contentDescription for compact action_mode_close_item" 2012-04-06 16:41:17 -07:00
Adam Powell
7ba5d57ad4 Add contentDescription for compact action_mode_close_item
Fix bug 6219630

Change-Id: I551624466d02f5d31be7030518b0d47b3b7f03b5
2012-04-06 16:39:11 -07:00
Eric Fischer
9f4c85d03b Merge "Import translations. DO NOT MERGE" 2012-04-06 16:38:34 -07:00
Ying Wang
5bcbfcec4b You don't need LOCAL_STATIC_LIBRARIES when building static library.
and there is no target static library with name libutils.

Change-Id: Ifec34e1b484d749d3fcd11abe610f192a3213767
2012-04-06 16:33:11 -07:00
Dianne Hackborn
2d69d49d30 Fix issue #6242583: ResolverActivity is considered as home activity
Change-Id: Ib29908cdfcbbff769d12df1770264ad13ec5337b
2012-04-06 16:24:14 -07:00
Joe Fernandez
1558294582 am e03ca3b5: am 1c23169e: am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit 'e03ca3b565d74a86afa72f7edbd102f213a2ccd3':
2012-04-06 15:58:10 -07:00
Joe Fernandez
c535ae4766 am 8c5eb364: am b7df1f4e: am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit '8c5eb364f38aa0a3944f003e9b1bbb67f6527da3':
2012-04-06 15:54:28 -07:00
Joe Fernandez
e03ca3b565 am 1c23169e: am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit '1c23169eb114a1f254330b40385726c92786b47f':
2012-04-06 15:51:47 -07:00
Joe Fernandez
6055c9b34b am 014ac37a: am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit '014ac37a992a2c94eff765ed38cbdc4a064d263d':
  docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
2012-04-06 15:51:34 -07:00
Joe Fernandez
8c5eb364f3 am b7df1f4e: am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit 'b7df1f4e92e4fbff373e46ea54477af34b5a44a4':
  docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
2012-04-06 15:50:34 -07:00
Joe Fernandez
014ac37a99 am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit '1bf704bd1878fa372cfa50e7166d6ddcb1ba1369':
  docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
2012-04-06 15:47:21 -07:00
Joe Fernandez
b7df1f4e92 am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit '1bf704bd1878fa372cfa50e7166d6ddcb1ba1369':
  docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
2012-04-06 15:47:21 -07:00
Joe Fernandez
1c23169eb1 am 1bf704bd: docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
* commit '1bf704bd1878fa372cfa50e7166d6ddcb1ba1369':
  docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
2012-04-06 15:46:55 -07:00
Joe Fernandez
1bf704bd18 docs: small fixes for Accessibility dev guide (Eyes-Free Keyboard)
Change-Id: I561e805b2d48910ddf66432f6df40086fe59c597
2012-04-06 15:29:36 -07:00
Jeff Brown
69bba1dfb7 Merge "Add a unique input device descriptor." 2012-04-06 15:04:53 -07:00
Jeff Brown
e38fdfae91 Add a unique input device descriptor.
The purpose of the input device descriptor is to make it possible
to associate persistent settings for each input device, such as the
keyboard layout.

The descriptor is a hash of the information we have about the
device, such as its vendor id, product id, unique id, name,
or location.

Bug: 6110399
Change-Id: Idb80f946819b3f0dbf4e661bb0a753dbc2b60981
2012-04-06 14:57:19 -07:00
Gilles Debunne
43de94a943 Merge "Revert "Faster and simpler replace in SSB"" 2012-04-06 14:46:24 -07:00
Gilles Debunne
bc6862300f Revert "Faster and simpler replace in SSB"
Bug 6300658

This change reveals a weird race condition where sometimes the
text is entered twice. Adding a debugger slows down everything,
and the problem is no longer reproducable. Reverting for now.

This reverts commit ebd9a23817052c4d2aaa1058efa2b80b08003d4a.
2012-04-06 14:37:46 -07:00
Christopher Tate
bf64e70f9b Merge "Attribute alarm broadcast wakelocks to the sender" 2012-04-06 14:35:16 -07:00
Jean-Baptiste Queru
a987d2bde7 Merge "Add NOTICE and MODULE_LICENSE_BSD_LIKE for obex" 2012-04-06 14:25:20 -07:00
Christopher Tate
c4a07d1caa Attribute alarm broadcast wakelocks to the sender
Wakelock usage for the purpose of sending an alarm broadcast is now
attributed to the application which posted the alarm, not to the OS.

Bug 5911317

Change-Id: I8cb79c3bd5db467388716ab68285f4ab0bfe468b
2012-04-06 14:23:12 -07:00
Amith Yamasani
36dec4efa8 Merge "Fixes a bug in migration of lock settings to LockSettingsService." 2012-04-06 14:14:45 -07:00