OSDN Git Service

android-x86/frameworks-base.git
12 years agoMerge "Clarify WebSettings comments related to zooming."
Steve Block [Mon, 16 Apr 2012 09:25:14 +0000 (02:25 -0700)]
Merge "Clarify WebSettings comments related to zooming."

12 years agoMerge "Two WebView API cleanups"
Jonathan Dixon [Mon, 16 Apr 2012 08:05:06 +0000 (01:05 -0700)]
Merge "Two WebView API cleanups"

12 years agoBuild "install" resource for PMS tests
Kenny Root [Sun, 15 Apr 2012 19:08:53 +0000 (12:08 -0700)]
Build "install" resource for PMS tests

All the APKs in the FrameworkCoreTests's res/raw directory should be
built by source.

This change makes one more built from source that was causing test
failures with mismatched certificates.

Change-Id: I1baed15477ee39c45d3d77f9b02b81f771a16ca2

12 years agoMerge "Close streams for forward-locked apps"
Kenny Root [Sun, 15 Apr 2012 01:43:53 +0000 (18:43 -0700)]
Merge "Close streams for forward-locked apps"

12 years agoClose streams for forward-locked apps
Kenny Root [Sat, 14 Apr 2012 17:13:10 +0000 (10:13 -0700)]
Close streams for forward-locked apps

Forward-locked apps aren't very prevalent, but it needed to be
restructured to make sure both streams and ZipFile objects are closed.

Change-Id: I41f863224fecd24069e525e9ce3738de8237bd5e

12 years agoMerge "Add warning log for mismatched signatures"
Kenny Root [Sat, 14 Apr 2012 19:16:58 +0000 (12:16 -0700)]
Merge "Add warning log for mismatched signatures"

12 years agoAdd warning log for mismatched signatures
Kenny Root [Sat, 14 Apr 2012 19:10:38 +0000 (12:10 -0700)]
Add warning log for mismatched signatures

It's difficult to see in bugreports when this situation arises. Add a
small log so we can easily determine installation failure reason.

Change-Id: Ie59c205cf731cad7b3d04ceb995e58a093c62455

12 years agoMerge "Add setting to redirect vibrator to game controller."
Jeff Brown [Sat, 14 Apr 2012 03:39:50 +0000 (20:39 -0700)]
Merge "Add setting to redirect vibrator to game controller."

12 years agoAdd setting to redirect vibrator to game controller.
Jeff Brown [Sat, 14 Apr 2012 03:38:38 +0000 (20:38 -0700)]
Add setting to redirect vibrator to game controller.

Bug: 6334179
Change-Id: I70093e38824ea3e5cf9cf242d1d7b6d26115ed80

12 years agoMerge "SurfaceTexture: fix updateTexImage JNI"
Jamie Gennis [Sat, 14 Apr 2012 03:33:01 +0000 (20:33 -0700)]
Merge "SurfaceTexture: fix updateTexImage JNI"

12 years agoMerge "Surface list of apps with given network policy."
Jeff Sharkey [Sat, 14 Apr 2012 03:15:54 +0000 (20:15 -0700)]
Merge "Surface list of apps with given network policy."

12 years agoSurface list of apps with given network policy.
Jeff Sharkey [Fri, 13 Apr 2012 23:03:40 +0000 (16:03 -0700)]
Surface list of apps with given network policy.

Bug: 6007276
Change-Id: I0f0e939ee6481496480c4afaa108c99eb158547c

12 years agoSurfaceTexture: fix updateTexImage JNI
Jamie Gennis [Sat, 14 Apr 2012 02:14:37 +0000 (19:14 -0700)]
SurfaceTexture: fix updateTexImage JNI

Sigh...

Change-Id: I0271bed44c58e0c9a03eda4886eb2c1ee76e041f

12 years agoAccessibility focus - framework
Svetoslav Ganov [Tue, 20 Mar 2012 18:51:39 +0000 (11:51 -0700)]
Accessibility focus - framework

