142390 Commits

Author SHA1 Message Date
Svetoslav
0c126a478b Fix print document with zero pages backwards compatibility.
Historically, we were allowing an app that prints to specify that
the printed document has zero pages. While this does not make any
sense we should keep the behavior as people may have apps that do
that. This change fixes this issue and now we treat zero the same
way as undefined page count and ask the app to write all pages to
check the written PDF for the page count.

bug:16199127

Change-Id: I4e7de66b669e9f783db0252244a6c1e5b24ffe28
2014-07-11 00:43:28 +00:00
John Spurlock
32618191f6 Merge "Volume: Elide collapsed condition title if no end." 2014-07-10 21:35:02 +00:00
John Spurlock
8263c3e064 Volume: Elide collapsed condition title if no end.
And make expanded title non-clickable.

Bug:16211705
Change-Id: I675b8ad8d08dca9a3f38292c45b771dc6532de77
2014-07-10 20:33:27 -04:00
Chris Craik
73842582fe Abort on shader link/compile failure
b/16207378

Change-Id: I12debb0846214a08459ad25454653a003f034402
2014-07-11 00:32:27 +00:00
John Spurlock
980f9925bb Merge "Volume: Use accent color for selected radio button." 2014-07-10 21:21:20 +00:00
Jungshik Jang
4fc1d105fc Revamp disabling device in local device.
When a cec deivce turns into disabled mode such as power off, standby,
and cec feature disabled, cec service should execute cleanup tasks.
Including cleaning up all feature actions, each device should run
their own cleanup.
It should stop system audio mode and arc for tv, while it should
send inactive source for for playback device.
Along with this, to prevent stale feature action, added timeout
to local device so that if there is stale action, it enforce to
finish it.

Bug: 16118520

Change-Id: I5ce30ab0f4459b6e2834f8d31b6a7ff789b35d07
2014-07-11 08:04:44 +09:00
John Spurlock
f7d22132c2 Volume: Use accent color for selected radio button.
Bug:16212456
Change-Id: Ic1badeaf6eec98cd2780592660a36d7087bb677b
2014-07-10 19:03:00 -04:00
Sandeep
f6f604adef Merge "Always on hotword changes" 2014-07-10 21:09:47 +00:00
Sandeep
d701820031 Always on hotword changes
Add model management API skeleton to VoiceInteractionManagerService
Add an "interactor" for all always-on APIs

- The VoiceInteractionService will get an interactor for the given
  keyphrase and locale.
- It can then check the availability and call methods to start and
  stop recognition on this interactor.

- Add a common class to deal with SoundTrigger APIs

- Cleanup the keyphrase representation:
  We now have separate representations for the keyphrase metadata and
  a keyphrase being used for recognition.
  This'll also help us to handle custom keyphrases in the
  future easily.
  This also ensures that for use within the framework,
  we rely on the ID of the KeyphraseInfo rather than comparing the
  text everytime.

Add a callback for the AlwaysOnHotwordDetector

This callback should be passed in by the VoiceInteractionService and is used to notify it
of recognition events.

Change-Id: I26252298773024f53a10cdd2af4404a4e6d74aae
2014-07-10 18:32:37 -07:00
Alan Viverette
3d4fe363b2 Merge "Add accessibility action to open power long-press dialog" 2014-07-10 20:54:59 +00:00
Alan Viverette
e34560b219 Add accessibility action to open power long-press dialog
Also fixes an infinite recursion bug in the WindowManagerService
implementation of WindowManagerInternal.

BUG: 16129909
Change-Id: I4f9d32f4e6c3ad460652c5e5271540fa5032a1f5
2014-07-10 14:54:26 -07:00
Matthew Williams
a76932b909 Merge "Add job persistance as a setter in the API" 2014-07-10 21:02:07 +00:00
Matthew Williams
900c67fc51 Add job persistance as a setter in the API
Bug: 15936795
Change-Id: I11e5a722bab5838dc151670256ed09dfaa7fdaa7
2014-07-10 16:51:27 -07:00
Alan Viverette
244911f976 Merge "API for inflating action bar menus against a different theme" 2014-07-10 20:54:59 +00:00
Amith Yamasani
41cd577c12 Send USER_FOREGROUND and USER_BACKGROUND to all related profiles
Also do a check for null applicationInfo object during user creation.

Bug: 16211029
Change-Id: Ib49c241cf3698735e273edf5704bef277f1142a5
2014-07-10 23:26:03 +00:00
Ruben Brunk
47e91f2095 DNG: Implement remaining interface methods.
Bug: 15112503
Bug: 16206973
Bug: 15748139

- Adds remaining write methods.
- Adds GPS and description convenience methods.
- Unhides convenience methods.

