Commit graph

16659 commits

Author SHA1 Message Date
Harpreet \"Eli\" Sangha
00811c57d4 vibrator: Async Callback API VTS Tests
Bug: 136220871
Test: VTS Tests
Change-Id: Icd8f794df76542c9f74e3ea762117da703db47d4
Merged-In: Icd8f794df76542c9f74e3ea762117da703db47d4
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-10-17 03:48:59 +09:00
Robin Lee
1a62d3f189 Merge "health VTS: Status::UNKNOWN is OK if not present"
am: 80694d55ca

Change-Id: I9a82045f7ed4c9698a45fa52e1588ae1dc7ce9b7
2019-10-16 03:49:45 -07:00
Treehugger Robot
80694d55ca Merge "health VTS: Status::UNKNOWN is OK if not present" 2019-10-16 10:27:47 +00:00
Nick Desaulniers
cd08ce7967 Merge "[hardware][interfaces][renderscript] fix -Wreorder-init-list"
am: 538d652636

Change-Id: I0ad3872060aa7093665d6df79eb8b55138e8d2a8
2019-10-15 22:57:36 -07:00
Treehugger Robot
538d652636 Merge "[hardware][interfaces][renderscript] fix -Wreorder-init-list" 2019-10-16 05:48:45 +00:00
Nick Desaulniers
7d36ef505c Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list"
am: d1785cb7f6

Change-Id: I43a36565bd9eb428e16384f5639328ac895ac71a
2019-10-15 22:05:23 -07:00
Treehugger Robot
d1785cb7f6 Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list" 2019-10-16 04:47:44 +00:00
nelsonli
42987814c5 Merge "[vts-core] add VtsHalAuthSecretV1_0TargetTest to vts-core"
am: 2217b5ccd3

Change-Id: I3544473b241e96fc5dc0628b52be80af86b151d0
2019-10-15 21:33:58 -07:00
Nick Desaulniers
e126b55e4c Merge "[hardware][interfaces][vehicle] fix -Wdangling-gsl in test"
am: 880ee3950a

Change-Id: I49195beba67ac5b6bf50d720b7d12b02b8a6151a
2019-10-15 21:33:21 -07:00
Mikhail Naganov
5bc9035530 Merge "Audio: Ensure input stream gets closed on the audio HAL server side"
am: d405ef1c19

Change-Id: I82c9602d6a8bfa041d8db6ad213c48527d91ad9c
2019-10-15 21:27:22 -07:00
Treehugger Robot
2217b5ccd3 Merge "[vts-core] add VtsHalAuthSecretV1_0TargetTest to vts-core" 2019-10-16 04:06:21 +00:00
Treehugger Robot
880ee3950a Merge "[hardware][interfaces][vehicle] fix -Wdangling-gsl in test" 2019-10-16 03:04:34 +00:00
Yifan Hong
00ebc75aef [REFACTOR] health 2.0: battery monitor returns health info 2.0
BatteryMonitor returns HealthInfo structs directly. Modify
code to adapt to this behavior.

Test: health VTS test 2.0
Bug: 142260281
Change-Id: I5e6605e46bb4f8bb08c1356e5f2233880e6f9d14
2019-10-15 17:38:40 -07:00
Yifan Hong
ed0fead8e4 health 2.1
Test: builds
Bug: 137670450

Change-Id: Ie8ec2733ee5338fef3639ab4deda47c9e5ce2179
2019-10-15 17:38:40 -07:00
Yifan Hong
abdf4198ed Require health 2.1 on R devices
Test: builds
Bug: 137670450

Change-Id: If0ca2fe2f7ec6fedd39726561391302f47d18369
2019-10-15 17:38:40 -07:00
Treehugger Robot
d405ef1c19 Merge "Audio: Ensure input stream gets closed on the audio HAL server side" 2019-10-16 00:19:46 +00:00
Mikhail Naganov
1c6996eda8 Merge "Audio HAL: Add missing device to XSD"
am: 128f565f0f

Change-Id: I5097de19ac1199a25743ec553f03d97930652cb2
2019-10-15 16:39:53 -07:00
Treehugger Robot
128f565f0f Merge "Audio HAL: Add missing device to XSD" 2019-10-15 23:24:28 +00:00
Nick Desaulniers
1bb718baeb Merge "[hardware][interfaces][gnss] fix -Wreorder-init-list"
am: d2e8d0b515

Change-Id: Iee8c0aa77b4559f656e0f19cbbe786ca200e8584
2019-10-15 15:16:29 -07:00
Treehugger Robot
d2e8d0b515 Merge "[hardware][interfaces][gnss] fix -Wreorder-init-list" 2019-10-15 21:57:08 +00:00
Robin Lee
ac5a0d316b health VTS: Status::UNKNOWN is OK if not present
Documentation: https://source.android.com/devices/tech/power/batteryless