Usefulness: Keep track of the current user location in the screen when
            traversing the it. Enabling structural and directional
            navigation over all elements on the screen. This enables
            blind users that know the application layout to efficiently
            locate desired elements as opposed to try touch exploring the
            region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
           to let accessibility services keep track of it since they
           have access to the screen content, and another to let the view
           hierarchy keep track of it. While the first approach would
           require almost no work on our part it poses several challenges
           which make it a sub-optimal choice. Having the accessibility focus
           in the accessibility service would require that service to scrape
           the window content every time it changes to sync the view tree
           state and the accessibility focus location. Pretty much the service
           will have to keep an off screen model of the screen content. This
           could be quite challenging to get right and would incur performance
           cost for the multiple IPCs to repeatedly fetch the screen content.
           Further, keeping virtual accessibility focus (i.e. in the service)
           would require sync of the input and accessibility focus. This could
           be challenging to implement right as well. Also, having an unlimited
           number of accessibility services we cannot guarantee that they will
           have a proper implementation, if any, to allow users to perform structural
           navigation of the screen content. Assuming two accessibility
           services implement structural navigation via accessibility focus,
           there is not guarantee that they will behave similarly by default,
           i.e. provide some standard way to navigate the screen content.
           Also feedback from experienced accessibility researchers, specifically
           T.V Raman, provides evidence that having virtual accessibility focus
           creates many issues and it is very hard to get right.
           Therefore, keeping accessibility focus in the system will avoid
           keeping an off-screen model in accessibility services, it will always
           be in sync with the state of the view hierarchy and the input focus.
           Also this will allow having a default behavior for traversing the
           screen via this accessibility focus that is consistent in all
           accessibility services. We provide accessibility services with APIs to
           override this behavior but all of them will perform screen traversal
           in a consistent way by default.

Behavior:  If accessibility is enabled the accessibility focus is the leading one
           and the input follows it. Putting accessibility focus on a view moves
           the input focus there. Clearing the accessibility focus of a view, clears
           the input focus of this view. If accessibility focus is on a view that
           cannot take input focus, then no other view should have input focus.
           In accessibility mode we initially give accessibility focus to the topmost
           view and no view has input focus. This ensures consistent behavior accross
           all apps. Note that accessibility focus can move hierarchically in the
           view tree and having it at the root is better than putting it where the
           input focus would be - at the first input focusable which could be at
           an arbitrary depth in the view tree. By default not all views are reported
           for accessibility, only the important ones. A view may be explicitly labeled
           as important or not for accessibility, or the system determines which one
           is such - default. Important views for accessibility are all views that are
           not dumb layout managers used only to arrange their chidren. Since the same
           content arrangement can be obtained via different combintation of layout
           managers, such managers cannot be used to reliably determine the application
           structure. For example, a user should see a list as a list view with several
           list items and each list item as a text view and a button as opposed to seeing
           all the layout managers used to arrange the list item's content.
           By default only important for accessibility views are regared for accessibility
           purposes. View not regarded for accessibility neither fire accessibility events,
           nor are reported being on the screen. An accessibility service may request the
           system to regard all views. If the target SDK of an accessibility services is
           less than JellyBean, then all views are regarded for accessibility.
           Note that an accessibility service that requires all view to be ragarded for
           accessibility may put accessibility focus on any view. Hence, it may implement
           any navigational paradigm if desired. Especially considering the fact that
           the system is detecting some standard gestures and delegates their processing
           to an accessibility service. The default implementation of an accessibility
           services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe

12 years agoMerge "SurfaceTexture: update API docs"
Jamie Gennis [Sat, 14 Apr 2012 01:02:28 +0000 (18:02 -0700)]
Merge "SurfaceTexture: update API docs"

12 years agoam 6a9835a2: am 08135aa1: am 38e09c3d: docs: Android Training: Creating Backward...
Roman Nurik [Sat, 14 Apr 2012 00:57:18 +0000 (17:57 -0700)]
am 6a9835a2: am 08135aa1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '6a9835a2cdd95826ce0e4b9cb88c45b2e8277baf':

12 years agoam 4d7038cb: am 3fc245a1: am 38e09c3d: docs: Android Training: Creating Backward...
Roman Nurik [Sat, 14 Apr 2012 00:55:08 +0000 (17:55 -0700)]
am 4d7038cb: am 3fc245a1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '4d7038cb96690c93c6ca407d338159ea062424fb':

12 years agoam 273ad179: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs...
Roman Nurik [Sat, 14 Apr 2012 00:54:15 +0000 (17:54 -0700)]
am 273ad179: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '273ad17995679c5cdcf45b1458efb221889a9e90':
  docs: Android Training: Creating Backward-Compatible UIs class

