Commit graph

5031 commits

Author SHA1 Message Date
Dan Stoza
af153e0a5d hwc2: Fix readback docs
Fixes a couple of problems with the return codes in the readback
documentation and adds a paragraph of clarification about when
getReadbackBufferAttributes will be called.

Bug: 67048889
Test: N/A, doc fix only
Change-Id: I3ea1a6993323f7ce12c36a377bf69e2866b18082
2018-05-15 13:09:51 -07:00
android-build-team Robot
20a91a6283 Snap for 4765094 from 5838dff356 to pi-release
Change-Id: I7f1a3317d0c203069cf82a278d55d632d865c65d
2018-05-06 07:21:41 +00:00
Marissa Wall
b892682a90 gralloc1: security hardening am: 5838dff356
am: c5347d9440

Change-Id: I2944ca26b3ddcdd479c9e9686bb497f0616b320e
2018-05-03 16:32:19 -07:00
Marissa Wall
c5347d9440 gralloc1: security hardening
am: 5838dff356

Change-Id: Iae3d0e3dd6c31cd4548056fc8dd1341496e635d8
2018-05-03 15:58:13 -07:00
Marissa Wall
5838dff356 gralloc1: security hardening
Add support for getTransportSize, validateBufferSize and importBuffer
to gralloc1.

Bug: 66876469
Test: Manual

Change-Id: Ie3435297cff2d3272df658af262905c13f403e4b
2018-05-02 12:14:52 -07:00
Dominik Laskowski
55cf6f01e5 HWC2: Add getDisplayIdentificationData
The getDisplayIdentificationData API enables display identification for
generalized multi-display support.

Bug: 74619554
Test: None
Change-Id: I8e87312c628e30d7cae691c70dacd0f352a85133
2018-04-24 10:31:15 -07:00
android-build-team Robot
8807c589b1 Snap for 4696032 from 8aeeb241f1 to pi-release
Change-Id: I270a47fc769188e3c730a135f2b9ff4a0ed7d74e
2018-04-03 07:25:28 +00:00
Chia-I Wu
cbc2d0bf9d Merge "hwcomposer2: add render intent support" into pi-dev am: 8aeeb241f1
am: d40704c21a

Change-Id: I3a2a05640b00ffc4f7df6d00ee888658cf459fff
2018-04-02 18:31:03 -07:00
Chia-I Wu
d40704c21a Merge "hwcomposer2: add render intent support" into pi-dev
am: 8aeeb241f1

Change-Id: I3b6ec05b1bc238b84879214afa10762759dca46b
2018-04-02 23:47:41 +00:00
Chia-I Wu
8aeeb241f1 Merge "hwcomposer2: add render intent support" into pi-dev 2018-04-02 22:22:28 +00:00
android-build-team Robot
d4bee206f1 Snap for 4693621 from 0360e255f1 to pi-release
Change-Id: Id5feccb356de3972d8eae06d6ebd13c3e311da74
2018-04-01 07:28:18 +00:00
Kevin Rocard
d0aa25a2a1 Audio V4: Add metadata update to legacy API am: 0360e255f1
am: c77f799ff1

Change-Id: I8325ddfc00dcaac47f740cc76045f568b4425760
2018-03-31 01:54:34 +00:00
Kevin Rocard
c77f799ff1 Audio V4: Add metadata update to legacy API
am: 0360e255f1

Change-Id: I175e5ad8c7f913d8b810f064dc223c3a478ea949
2018-03-31 00:03:32 +00:00
rago
6012c8f87c Merge "Support query microphones information." into pi-dev am: 721f4e8984
am: d6c41dd831

Change-Id: Ibd1854649eb745ea99750e819ef95ffc690cb75e
2018-03-30 20:50:49 +00:00
rago
d6c41dd831 Merge "Support query microphones information." into pi-dev
am: 721f4e8984

