Commit graph

7590 commits

Author SHA1 Message Date
Chia-I Wu
ca064e776f graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf am: ca8ced7a5c am: 7b332605c2
am: df93992df7

Change-Id: Ib101eb80dda1d8091169368d37e14e400c987951
2017-12-14 20:46:44 +00:00
Chia-I Wu
df93992df7 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf am: ca8ced7a5c
am: 7b332605c2

Change-Id: Ie80f0e4e60cdd608968c8e9cef5506ceb69140dd
2017-12-14 20:44:10 +00:00
Chia-I Wu
7b332605c2 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf
am: ca8ced7a5c

Change-Id: I62dd91f412581d871d4f1e8b569731d6a901b7fd
2017-12-14 20:41:37 +00:00
Chia-I Wu
ca8ced7a5c graphics: ignore/reduce spurious vsync in VTS
am: 353cc075bf

Change-Id: I27381f1e34191e4af28f79ce035458165ca845b3
2017-12-14 20:39:06 +00:00
Jiyong Park
1b9a4ba3d6 android.hardware.graphics.allocator@2.0 is no longer VNDK-SP am: e514a4b8a8 -s ours
am: 8c20d2002a  -s ours

Change-Id: I9d2dc8ca1e0706f15dc1f21d3d5f0b30d0e37809
2017-12-14 03:13:01 +00:00
Jiyong Park
8c20d2002a android.hardware.graphics.allocator@2.0 is no longer VNDK-SP
am: e514a4b8a8  -s ours

Change-Id: I80e1d11e964e14b95f48d8e7f389139253ae2d02
2017-12-14 03:06:54 +00:00
Jiyong Park
e514a4b8a8 android.hardware.graphics.allocator@2.0 is no longer VNDK-SP
The interface lib has been in VNDK-SP because
android.hardware.graphics.mapper@1.0 was using it. However, since the
dependency has gone [1], there is no need keep it in VNDK-SP. The
VNDK-SP set should be kept as small as possible because libs in VNDK-SP
are subject to double-loading.

Unmark the 'support_system_process' property to exclude the lib from
VNDK-SP.

This commit re-lands I8722c1ac15ddf56a627a12a0c649b4d734e5e5cd because
it was reverted during O-MR1 push to AOSP-master.

Bug: 69480083
Test: walleye boots to the UI
Change-Id: I0af8115dceb9711c6c451ffaeedda6c823ec2905
Merged-In: I8722c1ac15ddf56a627a12a0c649b4d734e5e5cd
(cherry picked from commit ec44d18dbe)
2017-12-13 11:58:24 +08:00
Xin Li
9ffbd54511 DO NOT MERGE: Merge Oreo MR1 into master am: 7c9d4b1384 -s ours
am: 63c9be2736

Change-Id: I3d6f8e8d1659d5af367a65623afdd52e4f68a64f
2017-12-07 06:45:39 +00:00
Xin Li
63c9be2736 DO NOT MERGE: Merge Oreo MR1 into master
am: 7c9d4b1384  -s ours

Change-Id: Ib2d9175c76ba02d8f0699cbcf58a927ce6837825
2017-12-07 04:17:54 +00:00
Xin Li
7c9d4b1384 DO NOT MERGE: Merge Oreo MR1 into master
Exempt-From-Owner-Approval: Changes already landed internally
Change-Id: I8318c8bcc6ce5e750326b3315710c96a37838f22
2017-12-06 14:24:51 -08:00
Kevin Rocard
d7042bba2b Merge changes from topic "b/69811500" into oc-dev am: 61ae0a1fc7 am: d7d5d7a22d
am: abec925f05

Change-Id: If1f7ce2a3bf45bfa5b147fe8f21eac21b5516f0b
2017-12-06 20:33:38 +00:00
Kevin Rocard
abec925f05 Merge changes from topic "b/69811500" into oc-dev am: 61ae0a1fc7
am: d7d5d7a22d

Change-Id: Id4c64ec8339a7a4112b482a3cef33095c3dabc79
2017-12-06 20:31:08 +00:00
Kevin Rocard
d7d5d7a22d Merge changes from topic "b/69811500" into oc-dev
am: 61ae0a1fc7

