142403 Commits

Author SHA1 Message Date
RoboErik
c785a78fb4 Make PlaybackState immutable with a builder
bug:15862252
Change-Id: I51f2e466bd2c41bbe80d20aa9785126a7ac6ab3f
2014-07-14 13:40:43 -07:00
RoboErik
550116576c Add API to set a default session in Activity
We may have multiple remote sessions at once so an app needs a way
to specify a default session to route media and volume commands to
when its activity is in the foreground. This adds an api that works
in parallel with the default stream api on Activity.

bug:15727927
Change-Id: I5b67cb3e20647f9437d90aa65be63efe8c7865cf
2014-07-14 11:17:06 -07:00
Svet Ganov
a4ab780877 Fix broken actions in print notifications.
The notification handling broadcast receiver was renamed but the
manifest was not updated, hence the receiver was not registered.

bug:16289408

Change-Id: I094e20e472abff1f926e1dbfbac32f422f498f74
2014-07-14 15:43:16 +00:00
Svet Ganov
6f60e56b3c Improve print options click to open behavior.
When print options are closed we show a summary and a handle to open
the options panel. Often the user instinctively clicks on the summary
and also the expand handle is a somehow small target. To improve user
experience clicking on the summary also opens the print options.

Change-Id: Ia2f3b80f5acf11b40af864729f67fa29e82729fc
2014-07-14 15:25:13 +00:00
John Spurlock
cc696171e4 Merge "QS: Update rotation lock icons." into lmp-dev 2014-07-10 21:35:02 +00:00
John Spurlock
1a462c1d23 QS: Update rotation lock icons.
Only three states: unlocked / portrait / landscape, no animation.

Bug:16161728
Change-Id: Id916b81c09925455f87cfccf1350ac4977bad42e
2014-07-14 11:01:24 -04:00
Emily Bernier
9769ef9f8a Restore user switching logic.
Change-Id: I859145efc8e7f426ca7f7ad915b082b7e8a2c516
2014-07-14 10:40:54 -04:00
Jeff Brown
5c6a8e3222 Merge changes I3c19e008,I2c7c6013,I5cfd37d9 into lmp-dev
* changes:
  Update media session test application for new media router.
  Initial draft of new MediaRouter APIs.
  Delete first draft of media routing APIs.
2014-07-10 21:35:02 +00:00
Jeff Brown
ff0215dd64 Update media session test application for new media router.
Change-Id: I3c19e008d211099b4d7320e3f195850cfb4dd927
2014-07-14 04:38:15 -07:00
Jeff Brown
1a937b04e6 Initial draft of new MediaRouter APIs.
This patch introduces basic infrastructure for the new MediaRouter
API.  The code is fully documented but incompletely implemented.
It is being submitted not to facilitate API reviews.

MediaRouter is a new class that applications used to discovery,
connect to, and control media devices as represented by media
destinations and their routes.  Routes may offer a variety of
capabilities.  This new class is a much more powerful replacement
for the existing MediaRouter.

MediaRouteService is a base class for creating media route services
which third-parties can implement to make routes available to
applications.  It is analoguous to the MediaRouteProvider
infrastructure of the old media router support library but it
is designed to be integrated into the framework and enable a
variety of new usages such as remote display projection.

Stay tuned for more...

Change-Id: I2c7c6013d9f751d71e83697e7fc9e49bf7751fef
2014-07-14 04:38:14 -07:00
Jeff Brown
01a500ed1c Delete first draft of media routing APIs.
The new APIs will not be as tightly integrated into MediaSession.

Change-Id: I5cfd37d9d8d0c5d46c55edb5cf0772a8f1ef13ab
2014-07-14 04:06:44 -07:00
Svet Ganov
9fb7b07c6c Dimming deselected preview pages
For print preview we show the pages the user selected in the range
affordance but the user can optionally further prune pages to be
printed by deselecting them in the preview. The deselected pages
change elevation and now also are dimmed.

bug:15912256

Change-Id: I53357b8e8b592387bbc26b937eda786bb4660d85
2014-07-14 07:31:07 +00:00
Svet Ganov
48fec5c9a3 Top printer not properly selected.
We keep track of historically used printers and when the print dialog
is opened we load them. We were selecting the first printer before the
historical ones are loaded which led to a case where the PDF printer
is selected and then a better printer appears but we have the PDF one
selected.