12 years agoam 08135aa1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs...
Roman Nurik [Sat, 14 Apr 2012 00:53:47 +0000 (17:53 -0700)]
am 08135aa1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '08135aa17fc5e5e8ecfebf04c10911fb083c3660':

12 years agoam 3fc245a1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs...
Roman Nurik [Sat, 14 Apr 2012 00:53:17 +0000 (17:53 -0700)]
am 3fc245a1: am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '3fc245a181269c5e425698d8ad212015812ebd8d':
  docs: Android Training: Creating Backward-Compatible UIs class

12 years agoam 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
Roman Nurik [Sat, 14 Apr 2012 00:51:40 +0000 (17:51 -0700)]
am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '38e09c3ddb7da47a23bf4221ab678e058c7e923a':
  docs: Android Training: Creating Backward-Compatible UIs class

12 years agoam 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
Roman Nurik [Sat, 14 Apr 2012 00:51:34 +0000 (17:51 -0700)]
am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '38e09c3ddb7da47a23bf4221ab678e058c7e923a':
  docs: Android Training: Creating Backward-Compatible UIs class

12 years agoam 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class
Roman Nurik [Sat, 14 Apr 2012 00:51:16 +0000 (17:51 -0700)]
am 38e09c3d: docs: Android Training: Creating Backward-Compatible UIs class

* commit '38e09c3ddb7da47a23bf4221ab678e058c7e923a':
  docs: Android Training: Creating Backward-Compatible UIs class

12 years agoMerge "Add support for input devices that have vibrators."
Jeff Brown [Sat, 14 Apr 2012 00:34:20 +0000 (17:34 -0700)]
Merge "Add support for input devices that have vibrators."

12 years agoam 509efe16: am 29934896: am 19266f7b: docs: Android Training: Implementing Effective...
Roman Nurik [Sat, 14 Apr 2012 00:29:11 +0000 (17:29 -0700)]
am 509efe16: am 29934896: am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit '509efe16a1e191ac8e65709feed20eaae2894343':

12 years agoam 88b5b983: am f872e0b9: am 19266f7b: docs: Android Training: Implementing Effective...
Roman Nurik [Sat, 14 Apr 2012 00:29:03 +0000 (17:29 -0700)]
am 88b5b983: am f872e0b9: am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit '88b5b983acfe1caf8c584a20f98b4e48af76d1fe':

12 years agoam c07e9d0c: am 19266f7b: docs: Android Training: Implementing Effective Navigation...
Roman Nurik [Sat, 14 Apr 2012 00:27:43 +0000 (17:27 -0700)]
am c07e9d0c: am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit 'c07e9d0c67e4481caef22dcd8de60c90afe97d63':
  docs: Android Training: Implementing Effective Navigation class

12 years agodocs: Android Training: Creating Backward-Compatible UIs class
Roman Nurik [Thu, 29 Mar 2012 00:55:24 +0000 (17:55 -0700)]
docs: Android Training: Creating Backward-Compatible UIs class

Change-Id: I9a3038839c7849ecbb144b218ce5a08bdcd35886

12 years agoam 29934896: am 19266f7b: docs: Android Training: Implementing Effective Navigation...
Roman Nurik [Sat, 14 Apr 2012 00:26:39 +0000 (17:26 -0700)]
am 29934896: am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit '299348968aae3fa29dca167bfcc847ed5c65927b':

12 years agoam f872e0b9: am 19266f7b: docs: Android Training: Implementing Effective Navigation...
Roman Nurik [Sat, 14 Apr 2012 00:26:03 +0000 (17:26 -0700)]
am f872e0b9: am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit 'f872e0b959877d2685bf5bf0e83c4e6865163203':
  docs: Android Training: Implementing Effective Navigation class

12 years agoam 19266f7b: docs: Android Training: Implementing Effective Navigation class
Roman Nurik [Sat, 14 Apr 2012 00:23:54 +0000 (17:23 -0700)]
am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class

12 years agoam 19266f7b: docs: Android Training: Implementing Effective Navigation class
Roman Nurik [Sat, 14 Apr 2012 00:23:53 +0000 (17:23 -0700)]
am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class

12 years agoam 19266f7b: docs: Android Training: Implementing Effective Navigation class
Roman Nurik [Sat, 14 Apr 2012 00:23:40 +0000 (17:23 -0700)]
am 19266f7b: docs: Android Training: Implementing Effective Navigation class

* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class

