147420 Commits

Author SHA1 Message Date
RoboErik
477d1197c3 Combine MediaSession Callback and TransportControlsCallback
This combines them into a single Callback class and adds default
handling to media buttons to check the available actions and call
one of the other methods if appropriate.

Change-Id: If9897d8cf6d8d8046aa85a646c22382f1db1461b
2014-08-07 16:54:52 -07:00
RoboErik
217e8a2b46 Change URI type metadata back to text
Was accidentally changed in a previous CL. We decided against adding
the URI type.

Change-Id: Ifccf0e784d3fe3196e80cca238de6f8c4456e85e
2014-08-07 16:54:51 -07:00
Narayan Kamath
a3d98c2508 Merge "Reduce the frequency of calls to isDexOptNeededInternal." into lmp-dev 2014-08-07 18:53:12 +00:00
Narayan Kamath
05e8f801b5 Reduce the frequency of calls to isDexOptNeededInternal.
The package manager maintains a set of dexopted instruction
sets as a fast path to avoid calling expensive code. We were
correctly adding elements to that list while performing dexopt,
but were *not* adding elements to the list when isDexOptNeededInternal
told us things were up to date. As a result, we'd hit the slow path
100% of the time on userdebug builds in the steady state, i.e, when
the system did not dexopt anything since boot.

With this change, we make sure isDexOptNeededInternal is called
precisely once per boot in such case.

This patch also fixes broken logic for apps that have multiple
code paths. We must mark the paths as dexopted only if we've
processed all paths.

bug: 16828525
bug: 16868741
Change-Id: Icb59121fe915d892e677d9b7e9a4efd11555ae27
2014-08-08 17:39:59 +00:00
Svetoslav
7c91b34364 Merge "Polish the new cross-profile app widget APIs" into lmp-dev 2014-08-07 18:49:59 +00:00
Svetoslav
8e1d299da2 Polish the new cross-profile app widget APIs
bug:14991269

Change-Id: I5996f8c69a3d151ff1ecd8f19403dd606f588150
2014-08-08 20:35:59 +00:00
John Spurlock
5c8ea2c369 Merge "New api to sync zen mode state from listeners." into lmp-dev 2014-08-08 18:15:47 +00:00
ztenghui
61a6184681 Merge "Update attrs / public.xml for VectorDrawable opacity removal" into lmp-dev 2014-08-08 17:26:08 +00:00
ztenghui
d0d0f1ff59 Update attrs / public.xml for VectorDrawable opacity removal
bug:16850076

Change-Id: Ib6fea828b14e85cacccc8a901227a8fb068f9121
2014-08-08 19:48:36 +00:00
Winson Chung
4f70cacd45 Merge "Exposing taskDescription for apps to read from their own AppTasks. (Bug 16826622)" into lmp-dev 2014-08-08 16:09:03 +00:00
Winson Chung
e9217a0729 Exposing taskDescription for apps to read from their own AppTasks. (Bug 16826622) 2014-08-08 11:27:41 -07:00
Amith Yamasani
40bc0186d0 Merge "No need to send PRE_BOOT_COMPLETED for new users" into lmp-dev 2014-08-08 17:26:08 +00:00
John Reck
a7c2ea20c4 Fix damage for layers for projection receivers
Bug: 16880228

Change-Id: I59ab760a21f49cc2cac0d8936b173cff292e6114
2014-08-08 20:24:34 +00:00
Amith Yamasani
c2f20b66fd No need to send PRE_BOOT_COMPLETED for new users
Since the primary purpose is to upgrade databases, no need
to send this broadcast. If system apps care to be informed early
on new user creation, USER_INITIALIZE is an early broadcast.

Also remove some logs that spew when switching users.

Bug: 16846465
Change-Id: Ibd7f8630ce1f41f8cadbda616de05844b127d1a8
2014-08-08 12:15:17 -07:00
John Reck
171927a62a Merge "Don't use ViewPropertyAnimatorRT yet" into lmp-dev 2014-08-08 17:26:08 +00:00
John Reck
4937a70cc6 Don't use ViewPropertyAnimatorRT yet
Bug: 16894195

 Needs more work and soak time

Change-Id: I8d38492b32780f5bba8a3439bfe3dbd30da3811c
2014-08-08 18:29:18 +00:00
Guang Zhu
4ed52ab752 Merge "freeze screen rotation during memory and app launch test" into lmp-dev 2014-08-08 16:09:03 +00:00
Guang Zhu
e2a03fe43d freeze screen rotation during memory and app launch test
Change-Id: I2a039be383562019a0af9470c5053cd3cb1e6142
2014-08-08 11:30:21 -07:00
Christopher Tate
54f0894169 Merge "API to tell the transport to cancel a full backup in progress" into lmp-dev 2014-08-07 18:39:40 +00:00
Christopher Tate
e079264b98 API to tell the transport to cancel a full backup in progress
Bug 16524520

