Commit graph

20646 commits

Author SHA1 Message Date
Steven Moreland
c6e69bde30 Rename vts-core to vts
Bug: 151896491
Bug: 139438327
Test: local build
Change-Id: Ida36f4e10bbdd72f58039f8ee5ae6f61edac4769
Merged-In: Id542b54ba2da1fca03a9c44bf05d0f68793445cf
2020-04-22 00:06:21 +00:00
Chris Weir
a1482062ec Merge "Undo symlinked libc++fs" into rvc-dev 2020-04-21 20:50:39 +00:00
chrisweir
0d69b72097 Undo symlinked libc++fs
Several features for auto need libc++fs, but the previous solution of
symlinking to external/libcxx would cause problems later down the
line. Instead, we will compile a separate version of libc++fs with a
different namespace, as to not interfere with the canonical
std::filesystem.

Change summary
===============================================================
directory_iterator.cpp:
-----------------------
* _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM --> namespace android::hardware::automotive::filesystem {
* _LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* disable clang-format (to reduce diff size)
* "" --> <> for non-local includes

filesystem_common.h:
--------------------
* FILESYSTEM_COMMON_H --> AUTO_FILESYSTEM_COMMON_H
* "" --> <> for non-local includes
* filesystem --> automotive/filesystem
* don't include apple_availability.h
* add using std::error_code
* _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM --> namespace android::hardware::automotive::filesystem {
* use namespace std::chrono
* use std::error_code, std::is_floating_point, std::micro, std::nano, std::ratio
* LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* disable clang format (to reduce diff size)

filesystem:
-----------
* _LIBCPP_FILESYSTEM --> _LIBAUTO_FILESYSTEM
* std::filesystem --> android::hardware:automotive::filesystem
* _VSTD_FS --> android::hardware::automotive::filesystem
* _LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* Copied _FilesystemClock from chrono
* use namespace std and std::chrono
* use std::basic_string, std::enable_if, std::error_code, and std::false_type

operations.cpp:
---------------
* filesystem --> automotive/filesystem
* "" --> <> for non-local includes
* _LIBCPP_BEGIN_NAMESPACE_FILESYSTEM --> namespace android::hardware::automotive::filesystem {
* _VSTD_FS --> android::hardware::automotive::filesystem
* _LIBCPP_END_NAMESPACE_FILESYSTEM --> }  // namespace android::hardware::automotive::filesystem
* disable clang-format (to reduce diff size)
* fix "the the" typo (to pass lint)

Bug: 152067309
Test: Manual
Change-Id: I5551b3e634b85b4d7236e888de68740bfda6aad1
2020-04-21 11:19:28 -07:00
Jimmy Chen
c578a91356 wifi: skip tests if RTT is not supported
Bug: 153418156
Test: atest VtsHalWifiApV1_4TargetTest

Change-Id: I2aa58c501f44a9b32c1a7ebf48aa8fcbfb08b046
2020-04-21 07:54:11 +00:00
TreeHugger Robot
873bfe9eb4 Merge "Call scan callback for ATSC" into rvc-dev 2020-04-21 03:29:15 +00:00
shubang
a990ecee79 Call scan callback for ATSC
It's a temp solution for CTS.

Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I31242910af39108dca5920bd0892fa16aa6d29be
2020-04-17 18:29:27 -07:00
TreeHugger Robot
bfcedb7a39 Merge "Update CodeType comment for adding BDS B1C" into rvc-dev 2020-04-17 23:04:06 +00:00
TreeHugger Robot
6f56b73d29 Merge "audio: Centralize audio configuration paths specification" into rvc-dev 2020-04-17 15:20:32 +00:00
Slava Shklyaev
bc4affb6e5 Merge "Exclude unused operands from removeOperandTest" into rvc-dev 2020-04-17 11:02:22 +00:00
Roshan Pius
d234d8b1d6 Merge "wifi_sta_iface: Deprecate setScanningMacOui" into rvc-dev 2020-04-17 06:12:32 +00:00
Yu-Han Yang
62b79417a4 Update CodeType comment for adding BDS B1C
Bug: 154267746

Test: doc update only. Builds
Change-Id: I997f1febef4f7b266cc51fe59a645ee1a48fd971
2020-04-17 02:49:05 +00:00
Mikhail Naganov
0dd9a6bacc audio: Centralize audio configuration paths specification
The list of possible paths for the audio configuration
files is now retrieved using audio_get_configuration_paths()
function. All duplicated lists of known configuration
directories have been removed.

Bug: 153680356
Test: atest VtsHalAudioV6_0TargetTest \
            VtsHalAudioPolicyV1_0TargetTest \
            VtsHalAudioEffectV6_0TargetTest
Change-Id: I1e40fdf8d6e3a5ac339f7f138f62063bb87bd3da
Merged-In: I1e40fdf8d6e3a5ac339f7f138f62063bb87bd3da
2020-04-17 01:55:48 +00:00
Calvin Huang
ef826c728c Merge "Add manifest for IVehicle" into rvc-dev 2020-04-17 01:08:56 +00:00
Roshan Pius
322677a172 wifi_sta_iface: Deprecate setScanningMacOui
Bug: 154267383
Test: Device boots up and connects to wifi networks.
Change-Id: I70206e2c25d90ebd5ac35938af9ca2ebffefa318
2020-04-16 16:53:02 -07:00
TreeHugger Robot
32e9b63608 Merge "Return SUCCESS in scan for ATSC" into rvc-dev 2020-04-16 23:15:06 +00:00
Calvin Huang
a7f44eb83c Add manifest for IVehicle
Bug: 153734354
Test: Manual
Change-Id: I7e6a65e3fb49bb04108d0fd243df0b7447a93b1e
2020-04-16 16:02:17 -07:00
Slava Shklyaev
baa4cf02f2 Exclude unused operands from removeOperandTest
Bug: 148208229
Test: TestGenerated/ValidationTest.Test/nnapi_sample*_while*_unused_output*
Change-Id: I39bebefd0e40d370882d614d4beb97ab36c9da8f
2020-04-16 15:03:26 +01:00
Veerendranath Jakkam
25b3a6f0a4 Synchronize on_ring_buffer_data_callback and writeRingbufferFiles
on_ring_buffer_data_callback callback is invoked on getting the
corresponding driver/firmware ringbuffer logs. This callback further
stores the ringbuffer data locally in cur_buffer. While the data is
getting updated through this callback, writeRingbufferFilesInternal
can get triggered from a different context which accesses the same buffer
-cur_buffer.
Synchronization is missing between these two contexts while accessing the
buffer and this commit attempts the same.

Bug: 153970986
Test: Manual - collect the bugreport and check the ring buffer logs.
Change-Id: Id99a517f4d72872b84b48c3df75dd29743f3e9b2
2020-04-15 21:53:48 -07:00
Steven Moreland
cedd3f387b VtsHalAudio*TargetTest in vts.
Bug: 139438327
Test: N/A
Change-Id: I0fb6c966c70cc51cbfd13fd27d6224c9fd07ec20
2020-04-15 23:54:45 +00:00
TreeHugger Robot
eac1cdbba9 Merge "Add the missing unregisterCallback call" into rvc-dev 2020-04-15 19:12:02 +00:00
Yifan Hong
64cb21867c Merge "Check against xsd for building all matrices" into rvc-dev 2020-04-15 18:46:56 +00:00
Roman Kiryanov
279a5ae37e Add the missing unregisterCallback call
The sensor reading thread continues producing
event and refers to the already destroyed
callback object which causes a crash in
SensorsHidlEnvironmentBase::addEvent.

Bug: 153754380
Test: atest VtsHalSensorsV2_0TargetTest
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Id7fb72c42dc67f89ceef93d937241e1584b853e7
2020-04-15 10:34:11 -07:00
TreeHugger Robot
0260d7d1ee Merge "Fix delivery of earlyBootEnded to KM4.1" into rvc-dev 2020-04-15 14:56:34 +00:00
Roshan Pius
acf79bfacf Merge "Use additional interface for the WiFi Aware Discovery operations." into rvc-dev 2020-04-15 04:51:44 +00:00
Shawn Willden
08c7e71236 Fix delivery of earlyBootEnded to KM4.1
Bug: 152932559
Test: Boot and observe that Strongbox gets the message
Change-Id: I752b44f5cc20d85bf819188ccaaf0813a5607ba5
2020-04-14 21:48:11 -06:00
TreeHugger Robot
ecd5e55cc1 Merge "Correct UseHmacKey parameter" into rvc-dev 2020-04-15 02:19:58 +00:00
Yifan Hong
51d789e8dd Check against xsd for building all matrices
Test: builds
Fixes: 149929588

Change-Id: Id08cfe41af59bb336889f9edeaf35dc484892997
(cherry picked from commit fca5d95ce6)
Merged-In: Id08cfe41af59bb336889f9edeaf35dc484892997
2020-04-14 15:08:08 -07:00
Roshan Pius
5ba0a90cac Use additional interface for the WiFi Aware Discovery operations.
NAN operations are currently done on the STA interface.This resulted
in the NAN sessions getting terminated in all the instances where the
STA interface is restarted (IFF DOWN/UP), due to connected MAC
randomization.
Hence, remove the dependency of NAN over STA interface. This change
expects the driver to create a dedicated interface for the
NAN operations. The iface name needs to be set in "wifi.aware.interface"
property.

Bug: 1636219
Test: HAL unit tests
Test: Device boots up and connects to wifi network.
Change-Id: I1b6d64eb94334172a8cd621d0b15ed8c8dc87f91
2020-04-14 13:47:42 -07:00
TreeHugger Robot
ae15d37528 Merge "Add vintf_fragments to android.hardware.biometrics.fingerprint@2.1-service" into rvc-dev 2020-04-14 19:55:16 +00:00
TreeHugger Robot
9a4496668e Merge "Add vintf_fragments to android.hardware.usb@1.0-service" into rvc-dev 2020-04-14 19:55:05 +00:00
Dan Shi
fdbc494c69 Remove references of VtsHalHidlTargetTestBase
Bug: 147894326
Test: build
Change-Id: If847cc3aa5bb17682b92266f5460efe9d3fadfab
2020-04-13 23:15:50 -07:00
Amy Zhang
62bc360c11 Merge "Separate Demux and Filter fixture classes from the Tuner HAL VTS target test" into rvc-dev 2020-04-14 05:47:52 +00:00
Amy Zhang
5f68f8df94 Merge "Make VtsHalTvTunerV1_0FrontendTest an independent test." into rvc-dev 2020-04-14 05:47:46 +00:00
Roman Kiryanov
761c93e3b9 Add vintf_fragments to android.hardware.biometrics.fingerprint@2.1-service
Bug: 144386336
Test: boot emulator, lshal | grep fingerprint
Signed-off-by: Roman Kiryanov <rkir@google.com>
Merged-In: I97ad0451bb3edfe85d33300baaa41c3fbc5c3cc6
Change-Id: I11c8ebea731f5e7b24ee483d20a8cd25fd01be38
2020-04-13 21:12:53 -07:00
Roman Kiryanov
2d7820a6ef Add vintf_fragments to android.hardware.usb@1.0-service
Bug: 153739768
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Merged-In: I324f226496d7cf1085f0a3687af6054c56c9dbf8
Change-Id: I032144a0774eb1580f9f027496f5bdfcd6abf603
2020-04-13 20:41:36 -07:00
TreeHugger Robot
e6ca1baa87 Merge "Remove redunant aidl api" into rvc-dev 2020-04-14 01:34:34 +00:00
Yifan Hong
432974a63e Merge changes from topic "battery_current_sign" into rvc-dev
* changes:
  health 2.0 vts: add battery current test.
  health 2.0 VTS: require GTEST_SKIP to be defined
2020-04-13 22:31:12 +00:00
Amy Zhang
4f6980571a Separate Demux and Filter fixture classes from the Tuner HAL VTS target
test

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: I373c3ba56ab80e02c79d24f865a956dae4b44226
2020-04-13 15:23:58 -07:00
Amy Zhang
b3fb40bd05 Make VtsHalTvTunerV1_0FrontendTest an independent test.
Note that this refactoring extracts two header files for
VtsHalTvTunerV1_0FrontendTest and VtsHalTvTunerV1_0TargetTest.

Test: atest VtsHalTvTunerV1_0FrontendTest/VtsHalTvTunerV1_0TargetTest
Bug: 150953857

Change-Id: Ie5f0dc4a9180ecc779004cb451a45ae54a6ea47c
2020-04-13 15:19:56 -07:00
Haoxiang Li
798c9340c1 Merge "Revert^2 "Modify the name of the SV interface to match VTS"" into rvc-dev 2020-04-13 17:12:51 +00:00
shubang
71d6059bba Return SUCCESS in scan for ATSC
This is for a CTS test case

Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I8761fec6af392e4f2d18bc38760effcae2aec273
2020-04-10 18:13:25 -07:00
TreeHugger Robot
2501542e30 Merge "Add biometrics.fingerprint@2.2 to the compatibility matrix" into rvc-dev 2020-04-11 00:55:11 +00:00
Yifan Hong
133c495d1a health 2.0 vts: add battery current test.
Require the following on battery current:
- skip health info tests if current is 0 (indicates the value is unavailable)
- when charging, positive
- when discharging / not charging, negative
- when unknown, zero
- batteryCurrentAverage should be similar to batteryCurrentNow.

All new tests are executed over
a period of time to avoid effects of fluctuation in
battery current, and ensure battery status is initialized.

Requirements are enforced on devices launching with R
only.

Require the following on battery status:
- if not charging / full / charging, must be connected
- if discharging, must not be connected.

Test: run on coral, tests are skipped
Test: run on cuttlefish, test passes

Fixes: 136717180
Change-Id: Ic5a714b830ffeca1dcd000c6cad0fbfe8a8710ed
(cherry picked from commit 94841c9df1)
Merged-In: Ic5a714b830ffeca1dcd000c6cad0fbfe8a8710ed
2020-04-10 21:51:15 +00:00
TreeHugger Robot
e4f2dc4874 Merge "Add frontend caps for CTS" into rvc-dev 2020-04-10 18:27:48 +00:00
Xusong Wang
d923a3f06f Merge "Remove BLOB AHWB tests from 1.2 VTS." into rvc-dev 2020-04-10 17:44:43 +00:00
TreeHugger Robot
60f4eb1ede Merge "Add vintf_fragments to android.hardware.confirmationui@1.0-service" into rvc-dev 2020-04-10 17:27:57 +00:00
Roman Kiryanov
ddedfb31ff Add vintf_fragments to android.hardware.confirmationui@1.0-service
Bug: 153666825
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Merged-In: Ib8ff51a60df30d6d8773d658bdadf3de904c0426
Change-Id: I0d23a4202919054efb04b3114edcb8639fcb3995
2020-04-10 17:23:53 +00:00
Hayden Gomes
6eaedbae7c Merge "Adding android_filesystem_config.h import" into rvc-dev 2020-04-10 16:19:37 +00:00
Shawn Willden
ca71a6e839 Merge "Fixed encoding of device_locked field" into rvc-dev 2020-04-10 16:08:07 +00:00
Hayden Gomes
f8f12edfb1 Merge changes from topic "HAL Audio Focus" into rvc-dev
* changes:
  Adding a lshal command for abandoning focus
  Adding --request command to default AudioControl HAL
  Adding basic lshal support for AudioControl
2020-04-10 15:43:34 +00:00