74815 Commits

Author SHA1 Message Date
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
Jonathan Dixon
c2401d094a Merge "Add deprecated tag and note StrictMode violation" 2012-04-13 02:35:06 -07:00
Jonathan Dixon
b36584042e Merge "Hide the public constructors for singleton classes" 2012-04-13 02:35:00 -07:00
Jonathan Dixon
f2e103623b Merge "Decouple JsResult from the WebViewClassic impl" 2012-04-13 02:33:04 -07:00
Ben Murdoch
be716920e7 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
2012-04-13 10:09:14 +01:00
Wu-cheng Li
5573ac0149 Merge "Unhide camera autofocus move callback." 2012-04-13 01:03:57 -07:00
Jeff Sharkey
5d32e772b3 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
2012-04-12 23:29:14 -07:00
Fabrice Di Meglio
069c4f3f0c Merge "Improve Paint.setTextLocale()" 2012-04-12 19:07:57 -07:00
Jeff Brown
882735972e Merge "Notify applications when input devices change." 2012-04-12 18:55:57 -07:00
Jeff Brown
af9e8d3818 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
2012-04-12 18:54:54 -07:00
Fabrice Di Meglio
029b633038 Improve Paint.setTextLocale()
Change-Id: Iffc9f8816f48dbd431b3b430a7c48f8d646703f3
2012-04-12 18:44:16 -07:00
Irfan Sheriff
d4fecc2567 Merge "Pre-association service discovery support" 2012-04-12 18:33:05 -07:00
Adam Powell
c8cbf5de76 Merge "Fix bug 6330745 - internal fix for spinners" 2012-04-12 18:23:03 -07:00
Dianne Hackborn
67ae551272 Merge "Keep activities stopped while the lock screen is up." 2012-04-12 18:18:45 -07:00
Adam Powell
af3631314f Fix bug 6330745 - internal fix for spinners
Change-Id: I2897ce5f41f9442714053675405296cab5296ac6
2012-04-12 18:14:12 -07:00
Irfan Sheriff
cbba37c609 Merge "Bonjour fixes" 2012-04-12 17:55:15 -07:00
Christopher Tate
a23b343299 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
2012-04-12 17:52:03 -07:00
Irfan Sheriff
21ba815332 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>
2012-04-12 17:50:29 -07:00
Makoto Onuki
6c70ef1fb2 Merge "Add documentation about clearing usage stats" 2012-04-12 17:49:09 -07:00
Eino-Ville Talvala
ae9a5ca01f Merge "Editing fixes to ImageFormat documentation." 2012-04-12 17:48:58 -07:00
Fabrice Di Meglio
62901af52a Merge "Add Paint.setTextLocale()" 2012-04-12 17:37:44 -07:00
Fabrice Di Meglio
f98c8b32e8 Merge "Add new Arabic font for SystemUI" 2012-04-12 17:36:18 -07:00
Fabrice Di Meglio
517825f1a9 Add Paint.setTextLocale()
- will be used for better shaping CJK and other goodies

Change-Id: If64945a337edd915f5ebb88f04b6fd18e92ca587
2012-04-12 17:31:17 -07:00
Dianne Hackborn
ff5b158f69 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
2012-04-12 17:26:55 -07:00
Svetoslav Ganov
7f97e54a15 Merge "Switch does not append its state text to accessibility node infos." 2012-04-12 17:20:12 -07:00
Svetoslav Ganov
78bcc15b6c Switch does not append its state text to accessibility node infos.
1. Switch was not populating the state on/off test in accessibility
   node infos. It apparently has two texts, the state one and the
   one it inherits from TextView.

bug:6213278

Change-Id: I9c6b1798a8b3230cfb6755cc5b088c320d991642
2012-04-12 17:17:24 -07:00
Makoto Onuki
b0d2299fb0 Add documentation about clearing usage stats
Bug 5475575

Change-Id: Idee771a6b29dcd4870090cd1b5c72e126886fb47
2012-04-12 17:12:11 -07:00
John Reck
11e07818d0 Merge "The new APIs for the bookmarks, history and images." 2012-04-12 16:59:32 -07:00
Romain Guy
41ffd86df1 Merge "Don't update TextureView's surface if the Layer doesn't exist" 2012-04-12 16:58:47 -07:00
Svetoslav Ganov
bc896be574 Merge "NumberPicker not redrawn when current value is changed via an IME." 2012-04-12 16:58:34 -07:00