Change-Id: If2cbffd3c8a03bf4eb7b11ff1ae784c437e27e7f
2014-08-07 23:16:19 +00:00
Winson Chung
e41ab847a5 Fixing regression with scrolling and launching an out-of-view task. (Bug 16875419)
Change-Id: Ib64e18f9a0f1de02de28a29251dd1d159d5d89ee
2014-08-07 16:10:24 -07:00
Nicolas Prevot
c3093eb86b Merge "Making getProviderMimeType work across users." into lmp-dev 2014-08-07 18:39:40 +00:00
Nicolas Prevot
1dddc7fc79 Making getProviderMimeType work across users.
For apps with cross-user uri grants, but without INTERACT_ACROSS_USERS.

BUG: 16128346

Change-Id: I0136cd274eaf457804d196c09f746f66c1fe599f
2014-08-08 15:26:23 +01:00
Santos Cordon
8abea42490 Remove ldaps from AOSP code.
Bug: 16327484
Change-Id: I1fbeed8e1642e8228310cf0e7b95c4809b50901b
2014-08-07 11:37:52 -07:00
RoboErik
dbf45c14af Merge "Add descriptions to MediaController buttons" into lmp-dev 2014-08-07 17:50:16 +00:00
RoboErik
94ca536419 Add descriptions to MediaController buttons
This widget was missing some accessibility descriptions.

bug:16536697
Change-Id: I6f50fd1f4fc0a804151ff465b612128d71a1fde6
2014-08-07 15:48:46 -07:00
Raph Levien
0a4ea30c79 Merge "Add new fonts.xml" into lmp-dev 2014-08-07 17:50:16 +00:00
Raph Levien
8c1f9360ce Add new fonts.xml
This adds a new configration file for fonts with several more features,
most notably the ability to specify numeric weights for fonts in a
family, and specify aliases for weights. This will help help choose an
appropriate font for a "bold" weight request, rather than just applying
auto-bolding.

Bug: 14538154
Change-Id: Ib4d54d66a0c68b7d46e665d7cd94e97b72468e95
2014-08-07 20:57:32 +00:00
Yuncheol Heo
6d73986305 Merge "Make it not to go to sleep when changing TV's input to the others." into lmp-dev 2014-08-07 16:36:32 +00:00
Yuncheol Heo
64bafd9108 Make it not to go to sleep when changing TV's input to the others.
- Previously, we decided to make it go to sleep when changing TV's input
  to the others.  But, we found that the current molly couldn't wake up by
  CEC commands actively.  So, we'll revert the decision.
- In addition, during investigating this issue, we found that currently
  molly couldn't work with Samsung (SS) TV harmoniously.  SS TV will send
  <RoutingChange> and <RequestActiveSource> when it wakes up.  If there
  is no <ActiveSource> response, then it will change the input to the
  internal.  This CL handles this issue also.

Bug: 16803105
Change-Id: I5179561775b186b486fc3f2a042e759fcb07451b
2014-08-11 13:48:37 +09:00
Sungsoo Lim
b93d265aa5 Merge "TIF: Add content rating systems" into lmp-dev 2014-08-07 16:56:07 +00:00
Sungsoo Lim
98ea5fa8e4 TIF: Add content rating systems
- Change the strings for translation to English only.
- Add content rating systems for many countries.
- Update javadoc of TvContentRating which is auto-generated based on
  tv_content_rating_systems.xml and strings.xml

Bug: 16862855, Bug: 16889743
Change-Id: Ifd81c85934b8631e8ae00633639989275982ecfb
2014-08-11 14:44:05 +09:00
Jungshik Jang
1f819bbfc8 Add IHdmiSystemAudioModeChangeListner to TvInputHardwareManager.
This is to update audio patch when HDMI-CEC system audio mode is changed.

Bug: 16113320
Change-Id: I312fffe511c0bce1c973bb66e9c16875e5dcee56
2014-08-11 13:51:37 +09:00
Jungshik Jang
61daf6b38e Hook up device power status change to TIF
Instead of introducing new api update existing
IDeviceEventListener

Bug: 16445063
Change-Id: I93bfc736a06a78e83c95877a53f4f241b51ed9c0
2014-08-11 10:40:29 +09:00
Yohei Yukawa
7c023fada2 Merge "Fix handling of line-end and RTL characters in CursorAnchorInfo" into lmp-dev 2014-08-07 16:36:32 +00:00
Yohei Yukawa
987eb3f109 Fix handling of line-end and RTL characters in CursorAnchorInfo
This CL addresses line-end handling and RTL characters handling
in CursorAnchorInfo.