Change-Id: I8d3e90d9695330b87f8e93dff84b752ec18e5254
2017-12-06 20:28:07 +00:00
TreeHugger Robot
61ae0a1fc7 Merge changes from topic "b/69811500" into oc-dev
* changes:
  Audio HAL: Allow setters to not be implemented
  Audio VTS: HAL can support more than the native sampling rates
2017-12-06 20:18:12 +00:00
Kevin Rocard
a0e6bbe78b Audio policy config: remove cross-module device port name uniqueness am: 503c3e0a4e am: c5ce355c24
am: e8e9cdcf5e

Change-Id: Ieec5791e1864d87ea26a1743f4543d0ff07c2825
2017-12-06 19:51:18 +00:00
Kevin Rocard
ead5a3bed3 Audio policy config: Device port (type,address) must be unique am: fa1f597442 am: d4112727b7
am: 7c7fc0c69a

Change-Id: I669ff1e8e32b7e539d33d8f1a05ee06962836e60
2017-12-06 19:51:05 +00:00
Kevin Rocard
c8ef2e0e44 Audio policy config: allow vendor to extend module name am: 7558e8c6e4 am: ec55b2f024
am: 540748bc80

Change-Id: I7f0627e930fc7a8fe13ac13f708d0972c5747b23
2017-12-06 19:50:51 +00:00
Kevin Rocard
e8e9cdcf5e Audio policy config: remove cross-module device port name uniqueness am: 503c3e0a4e
am: c5ce355c24

Change-Id: I1e9225d0acd5515890fec9bc259b39f26b3c8e5e
2017-12-06 19:36:16 +00:00
Kevin Rocard
7c7fc0c69a Audio policy config: Device port (type,address) must be unique am: fa1f597442
am: d4112727b7

Change-Id: I4d24d58034d3a39fee66308b44620c956ad5c345
2017-12-06 19:36:08 +00:00
Kevin Rocard
540748bc80 Audio policy config: allow vendor to extend module name am: 7558e8c6e4
am: ec55b2f024

Change-Id: Ic7c5de5e7c215c43f2ea044a38bbf52ee71984ca
2017-12-06 19:36:03 +00:00
Kevin Rocard
c5ce355c24 Audio policy config: remove cross-module device port name uniqueness
am: 503c3e0a4e

Change-Id: Ibeef7dd1ad8db4a55b9e323c07d3a499289f7d73
2017-12-06 19:30:49 +00:00
Kevin Rocard
d4112727b7 Audio policy config: Device port (type,address) must be unique
am: fa1f597442

Change-Id: I03176086075fb2c2911edf3a470b0319cb8648b6
2017-12-06 19:30:44 +00:00
Kevin Rocard
ec55b2f024 Audio policy config: allow vendor to extend module name
am: 7558e8c6e4

Change-Id: I2acafb47c986e5886b0bacc0bb6c6419feae69e5
2017-12-06 19:30:34 +00:00
Kevin Rocard
3bcba14c36 Audio HAL: Allow setters to not be implemented
setSampleRate, setChannelMask, setFormat
may not be implemented by the HAL, although this is not documented in
the HAL API.
Currently the VTS test requires their implementation if the respective
getSupported{SampleRate,ChannelMask,Format} are supported.

Relax this requirement as the framework never calls those setters.

Note that the optionality of those functions will be documented
in the next HAL API version.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Bug: 69811500
Change-Id: I3a390ae925cabd99e7f1ed4a627e71ad87b1b437
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-05 15:42:10 -08:00
Kevin Rocard
02025847de Audio VTS: HAL can support more than the native sampling rates
getSupportedSampleRate should return the native sampling rates,
(IE. the sampling rates that can be played without resampling)
but other sampling rates can be supported by the HAL.

The test was too strict as it was failing if HALs were supporting more
sample rates than there native (optimized) ones.

For example, a HAL might have its best performance (no resampling)
on 48kHz but still support 16kHz through resampling.