Change-Id: I9535b21261027f6c06a041c1621de8f865a0ad32
2014-07-10 23:17:35 +00:00
Alan Viverette
3d0f21dab8 API for inflating action bar menus against a different theme
BUG: 16162344
Change-Id: I5bf9f133de56a1830028bca6326cc2c50888a052
2014-07-10 16:15:35 -07:00
Adam Powell
d7935522fe Merge "Fix bogus current.txt merge" 2014-07-10 20:43:36 +00:00
Adam Powell
ffd4163fc6 Fix bogus current.txt merge
Change-Id: Id60b61f16a47c11626829c4b50fe712acc5723b7
2014-07-10 17:02:00 -07:00
Jason Sams
a6fc1e4d2f am b374a845: Unhide RenderScript resize intrinsic
* commit 'b374a845f041df0e8b00dca512db9b46b5ddd232':
  Unhide RenderScript resize intrinsic
2014-07-10 23:55:24 +00:00
Adam Powell
8e77c47d7c Merge "Elevation for action bars" 2014-07-10 20:54:59 +00:00
Eino-Ville Talvala
e1f57d6f44 Camera2: Add CPU/GPU overhead measurement to legacy mode
Dumps GL and CPU processing duration and frame timestamps to a file,
whenever the device is closed or the stream configuration is changed.

- Add PerfMeasurement class to legacy mode
- Wire up minimal usage to SurfaceTextureRenderer

Change-Id: Ic9d74ca26f706780b746175aa615c7aae4ae52e7
2014-07-10 23:49:07 +00:00
Adam Powell
14d1fa4ba7 Elevation for action bars
Expose theme attributes and API for ActionBar to adjust elevation of
the bar.

Remove the windowContentOverlay fake shadow from material themes and
use elevation instead.

Mmm, realtime shadows.

Bug 16207490

Change-Id: I254567a13422b6d2f657b9991608398885f45204
2014-07-10 16:23:39 -07:00
Jason Monk
20b716bfc6 Merge "Add API for device owner to switch users" 2014-07-10 21:21:20 +00:00
Narayan Kamath
557b26de56 Merge "Fix broken dexopt logic." 2014-07-10 20:20:16 +00:00
Narayan Kamath
fd12a35dfc Fix broken dexopt logic.
The logic was incorrect in the presence of multiple paths
(cluster installs) or multiple instruction sets (multi arch)
because of an early return in the case of sucessful dexopt.

- Rewrite this logic to make it (hopefully) clearer.
- Fix a related bug in getAppDexInstructionSets.
- Add instruction set to the dexopt logs.

bug: 16013931
Change-Id: I18c9755583f0a6f8be70469ec2062269564f0f41
2014-07-11 16:34:14 +00:00
Niels Egberts
7137419a58 Merge "New convenience method that takes a CharSequence and an Object as the span that is applied to the appended text." 2014-07-10 20:16:40 +00:00
Niels Egberts
ca7b0277d7 New convenience method that takes a CharSequence and an Object as the
span that is applied to the appended text.

Change-Id: Ibdc4a71346e5691bcfe6af23f34beff69d642908
2014-07-11 09:55:44 +00:00
Dongwon Kang
1f213914c4 Support multiple tracks in TV Input framework.
Added API: getTracks/selectTrack/unselectTrack/onTrackInfoChanged
(onVideo/Audio/ClosedCaptionStreamChanged callbacks are removed in favor of onTrackInfoChanged)
Use cases: audio and closed caption track selection
Background: go/tif-multi-track

Bug:14073704, Bug:14121898, Bug: 16049453
Change-Id: I199ed16f690d4e757da0bb30c8bc8222a6fa1d7a
2014-07-11 18:46:25 +09:00
Jungshik Jang
a9f10629f4 Start address allocation when hdmi cec is re-enabled.
When a user turns hdmi cec on from system settings or other possible way,
hdmi control service should start over from logical address allocation.
As device discovery action from bootup is slightly different from
one from enabling hdmi cec, added additional params to all notification
method which is called when logical address allocation is done.

Bug: 16222082

Change-Id: Ib73be5f642646918b470d769dc563753c4ff48d3
2014-07-11 16:39:15 +09:00
Jinsuk Kim
7ecfbaed6e Read/Write flags from/to system settings
Use Settings for storing several flags/values to keep the data persistent
across power cycle, and also to make them configurable via system Settings UI.

Bug: 16185931

Change-Id: I98650863e4237fd91c1b35717f14a570e049427c
2014-07-11 16:04:57 +09:00
Jungshik Jang
8ed86c467a Implement retransmission of cec request.
BUG: 16218422
Change-Id: I4a6692ba8815e9a0ae26c872656b31b678d54fd6

Conflicts:
	services/core/java/com/android/server/hdmi/HdmiCecController.java
2014-07-11 14:14:48 +09:00
Adam Powell
ff0d298adb Add API to block focus in the presence of a touchscreen
For the sake of devices with touchscreens and optional keyboards, add
the touchscreenBlocksFocus attr and associated get/set methods to
ViewGroup. This will act much like FOCUS_BLOCKS_DESCENDANTS, but only
if the context reports that a touchscreen is present. This allows an
app to define much coarser-grained block elements for focus instead of
navigating between each individual (normally) focusable element, on
the theory that the readily available touchscreen or other keyboard
shortcuts allow for more fine-grained interaction. Keyboard focus
navigation thereby becomes more efficient at a coarse level.

