29743 Commits

Author SHA1 Message Date
Jeff Sharkey
9f7cbf0e50 API to report if active network is metered.
Report to developers if active network is "metered" and define it
as the user being sensitive to heavy data usage.

Bug: 3001465
Change-Id: I855ca3cd3eb1de3c4814148d70ccf24957af898a
2012-04-16 11:20:27 -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
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
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
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
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
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
Ben Murdoch
f804ba131b Merge "Add support for HTML Media Capture "capture" attribute." 2012-04-13 06:06:50 -07: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
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
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
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
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
Svetoslav Ganov
fac14f9731 NumberPicker not redrawn when current value is changed via an IME.
1. The NumberPicker scroll wheel was not updated upon value change
   via an IME as well as the picker was not redraws after the change.

bug:6291879

Change-Id: I5ba30df42e38cd06fa150328399eb4deeb0b683d
2012-04-12 16:57:18 -07:00
Fabrice Di Meglio
276de3e1eb Add new Arabic font for SystemUI
- still work in progress
- bug #5987379

Change-Id: I0a7f7437c9061eab0abc9d5979c947eb5511992a
2012-04-12 16:40:56 -07:00