Note: getSupportedSampleRate might be renamed to getNativeSampleRate in
the next major HAL revision to avoid ambiguity.

Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Bug: 69811500
Change-Id: I1ec1ce422bc5039637463c6641060508f4ee892b
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-05 15:14:17 -08:00
Zhuoyao Zhang
6ab5305323 Merge "Convert boot, memtrack and power hal to use service name aware testing." am: b9515d9d3f
am: a713584847

Change-Id: I204a3492a5c61c95b11934688f6a32a8c9f83e1d
2017-12-05 00:39:39 +00:00
Zhuoyao Zhang
a713584847 Merge "Convert boot, memtrack and power hal to use service name aware testing."
am: b9515d9d3f

Change-Id: Ie93e66d9b829ac420ba22cf0391b48c156755c77
2017-12-05 00:11:18 +00:00
Zhuoyao Zhang
b9515d9d3f Merge "Convert boot, memtrack and power hal to use service name aware testing." 2017-12-04 23:12:04 +00:00
Kevin Rocard
503c3e0a4e Audio policy config: remove cross-module device port name uniqueness
This constraint was added due to an incorrect assumption
that device ports were identified by names whereas
they are by the (module,type,address) triplet.

Bug: 69442986
Test: xmllint validates an XML with two identically named devices in
      different modules.
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Change-Id: I66d890d3c967bead4f2a287202c259009217996a
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-04 14:29:19 -08:00
Kevin Rocard
fa1f597442 Audio policy config: Device port (type,address) must be unique
Device port are not identified by names but by their type and address
and the module they are in.

As a result, enforce this constraint in the XSD. Violating it results in
a policy parsing crash.

Bug: 69442986
Test: xmllint invalidates an XML with two devices of the same type
      and address
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
Change-Id: I84245f0fa80fef786a002c98073c166b6aaf2be4
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-12-04 14:29:14 -08:00
Kevin Rocard
7558e8c6e4 Audio policy config: allow vendor to extend module name
Vendor are currently not allowed to extend the XML format.
As some enumeration are allowed to be extended, this mean that
the format must allow some extension mechanism.

This patch relaxes the definition of the module name field.
AOSP names are still allowed, but a vendor can add its own name
if prefixed with "vx_". Eg:
    <module name="vx_google_vr" halVersion="3.0">

Test: xmllint --xinclude --noout --schema hardware/interfaces/audio/2.0/config/audio_policy_configuration.xsd audio_policy_configuration.xml
      with audio_policy_configuration.xml containing a module named vx_google_vr
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation
      on Pixel 2
Bug: 69442986
Signed-off-by: Kevin Rocard <krocard@google.com>

Change-Id: I4ead38535cce89bb8fe44cf23fa1146acd1271d6
2017-12-04 14:29:08 -08:00
Zhuoyao Zhang
2aba02af56 Convert boot, memtrack and power hal to use service name aware testing.
Motivation:
1) Support running the test against each hal service instance for the 
   registered hal.
2) Support testability checker to determine whether we should run the 
   test on the taget device.
3) Help to determine the process we want to profile for coverage data
   if running on coverage build. 
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalBootV1_0Target
      vts-tradefed run vts -m VtsHalMemtrackV1_0Target
      vts-tradefed run vts -m VtsHalPowerV1_0Target
      vts-tradefed run vts -m VtsHalPowerV1_1Target
Change-Id: Ie0bbd9ef9d9fbe11de5aee70fad9028fa0ae897c
2017-12-04 21:34:25 +00:00
Michael Schwartz
b3c150af4b Merge "Remove IOemHook from matrix in P" am: f8c89c44e5
am: 7d6bf0f5ef

Change-Id: If01fb4ba4bd7a115a1b044296ad6242df414353e
2017-12-04 18:59:39 +00:00
Steven Moreland
0903cd24ac Updating makefiles for hidl_interface.
am: 4e1e4081e4  -s ours

Change-Id: I8bba4a896375afa0b6e8b57d3bd6228096bbf12e
2017-12-04 18:49:35 +00:00
Michael Schwartz
7d6bf0f5ef Merge "Remove IOemHook from matrix in P"
am: f8c89c44e5