12 years agodocs: Android Training: Implementing Effective Navigation class
Roman Nurik [Tue, 13 Mar 2012 04:48:47 +0000 (21:48 -0700)]
docs: Android Training: Implementing Effective Navigation class

Change-Id: Ife2f666e78e3fc0b28ad23321fd98926973e037b

12 years agoMerge "Import translations. DO NOT MERGE"
Eric Fischer [Sat, 14 Apr 2012 00:08:44 +0000 (17:08 -0700)]
Merge "Import translations. DO NOT MERGE"

12 years agoMerge "Import translations. DO NOT MERGE"
Eric Fischer [Sat, 14 Apr 2012 00:06:32 +0000 (17:06 -0700)]
Merge "Import translations. DO NOT MERGE"

12 years agoMerge "Extract Vibrator implementation from interface."
Jeff Brown [Sat, 14 Apr 2012 00:03:05 +0000 (17:03 -0700)]
Merge "Extract Vibrator implementation from interface."

12 years agoAdd support for input devices that have vibrators.
Jeff Brown [Fri, 13 Apr 2012 11:09:27 +0000 (04:09 -0700)]
Add support for input devices that have vibrators.

Added a getVibrator() method to InputDevice which returns a Vibrator
associated with that input device.  Its uses the same API as the
system vibrator which makes it easy for applications to be modified
to use one or the other.

Bug: 6334179
Change-Id: Ifc7f13dbcb778670f3f1c07ccc562334e6109d2e

12 years agoMerge "Improve lock screen hide animation."
Dianne Hackborn [Fri, 13 Apr 2012 23:55:00 +0000 (16:55 -0700)]
Merge "Improve lock screen hide animation."

12 years agoMerge "Enhance the debug output for StateMachines."
Wink Saville [Fri, 13 Apr 2012 23:52:04 +0000 (16:52 -0700)]
Merge "Enhance the debug output for StateMachines."

12 years agoMerge "Add direct support for HTML formatted text in ClipData etc."
Dianne Hackborn [Fri, 13 Apr 2012 23:47:38 +0000 (16:47 -0700)]
Merge "Add direct support for HTML formatted text in ClipData etc."

12 years agoEnhance the debug output for StateMachines.
Wink Saville [Fri, 13 Apr 2012 23:11:20 +0000 (16:11 -0700)]
Enhance the debug output for StateMachines.

Allow some messages to be ignored and allow the subclass to
add additional information. In particular, the information
can be used to decode the msg.what to a string.

Change-Id: I4f53becc6f0cb77399f99702084efef9d8785d67

12 years agoSurfaceTexture: update API docs
Jamie Gennis [Fri, 13 Apr 2012 21:48:22 +0000 (14:48 -0700)]
SurfaceTexture: update API docs

This change updates the SurfaceTexture API docs and modifies the behavior of
the updateTexImage to produce an IllegalStateException when not attached to a
GLES context.

Change-Id: I5a0875927785108960985c567d571d5f7033256a

12 years agoAdd direct support for HTML formatted text in ClipData etc.
Dianne Hackborn [Fri, 13 Apr 2012 22:36:06 +0000 (15:36 -0700)]
Add direct support for HTML formatted text in ClipData etc.

When using the clipboard, ACTION_SEND, etc., you can now supply
HTML formatted text as one of the representations.  This is exposed
as a set of methods on ClipData for building items with HTML
formatted text, and retrieving and coercing to HTML (and styled)
text.  In addtion, there is a new EXTRA_HTML_TEXT for interoperating
with the old ACTION_SEND protocol.

Change-Id: I8846520a480c8a5f829ec1e693aeebd425ac170d

12 years agoMerge "Unhide new Beam push APIs."
Martijn Coenen [Fri, 13 Apr 2012 22:22:11 +0000 (15:22 -0700)]
Merge "Unhide new Beam push APIs."

12 years agoMerge "Introduce new URI to clear data usage information"
Makoto Onuki [Fri, 13 Apr 2012 22:22:05 +0000 (15:22 -0700)]
Merge "Introduce new URI to clear data usage information"

12 years agoMerge "Include ALL the audio packages"
Jean-Baptiste Queru [Fri, 13 Apr 2012 22:14:55 +0000 (15:14 -0700)]
Merge "Include ALL the audio packages"

