74763 Commits

Author SHA1 Message Date
Jeff Brown
9704e78418 Merge "Refactor SensorManager to move non-API bits into a subclass." 2012-04-16 15:46:47 -07:00
Jake Hamby
1c23ed6218 Merge "Added API to replace unicoded digits to ascii numbers" 2012-04-16 15:10:18 -07:00
Jake Hamby
d207e2de9a Merge "Convert Arabic phone numbers to ASCII when sending SMS." 2012-04-16 15:10:07 -07:00
jshin
f80310d3c5 Added API to replace unicoded digits to ascii numbers
Users can enter arabic phone number or click arabic phone number
to send MMS. Works for generic Unicode digits (full-width, etc.).

bug:5615791
Change-Id: Ieec8c5c6c3736ee2b4ac8ddf17f8c41b2001460e

Signed-off-by: Jake Hamby <jhamby@google.com>
2012-04-16 15:06:40 -07:00
Jake Hamby
e333c82da3 Convert Arabic phone numbers to ASCII when sending SMS.
Modify PhoneNumberUtils to automatically convert non-ASCII digits,
such as Arabic-Indic numbers, CJK full-width digits, etc., to ASCII
in normalizeNumber(), extractNetworkPortion(), and stripSeparators().

This enables the SMS application to support sending SMS's to phone
numbers written with Arabic, or other non-ASCII digits. The number will
be converted to ASCII digits and formatted for the user according to the
country formatting rules.

Bug: 5615791
Change-Id: I42039285db5795b1dda22e4251f54af302e27f13

Signed-off-by: Jake Hamby <jhamby@google.com>
2012-04-16 15:06:40 -07:00
Makoto Onuki
127cdf6e60 Merge "Add # of changed rows to executeForChangedRowCount log" 2012-04-16 14:57:34 -07:00
Brett Chabot
c24ad53241 Merge "Build Smoke tests against the SDK." 2012-04-16 14:37:24 -07:00
Makoto Onuki
72eebb6b6d Add # of changed rows to executeForChangedRowCount log
Change-Id: I240849f8e90490bbb6f73bbf7047e71254c83f0c
2012-04-16 14:24:37 -07:00
Andreas Huber
901cb6160d Merge "Unhide new media related java APIs." 2012-04-16 14:06:05 -07:00
Eric Fischer
0c0b004a49 Merge "Import translations. DO NOT MERGE" 2012-04-16 13:41:23 -07:00
Eric Fischer
7183a5b177 Merge "Import translations. DO NOT MERGE" 2012-04-16 13:40:53 -07:00
Eric Fischer
9488700933 Import translations. DO NOT MERGE
Change-Id: I040b3101c38af0ae31039893863012eccc035381
2012-04-16 13:38:47 -07:00
Jeff Brown
c22ee664ee Merge "Fix lock ordering bug due to use of reentrant lock." 2012-04-16 13:28:37 -07:00
Eric Fischer
d07db78318 Import translations. DO NOT MERGE
Change-Id: I20ad5f365128dac908e1f5a7ced40af98be4dba5
2012-04-16 13:28:08 -07:00
Jamie Gennis
d1661dcc90 Merge "Unhide new SurfaceTexture & TextureView APIs" 2012-04-16 13:21:53 -07:00
Jeff Brown
8206525b24 Fix lock ordering bug due to use of reentrant lock.
Bug: 6340736
Change-Id: I4dc738da8c976182669b89af9dcb6fd11dcb0223
2012-04-16 13:19:05 -07:00
Jeff Brown
25157e458d Refactor SensorManager to move non-API bits into a subclass.
Changed the SensorManager class so that it only contains API-related
bits including what's needed to support legacy sensors.  Mostly just
moved stuff around.  Making the class abstract is safe because
it does not have a visible constructor in the API.

One minor change is that the cache of sensor type to sensor lists
is now per instance of SensorManager instead of being static.
We can fix this if desired.

Another small change is that we bail out early from registerListener
if the listener has already been registered for the particular
sensor.  This happened for both legacy and standard listeners.
The problem is that the ListenerDelegate maintains two lists of
sensors, one is a Map and the other is a List.  Adding a sensor
twice causes one entry to be added to the Map and two entries to be
added to the List, but when the sensor is removed the next time, only
one entry is removed from the List, leaving it in an inconsistent
state.

Removed Sensor.getLegacyType() since the value it provides is only
needed in LegacyListener and we don't really save any significant
computation by caching it.  Removing the field makes support for
legacy sensors a little more self-contained.

Bug: 6339552
Change-Id: I50d41ac97cf535924f2bfa2026d28547a4d00286
2012-04-16 13:03:55 -07:00
Kenny Root
70544533ae Merge "Better error reporting for PackageManager tests" 2012-04-16 12:16:00 -07:00
Jeff Sharkey
123328778e Merge "Move TrafficStats iface counters to xt_qtaguid." 2012-04-16 12:11:21 -07:00
Jeff Sharkey
c0e5b8c7fa Merge "DownloadManager and metered networks." 2012-04-16 12:03:43 -07:00
Jeff Sharkey
792e091045 DownloadManager and metered networks.
API to control whether a download is allowed to use metered networks.