Also we were asking the printer spinner for the current printer but
if the data set of the adapter changes and we ask the spinner for the
selection we get a wrong answer because the adapter and the view are
off sync since the view is updated on the next message.

Change-Id: I0c12d2d3b19227a8f6af6e421b92013ec06cc021
2014-07-14 07:15:34 +00:00
Eino-Ville Talvala
b942b05093 Deprecate android.hardware.Camera
__
             ||
             ||
             ||
             ||---____-----+
             ||    \_/     |
             ||   /. .\    |
             ||  ||---||   |
             ||   |___|    |
             ||    | |     |
             ||---____-----+
             ||
             ||
             ||
_____________||_________________

Replaced by android.hardware.camera2

- Also deprecate MediaRecorder#setCamera
- Also deprecate all Camera inner classes
- Update reference documentation in various classes to point to camera2
- Add note to camera API guide that it uses the old API
  (until a new guide is available)
- Remove old hidden raw sensor format; superceded by RAW_SENSOR.

Change-Id: I3d839765fc9b9aae906751ee32d6956ef40451ce
2014-07-13 21:45:57 -07:00
Jinsuk Kim
bc2b9d30cd Merge "Make sure to finish routing control action" into lmp-dev 2014-07-10 21:52:20 +00:00
Jinsuk Kim
dd233f3d25 Make sure to finish routing control action
After HdmiControlService performs routing control action,
make sure it is finished all the time.

Change-Id: I38e130ee5d8712a18aac7a46cad0950a23713469
(cherry picked from commit 7d05469196721aaa888447149d3b93c8689ff72e)
2014-07-14 00:30:49 +00:00
John Spurlock
1e6eb17a22 QS: Introduce cast control panel.
Make cast controller more granular, at the route level, and
bind a common detail item panel to the available routes.

Fix tile icon, add connecting label.

Remove dialog presentation, no longer needed.

Add the new empty state, and add controller state to dump.

Found a bug in keyguard when in presentation mode, added
a workaround - don't crash when no owner info in keyguard
status view.

Bug:15833210
Change-Id: I19afec390eac2260bccf4a7064065b666b7bceca
2014-07-13 12:06:21 -04:00
Amith Yamasani
f6e2fcc2ea Improvements to Restrictions API
Convert restrictions provider to a service instead of a receiver.
Add a way to get pending responses from restrictions provider.
Add AbstractRestrictionsProvider.
Add a callback API for responses.

Removed some constants in RestrictionsManager.
Added new constants for errors and error codes.
Much improved javadocs.

Bug: 16176009

Change-Id: I838a50fabc80b94b632294b3a55cd5d8092acf55
2014-07-13 07:17:56 -07:00
Wink Saville
7ab9d759f5 Telephony: Introduce config item for Hot Swap support
When a Uicc Card is inserted or removed, Android pops up a prompt
to the user to reboot the device. This prompt is unnecessary if the
modem supports Hot Swapping of cards.

Introduce a new config item to indicate if the modem supports
hotswapping. Frameworks can then check this before propmting the
user.

Bug: 12161291
Change-Id: I0f2c3134525aa2301fd667d0a1819f4419eecae0
(cherry picked from commit 5cbf6098c0d4bb830acd6ef45e8a3c1cedfb165c)
(cherry picked from commit 067089c6a1a8acc638f563f817dafef9172083f0)
(cherry picked from commit fd5d8910922bb16095367d09077e5974422e57ce)
2014-07-13 12:43:07 +00:00
Wink Saville
391c8323fc Unhide isSmsCapable.
Bug: 14113863
Change-Id: I57af2cf2482747e77c9bdf53559345b6b31f01a5
2014-07-13 12:35:43 +00:00
Dongwon Kang
eba1c0bb70 Merge "do not merge. Implement onVideoAvailable/Unavailable in TIF." into lmp-dev 2014-07-10 21:46:42 +00:00
Dongwon Kang
9b08edff23 do not merge. Implement onVideoAvailable/Unavailable in TIF.
Use cases:
  - VIDEO_UNAVAILABLE_REASON_TUNE: to show spinner on channel change.
  - VIDEO_UNAVAILABLE_REASON_WEAK_SIGNAL: to show a message and spinner on weak TV signal.
  - VIDEO_UNAVAILABLE_REASON_BUFFERING: to show spinner on buffering.
  - VIDEO_UNAVAILABLE_REASON_UNKNOWN: to show spinner.

