146975 Commits

Author SHA1 Message Date
Jean-Michel Trivi
e9c19a5a8e AudioAttributes: implement hashcode and equals methods
Change-Id: I3245c38d9413ba7590811a038db54628424a420e
2014-08-01 18:07:54 +00:00
John Spurlock
d5fee89ce8 Merge "Battery saver: new policy changes + SystemUI tweaks." into lmp-dev 2014-08-01 17:53:35 +00:00
Etan Cohen
241312e07b Added debug system property to enable/disable IMS VoLTE/VT.
If property is 0: IMS VoLTE is disabled.
If property is 1 then IMS is used as normal: i.e. expected to
be provisioned, registered etc.

Action on missing property defined by constant.

Change-Id: Ibdbb21fa7db30a4088b74092dd6256da012cd697
2014-08-02 14:46:16 -07:00
John Spurlock
1bb480a3a4 Battery saver: new policy changes + SystemUI tweaks.
- Service policy changes: allow the user to turn off (snooze)
   saver mode below the auto-trigger level.  Plugging in the
   device always exits saver mode.
 - Default trigger level is now 0 (never) instead of 15.
 - SystemUI now also listens to a new POWER_SAVE_MODE_CHANGING,
   since waiting for _CHANGED can take seconds.
 - Move shared feature description text into the framework so it
   can be shared.
 - Tweak dialog title + action strings.
 - Remove trigger-level from SystemUI, it no longer needs it.
 - Add the ability to turn off saver mode directly from the
   notification.
 - Migrate saver confirmation dialog to common system UI dialog
   helper, and add a few convenience methods.
 - Fix bug where the status bar area would be orange over the keyguard
   in SHADE_LOCKED mode.

Bug:16214395
Change-Id: I3d1ded1eec9e63e7d97469486f6a320e1bebbccd
2014-08-02 17:12:43 -04:00
John Spurlock
bc53cb41f4 Merge "QS: Fix detail flashing during transition." into lmp-dev 2014-08-01 18:14:18 +00:00
John Spurlock
8af525dd7d QS: Fix detail flashing during transition.
And modify the background a bit during the transition
to enhance the clip effect.

Change-Id: I2b4f4b18cb9c1b41efc2e6b38bc8f7d2a944511e
2014-08-02 10:56:05 -04:00
John Spurlock
494c590f94 QS: Update auto-rotation icon.
Bug:16739860
Change-Id: Id85beb935cbccbecf97a071f114b2eed3e5cc258
2014-08-02 09:24:26 -04:00
Jungshik Jang
2265c8f700 Merge "Fix several bugs on timer recoder code." into lmp-dev 2014-08-01 16:01:17 +00:00
Chris Craik
13ed2178c4 Make outline alpha APIs public
bug:16140822
Change-Id: Ie21e2a75b462319fb49c5696f0c019e1ea803bc1
2014-08-04 23:28:34 +00:00
Jungshik Jang
b634ca8f5f Fix several bugs on timer recoder code.
Change-Id: I331d5c61fa11513584c926fdeea55a5d7adbbad9
2014-08-04 16:27:48 +09:00
Sandeep Siddhartha
9c05fff0bf Merge "Stop recognition when shutting down VIS" into lmp-dev 2014-08-01 13:51:29 +00:00
Sandeep Siddhartha
5e33fb057c Stop recognition when shutting down VIS
Bug: 16629417
Change-Id: I9c98d7e6d487d3eaff604df401c320f8554589f9
2014-08-01 18:18:08 -07:00
Sandeep Siddhartha
2c0273e50a Add a flag for multiple triggers with same recognition session
Also annotate the flags with @IntDef to make things clearer and safer

Add more debug logging

Revert to start/stop being synchronous since telephony and microphone will
need to be handled internally.

Bug: 16731586
Bug: 16514535
Bug: 16549061
Change-Id: I83695d52e9547269c95d443e4d921c9238b7401e
2014-08-01 17:46:27 -07:00
Dake Gu
fc0fc0e341 ActivityTransitionCoordinator: Fix memory leak of ResultReceiver
The ActivityTransitionCoordinator is retained by reference from native code.
The coordinator refers to a app's listener which can cause leak.

b/16737906

Change-Id: Ibbb85480b852442f95b00a8d3beff0161bdadb47
2014-08-01 22:53:14 +00:00
Sandeep Siddhartha
2c84800910 Merge "Add a flag for multiple triggers with same recognition session" into lmp-dev 2014-08-01 13:40:04 +00:00
Robert Greenwalt
83f0f755b0 Add Logging around getNetworkInfo.
bug:16610051
Change-Id: I04f19efc99bce6d990364291b6cd8105f08ab263
2014-08-02 00:15:41 +00:00
Lorenzo Colitti
a793a67197 Improve LegacyTypeTracker.
Keep track of requests as well as of networks that come and go.
This is necessary, for example, to ensure that we pretend that
HIPRI has gone down when the HIPRI request goes away, even
though the underlying cell network is actually completely
unaffected.