Bug: 3001465
Change-Id: I29153d2a7495a2e9f76ef5be0a77696a85823839
2012-04-16 12:00:43 -07:00
Dianne Hackborn
455b7bb83c Merge "Add missing clean steps." 2012-04-16 11:28:50 -07:00
Dianne Hackborn
8e638dc335 Add missing clean steps.
Change-Id: Iecb3ff4d6658e581e51414bdfc397953189e66cb
2012-04-16 11:27:11 -07:00
Bjorn Bringert
6e0ac89f38 Merge "Find new recognizer if old one is gone" 2012-04-16 11:23:55 -07:00
Jeff Sharkey
7bf8fba6f0 Merge "API to report if active network is metered." 2012-04-16 11:22:22 -07:00
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
Philip Milne
a5d552fc2b Fix for doc error.
Change-Id: I8aa029d96d4cd28354ecc742007e0fc35b05b705
2012-04-16 10:47:21 -07:00
Brett Chabot
8debcfa290 Build Smoke tests against the SDK.
Done so the new 'launch all apps' test can be utilized on older platforms.

Change-Id: Ie74ce258ceb372e78a0634a633bbb19dcd8e2779
2012-04-16 10:35:32 -07:00
Bjorn Bringert
ddf322915b Find new recognizer if old one is gone
Before, RecognitionManagerService just cleared the recognizer
setting, which the Settings app really doesn't like.

Bug: 6332933
Change-Id: If4f9b583c304c5ea99021dddda50fca55e3ac541
2012-04-16 18:16:37 +01:00
Andreas Huber
07ea426e3a Unhide new media related java APIs.
Change-Id: If0b8201eaca74f51f3499b6ecdfb73088586ee24
2012-04-16 10:14:05 -07:00
Philip Milne
4e1cb3b794 Merge "Fix for bug 6110465." 2012-04-16 10:03:17 -07:00
Mindy Pereira
7c886acf2e Merge "Perform null check on empty view before doing accessibility check." 2012-04-16 09:45:29 -07:00
Mindy Pereira
f937313944 Perform null check on empty view before doing accessibility check.
Fixes b/6341858 AdapterView does not properly check for null before checking empty view accessibility info

Change-Id: Ia19fdef2c7c5f3e6c3053ebc754efe6a664f9d66
2012-04-16 08:58:53 -07:00
Craig Mautner
a0e9d0f60e Merge "Animate from Choreographer only." 2012-04-16 08:39:32 -07:00
George Mount
32f038deab Merge "Check for null mWebViewCore in selectText" 2012-04-16 07:39:01 -07:00
Steve Block
9c6b01a753 Merge "Clean up JavaDoc for WebStorage" 2012-04-16 06:42:36 -07:00
Mikhail Naganov
9f7296af04 Fix javadoc breakage by not linking to now hidden WebView.getZoomControls method.
Change-Id: I770a647b2e6068687530813133847a624ed5aa0d
2012-04-16 14:26:06 +01:00
Steve Block
d099935c52 Merge "Clarify WebSettings comments related to zooming." 2012-04-16 02:25:14 -07:00
Jonathan Dixon
caf97c7db9 Merge "Two WebView API cleanups" 2012-04-16 01:05:06 -07:00
Kenny Root
b7c24702c2 Better error reporting for PackageManager tests
The unit tests were eating failure reasons. Remove some assertions so
the useful messages percolate up to the JUnit report.

Change-Id: Ica8efe403ca3eb4f0c4f2a18939a22085f74a08f
2012-04-15 12:46:22 -07:00
Kenny Root
52c5acacd4 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
2012-04-15 12:40:14 -07:00
Kenny Root
313a93ddf9 Merge "Close streams for forward-locked apps" 2012-04-14 18:43:53 -07:00
Kenny Root
3f99afc0d5 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
2012-04-14 12:23:13 -07:00
Kenny Root
011d778c9f Merge "Add warning log for mismatched signatures" 2012-04-14 12:16:58 -07:00
Kenny Root
8c11f1d6ab 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
2012-04-14 12:11:40 -07:00
Craig Mautner
7d8df3905d Animate from Choreographer only.
Animation steps are now executed on a Thread launched from the
Choreographer rather than being called at the end of the WindowManager
layout process. Animations and layout are still tightly coupled in
that they share considerable state information and neither can be
executed without holding a lock on WindowServiceManager.mWindowMap.

Change-Id: Ie17d693706971507b50aa473da1b7258e9e67764
2012-04-14 10:45:48 -07:00
Jeff Brown
9688fea77e Merge "Add setting to redirect vibrator to game controller." 2012-04-13 20:39:50 -07:00
Jeff Brown
7f6c231a76 Add setting to redirect vibrator to game controller.
Bug: 6334179
Change-Id: I70093e38824ea3e5cf9cf242d1d7b6d26115ed80
2012-04-13 20:38:38 -07:00
Jamie Gennis
75bf74460d Merge "SurfaceTexture: fix updateTexImage JNI" 2012-04-13 20:33:01 -07:00
Jeff Sharkey
dd0c13060d Merge "Surface list of apps with given network policy." 2012-04-13 20:15:54 -07:00