Bug: 14126559
Change-Id: Ide2b68c74bd96d4ea1b9d85ab099a277253d05c7
(cherry picked from commit 1edfd8eb985ee41095c60f4aaf7029f56abff614)
2014-07-14 01:00:53 +00:00
Jinsuk Kim
1677476a3b Shortens the key length in HdmiControlService
The key length for SystemProperties should not be over 31

Bug: 16274152
Change-Id: I25ffaf2fc502819a7aea12372717cd00497fd3be
2014-07-13 23:58:16 +00:00
Alexandra Gherghina
88b93b79cc Merge "Adds hidden startActivityForResultAsUser APIs" into lmp-dev 2014-07-10 20:20:16 +00:00
Alexandra Gherghina
83231457d3 Adds hidden startActivityForResultAsUser APIs
Bug: 16056552
Change-Id: Ib50f95782748a9dfdb2ee64225971128ac78e1c8
2014-07-14 12:47:09 +01:00
John Spurlock
549dbd601a Merge "QS: Cellular usage warning marker + policy cycle." into lmp-dev 2014-07-10 21:28:08 +00:00
John Spurlock
d11a19b8ea QS: Cellular usage warning marker + policy cycle.
Add warning marker to graph from policy, and use the
cycle day from policy to determine the usage period.

Change-Id: I31711eea6a0bf54ad0eb5841d2aa9b8e5927ed58
(cherry picked from commit b5e88019cd69d9320639b6736fabf7f407444967)
2014-07-13 22:24:51 +00:00
Narayan Kamath
1dcdbb5af5 Merge "Unhide Build.SUPPORTED_ABIS and friends." 2014-07-10 20:16:40 +00:00
Narayan Kamath
1adf4002e7 Unhide Build.SUPPORTED_ABIS and friends.
Also deprecates Build.CPU_ABI and Build.CPU_ABI2.

bug: 15018047

Change-Id: If8bda8481b29442c0208ba8a72ec0037e813946c
2014-07-12 11:54:01 +01:00
Jeff Sharkey
906cf8e8a6 Merge "Package installation listener events." 2014-07-11 16:34:41 +00:00
Jeff Sharkey
a103114347 Package installation listener events.
Flesh out implementation of install session observers.  Carve out 20%
of published install progress for final system operations such as
dexopt, etc.

Add dumpsys output for active install sessions.  Create explicit
fsync() instead of overriding meaning of flush().  Hack to throw
IOExceptions over Binder calls.

Bug: 14975160, 15348430
Change-Id: I874457e40c45d2661bc0a526df9285ffea4bb77c
2014-07-12 21:12:25 -07:00
Jeff Sharkey
e0b0bef75b Surface detailed error messages from PMS.
We now both log detailed error messages and relay them back to any
observer.  Start refactoring PMS to throw when errors are encountered
internally to make it easier to reason about flow control; already
uncovered a few instances of errors being silently ignored!

Change-Id: Ia335c5e31bd10243d52fd735c513ca828e83dca0
2014-07-12 16:29:25 -07:00
Yuncheol Heo
d05f67f972 Handle <Feature Abort> after <System Audio Mode Request>.
- Fix some wrong return values.

Bug: 15841647
Change-Id: Ia4596e87204196b48429d55da4945f84de51a07b
2014-07-11 20:07:50 +09:00
Yohei Yukawa
04dc9953b4 Merge "Add simple InputMethodSubtypeTest" 2014-07-10 21:52:20 +00:00
Yohei Yukawa
638e4787ba Add simple InputMethodSubtypeTest
Change-Id: I87105c4935adfca249378e667161d2998cf77840
2014-07-11 19:51:19 +09:00
John Spurlock
caebf6ff00 Merge "QS: Recenter feedback for non-dual tiles." 2014-07-10 21:35:02 +00:00
John Spurlock
529aa73af2 QS: Recenter feedback for non-dual tiles.
And dial the radius down a bit.