Change-Id: I15046f99a5fd4e29a6ccb48f11d54d0fb1f14d67
2018-03-30 18:49:04 +00:00
Chia-I Wu
28310aa868 hwcomposer2: add render intent support
Add

 HWC2_FUNCTION_GET_RENDER_INTENTS
 HWC2_FUNCTION_SET_COLOR_MODE_WITH_RENDER_INTENT
 HWC2_FUNCTION_GET_DATASPACE_SATURATION_MATRIX

and fix HWC2_FUNCTION_SET_PER_FRAME_METADATA to be per-layer.

Bug: 73824924
Test: manual
Change-Id: I25e34c4bf3dc5d496ea23c2d13419dd28f3e6cca
2018-03-30 11:47:09 -07:00
Brian Young
747485d0be [automerger skipped] Add "Unlocked device required" key API am: 8cf2862f94
am: 2d744d867c  -s ours

Change-Id: I8bc2e398b454e47610b6f64123a538afef20fc6f
2018-03-30 18:42:16 +00:00
Kevin Rocard
0360e255f1 Audio V4: Add metadata update to legacy API
The metadata API was not present in the legacy HAL API
which lots of developer still use.

Test: Check the method is correctly called on each track change
Bug: 38184704
Bug: 69623109
Change-Id: I46a9db5a67baef52844ed85296a529402e00f4cb
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-30 11:29:11 -07:00
Brian Young
2d744d867c Add "Unlocked device required" key API
am: 8cf2862f94

Change-Id: Ibe0d9d993337fa05d8b69fe2d580d0f4ab67d083
2018-03-30 17:06:05 +00:00
TreeHugger Robot
721f4e8984 Merge "Support query microphones information." into pi-dev 2018-03-30 16:59:41 +00:00
Brian Young
8cf2862f94 Add "Unlocked device required" key API
Add a keymaster parameter for keys that should be inaccessible when
the device screen is locked. "Locked" here is a state where the device
can be used or accessed without any further trust factor such as a
PIN, password, fingerprint, or trusted face or voice.

This parameter is added to the Java keystore interface for key
creation and import, as well as enums specified by and for the native
keystore process.

Test: CTS tests in I8a5affd1eaed176756175158e3057e44934fffed

Bug: 67752510

Merged-In: I94d8bc5543d00d28064c6e555b38823b70dbfbe6
Change-Id: I94d8bc5543d00d28064c6e555b38823b70dbfbe6
(cherry picked from commit a47bb10496)
2018-03-28 08:38:57 -07:00
rago
909a8f988b Support query microphones information.
Get list of all/currently active microphones from input stream.
Part of the device enumeration feature.

Bug: 64038649
Test: Manual Testing and Cts integration test
Change-Id: Ibe231c430186c18ce43497c351b7d3e3b2425811
2018-03-21 14:16:52 -07:00
Brian Young
a47bb10496 Add "Unlocked device required" key API
Add a keymaster parameter for keys that should be inaccessible when
the device screen is locked. "Locked" here is a state where the device
can be used or accessed without any further trust factor such as a
PIN, password, fingerprint, or trusted face or voice.

This parameter is added to the Java keystore interface for key
creation and import, as well as enums specified by and for the native
keystore process.

Test: CTS tests in I8a5affd1eaed176756175158e3057e44934fffed

Bug: 67752510

Change-Id: I94d8bc5543d00d28064c6e555b38823b70dbfbe6
2018-03-15 14:25:22 -07:00
android-build-team Robot
a687d09002 Snap for 4638586 from 762407ccc3 to pi-release
Change-Id: Iee9834df79e42136fe7c42e06323de693af92f6e
2018-03-07 08:27:26 +00:00
Kevin Rocard
f9c259ae1f Merge "Audio V4: Add missing parameter keys" into pi-dev am: 762407ccc3
am: 75ae7e343b  -s ours