Bug 13987814

Change-Id: Ie652b8845122a59046e96ad6074b3de163779adc
2014-07-10 20:38:42 -07:00
Jinsuk Kim
d3dc721c0a Merge "HdmiConfig class holding constants that may need customization" 2014-07-10 21:52:20 +00:00
Jinsuk Kim
5fba96df30 HdmiConfig class holding constants that may need customization
Put in one place some constants used in HdmiControlService that
may need customization. This makes it easy to do the job.

Bug: 16160911

Change-Id: I59786a48d336cfca722daa82c1f0dceb88c5e5e4
2014-07-11 11:55:15 +09:00
Narayan Kamath
4b8299b844 Merge "Add a test multiarch app." 2014-07-10 20:16:40 +00:00
George Mount
f3de5a2e34 Remove modified APIs
viewName was changed to transitionName and
MoveImage was replaced with ChangeImageTransform + ChangeBounds.

Change-Id: I5e0b0250ef3c926d1c3de212de3a5e1503e89b86
2014-07-11 14:37:11 +00:00
Narayan Kamath
e99f69a484 Add a test multiarch app.
Will be used in an upcoming change for PackageManagerService
handling of multiArch APKs.

Change-Id: I363a02ce7b91569bb86880cf511ab9fbfcf2665c
2014-07-11 15:07:49 +01:00
Leon Scroggins III
d66a8719b0 Merge "Simplify Shader.setLocalMatrix." 2014-07-10 21:35:02 +00:00
Leon Scroggins III
ab87983a11 Simplify Shader.setLocalMatrix.
Previously, calling setLocalMatrix updated any Paint that had the
Shader attached. This depended on deprecated behavior in Skia. Use
new Skia APIs, and do not modify any Paints that use the Shader.

In addition, update callers to call setShader (again) after modifying
the Shader.

Sample app at ag/499573 for testing.

Depends on I673801444f0a8fd4f192b5b7effdde1aa83e702b in external/skia.

BUG:14315916
Change-Id: I3c3316377874e89fccc85afb864bc038b0ef3890
2014-07-10 18:01:22 -04:00
John Spurlock
219cca781b Merge "If status bar is the keyguard, allow clearing vis flags." 2014-07-10 21:21:20 +00:00
John Spurlock
08ffcf5301 If status bar is the keyguard, allow clearing vis flags.
The policy around leaving flags alone when the user
is interacting the status bar is not applicable when
the status bar is acting as the keyguard.

Bug:14913124
Change-Id: I96b4b707abce71f77ac2acb6f4086df661f5a25c
2014-07-11 10:15:25 -04:00
Leon Scroggins III
b7abf31023 Merge "Recycle original screenshot after rotation." 2014-07-10 21:28:08 +00:00
Jungshik Jang
4bbabe7508 Merge "Clear timout when all pending actions are cleared." 2014-07-10 21:43:01 +00:00
Jungshik Jang
b3e114af17 Clear timout when all pending actions are cleared.
Remove disable_device_timeout message when all pending
actions are cleared, PendingActionClearedCallback#onCleared
is called.

Change-Id: I32e37c94c6a6dfc149da3bb0553d2a3238bae479
2014-07-11 23:17:55 +09:00
Jungshik Jang
b69aafbfad Hook up missing volume-change with AudioManager.
Whenever new volume change is notified from system audio,
hdmi control service should delegate it to AudioManager.
Note that, it should set FLAG_HDMI_SYSTEM_AUDIO_VOLUME,
which prevents audio manager from notifying volume-
change event back to hdmi control service.

Change-Id: I6621f517a4d20226aea9159bbae6b699e2c2ffd0
2014-07-11 23:09:56 +09:00
Yohei Yukawa
5528fe43fa Merge "Consolidate test cases for InputMethodSubtype" 2014-07-10 21:52:20 +00:00
Yohei Yukawa
a52aeda808 Consolidate test cases for InputMethodSubtype
We have accepted any arbitrary text as a locale
string when instantiating InputMethodSubtype object.
As a consequence, some existing code might assume
that InputMethodSubtype never canonicalize/normalize
the given locale string.

This CL add a test case for such scenario.

Change-Id: Ie08d6e149e22a60d6c4d40049a3e6afeee87dc44
2014-07-11 23:08:34 +09:00
Yohei Yukawa
7c940e94c9 Merge "Polish new IME API for L part 2: CursorAnchorInfo" 2014-07-10 21:43:01 +00:00
Zoltan Szatmary-Ban
c3b07a0c9c BatteryStatsHelper.refreshStats for multiple users
Battery usage list is now populated for apps belonging to a list of users or profiles.

Change-Id: Ie899af74a4b3a0f3cd6ae3c93394f01f4f54a5c7
2014-07-11 14:04:01 +01:00