Change-Id: I2649c4ad197aecf74a595a16ed2433edba3b9a8b
2017-12-04 18:44:59 +00:00
Michael Schwartz
f8c89c44e5 Merge "Remove IOemHook from matrix in P" 2017-12-04 18:34:51 +00:00
Steven Moreland
4e1e4081e4 Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
(cherry-picked from commit c2f829a1d2)
2017-12-03 10:31:49 -08:00
Howard Chen
e46a31d771 Merge "Add more test methods to IMemoryTest" am: 4cd07b6e21
am: b4c725535e

Change-Id: I5a0a3d5603be680e9807d098edae3dab0c884dbc
2017-12-02 15:31:34 +00:00
Howard Chen
b4c725535e Merge "Add more test methods to IMemoryTest"
am: 4cd07b6e21

Change-Id: Ibcfa27b9510774a9bac39c40443e6f5a35e13709
2017-12-02 15:26:24 +00:00
Howard Chen
4cd07b6e21 Merge "Add more test methods to IMemoryTest" 2017-12-02 15:21:19 +00:00
Dan Willemsen
ca253762cb Fix problem found with host bionic fortify checks am: dc1921810e
am: 6737d81d15

Change-Id: I5af566812c809a7cd6d58c7645d2fbe8b37fbad0
2017-12-01 04:33:30 +00:00
Dan Willemsen
6737d81d15 Fix problem found with host bionic fortify checks
am: dc1921810e

Change-Id: Id82671e9f0b4debc28b516a0b3f10104fc54e198
2017-12-01 04:29:29 +00:00
Dan Willemsen
dc1921810e Fix problem found with host bionic fortify checks
hardware/interfaces/bluetooth/1.0/default/test/bluetooth_address_test.cc:59:39:
error: 'open' called with O_CREAT or O_TMPFILE, but missing mode

Bug: 31559095
Test: out/host/linux-x86/nativetest{,64}/bluetooth-address-unit-tests/bluetooth-address-unit-tests
Change-Id: I913c78e25eccaecf8830f1caf8e92f834ab8bb76
2017-11-30 18:00:36 -08:00
Michael Schwartz
0c067484b4 Remove IOemHook from matrix in P
Bug: 34344851
Test: `make`
Change-Id: I63e5a3286031781e8b4b070d78022325be02d6a8
2017-11-30 13:47:41 -08:00
Chih-Hung Hsieh
1b3da504ae Merge "Use -Werror in hardware/interfaces/automotive/vehicle/2.0" am: ac03dfa789 -s ours
am: dfe61bf245  -s ours

Change-Id: Ibf2ffed7f5d57bed63c457244c62613ff3af38fc
2017-11-29 23:23:53 +00:00
Chih-Hung Hsieh
dfe61bf245 Merge "Use -Werror in hardware/interfaces/automotive/vehicle/2.0"
am: ac03dfa789  -s ours

Change-Id: I6bb0f3d504d54748b2a468c8989f34629ae83cf5
2017-11-29 23:19:21 +00:00
Treehugger Robot
ac03dfa789 Merge "Use -Werror in hardware/interfaces/automotive/vehicle/2.0" 2017-11-29 23:04:52 +00:00
Kevin Rocard
fff2077600 Add the audio team as owner of the audio VTS am: c691e18332
am: b5433136dd

Change-Id: I039de9e218ca16009e1566815953ed28e2c43b74
2017-11-29 22:27:26 +00:00
Mikhail Naganov
3ebcaaf740 Add OWNERS for audio-related HAL default implementations am: 8c0c030ee9 -s ours
am: 349dbe9a82  -s ours

Change-Id: Id76a947d81e959b7c22be6b972b45cf9eba73e96
2017-11-29 22:27:21 +00:00
Kevin Rocard
b5433136dd Add the audio team as owner of the audio VTS
am: c691e18332

Change-Id: I3fa55d02549c1827737f8e0d85bae99226506f17
2017-11-29 22:23:57 +00:00