12 years agoMerge "Mapping from DownloadManager status to string."
Jeff Sharkey [Fri, 13 Apr 2012 21:47:23 +0000 (14:47 -0700)]
Merge "Mapping from DownloadManager status to string."

12 years agoMapping from DownloadManager status to string.
Jeff Sharkey [Fri, 13 Apr 2012 21:42:50 +0000 (14:42 -0700)]
Mapping from DownloadManager status to string.

Change-Id: I159aa5f9c7289d6935436d78523b0628482bdc91

12 years agoMerge "Depcrecate increment function (should have been done back in ICS)"
Daniel Lehmann [Fri, 13 Apr 2012 20:36:22 +0000 (13:36 -0700)]
Merge "Depcrecate increment function (should have been done back in ICS)"

12 years agoDepcrecate increment function (should have been done back in ICS)
Daniel Lehmann [Fri, 13 Apr 2012 20:29:49 +0000 (13:29 -0700)]
Depcrecate increment function (should have been done back in ICS)

Change-Id: I5c7d4d80a5d10b6ed2460f6dac30e53cc2714521

12 years agoMerge "Set initial focus"
John Reck [Fri, 13 Apr 2012 20:25:41 +0000 (13:25 -0700)]
Merge "Set initial focus"

12 years agoIntroduce new URI to clear data usage information
Makoto Onuki [Fri, 13 Apr 2012 19:56:42 +0000 (12:56 -0700)]
Introduce new URI to clear data usage information

We were going to piggyback existing DataUsageFeedback.FEEDBACK_URI,
but decided to introduce a new URI for this.

Bug 5475575

Change-Id: I6d467e5342f551142f047aa1b0b3503c5bf9b7fd

12 years agoWait for zoom manager to update before sending new picture event.
George Mount [Tue, 10 Apr 2012 19:29:59 +0000 (12:29 -0700)]
Wait for zoom manager to update before sending new picture event.

 Bug 6315070

Change-Id: I80be7680499705f7865abc8ef753db1bb63ef44f

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Fri, 13 Apr 2012 19:56:38 +0000 (12:56 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0e4e1a2f1e2af07143ea621cb4f35f1df5190484

12 years agoInclude ALL the audio packages
Jean-Baptiste Queru [Fri, 13 Apr 2012 19:47:10 +0000 (12:47 -0700)]
Include ALL the audio packages

Change-Id: I4a7bedcaf8a9eccbabdfef4ebee46ee4e356b04e

12 years agoMerge "Fix full backup/restore detection of encrypted devices"
Christopher Tate [Fri, 13 Apr 2012 19:46:54 +0000 (12:46 -0700)]
Merge "Fix full backup/restore detection of encrypted devices"

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Fri, 13 Apr 2012 19:46:16 +0000 (12:46 -0700)]
Import translations. DO NOT MERGE

Change-Id: I6c9944f6c0968d076210839b415dca80722cd80d

12 years agoSet initial focus
John Reck [Fri, 13 Apr 2012 19:42:32 +0000 (12:42 -0700)]
Set initial focus

 Bug: 6108927

Change-Id: I8f9356c41700b05ca36d106b1db34e3a7630b125

12 years agoMerge "Ignore the result of the on share callback in ShareActionProvider."
Svetoslav Ganov [Fri, 13 Apr 2012 19:35:31 +0000 (12:35 -0700)]
Merge "Ignore the result of the on share callback in ShareActionProvider."

12 years agoIgnore the result of the on share callback in ShareActionProvider.
Svetoslav Ganov [Fri, 13 Apr 2012 19:32:17 +0000 (12:32 -0700)]
Ignore the result of the on share callback in ShareActionProvider.

1. The reason for having this callback on the ShareActionProvider
   is to notify the client that a share happened so he can update
   the UI.

Change-Id: I65e8a8db8d4add0cd23d53be0286b14b4b4640b4

12 years agoImprove lock screen hide animation.
Dianne Hackborn [Fri, 13 Apr 2012 18:14:09 +0000 (11:14 -0700)]
Improve lock screen hide animation.

Fade the alpha quicker, to reduce the amount of dimming to
black we see in the middle.  Also start scaled a little
farther back; since in this case the lock screen is fully
opaque, we won't see the early part of the window animation
behind.

Change-Id: I65fcfbf2f27860abf6a1b225a44428d8a20cfb34

