74844 Commits

Author SHA1 Message Date
Roman Nurik
c07e9d0c67 am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:23:54 -07:00
Roman Nurik
f872e0b959 am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:23:53 -07:00
Roman Nurik
299348968a am 19266f7b: docs: Android Training: Implementing Effective Navigation class
* commit '19266f7b02c91d21d630c99d593f83cc427cd40b':
  docs: Android Training: Implementing Effective Navigation class
2012-04-13 17:23:40 -07:00
Roman Nurik
19266f7b02 docs: Android Training: Implementing Effective Navigation class
Change-Id: Ife2f666e78e3fc0b28ad23321fd98926973e037b
2012-04-13 17:15:47 -07:00
Eric Fischer
ba9d0e1b9f Merge "Import translations. DO NOT MERGE" 2012-04-13 17:08:44 -07:00
Eric Fischer
bc6aa58d43 Merge "Import translations. DO NOT MERGE" 2012-04-13 17:06:32 -07:00
Jeff Brown
75e0dcbca1 Merge "Extract Vibrator implementation from interface." 2012-04-13 17:03:05 -07:00
Jeff Brown
a47425a13c 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
2012-04-13 17:01:15 -07:00
Dianne Hackborn
8b2dd9c870 Merge "Improve lock screen hide animation." 2012-04-13 16:55:00 -07:00
Wink Saville
48a7bf24e3 Merge "Enhance the debug output for StateMachines." 2012-04-13 16:52:04 -07:00
Dianne Hackborn
2a07308ed2 Merge "Add direct support for HTML formatted text in ClipData etc." 2012-04-13 16:47:38 -07:00
Philip Milne
1557fd7809 Fix for bug 6110465.
Add layout bound metadata to 9-patch files and make layouts take them into account.

This CL contains a proposed API for dealing with layout bounds.

This solution exposes:

1. Class: Insets - for storing layout Insets (and later possibly padding).
2. Methods: View:(get/set)LayoutInsets() - for storing layoutBounds.
3. Methods: ViewGroup:(get/set)LayoutMode() - for controlling layoutMode.

It also iuncudes the changes to GridLayout to support layout bounds.

Change-Id: I60c836b6530b61c5abf37f93ee9c44aad73573f1
2012-04-13 16:25:08 -07:00
Wink Saville
583eaaa57c 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
2012-04-13 16:11:20 -07:00
Jamie Gennis
2b4bfa5efe 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
2012-04-13 16:04:15 -07:00
Dianne Hackborn
acb69bb909 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
2012-04-13 15:36:06 -07:00
Martijn Coenen
a94afeb5b3 Merge "Unhide new Beam push APIs." 2012-04-13 15:22:11 -07:00
Makoto Onuki
e64d187553 Merge "Introduce new URI to clear data usage information" 2012-04-13 15:22:05 -07:00
Jean-Baptiste Queru
aa7a8a895b Merge "Include ALL the audio packages" 2012-04-13 15:14:55 -07:00
Jeff Sharkey
c58a6d2da4 Merge "Mapping from DownloadManager status to string." 2012-04-13 14:47:23 -07:00
Jeff Sharkey
58d9fb6220 Mapping from DownloadManager status to string.
Change-Id: I159aa5f9c7289d6935436d78523b0628482bdc91
2012-04-13 14:42:50 -07:00
Daniel Lehmann
58ab2bcca9 Merge "Depcrecate increment function (should have been done back in ICS)" 2012-04-13 13:36:22 -07:00
Daniel Lehmann
a1620dc521 Depcrecate increment function (should have been done back in ICS)
Change-Id: I5c7d4d80a5d10b6ed2460f6dac30e53cc2714521
2012-04-13 13:29:49 -07:00
John Reck
a12e1fe16f Merge "Set initial focus" 2012-04-13 13:25:41 -07:00
Makoto Onuki
7ebbfd0f0c 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
2012-04-13 13:18:22 -07:00
George Mount
07c9e296e6 Check for null mWebViewCore in selectText
Bug 6306770