Change-Id: I1a18a293b02e82bff64e2d71153b41108fe3bac0
2018-03-07 04:12:22 +00:00
Kevin Rocard
75ae7e343b Merge "Audio V4: Add missing parameter keys" into pi-dev
am: 762407ccc3

Change-Id: I2f2e43fb2501308127b0bbb3c048323bf7a39d90
2018-03-07 03:59:25 +00:00
TreeHugger Robot
762407ccc3 Merge "Audio V4: Add missing parameter keys" into pi-dev 2018-03-07 03:23:51 +00:00
Ashutosh Joshi
aee95f4b20 Merge "Update OWNERS" into pi-dev am: b07ab6fd1d
am: 7db0ba983a

Change-Id: Iccc312900e6ccab3bc7cbc1b71122d6c298d865a
2018-03-07 01:55:48 +00:00
Ashutosh Joshi
7db0ba983a Merge "Update OWNERS" into pi-dev
am: b07ab6fd1d

Change-Id: I065dde9fa997c32e66600da3f80e0832e14a6c35
2018-03-07 00:31:26 +00:00
Ashutosh Joshi
b07ab6fd1d Merge "Update OWNERS" into pi-dev 2018-03-06 23:12:45 +00:00
Kevin Rocard
d55a49a01e Audio V4: Add missing parameter keys
Those keys were used as literal strings
instead of having a declaration.

Bug: 38184704
Test: compile
Change-Id: I45709a4a9120e98014d2a4f763fc17f9ef1267ac
Merged-In: I45709a4a9120e98014d2a4f763fc17f9ef1267ac
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:53 -08:00
android-build-team Robot
a1831be69f Snap for 4635315 from 16ad46ef48 to pi-release
Change-Id: Id079b1a069bd798b2c62b1aad01140177a0976b8
2018-03-06 08:23:27 +00:00
Kevin Rocard
eef07a269a Merge "Audio V4: Add missing parameter keys" 2018-03-06 04:59:43 +00:00
Ashutosh Joshi
797ae998eb Update OWNERS
Update OWNERS to new stewards.

Test: Build compiles.
Change-Id: I98f9f58bce6b3686f3ff67f28f3e8d2f2ddf0a88
2018-03-06 03:46:20 +00:00
Mikhail Naganov
c4a78c2940 Revert recent r_submix patches am: 16ad46ef48
am: 8579af332c

Change-Id: Ib6c41f5e47e5040887db781bc2c804d4663457a5
2018-03-06 01:01:13 +00:00
Mikhail Naganov
8579af332c Revert recent r_submix patches
am: 16ad46ef48

Change-Id: I81847b326f175e1d9f8f8fe0a17774f2ae5e5a00
2018-03-06 00:27:39 +00:00
android-build-team Robot
6da6afab70 Merge cherrypicks of [3690002, 3691519, 3691668, 3690254, 3691428, 3690156] into pi-release
Change-Id: I250c91b3e8eaf9abed407bd6dca5603938994a3d
2018-03-05 22:14:57 +00:00
Mikhail Naganov
bf7e59cadf Revert recent r_submix patches
Revert "r_submix: Fix logspam on pipe corruption"
This reverts commit ab5b51838c.
Revert "r_submix: Use intermediate pipe in non-blocking mode"
This reverts commit 1df8a0039f.

Reason: breaks Android Auto projected mode

Bug: 74142786
Test: with Android Auto head unit simulator
Change-Id: I8e1bc146a131cb5b1ab88cf242b03a6b02a84339
(cherry picked from commit 16ad46ef48)
2018-03-05 22:14:20 +00:00
Mikhail Naganov
16ad46ef48 Revert recent r_submix patches
Revert "r_submix: Fix logspam on pipe corruption"
This reverts commit ab5b51838c.
Revert "r_submix: Use intermediate pipe in non-blocking mode"
This reverts commit 1df8a0039f.

Reason: breaks Android Auto projected mode