12 years agoMerge "Add simple method to dump key/value pairs."
Jeff Sharkey [Fri, 13 Apr 2012 19:19:00 +0000 (12:19 -0700)]
Merge "Add simple method to dump key/value pairs."

12 years agoAdd simple method to dump key/value pairs.
Jeff Sharkey [Fri, 13 Apr 2012 19:18:13 +0000 (12:18 -0700)]
Add simple method to dump key/value pairs.

Change-Id: I26ebf7e1a1667298c6deca742c104685c52955f7

12 years agoMerge "Accessibility query APIs report invisible views."
Svetoslav Ganov [Fri, 13 Apr 2012 19:07:09 +0000 (12:07 -0700)]
Merge "Accessibility query APIs report invisible views."

12 years agoAccessibility query APIs report invisible views.
Svetoslav Ganov [Fri, 13 Apr 2012 19:05:51 +0000 (12:05 -0700)]
Accessibility query APIs report invisible views.

1. The accessibility querying APIs failed to check whether
   all predecessors of a view are visible before reporting it.

bug:6291855

Change-Id: I364a6f08e8d02c7105c00c9fdff0fec033829554

12 years agoAdd user confirmation dialog before sending SMS to short code.
Jake Hamby [Mon, 2 Jan 2012 23:34:39 +0000 (15:34 -0800)]
Add user confirmation dialog before sending SMS to short code.

Non-system apps now require user confirmation before sending an SMS
to a short code that may potentially cost the user money. The number
is tested against regex patterns for short codes for the country
matching the user's SIM card or network. The user is warned if the
phone number is potentially or definitely a premium SMS number.

The regex patterns are loaded from core/res/res/xml/sms_short_codes.xml.
If the user's country is not found, then phone numbers of 5 digits or less
(excluding known emergency phone numbers) are considered to be potential
SMS short codes.

Command to run test cases:
$ runtest -c com.android.internal.telephony.SmsUsageMonitorShortCodeTest frameworks-telephony

Bug: 5513975
Change-Id: Ic0b483153390e974c632302f3061300bc2a2274a

12 years agoUnhide some new Notification APIs.
Daniel Sandler [Wed, 11 Apr 2012 18:51:46 +0000 (14:51 -0400)]
Unhide some new Notification APIs.

Bug: 6318391
Change-Id: Ie51f373cc84d845fa4aababab702c115fcc9e2e5

12 years agoMerge "Remove an unnecessary sanity check"
John Reck [Fri, 13 Apr 2012 17:42:46 +0000 (10:42 -0700)]
Merge "Remove an unnecessary sanity check"

12 years agoMerge "Enforce READ_EXTERNAL on non-user builds."
Jeff Sharkey [Fri, 13 Apr 2012 17:42:33 +0000 (10:42 -0700)]
Merge "Enforce READ_EXTERNAL on non-user builds."

12 years agoRemove an unnecessary sanity check
John Reck [Fri, 13 Apr 2012 17:20:49 +0000 (10:20 -0700)]
Remove an unnecessary sanity check

 This is causing issues with MotionEvents built by various tools such
 as DRT. The check itself doesn't seem strictly necessary, and it is
 easier to remove the check than fix all the tools and tests

Change-Id: I74bf85307956b5858042fbe23f87ed2b87132f17

12 years agoMinor cleanups.
Craig Mautner [Fri, 13 Apr 2012 04:06:33 +0000 (21:06 -0700)]
Minor cleanups.

- Replace HashSet with ArrayList.
- Check for Watermark and SurfaceSession initialization once, not every
  time through layout.
- Move watermark rendering into animation.
- Add surface operation debugging.

Change-Id: I4b7e7c0b8d89d43c67a42753832f90b8632d4f5d

12 years agoTwo WebView API cleanups
Jonathan Dixon [Thu, 12 Apr 2012 20:21:07 +0000 (21:21 +0100)]
Two WebView API cleanups

- remove final from classes which we will need to provide subclasses
  in future: CookieManager, GeolocationPermissions, WebIconDatabase
  and WebStorage. None of these have published constructors,
  so applications cannot subclass them anyway.

- Also convert some protected members of JsResult to private, as its of
  no use to legal subclasses, and applications cannot subclass it.

Change-Id: Iaca9d2db31e25853b6c55feae41d9e7774087479

12 years agoMerge "Add support for HTML Media Capture "capture" attribute."
Ben Murdoch [Fri, 13 Apr 2012 13:06:50 +0000 (06:06 -0700)]
Merge "Add support for HTML Media Capture "capture" attribute."