Change-Id: I83e70aef45ff6519e4e9eb70edae44efcecf6de8
2012-04-13 13:16:15 -07:00
George Mount
8b0d90ee57 Wait for zoom manager to update before sending new picture event.
Bug 6315070

Change-Id: I80be7680499705f7865abc8ef753db1bb63ef44f
2012-04-13 13:16:15 -07:00
Eric Fischer
5cc53a3f80 Import translations. DO NOT MERGE
Change-Id: I0e4e1a2f1e2af07143ea621cb4f35f1df5190484
2012-04-13 12:56:38 -07:00
Jean-Baptiste Queru
f55e0dd969 Include ALL the audio packages
Change-Id: I4a7bedcaf8a9eccbabdfef4ebee46ee4e356b04e
2012-04-13 12:48:04 -07:00
Christopher Tate
22bf2a6e14 Merge "Fix full backup/restore detection of encrypted devices" 2012-04-13 12:46:54 -07:00
Eric Fischer
5ffc3bd2b6 Import translations. DO NOT MERGE
Change-Id: I6c9944f6c0968d076210839b415dca80722cd80d
2012-04-13 12:46:16 -07:00
John Reck
a4eddb577c Set initial focus
Bug: 6108927

Change-Id: I8f9356c41700b05ca36d106b1db34e3a7630b125
2012-04-13 12:42:32 -07:00
Svetoslav Ganov
c6afc7a7e0 Merge "Ignore the result of the on share callback in ShareActionProvider." 2012-04-13 12:35:31 -07:00
Svetoslav Ganov
b33eacdb79 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
2012-04-13 12:32:23 -07:00
Dianne Hackborn
9adeb6b98d 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
2012-04-13 12:24:05 -07:00
Jeff Sharkey
cedb16ea03 Merge "Add simple method to dump key/value pairs." 2012-04-13 12:19:00 -07:00
Jeff Sharkey
2f036c55c0 Add simple method to dump key/value pairs.
Change-Id: I26ebf7e1a1667298c6deca742c104685c52955f7
2012-04-13 12:18:13 -07:00
Svetoslav Ganov
8431f89827 Merge "Accessibility query APIs report invisible views." 2012-04-13 12:07:09 -07:00
Svetoslav Ganov
067b091d46 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
2012-04-13 12:05:55 -07:00
Jake Hamby
b4bc99e847 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
2012-04-13 11:50:10 -07:00
Pannag Sanketi
497db8bfda Making the setSurface non-static
The setSurface method can be used to set a java Surface object from a
native Surface object. Making it non-static so that it can be accessed
from other units as well.

Change-Id: Id49b077ec0e7ad91cf10a4bd66938e238062408d
2012-04-13 11:44:28 -07:00
Daniel Sandler
4dfbe83e1a Unhide some new Notification APIs.
Bug: 6318391
Change-Id: Ie51f373cc84d845fa4aababab702c115fcc9e2e5
2012-04-13 14:05:25 -04:00
John Reck
92bb93eba3 Merge "Remove an unnecessary sanity check" 2012-04-13 10:42:46 -07:00
Jeff Sharkey
10b6f68d48 Merge "Enforce READ_EXTERNAL on non-user builds." 2012-04-13 10:42:33 -07:00
John Reck
3f1679cba0 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
2012-04-13 10:21:16 -07:00
Craig Mautner
7358fbfeb2 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
2012-04-13 10:01:32 -07:00
Jonathan Dixon
939e5040b5 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
2012-04-13 16:36:16 +01:00
Ben Murdoch
f804ba131b Merge "Add support for HTML Media Capture "capture" attribute." 2012-04-13 06:06:50 -07:00
Steve Block
285ddfc8ab Clean up JavaDoc for WebStorage
Bug: 5461416
Change-Id: Ice7a2ca1e346ae80f53b477d236ff8c20032cf2f
2012-04-13 12:58:55 +01:00
Jeff Brown
c2346134bb 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
2012-04-13 04:05:17 -07:00
Mikhail Naganov
b533fb4eef 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
2012-04-13 11:36:57 +01:00