Also, ensure that when switching default networks we send
disconnect broadcasts (and do so *before* connect broadcasts, to
maintain the illusion).

Bug: 16610051
Change-Id: Ib3c831387124940156df05b312cc36bc0724373e
2014-08-01 23:52:04 +00:00
Zoltan Szatmary-Ban
3f1ddf83a4 Add AsUser versions of existing DevicePolicyManager methods
Some API methods on DevicePolicyManager call underlying IDevicePolicyManager methods
that can be parameterised with a user id. DPM however only exposed methods for the current user.
This CL makes it possible to call them with any user id by introducing hidden methods on
DevicePolicyManager.

Bug: 15558397
Change-Id: I1786a64fa7cf5f6590ddd04cbf4527bb159f8795
2014-08-01 09:27:19 +00:00
Eric Laurent
9aa499ac42 Merge "unhide AudioFormat getters" into lmp-dev 2014-08-01 02:00:00 +00:00
Jean-Michel Trivi
cc58c76cf0 AudioAttributes: always build formatted tags from tag array
An AudioAttributes instance can either be built through the
 Builder, or from unmarshalling: the mFormattedTags field
 should always be in sync with the array of tags.
In toString() method, use the more compact mFormattedTags.

Change-Id: Ie06cd7758bf4f2d2693fedaa8c3ba4245802d921
2014-08-01 17:51:46 +00:00
Roozbeh Pournader
cc5889dcad Merge "Fix GSUB ccmp rule to use non-spacing marks." into lmp-dev 2014-08-01 02:00:00 +00:00
Roozbeh Pournader
ffa7985489 Fix GSUB ccmp rule to use non-spacing marks.
The fonts are updated to upstream version 2.001047.