If a battery device is not detected, the following battery-related
defaults are used on Android 9 and higher:

* Present:              false
* Status:               unknown
* Remaining capacity:   0
* Health:               unknown
* AC charger online:    not modified

The previous version of the test failed devices if the vendor HAL
reported BatteryStatus::UNKNOWN. However, the tests were skipped if the
default HAL was the one being used, so this has not come up before for
other batteryless devices.

Bug: 142081126
Test: vts-tradefed run vts -m VtsHalHealthV2_0
Change-Id: I8ca758677478b47511e24990fee545fafa6c7f83
2019-10-15 20:44:07 +02:00
Nick Desaulniers
718ac65543 Merge "[hardware][interfaces][bluetooth] fix -Wreorder-init-list"
am: b6fd785ec5

Change-Id: I5196066409d763cf6ea5aa0125bc4a16ed7cd236
2019-10-15 10:40:03 -07:00
Treehugger Robot
b6fd785ec5 Merge "[hardware][interfaces][bluetooth] fix -Wreorder-init-list" 2019-10-15 17:21:40 +00:00
Dan Shi
47e47836e5 Convert VtsHalGnssV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalGnssV1_0TargetTest
atest VtsHalGnssV1_0Target

Change-Id: Ife6361f481409c3bac7ae518259bbc9837ccbdef
2019-10-15 09:25:51 -07:00
nelsonli
ff4de289f9 [vts-core] add VtsHalAuthSecretV1_0TargetTest to vts-core
Convert VtsHalAuthSecretV1_0TargetTest to be parameterized test
and add it to vts-core

Bug: 142397658
Test: $atste VtsHalAuthSecretV1_0TargetTest
Change-Id: I6cf21977e1fef8b11bf0517540ef831a52a44937
2019-10-15 09:29:20 +00:00
Nick Desaulniers
e6faf9820f Merge "[hardware][interfaces][camera] fix -Wreorder-init-list"
am: 977e274043

Change-Id: Ifc6ba9337a2065ae17a02248523be0613d92f5ea
2019-10-14 17:23:14 -07:00
Treehugger Robot
977e274043 Merge "[hardware][interfaces][camera] fix -Wreorder-init-list" 2019-10-15 00:00:45 +00:00
Yifan Hong
9521b9d458 [REFACTOR] health 2.0: BatteryMonitor::update split into 3 funcs
BatteryMonitor::update no longer calls healthd_board_battery_update
and callback for us.

Test: VTS health HAL 2.0 test
Change-Id: I05fbf60b7e2c38f82e019d2fec2b5f535defaeae
2019-10-14 15:24:21 -07:00
Yifan Hong
50c9e25251 [REFACTOR] health 2.0: healthd_common -> libhealthloop
This change converts the original healthd_common.cpp to a
C++ class, HealthLoop, that manages the infinite loop in health-related
modules (charger, health HAL, healthd, etc.). By doing so, the global
static variables (including FDs and healthd_mode_ops) are cleaned up.

This helps us implement health HAL 2.1.

In order to support legacy modules (namely, healthd, charger, health HAL
2.0, which all depends on android.hardware.health@2.0-impl), a
healthd_common_adapter.cpp file is added to
android.hardware.health@2.0-impl, so that the following functions
in healthd/healthd.h continues to be implemented using the global
healthd_mode_ops:
    - healthd_register_event
    - healthd_battery_update_internal

Test: boot up the device and run VTS test on health HAL.
Bug: 137670450
Bug: 142260281
Change-Id: Iadcfc1315155404a3600f0e1219b5bc370d96409
2019-10-14 15:24:21 -07:00
Yifan Hong
c04b0a3e20 health 2.0: Move healthd_common.cpp
... so that the next CL has less diff.

Test: see next CL.
Change-Id: I5be187ab859a0b26d615b5ba7af9a26a07880181
2019-10-14 15:24:21 -07:00
Amy Zhang
22408e85af Merge changes from topic "pes"
am: 04587692b1

Change-Id: Idcec8afe3cb0a3d02ab4278862b1c623e1b6726b
2019-10-14 13:43:23 -07:00
Amy Zhang
04587692b1 Merge changes from topic "pes"
* changes:
  Adding PES filter functionality to assemble PES data
  Adding filter status tracking logic into Demux default impl
2019-10-14 20:13:46 +00:00
Harpreet \"Eli\" Sangha
473f30d337 Merge "Add Vibrator 1.4 Hashes to current.txt"
am: 9e3a3a1f1c

