142436 Commits

Author SHA1 Message Date
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
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
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
Alan Viverette
d7f4a3cdd7 Remove material progress drawable
BUG: 16138805
Change-Id: If8a8981e6ce741d563e870e3c09cbb5f39d30ac9
2014-07-10 15:48:37 -07:00
Sreeram Ramachandran
482edab3ab Merge "Allow a VPN to be declared bypassable." 2014-07-10 20:54:59 +00:00
Sreeram Ramachandran
a9294eb1c9 Allow a VPN to be declared bypassable.
A VPN declared bypassable allows apps to use the new multinetwork APIs to
send/receive traffic directly over the underlying network, whereas without it,
traffic from those apps would be forced to go via the VPN.

Apps still need the right permissions to access the underlying network. For
example, if the underlying network is "untrusted", only apps with
CHANGE_NETWORK_STATE (or such permission) can actually use it directly.

New API with stub implementation to be filled out later.

Bug: 15347374
Change-Id: I8794715e024e08380a43f7a090613c5897611c5b
2014-07-10 14:44:27 -07:00
Christoph Studer
1d599da842 NotificationListenerService API: Avoid unnecessary allocations
Instead of producing Ranking objects, RankingMap just populates
them now, allowing developers to re-use objects and avoid
unnecessary allocations.

Also rename isInterceptedByDnd() to meetsInterruptionFilter(),
since DND is not a concept anymore.

Bug: 15415840
Bug: 16099064
Change-Id: If9861cbdf14593e641a4d4ffd1b967647eb8e2b8
2014-07-10 21:37:56 +00:00
destradaa
1c52d02679 Merge "Mark FLP constants as public, so they can be consumed by geofencing." 2014-07-10 21:14:09 +00:00
Sreeram Ramachandran
633f0e875d Let VpnService specify a white/black list of apps that are allowed access.
New API with stub implementation to be filled out later.

Bug: 13651397
Change-Id: Ibabd6c22495ce58dc88142bb958c1ef12adcf78e
2014-07-10 21:33:58 +00:00
Jorim Jaggi
1e2554b997 Implement two-finger pull down to QS.
Bug: 14590707
Change-Id: I7f88a5b26e88c79e19d4e6c7f4cc8277ffcb2d57
2014-07-10 21:30:52 +00:00
Lajos Molnar
030f0b2340 Merge "Fix build" 2014-07-10 20:49:26 +00:00
Lajos Molnar
5d2fa0e0b5 Fix build
Change-Id: Ic06f633e5d57b28260fa94914e2a0daccdaa1a14
2014-07-12 15:34:51 -07:00
Naveen Kumar Ponnusamy
ee64575cf7 Added a test for HEVC playback memory usage
Bug: 14571712
Change-Id: If5c4053dea23142b73aed77498c93e149b7ef9b2
2014-07-12 22:13:32 +00:00
Derek Tan
73a4b86596 Merge "Allow 1st party app to set Line 1 number for display purpose." 2014-07-11 23:25:18 +00:00
Lajos Molnar
b1a236b85f add utility methods to util.Range, Rational and Size
Bug: 12065651
Bug: 11990470
Change-Id: I0d0929ea0289ac5de5c17cca90f25abc4e9dfd7a
2014-07-12 14:12:27 -07:00
Derek Tan
818631b679 Allow 1st party app to set Line 1 number for display purpose.
After the number is set, TelephonyManager.getLine1Number will actually
return this one instead of the actual MSISDN/MDN.

Bug: 11900806
Change-Id: I4df3fac7b483ddae2bbda14b5a85629486e400cf
2014-07-12 13:36:28 -07:00
dcashman
9726eeb2b0 Merge "Revert "Initial KeySet API."" 2014-07-11 23:25:18 +00:00
dcashman
5de7377fec Revert "Initial KeySet API."
This reverts commit 9a643fe02bc960e266484547dda5572b094a4c72.
2014-07-12 13:04:20 -07:00
dcashman
405912bce0 Initial KeySet API.
Bug: 6967056
Change-Id: I47a01bd5dc25591cc70f58f38920ad0a021094ae
2014-07-12 12:09:40 -07:00
Colin Cross
325503caef Merge "Revert "New SMS and MMS APIs and semantics (1/4)"" 2014-07-10 21:09:47 +00:00