12 years agoExtract Vibrator implementation from interface.
Jeff Brown [Fri, 13 Apr 2012 08:55:38 +0000 (01:55 -0700)]
Extract Vibrator implementation from interface.

Moved the core logic of Vibrator into SystemVibrator, potentially
allowing for the creation of other Vibrator subclasses.

Fixed several places where we were creating new Vibrator
instances unnecessarily instead of getting it from the Context.

It is safe to make Vibrator abstract because its constructor
was hidden from the SDK so it was not possible to subclass it.

Bug: 6334179
Change-Id: I18ece6544c26a7efb2d5099f8346a10aef8a5e18

12 years agoClarify WebSettings comments related to zooming.
Mikhail Naganov [Thu, 5 Apr 2012 13:50:02 +0000 (14:50 +0100)]
Clarify WebSettings comments related to zooming.

1. It wasn't clear that SupportZoom doesn't affect WebView's
   zoomIn / zoomOut methods.

2. It was easy to misread that to enable "pinch to zoom" one
   needs to hide zoom controls.

Bug: 5461416

Change-Id: Ic8afd22ae0f36e53b9f4724e95ac55c766f58af5

12 years agoMerge "Add deprecated tag and note StrictMode violation"
Jonathan Dixon [Fri, 13 Apr 2012 09:35:06 +0000 (02:35 -0700)]
Merge "Add deprecated tag and note StrictMode violation"

12 years agoMerge "Hide the public constructors for singleton classes"
Jonathan Dixon [Fri, 13 Apr 2012 09:35:00 +0000 (02:35 -0700)]
Merge "Hide the public constructors for singleton classes"

12 years agoMerge "Decouple JsResult from the WebViewClassic impl"
Jonathan Dixon [Fri, 13 Apr 2012 09:33:04 +0000 (02:33 -0700)]
Merge "Decouple JsResult from the WebViewClassic impl"

12 years agoAdd support for HTML Media Capture "capture" attribute.
Ben Murdoch [Wed, 11 Jan 2012 10:55:10 +0000 (10:55 +0000)]
Add support for HTML Media Capture "capture" attribute.

Plumb the value of the "capture" attribute through the framework
down to the embedder.

Requires a change in WebKit
(I0a921be31fda79a43c05da4fe22d9c808d92709c)

and Browser (I38dfe2df043fdba1388384dbd3b5370737eb38e5).

Bug: 5771207

Change-Id: I494adc1274ca21ce8fe52a6c7b6b758217927e66

12 years agoMerge "Unhide camera autofocus move callback."
Wu-cheng Li [Fri, 13 Apr 2012 08:03:57 +0000 (01:03 -0700)]
Merge "Unhide camera autofocus move callback."

12 years agoEnforce READ_EXTERNAL on non-user builds.
Jeff Sharkey [Thu, 12 Apr 2012 22:59:23 +0000 (15:59 -0700)]
Enforce READ_EXTERNAL on non-user builds.

Enable default enforcement of READ_EXTERNAL_STORAGE on non-user
builds. Users can still explicitly enable enforcement in Settings.

Bug: 6131916
Change-Id: I7dc66b624ad252ed2a2ad3647f3ea85dda7f8e82

12 years agoMerge "Improve Paint.setTextLocale()"
Fabrice Di Meglio [Fri, 13 Apr 2012 02:07:57 +0000 (19:07 -0700)]
Merge "Improve Paint.setTextLocale()"

12 years agoMerge "Notify applications when input devices change."
Jeff Brown [Fri, 13 Apr 2012 01:55:57 +0000 (18:55 -0700)]
Merge "Notify applications when input devices change."

12 years agoNotify applications when input devices change.
Jeff Brown [Fri, 13 Apr 2012 00:32:48 +0000 (17:32 -0700)]
Notify applications when input devices change.

This change allows the InputManager to keep track of what input
devices are registered with the system and when they change.
It needs to do this so that it can properly clear its cache of
input device properties (especially the key map!) when changes
occur.

Added new API so that applications can register listeners for
input device changes.

Fixed a minor bug in EventHub where it didn't handle EPOLLHUP
properly so it would spam the log about unsupposed epoll events
until inotify noticed that the device was gone and removed it.

Change-Id: I937d8c601f7185d4299038bce6a2934fe4fdd2b3