Bug:15168179
Change-Id: I946c556b6c31a74a526368097c5c16a7ddbc9749
2014-07-10 22:49:16 -04:00
Jungshik Jang
7468f1db0a Merge "Revamp HDMI-CEC system audio mode integration with audio service." 2014-07-10 21:52:20 +00:00
Jungshik Jang
6f34f5ab8a Revamp HDMI-CEC system audio mode integration with audio service.
In previous change we use setForceUse(FORCE_MEDIA, XXX) method
in order to set specific audio output type, such as LINE, HDMI_ARC,
and SPDIF. But it turns out that it conflicts with bluetooth
a2dp which uses the same setForceUse(FORCE_MEDIA, yyy).

This change is based on several conditions.

1. When other non-speaker devices are on, prevent system audio
   from turing on.
2. In order to keep track of other devices' connectivity and to
   turn off system audio if other device like bluetooth or
   headphone preempts current output, register OnAudioPortChangeListner
   to audio manager.
3. All possible system audio outputs can be merged with other
   outputs without priority.

Change-Id: Id4e47d99db64b9f77a17c2c28c47787ab8980bf7
2014-07-11 08:07:12 +09:00
Raph Levien
b249225456 Fix BCP47 language tags in fallback_fonts.xml
The BCP47 tag we use for selecting Simplified vs Traditional Chinese is
Hans and Hant. This patch uses those tags in fallback_fonts.xml rather
than country names, which weren't getting matched.

Change-Id: I97e1da7b86e8fe8f026365146393304a5ab74443
2014-07-10 22:57:51 +00:00
Jinsuk Kim
f9e44ea716 Merge "Update HdmiControlService JNI to the change in HAL definition" 2014-07-10 21:46:42 +00:00
John Spurlock
f84a1b87c7 QS: Enable wifi entering detail (if disabled).
Bug:16215297
Change-Id: I3cf2b7fadec0b10aeb894db5dc0b92d8b83511f7
2014-07-10 22:23:38 -04:00
Jinsuk Kim
284c31b92e Update HdmiControlService JNI to the change in HAL definition
Change-Id: Iab235785c4d0242ab5845d1f8ad62d78770ff9c4
2014-07-11 07:26:45 +09:00
Tyler Gunn
2db72ad45b Adding call capabilities to indicate whether call supports VT.
Bug: 16213105
Change-Id: Icb05d3f0f6bd90b2c45bdfb7b199f38aaecc16ca
2014-07-10 21:52:20 +00:00
Alan Viverette
297d97fc04 Merge "Specify light and shadow properties in theme" 2014-07-10 21:02:07 +00:00
Alan Viverette
58c42c3596 Specify light and shadow properties in theme
BUG: 15859361
Change-Id: I65c9aa8c7ad7a709504c879d96158efba040d3ce
2014-07-12 20:49:17 -07:00
Adam Powell
278902c982 Updated "with-default" layout added for ResolverActivity
Add a layout that promotes the last chosen activity to the top for
ResolverActivity. Alter ResolverActivity behavior as appropriate: Only
the last selected activity can be set as default. Different activity
selections take effect immediately. You can only set a default if it
was the last-used target of the intent.

Also add some default strings for invoking common intents to make the
no-title invocations a bit more user-friendly than just, "complete
action using."

Bug 15694906

Change-Id: I8c75d2f812926805c949cc76bab48aa4094e002f
2014-07-12 18:48:13 -07:00
Jae Seo
03ad88441c Merge "TIF: Add a way to enable/disable caption" 2014-07-11 16:34:41 +00:00
Jae Seo
2c1c31c7ae TIF: Add a way to enable/disable caption
This is required to handle the case that an application wants to turn
on/off the caption explicitly (e.g. TvView in PIP). TV input service
implementation must respond to the request immediately to avoid any
legal implication since the captioning is imposed by the law in many
countries.

Bug: 14121898
Change-Id: I9600debae709fdc99065d7a0138ae69d1dffc9ba
2014-07-12 20:43:11 -07:00
Alan Viverette
4c33b9f7d4 Merge "Remove material progress drawable" 2014-07-10 20:54:59 +00:00