53934 Commits

Author SHA1 Message Date
Igor Murashkin
7ee78d1ee3 camera2: (legacy) Implement AF/AE regions for request and result
* Also stop lying about max AE regions (now reports the truth)

Change-Id: I567a1e6c58ed0bfb77cc09787393ea18eba5d613
2014-07-11 12:59:49 -07:00
Barnaby James
12b6bb44c1 Merge "Add VoiceInteraction request type for successful actions." 2014-07-10 21:09:47 +00:00
Barnaby James
d3fdb8bed8 Add VoiceInteraction request type for successful actions.
Add CompleteVoiceRequest to VoiceInteractor to allow apps to indicate when a voice interaction was successfully completed.

Change-Id: I1481cfe96e9e2495d88a7a4fb62263bdd1e03c54
2014-07-11 10:34:50 -07:00
Svetoslav
15cbc8a032 Addressing comments for the print preview feature.
Change-Id: Ib72140a912e22f859258d970e0d1c4ef06e807d5
2014-07-11 16:46:46 +00:00
Yuncheol Heo
a0c4a06ba3 Add the system feature for HDMI-CEC.
Change-Id: I2a985cedf49d50649c89f2ac5fbb80a81300156d
2014-07-12 11:13:48 +09:00
Chris Craik
a5d98da691 Merge "Disable setOutline() functionality, pending full removal" 2014-07-11 21:38:19 +00:00
Chris Craik
7b7ca3cdf2 Disable setOutline() functionality, pending full removal
bug:15283203
Change-Id: Ibf127fecfcda835117c6087180c64f622b3041e4
2014-07-11 19:02:28 -07:00
Sreeram Ramachandran
06b6cdaed5 Remove unnecessary code and APIs.
This stuff has been replaced by setNetworkForUser() in NetdClient.

Change-Id: If525ee259b74314191d1913f7c2a3e828e05c38f
2014-07-11 18:16:04 -07:00
Chet Haase
685206cb03 Merge "Optimize gatherTransparentRegions to account for transparent bg" 2014-07-10 20:49:26 +00:00
Chet Haase
2b45a16b8b Optimize gatherTransparentRegions to account for transparent bg
gatherTransparentRegions() incorrectly takes the background into account
even when that background drawable is a completely transparent ColorDrawable
(which you can get by calling View.setBackgroundColor(0)). Checking
the opacity of the drawable allows us to ignore drawables that are not
visible.

Issue #13465427 Performance suggestion: View.setBackgroundColor(0) should set background to null

Change-Id: Ic552bf6a07cc9229fd32febc3ada73a0701cad0c
2014-07-11 13:38:51 -07:00
Igor Murashkin
bdb899d734 Merge changes I5c1008cf,I911616c9
* changes:
  camera2: (legacy) Fixes for CaptureRequestTest#testAeModeAndLock
  camera2: (Legacy) Implement ae compensation step ranges and ae/awb locks
2014-07-11 17:04:34 +00:00
Igor Murashkin
c5ea3df1a8 Merge "camera2: (legacy) Implement AF/AE regions for request and result" 2014-07-11 16:34:41 +00:00
Adam Powell
6223aa1054 Merge "Block focus with a touchscreen for ActionBars and Toolbars" 2014-07-10 21:02:07 +00:00
Aaron Whyte
9cd6e647c6 resolved conflicts for merge of d2b5f7da to master
Change-Id: I8ec28728c12d7cc3ce2c4f3d09d9ce6162504618
2014-07-11 13:34:41 -07:00
Adam Powell
ed68773e82 Block focus with a touchscreen for ActionBars and Toolbars
Focus in the presence of a keyboard follows content, not navigational
elements.

Change-Id: I08d0f2fcfe0d4c58418466545b7b57d1345bd07f
2014-07-11 13:27:16 -07:00
Wei Wang
af74e66e29 Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)
Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
2014-07-11 11:06:10 -07:00
Dianne Hackborn
3c58775a12 Merge "Allow INTERACT_ACROSS_USERS for service access." 2014-07-10 20:49:26 +00:00
Makoto Onuki
a2295e65dc Enterprise caller-id: framework/base/Telephony
It's basically equivalent to http://ag/500455 and http://ag/499160.

Now "Send to voicemail" and the missed call notification uses the enterprise
lookup; they now work with a corp contact too.

Bug 15779911