BUG: 16499624
Change-Id: Ie23569fb136751c40f79dd9886e279dc01cefae9
2014-08-11 20:39:12 +09:00
Vinit Deshpande
0b798b97dc Merge "Support EAP-SIM and EAP-AKA" into lmp-dev 2014-08-07 15:42:44 +00:00
Vinit Deshpande
c850593142 Support EAP-SIM and EAP-AKA
This change un-hides constants for these two methods and
also un-hides RADIUS/AAA FQDN field to allow creating
Passpoint release 1 credentials.

Change-Id: Ia3501017dc1f5c0b4932bb45e1e9c5bf7262d7fe
2014-08-08 21:06:12 -07:00
Christopher Tate
83b2fb8f73 Merge "Start using cancelFullBackup() when appropriate" into lmp-dev 2014-08-09 00:40:15 +00:00
Christopher Tate
bf1a4a81eb Start using cancelFullBackup() when appropriate
The API was in place but the framework wasn't yet calling it.

Bug 16524520

Change-Id: Ie368758c830a7d0ad11e7dd3142a0ed896069944
2014-08-09 00:48:47 +00:00
Jae Seo
d86eb6f8a4 Merge "TIF: Move watch history logging to TvProvider" into lmp-dev 2014-08-09 00:45:27 +00:00
Jae Seo
7eb75dff7a TIF: Move watch history logging to TvProvider
There are only two kinds of watch events that can happen on the system:
 1. The current TV input session is tuned to a new channel.
 2. The session is released for some reason.
The former indicates the end of the previous log entry, if any, followed by the
start of a new entry. The latter indicates the end of the most recent entry for
the given session. Here the system supplies the database the smallest set of
information only that is sufficient to consolidate the log entries while
minimizing database operations in the system service.

Bug: 14791151, Bug: 15921205, Bug: 15988715, Bug: 16831555
Change-Id: Ifcb1a1273c14ee234919d819d082b1004eb92ebc
2014-08-10 10:39:52 -07:00
Jean-Michel Trivi
8b72930bc0 Merge "Define FLAG_BEACON in android.media.AudioAttributes" into lmp-dev 2014-08-09 00:51:24 +00:00
Jean-Michel Trivi
6894cd38eb Define FLAG_BEACON in android.media.AudioAttributes
Define FLAG_BEACON as @SystemAPI
Keep track of which flags are public, and the list of all
 supported flags for easier code maintenance.

Bug 15415971

Change-Id: Ia7675e8fa4bc7c4d7a8f727fd25ff92ecb68483c
2014-08-08 12:16:12 -07:00
Chulwoo Lee
97f550485e Merge "TIF: Fix a bug of incorrect watch history" into lmp-dev 2014-08-07 16:37:11 +00:00
Chulwoo Lee
8d4ded0058 TIF: Fix a bug of incorrect watch history
When the user keeps watching one channel without tuning to the other
channel, the user can watch many programs. In this case as many watch
history records as the number of programs the user watched should be
inserted in watched_programs table.
But there is a bug now that only one record is logged for all the
programs and this CL fixes the bug and makes the watch history
logging work correctly for this case.
In addition, package information should be added to the content value
because it should be not null in programs table.

BUG: 16177411
Change-Id: I058f9db927b5d684a1af7852630f50ec2d2743b6
2014-08-09 00:22:55 +09:00
Calin Juravle
8ad7f2051d Use native ISA for dex code (in case there's a NativeBridge)
In the presence of a native bridge it is more efficient to compile the
dex directly to the native ISA than to use the shared library ISA as a
reference.

This can be achieve by configuring the readonly system properties to map
between the .so ISA and the desired dex code .ISA (e.g.
ro.dalvik.vm.isa.ISA1=ISA2).

Bug: 16185267

(cherry picked from commit I50baa7b37e1465b9adf72d6f6b96f526a08d59c7)
(cherry picked from commit I8fe453a800812e382e8f41b5f7922997aa9c18a9)

Change-Id: I6c9684149691285310c961189b58af8c7f47aff4
2014-08-08 15:37:17 +01:00
John Spurlock
f328227e82 Merge "Volume: Hide zen options during setup." into lmp-dev 2014-08-07 18:39:40 +00:00
Adrian Roos
0832b48221 QS: Make user switcher RTL aware
Bug: 16406694
Change-Id: I00efaf34281945635aa91bc3871ca6361c946ffe
2014-08-08 15:59:03 +02:00
Adrian Roos
1940892d89 QS: Make user switcher expand when users don't fit
Also updates the switcher to match the latest redlines.

Bug: 16406694
Change-Id: Ibf44ed9ea2ef4e3c467724eb4c79f1df5b3e49f4
2014-08-08 13:17:55 +00:00