12 years agoImprove Paint.setTextLocale()
Fabrice Di Meglio [Fri, 13 Apr 2012 01:15:09 +0000 (18:15 -0700)]
Improve Paint.setTextLocale()

Change-Id: Iffc9f8816f48dbd431b3b430a7c48f8d646703f3

12 years agoMerge "Pre-association service discovery support"
Irfan Sheriff [Fri, 13 Apr 2012 01:33:05 +0000 (18:33 -0700)]
Merge "Pre-association service discovery support"

12 years agoMerge "Fix bug 6330745 - internal fix for spinners"
Adam Powell [Fri, 13 Apr 2012 01:23:03 +0000 (18:23 -0700)]
Merge "Fix bug 6330745 - internal fix for spinners"

12 years agoMerge "Keep activities stopped while the lock screen is up."
Dianne Hackborn [Fri, 13 Apr 2012 01:18:45 +0000 (18:18 -0700)]
Merge "Keep activities stopped while the lock screen is up."

12 years agoFix bug 6330745 - internal fix for spinners
Adam Powell [Fri, 13 Apr 2012 01:14:12 +0000 (18:14 -0700)]
Fix bug 6330745 - internal fix for spinners

Change-Id: I2897ce5f41f9442714053675405296cab5296ac6

12 years agoMerge "Bonjour fixes"
Irfan Sheriff [Fri, 13 Apr 2012 00:55:15 +0000 (17:55 -0700)]
Merge "Bonjour fixes"

12 years agoFix full backup/restore detection of encrypted devices
Christopher Tate [Thu, 12 Apr 2012 23:38:02 +0000 (16:38 -0700)]
Fix full backup/restore detection of encrypted devices

The confirmation UI did not request the needed permission, so was failing
to communicate with the mount service; as a "safe" failure mode, it was
assuming the device was encrypted.  Fixed; now it presents the correct
prompt text for the device's encryption state.

Bug 5958195

Change-Id: Ic03db16673b89d3377e0362a09cf51bfb572d78b

12 years agoPre-association service discovery support
Irfan Sheriff [Wed, 4 Apr 2012 23:22:21 +0000 (16:22 -0700)]
Pre-association service discovery support

Add UPnp, Bonjour and vendor specific support for discovering services on
Wi-Fi direct before establishing a connection.

Change-Id: I1c1f3427180abdc80a4e682e713adc7f0326c5ef
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
12 years agoMerge "Add documentation about clearing usage stats"
Makoto Onuki [Fri, 13 Apr 2012 00:49:09 +0000 (17:49 -0700)]
Merge "Add documentation about clearing usage stats"

12 years agoMerge "Editing fixes to ImageFormat documentation."
Eino-Ville Talvala [Fri, 13 Apr 2012 00:48:58 +0000 (17:48 -0700)]
Merge "Editing fixes to ImageFormat documentation."

12 years agoMerge "Add Paint.setTextLocale()"
Fabrice Di Meglio [Fri, 13 Apr 2012 00:37:44 +0000 (17:37 -0700)]
Merge "Add Paint.setTextLocale()"

12 years agoMerge "Add new Arabic font for SystemUI"
Fabrice Di Meglio [Fri, 13 Apr 2012 00:36:18 +0000 (17:36 -0700)]
Merge "Add new Arabic font for SystemUI"

12 years agoAdd Paint.setTextLocale()
Fabrice Di Meglio [Fri, 6 Apr 2012 23:53:48 +0000 (16:53 -0700)]
Add Paint.setTextLocale()

- will be used for better shaping CJK and other goodies

Change-Id: If64945a337edd915f5ebb88f04b6fd18e92ca587

12 years agoKeep activities stopped while the lock screen is up.
Dianne Hackborn [Fri, 13 Apr 2012 00:24:07 +0000 (17:24 -0700)]
Keep activities stopped while the lock screen is up.

Tell the activity manager when the lock screen is shown, so it
can keep itself (mostly) in sleep mode during this time, having
the foreground actvities remain in their stopped state.

Change-Id: I71c86d3298f23a98014d7ae36fd540c9df9a64e6

12 years agoMerge "Switch does not append its state text to accessibility node infos."
Svetoslav Ganov [Fri, 13 Apr 2012 00:20:12 +0000 (17:20 -0700)]
Merge "Switch does not append its state text to accessibility node infos."