Change-Id: I5f4dd24d6aebcf830afd1f50f01a55a0d6466388
2019-10-14 11:25:29 -07:00
Treehugger Robot
9e3a3a1f1c Merge "Add Vibrator 1.4 Hashes to current.txt" 2019-10-14 18:07:18 +00:00
Nick Desaulniers
f5b16f32f5 [hardware][interfaces][wifi] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: If22be04df7d2d0aae9ed50fada53d0ccd4edc9d1
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:06:08 -07:00
Nick Desaulniers
91e1687dcc [hardware][interfaces][renderscript] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: I9529dba0fe407f0d16f7aee10e3629f0175b8e3e
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:57 -07:00
Nick Desaulniers
477c7e87b3 [hardware][interfaces][gnss] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: Ifdccde48c47c0495467f438002caf91cfdbd8091
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:44 -07:00
Nick Desaulniers
e1e932ea20 [hardware][interfaces][camera] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: I387d30e993719014da50207c7114b0003b9450c5
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:30 -07:00
Nick Desaulniers
dc82c1573a [hardware][interfaces][vehicle] fix -Wdangling-gsl in test
Chaining the method calls in such a way otherwise returns a dangling
pointer to a temporary object.

Bug: 139945549
Test: mm
Change-Id: I0783fccbb6f11e7e37bd059445265227359649cf
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:05:18 -07:00
Nick Desaulniers
0fd95b2473 [hardware][interfaces][bluetooth] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: Ie34b4f3400439817bebd30ee0356e35a87c971e5
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:04:50 -07:00
Harpreet \"Eli\" Sangha
714220ef75 vibrator: Async Callback API Example
Bug: 136220871
Test: VTS Tests
Change-Id: I338f16d72cd7b1ba60ddf812e4cb87a6011de752
Merged-In: I338f16d72cd7b1ba60ddf812e4cb87a6011de752
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-10-15 02:10:09 +09:00
Harpreet \"Eli\" Sangha
e0525f9572 Add Vibrator 1.4 Hashes to current.txt
Test: Build
Change-Id: I3cf9bcca7e6aab7125b7666c82ac493ee44eec8c
Merged-In: I3cf9bcca7e6aab7125b7666c82ac493ee44eec8c
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2019-10-15 02:09:58 +09:00
Dan Shi
7626cc8cd5 Merge "Add VtsHalLightV2_0TargetTest and VtsHalNeuralnetworksV1_* to vts-core"
am: 0e1efc568c

Change-Id: Id581beb39ff6af6164e737ad0a739f0023fa611e
2019-10-14 08:52:50 -07:00
Dan Shi
0e1efc568c Merge "Add VtsHalLightV2_0TargetTest and VtsHalNeuralnetworksV1_* to vts-core" 2019-10-14 15:35:48 +00:00
Amy
80d8badd1c Adding PES filter functionality to assemble PES data
Test: manual
Bug: 135709325
Change-Id: I9bbbae88918004201e6d7d5389473b4fd3a0a969
Merged-In: I9bbbae88918004201e6d7d5389473b4fd3a0a969
(cherry picked from commit 1109e9fee2)
2019-10-12 00:09:17 +00:00
Amy
7e4ca874d0 Adding filter status tracking logic into Demux default impl
Test: manual
Bug: 135709325
Change-Id: I2d473c250dc4d87263d5e7004095d144da684223
Merged-In: I2d473c250dc4d87263d5e7004095d144da684223

(cherry picked from commit 7912502053)
2019-10-12 00:08:50 +00:00
Mikhail Naganov
d3f6a41150 Audio HAL: Add missing device to XSD
The XSD has to be kept manually synced to the HAL definition. When some
formats were introduced and the corresponding enum values were added in
the HAL .hal, the XSD was not updated.

Test: xmllint --noout --schema hardware/interfaces/audio/4.0/config/audio_policy_configuration.xsd  --xinclude out/target/product/*/vendor/etc/audio_policy_configuration.xml
Bug: 128967080
Change-Id: I8cf36c7717a0dd15fb4f6261f9bb61c88b27a959
2019-10-11 23:32:30 +00:00
Steven Moreland
e382f7629e Merge "Remove libhwbinder/libhidltransport deps"
am: ab017f20cf

Change-Id: Ide1b550117ddd9088be89211db3dcfad08a275cf
2019-10-11 13:54:56 -07:00
Steven Moreland
ab017f20cf Merge "Remove libhwbinder/libhidltransport deps" 2019-10-11 20:19:21 +00:00
Mikhail Naganov
eb794151c6 Audio: Ensure input stream gets closed on the audio HAL server side
As IStream::close only releases internal resources of the stream,
deferring actual stream closing to IStream server object
destruction, which is delivered to the audio HAL server
asynchronously, there is a possibility for a race condition
when streams gets opened and closed in a tight loop as in the VTS
test.

Work around this problem by flushing RPC messages between
the client and the server, and inserting a delay before opening
a new stream.

Bug: 139329877
Test: VtsHalAudioV5_0TargetTest#AudioPrimaryHidlTest.GetMicrophonesTest
Change-Id: Id8744f6f21fd3bfa607f489364925eccbab17b5e
(cherry picked from commit 26f868bb02)
2019-10-11 19:32:57 +00:00