Bug: 74142786
Test: with Android Auto head unit simulator
Change-Id: I8e1bc146a131cb5b1ab88cf242b03a6b02a84339
2018-03-05 20:39:30 +00:00
Mikhail Naganov
1d0e97310b Revert recent r_submix patches
Revert "r_submix: Fix logspam on pipe corruption"
This reverts commit ab5b51838c.
Revert "r_submix: Use intermediate pipe in non-blocking mode"
This reverts commit 1df8a0039f.

Reason: breaks Android Auto projected mode

Bug: 74142786
Test: with Android Auto head unit simulator
Change-Id: I8e1bc146a131cb5b1ab88cf242b03a6b02a84339
2018-03-05 12:32:13 -08:00
android-build-team Robot
cf12d23f62 Snap for 4632767 from ab5b51838c to pi-release
Change-Id: Id24c270347d877f68c6c1f468a98615580562a13
2018-03-04 08:25:38 +00:00
Kevin Rocard
6bc9933e68 Audio V4: Add missing parameter keys
Those keys were used as literal strings
instead of having a declaration.

Bug: 38184704
Test: compile
Change-Id: I45709a4a9120e98014d2a4f763fc17f9ef1267ac
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-02 12:49:11 -08:00
Mikhail Naganov
ab5b51838c r_submix: Fix logspam on pipe corruption
Prevent logging an error message on every attempt to write
if the FIFO backing up the MonoPipe got corrupted. This condition
can be detected by checking for -EIO error code.

Bug: 74067530
Test: make audio_utils_fifo_base::mIsShutdown to be set by default,
      run r_submix_tests and observe logcat

Change-Id: I5d67997e902e834f04c10f9ffb39b16cba9c5739
2018-03-01 13:49:58 -08:00
android-build-team Robot
eb32795813 Snap for 4628106 from 1df8a0039f to pi-release
Change-Id: I5b436863f3778a5ab7b070a458f9773afa45d18a
2018-03-01 08:25:39 +00:00
Mikhail Naganov
1df8a0039f r_submix: Use intermediate pipe in non-blocking mode
Switch the pipe into non-blocking mode to prevent stalling
when attempting to close it.

Simulate circular buffer behavior by flushing old data if
there is no more space in the pipe.

This removes the need for "exiting=1" parameter.

Bug: 73175392
Test: r_submix_tests
Change-Id: Iff89980af71112892ff262030e471ae736b1f62a
2018-02-27 10:11:33 -08:00
Mikhail Naganov
bf115538e8 r_submix: Add more tests
From analyzing the coverage data, these tests seem to cover
all the critical functionality of the remote submix module.

Bug: 73175392
Test: r_submix_tests
Change-Id: I7f6be95245c6ab59611fc5e269e3f9f2079b8ee4
2018-02-27 10:02:33 -08:00
android-build-team Robot
0a84591a4f Snap for 4620899 from 3fb93a3708 to pi-release
Change-Id: I55f114bd3a13380ab7e6d0d2f300e401a278e838
2018-02-25 08:22:12 +00:00
android-build-team Robot
c69e6f23db Merge cherrypicks of [3653390, 3653430, 3652255, 3652256, 3652257, 3653371, 3652400, 3653391, 3653372, 3652972, 3653411, 3653412, 3653413] into pi-release
Change-Id: Ibd5d1748b46b73a0e635f6a808186d78b3ed10f4
2018-02-23 18:03:55 +00:00
Brian Young
ffb4b4663c Revert "Restore "Add "Unlocked device required" parameter to keys""
This reverts commit a684cb6c2c.

Reason for revert: Regression in creating auth-bound keys

Bug: 73773914

Bug: 67752510

Change-Id: Ib215d63efe442916f90065015a57614b097cd74d
(cherry picked from commit 968f997468)
2018-02-23 18:03:25 +00:00
TreeHugger Robot
3fb93a3708 Merge "Revert "Restore "Add "Unlocked device required" parameter to keys""" 2018-02-23 17:42:45 +00:00