Change-Id: I8a87f45ba7299cfbc516eb44326e02258e38cf63
2014-07-11 17:34:55 +00:00
Dianne Hackborn
409297da18 Allow INTERACT_ACROSS_USERS for service access.
But only if the two users are in the same profile.  Also
apply the same rule for the recently allowed interaction
across content providers.

The activity manager now keeps track of which users are in
the same profile group, and the handleIncomingUser function has
an option to allow a non-full caller to do the interaction
if the two users are in the same profile group.

Spread this joy all over the place.

Also turn off multi-user on Svelte devices.

Change-Id: I231484ea2a6bfccbb3cd51357d7a387bd75039ea
2014-07-11 10:30:04 -07:00
Paul Jensen
5d59e785e1 Readjust location of NETID_UNSET definition.
This is a tweak to my 8ec11bb change I a-little-too-hastily committed.

Change-Id: Ibeee9382109994c66227d1c42aac749e2a274ed7
2014-07-11 16:53:39 +00:00
Jeff Sharkey
355319f782 Merge "Always derive native library paths at runtime." 2014-07-10 20:30:05 +00:00
Jeff Sharkey
84f1294a95 Always derive native library paths at runtime.
Over time, we've unpacked native libraries at various places with
respect to their source APK.  Persisting this path in PackageSettings
has caused more pain recently with the switch to supporting multiArch
and cluster installs.

This change switches us to always derive the native library paths at
runtime based on the type of install.  This also ensures that
transitioning between a bundled system app and an upgraded system
app will always build the right path.

We still persist the last generated path into PackageSettings to make
cleanup at uninstall time easier.

Bug: 16208505, 16206748, 16212206
Change-Id: Ieb82a424ca4a92b5674983453c50ba4b695abfb0
2014-07-10 18:38:39 -07:00
dcashman
78311f3652 Merge "Change key-set/public-key manifest relationship." 2014-07-10 21:21:20 +00:00
dcashman
989eb371bf Change key-set/public-key manifest relationship.
Separate definition of public keys and keysets in the manifest to better
represent their relationship. The 'key-set' tags should have nested additional
'public-key' tags that indicate which of the defined 'public-key' tags are
associated with them.  The first use of a given 'public-key' name should define
its value; subsequent uses may refer to it only by name.  'key-set' and
'public-key' names may not intersect.

Also, change 'keys' tag to 'key-sets' to avoid issues with previous keysets
implementation.

Bug: 6967056
Change-Id: I7534e4a42326e97b67b55509187c0d3c21a2bb32
2014-07-10 18:23:11 -07:00
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
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
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
Alan Viverette
244911f976 Merge "API for inflating action bar menus against a different theme" 2014-07-10 20:54:59 +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
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
Ashish Sharma
cba1215412 Correctly attribute User Activity to the uid in checkin batterystats.
Change-Id: Iacca5985c0b5a68026da6b2b5c9607f8cb71aad5
2014-07-10 22:45:22 +00:00
Jinsuk Kim
b3d91779cb Global system settings for HdmidControlService
HDMI CEC/MHL related settings. All the settings are hidden, to be used
by the service and settings UI.

Change-Id: I1113aa5f77189db73acfa5fe36670a3cd621b1c1
2014-07-10 22:34:11 +00:00
Jon Miranda
a008ea670b Merge "Exposes more properties to assist in evaluating contrast ratios." 2014-07-10 20:54:59 +00:00
Andres Morales
ef6a8cc008 Updating strings to make them more clear for TC
Bug: 15893731
Change-Id: Ib6f5591322e76a35336a62a93863c13363e30dba
2014-07-10 15:03:01 -07:00
Jinsuk Kim
17db3b8cf7 Merge "Support HdmiControlService.sendKeyEvent for both TV/playback device" 2014-07-10 21:43:01 +00:00
Jinsuk Kim
c068bb5a04 Support HdmiControlService.sendKeyEvent for both TV/playback device
Added another parameter deviceType for HdmiControlService to
run the specified local device for sendKeyEvent.

Bug: 15844076
Change-Id: I598ef320ae94bba0ace38701ae0ca12fd0625559
2014-07-11 06:59:26 +09:00
Jon Miranda
a25dc428db Exposes more properties to assist in evaluating contrast ratios.
Change-Id: I43468df4d842e03001ab33e139095afadaeacd20
2014-07-10 21:35:22 +00:00