The previous version had buggy ccmp rules that were mistakenly replacing
sequences such as A` <U+0041, U+0060> with À <U+00C0>.  The new fonts
replace those with corrected rules that use combining accents instead, such
as U+0300 COMBINING GRAVE ACCENT instead of U+0060 GRAVE.

Also, a GSUB rule that mistakenly replaced aʾ <U+0061, U+02BE> with
ẚ <U+1E9A> is removed, and U+2117 SOUND RECORDING COPYRIGHT that was missing
from the Thin and Thin Italic fonts is added to them.

Bug: 16727859
Bug: 16719701
Change-Id: Ibd0a63ea3f51992c0e56fb255e68352915cc6c3a
2014-08-01 13:25:27 -07:00
Wink Saville
6d13bc8e3b Turn off extra debugging
Change-Id: I3d7c68d3d7bcef5be084398807389f4a485bedb0
2014-08-01 12:36:54 -07:00
Jason Monk
2daf62ce40 Don't show guest when user switcher is simple
Bug: 15729059
Change-Id: I9e88f0e7d01044a7096d6fc8d67bcd328014a625
2014-08-01 18:37:01 +00:00
Behdad Esfahbod
fb72b6b10f Merge "Add fontFeatureSettings to TextView and attrs" into lmp-dev 2014-08-01 17:53:35 +00:00
Behdad Esfahbod
e9ad3931fa Add fontFeatureSettings to TextView and attrs
New API is hidden.

Bug: 15246510
Change-Id: I8cdbbd3a36fc280e07569dbb130f8c237062fff5
2014-08-01 21:35:05 +00:00
Wei Wang
166e5afa5d Merge "Add a default impelementation of IBluetoothGattCallback(1/2)." into lmp-dev 2014-08-01 13:51:29 +00:00
Wei Wang
e0d4afb2d4 Add a default impelementation of IBluetoothGattCallback(1/2).
Also cleaned up a few TODOs and fixed bug.
b/16410260 AdvertiseCallback null onSuccess callback

Change-Id: I75a582c03be1e2ef6964c2cbeba42aaaf9f9e17c
2014-08-01 14:34:25 -07:00
Wink Saville
bfa96fb382 Merge "Fix double DBG check." into lmp-dev 2014-08-01 01:46:21 +00:00
Wink Saville
063b8d665e Fix double DBG check.
Change-Id: I45e175df698240b80374f98043b50a014fd9779a
2014-08-01 13:14:50 -07:00
Wei Wang
3f55577bae Merge "Revert "Revert "Service data and manufacturer data can be repeated fields.""" into lmp-dev 2014-08-01 13:40:04 +00:00
Wei Wang
6bf513d32d Revert "Revert "Service data and manufacturer data can be repeated fields.""
This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.
2014-08-01 11:12:37 -07:00
Mike Lockwood
e619d86723 Merge "Add accessorytest Linux host tool for testing USB accessory audio and HID support." into lmp-dev 2014-08-01 01:46:21 +00:00
Deepanshu Gupta
b80e42f93f Replace more Locale methods.
This change replaces some methods of java.util.Locale. Some of them were
added in 1.7 and some are not present in the Desktop VM.

Change-Id: Ifdf8451bb2acf55e01dce8b5e15c40c8160107cc
2014-08-04 23:02:02 +00:00
Deepanshu Gupta
1840e8f2c7 Fix Delegates
Change-Id: I2b6a6b679b7a5b2532b76b723155bc2763b70768
2014-08-04 23:00:43 +00:00
Deepanshu Gupta
d2a411840c Fix LayoutLib Create tests.
Change-Id: Ica3efe417d54da7dc74b21d28215199d37600744
2014-08-04 22:59:38 +00:00
Deepanshu Gupta
86eb8b4e29 Add testing framework to LayoutLib.
This change adds an end to end test which loads the framework resources
and a test app and ensures that no exceptions or warnings are thrown.

The change also adds project configuration for intelliJ.

Change-Id: I7b67c0f1a2af2dac95df7f3231cab537b9826d7d
2014-08-04 22:58:39 +00:00
Winson Chung
b99b18e78e Fixing scrolling regression with layout changes.
Change-Id: Ic440d147ca13bf13d7f311b6d9876e3c02d4f189
2014-08-04 22:55:43 +00:00
Mike Lockwood
6b524d9b45 Add accessorytest Linux host tool for testing USB accessory audio and HID support.
The tool supports testing USB audio by default.
It reads audio from the ALSA device for the android phone in accessory mode
and outputs it to the ALSA device for the PC's speaker.
The default values work on my PC, but can be changed via command line options.

When the -a option is specified, accessorytest also acts as the host side of the
AccessoryChat test, so audio can be tested side by side with the accessory bulk endpoint support.

When the -h option is specified, accessorytest will look for HID devices on the PC and proxy them
to the phone over the accessory protocol. This requires running accessorytest as root.

Change-Id: I1ea06d7201cd845b95a92a42594464783a90189b
2014-08-04 15:29:18 -07:00
Andrew Flynn
4f1f7ba3a8 am c08203c2: am 4881578e: am ea12f0fd: Fix some sync adapter docs typos.
* commit 'c08203c22c8407d9a9777eb6f436bfb79edb1f74':
  Fix some sync adapter docs typos.
2014-08-04 21:26:44 +00:00
Chris Craik
6efd17588b Set default outline alpha to 1.0f
bug:16795461
Change-Id: I7ccecee84b47a2bbf91fc11ad3005160f913ba77
2014-08-04 20:53:41 +00:00
Andrew Flynn
c08203c22c am 4881578e: am ea12f0fd: Fix some sync adapter docs typos.
* commit '4881578e6ccd8b51606750e3fd4e20b2204287c7':
  Fix some sync adapter docs typos.
2014-08-01 18:33:48 +00:00
Andrew Flynn
4881578e6c am ea12f0fd: Fix some sync adapter docs typos.
* commit 'ea12f0fd7ed236fa38f73cfff5be5fa36f016690':
  Fix some sync adapter docs typos.
2014-08-01 18:29:27 +00:00
Andrew Flynn
ea12f0fd7e Fix some sync adapter docs typos.
Change-Id: Icb108bcfd7835049ff7d50660d1f8084ebc3c8e9
2014-08-01 18:25:04 +00:00
Geoff Mendal
f6b0c2f31b Merge "Import translations. DO NOT MERGE" into lmp-dev 2014-08-01 08:29:25 +00:00
Geoff Mendal
d809436c92 Import translations. DO NOT MERGE
Change-Id: I11a53b337e1607794c52fd0e60fd6fefac76f9ef
Auto-generated-cl: translation import
2014-08-04 18:21:48 +00:00
Geoff Mendal
2b2dc01b99 Import translations. DO NOT MERGE
Change-Id: I1060b2e4a480058c4949575c31cc2806d0d921bb
Auto-generated-cl: translation import
2014-08-04 11:11:44 -07:00
Christoph Studer
273f246c27 Merge "NoMan: Fix notification sqlite log schema" into lmp-dev 2014-08-04 08:01:05 +00:00
Christoph Studer
1ad856e17f NoMan: Fix notification sqlite log schema
The 'log' table creation SQLite code had syntax errors
and left the table in a weird state.

This CL fixes the creation syntax and drops old tables
since they might be in an inconsistent state.

Bug: 16726344
Change-Id: I241d08c9e30cedf27ca37bfaf349975077de222d
2014-08-04 16:18:29 +02:00
Torne (Richard Coles)
5f3278ba1e Don't let failures to load the null WebView propagate.
We load the null WebView if the real WebView package is not available to
support devices that aren't intended to have a WebView, but this results
in confusing log messages if the real WebView is supposed to be present
but is broken/unloadable for some reason. Since the null WebView is in
the system classpath on devices that should use it, swallow any failures
to load it on the assumption that this is actually just a failure of the
real WebView to be loaded.

Change-Id: I15820da3517daffde6169343c648a4486c0309d7
2014-08-04 14:26:16 +01:00