Commit Graph

32473 Commits

Author SHA1 Message Date
Kui1 Wu
df417d2808 fix VtsHalGraphicsComposerV2_2TargetTest timeout failed
run VtsHalGraphicsComposerV2_2TargetTest will timeout failed
when there is dual displays. use `std::unordered_set` Display type,
`std::vector<Display>(mDisplays.begin(), mDisplays.end())` as
getDisplays return value, mDisplays elements order may not be
same as the order of hotplug events during boot matters.
We should store `mDisplays` as `std::vector`, since the order of
hotplug events during boot matters in determining the primary display.

Bug: 209409863
Test: run vts -m VtsHalGraphicsComposerV2_2TargetTest

Signed-off-by: Kui1 Wu <wukui1@xiaomi.com>
Change-Id: I628ad593640f28fb8a916822a91ac2c578cc299d
2022-01-05 21:18:51 +00:00
Seongho Kim
41a7f94f87 Cherry pick "Gate gsm/cdma radio feature only for emergency dial" sc-v2-dev
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1908681

Bug: 207920538
Change-Id: I4eb369495d27e697679ecb3d4381f0b3e0cef758
Merged-In: I388bc51e58b5680b5b5c806d88a338822af0c8a7
2021-12-15 22:41:41 +00:00
TreeHugger Robot
e1ed5c6309 Merge "audio VTS: Consider only attached devices for stream tests" into sc-v2-dev 2021-12-03 08:41:03 +00:00
David Drysdale
46d62b92fb Merge "KeyMint VTS: don't combine ATTEST_KEY with SIGN" into sc-v2-dev 2021-11-30 09:30:01 +00:00
David Drysdale
92ffdd5b27 Merge changes from topic "merge-unique-id-tests" into sc-v2-dev
* changes:
  KeyMint VTS: extra unique ID test
  KeyMint VTS: check INCLUDE_UNIQUE_ID works
2021-11-30 09:29:22 +00:00
David Drysdale
0ac2a4e5c3 KeyMint VTS: don't combine ATTEST_KEY with SIGN
Update the VTS tests so that attestation keys are not created with
another purpose.

Bug: 197096139
Test: VtsAidlKeyMintTargetTest
Merged-In: Ib6e4ad98cbe5c3015138854679b11fa0e683ade9
Change-Id: Ib6e4ad98cbe5c3015138854679b11fa0e683ade9
Ignore-AOSP-First: cross-merge from aosp/master
2021-11-29 14:13:56 +00:00
Mikhail Naganov
6442deefc3 audio VTS: Consider only attached devices for stream tests
V6 and V7 use the audio policy configuration file for generating
the set of test profiles. The generator must only take into
account profiles of mix ports that are routed to device ports of
attached devices. Otherwise the HAL can rightfully refuse
to create a stream for the profile when the device isn't attached.

Bug: 205808571
Test: atest HalAudioV6_0GeneratorTest
Test: atest HalAudioV7_0GeneratorTest
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I798f978c1c0bc32831c20e4b08338b462d8eea16
Merged-In: I798f978c1c0bc32831c20e4b08338b462d8eea16
2021-11-24 19:08:03 +00:00
Mikhail Naganov
79ab13a1a6 audio: Fix handling of dynamic profiles in VtsHalAudioV7_0TargetTest
The profiles generator wasn't loading correctly from the Audio
Policy Manager config file profiles with unpopulated attributes,
which is typical for dynamic profiles.

Bug: 204314749
Test: atest HalAudioV7_0GeneratorTest
Change-Id: I514a4e03da165cacb5dbaaa16470130895681484
Merged-In: I514a4e03da165cacb5dbaaa16470130895681484
2021-11-12 02:29:25 +00:00
Jayachandran C
4b18fff621 Add some delay for SIM power up and down delay for setSimCardPower_1_6 API
Bug: 203031664
Test: VTS
Change-Id: I68e7352ed95a8487dee291de493c78cf1491d569
Merged-In: I68e7352ed95a8487dee291de493c78cf1491d569
2021-11-10 19:46:51 +00:00
David Drysdale
e26fab78ed KeyMint VTS: extra unique ID test
Test that specifying RESET_SINCE_ID_ROTATION results in a different
unique ID value.

Test: VtsAidlKeyMintTargetTest
Bug: 202487002
Change-Id: I2aed96514bf9e4802f0ef756f880cac79fa09554
2021-11-10 15:02:59 +00:00
David Drysdale
2f361c1571 KeyMint VTS: check INCLUDE_UNIQUE_ID works
Bug: 202487002
Test: atest VtsAidlKeyMintTargetTest (on CF, O6)
Merged-In: I8bc674b47549aa1133f816c510289774db752e04
Change-Id: I8bc674b47549aa1133f816c510289774db752e04
Ignore-AOSP-First: already in aosp/master
2021-11-10 15:02:03 +00:00
Shuzhen Wang
5ee43a6d24 Camera: VTS for test_pattern tag requirement for physical camera
Ensure that if TEST_PATTERN_MODE is listed in physical request keys, the
corresponding physical camera must support the privacy related test
pattern modes.

Test: Run Camera VTS with Cuttlefish emulator
Bug: 204108650
Change-Id: I8f378ab642c7c010a2ba73a8e89e65c91ba780eb
2021-11-03 22:56:16 +00:00
TreeHugger Robot
3c2ebae81c Merge "VtsHalCameraProviderV2_4TargetTest: Override rotate&crop" into sc-v2-dev 2021-11-02 19:06:21 +00:00
Shuzhen Wang
dc6da704ed Camera: Adjust VTS test to relax multi-camera requirement
The multi-camera Grf requirement is now only applicable to rear facing
camera.

Test: Run test on Pixel devices
Bug: 204252005
Change-Id: Idb7735eebdc104f6ee6a5946b50c11aea809eb85
2021-10-29 11:24:03 -07:00
Emilian Peev
06ec563f55 VtsHalCameraProviderV2_4TargetTest: Override rotate&crop
As per documentation the default auto rotate&crop mode must
be overriden before passing the capture request back to the
camera provider.

Bug: 204407427
Test:
atest
VtsHalCameraProviderV2_4TargetTest:PerInstance/CameraHidlTest#processCaptureRequestPreview/0_internal_0
atest
VtsHalCameraProviderV2_4TargetTest:PerInstance/CameraHidlTest#processMultiCaptureRequestPreview/0_internal_0
atest
VtsHalCameraProviderV2_4TargetTest:PerInstance/CameraHidlTest#processCaptureRequestBurstISO/0_internal_0
atest
VtsHalCameraProviderV2_4TargetTest:PerInstance/CameraHidlTest#flushPreviewRequest/0_internal_0

Change-Id: I1e1d387a04add8be9a281fcc3f78a867990248b3
2021-10-28 17:49:19 -07:00
Jayachandran Chinnakkannu
3958c69775 Merge "Do not assert CardState::PRESENT on sim power down" into sc-v2-dev 2021-10-28 00:54:41 +00:00
TreeHugger Robot
fe342525b2 Merge "Using a manifest fragment" into sc-v2-dev 2021-10-27 04:04:59 +00:00
Yomna Nasser
cc96134697 Merge "VTS fix for getAllowedNetworkTypesBitmap and setAllowedNetworkTypesBitmap" into sc-v2-dev 2021-10-26 17:07:42 +00:00
TreeHugger Robot
f8183c2914 Merge "Parse user flags as flags instead of enum." into sc-v2-dev 2021-10-25 20:33:59 +00:00
Yu Shan
5c0ec3f1de Parse user flags as flags instead of enum.
The flags field in UserInfo is a int32_t that contains multiple
UserFlags 'or'ed together. We should not parse it as enum.

Test: atest android.hardware.automotive.vehicle@2.0-utils-unit-tests
Bug: 202520478
Change-Id: Ie7e81a8a5f39f6070e35f2e77bce88a211fd526b
2021-10-25 12:36:27 -07:00
TreeHugger Robot
7630dd9f4f Merge "Update VtsHalEvsV1_1TargetTest" into sc-v2-dev 2021-10-24 15:11:09 +00:00
Jordan Liu
f7069c658c Do not assert CardState::PRESENT on sim power down
Bug: 203031664
Test: manual
Change-Id: I6c9cbad7cd4fd19eb0b77c55ff37298b97f32050
2021-10-21 20:27:39 +00:00
Changyeon Jo
9b3c9adb71 Using a manifest fragment
Fix: 203414344
Test: m -j and start CAN services
Change-Id: I423ab883d959f234a52adf680fae91bf264bea8b
2021-10-21 09:12:47 -07:00
Yomna Nasser
849d924d6d VTS fix for getAllowedNetworkTypesBitmap and setAllowedNetworkTypesBitmap
Fix VTS for getAllowedNetworkTypesBitmap and
setAllowedNetworkTypesBitmap, which should not rely on
getRadioHalCapabilities.

Bug: b/199809900
Test: atest VtsHalRadioV1_6TargetTest
Change-Id: I0b50e7e6c0d406a62f7a1e2ea8ac9bc3a71d8aeb
Merged-In: I0b50e7e6c0d406a62f7a1e2ea8ac9bc3a71d8aeb
2021-10-21 15:05:11 +00:00
Marin Shalamanov
3ccc2de9c4 Revert "VTS: Test that configs in a group differ only by vsync period"
This reverts commit 6f36dd6e31.

Differing only by vsync period was not a requirement on Android R, and
it shouldn't be added after-the-fact to an existing HAL version.

There are devices on the market that switch seamlessly between configs
that differ in resolution/dpi, and therefore have those configs in a
common group.

Bug: 200184776
Merged-In: Id0bfc67e55d5139fddb2b359cabafd9281c33734
Change-Id: Ib6e6a8c5f45c9829ea30d031e1cfa9a4fb775535
2021-10-20 18:58:45 +00:00
Les Lee
b3fba1d7c3 Merge "wifi(vts): Precondition AP tests on existence of hostapd HAL" into sc-v2-dev 2021-10-20 02:04:49 +00:00
Sunil Ravi
b828beb046 Update the p2p device interface name am: 6adbab13ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16087108

Change-Id: I29de6a4bf01101cb32d2aafd8a4dce8fa5f398c0
2021-10-20 01:34:48 +00:00
Sunil Ravi
6adbab13ee Update the p2p device interface name
In some implementations P2P device interface is created under
primary interface(wlan0 by default). In those implementations
p2p device name is predefined in system property wifi.direct.interface.
And the interface is created by supplicant with primary interface as
the parent interface. The naming of p2p device interface is
p2p-dev-<parent interface> ("p2p-dev-wlan0").

With STA+STA feature, wlan0 interface gets deleted in certain scenarios
and wlan1 becomes the active interface. In such scenarios P2P fails to
create the interface as parent interface wlan0 is deleted.

To fix the issue update the p2p device interface from system property
based on the current active wlan interface. ie First get the p2p parent
interface name from p2p device interface name set in property.
Check if the parent interface derived from p2p device interface name is
the current active interface. If not, get the current active interface
and update the name as p2p-dev-<ifname> ("p2p-dev-wlan1").
This helps HIDL/supplicant to get an active wlan interface from p2p
device interface name and succeed in creating the p2p interface under the
active interface.

Bug: 203434193

Test: Manual - Tested STA+STA which ended up deleting wlan0 interface.
      Then ran p2p tests and confirmed that p2p scan and connection
      works.
Change-Id: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
Merged-In: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
(cherry picked from commit 7f2822aff7)
2021-10-19 18:14:26 +00:00
TreeHugger Robot
c69d81e5f3 Merge "wifi: extending framework restart waiting time" into sc-v2-dev 2021-10-19 17:06:10 +00:00
Changyeon Jo
02499d65fc Update VtsHalEvsV1_1TargetTest
This CL makes following changes to fix VTS failures reported on Seahawk
reference platform.

* Correct the definition of RawStreamConfig and its size constant.
* Update all test cases to use a stream configuration reported by the
  target camera device.
* Update CameraStreamExternalBuffering test cases to take internally
  allocated buffers into account.

Bug: 192460757
Bug: 199626993
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: Ia03775ae543617ba5057e91bbbb5aed9221d1a30
2021-10-18 21:24:24 -07:00
Jimmy Chen
01c2259e19 wifi: extending framework restart waiting time
10s is not enough for low-end devices, extending waiting time to
avoid false alarm for low-end devices.

Bug: 201184673
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I9baa53a462b97738e6dc471cf06c2b9230b92c1c
(cherry picked from commit ef3f77f831)
2021-10-18 03:08:50 +00:00
Roshan Pius
9c4930dfd9 wifi: remove disable_framework option to pass the stopWifiFramework procedure
Stopping entire framework can cause other essential services to be
stopped. When wifi is stopped, it does not interact with any of the
wifi HAL's.

Bug: 201266536
Bug: 201184673
Test: atest --iterations 10 \
    VtsHalWifiSupplicantV1_0TargetTest \
    VtsHalWifiSupplicantV1_1TargetTest \
    VtsHalWifiSupplicantV1_2TargetTest \
    VtsHalWifiSupplicantV1_3TargetTest \
    VtsHalWifiSupplicantV1_4TargetTest \
    VtsHalWifiSupplicantP2pV1_0TargetTest \
    VtsHalWifiSupplicantP2pV1_2TargetTest \
    VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Ia4a38c2e942681f323cf76941713c429e14870cc
(cherry picked from commit 3a5858a711)
2021-10-18 03:08:32 +00:00
Roshan Pius
82b41e6af9 wifi(vts): Precondition AP tests on existence of hostapd HAL
cp: aosp/1428863 to sc-v2-dev branch as b/202788915 mentioned

This used to be present on the old host side VTS tests, port the feature to
target side since host side VTS tests are deprecated.

Also,
i) Added a separate test: VtsHalWifiV1_4TargetTest to test the wifi
chip methods. Putting them in VtsHalWifiApV1_4TargetTest will prevent
these from running on devices without AP feature.
ii) Ensured all the non-NAN, non-RTT tests disable framework for
testing. NAN/RTT tests uses framework to check if the corresponding
package manager feature exists.

Bug: 166529516
Bug: 202788915
Test: atest \
VtsHalWifiApV1_0TargetTest \
VtsHalWifiApV1_4TargetTest \
VtsHalWifiV1_0TargetTest \
VtsHalWifiV1_4TargetTest

Change-Id: I05aab6992277601633a0f926a8262c4c27402e93
Merged-In: I05aab6992277601633a0f926a8262c4c27402e93
2021-10-15 15:22:49 +08:00
Keith Mok
0e6752c900 Fix fuzzer error for FormatConvertFuzzer
The stride was not correct for the fuzzer.
And the FormatConvert have some restructions
on the width and height.

- YUYV
  width and height must be even nmber
- YU12
  width mush be divisible by 16
  height must be even number

Bug: 202641239
Test: FormatConvertFuzzer_copyYV12toBGR32
Change-Id: I45ebea3e22854bdad037abb742fbdbe364b19ec5
2021-10-13 16:09:50 +00:00
Jack Nudelman
e0f7bd7197 Accept NONE as a response for setDataThrottling during VTS.
Bug: 199809900
Test: b/199809900
Change-Id: I3b71401c28eb2f06c020f549a28ef5970282c855
2021-10-11 14:05:48 -07:00
TreeHugger Robot
e951b8cf0b Merge "WIFI: Add log to debug onSubsystemRestart" into sc-qpr1-dev am: 8169c932e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15988967

Change-Id: I8798d3ad725e8fe294ce835a3a185351117f701c
2021-10-09 23:21:41 +00:00
TreeHugger Robot
8169c932e6 Merge "WIFI: Add log to debug onSubsystemRestart" into sc-qpr1-dev 2021-10-09 23:08:21 +00:00
chenpaul
69c3c22603 WIFI: Add log to debug onSubsystemRestart
onSubsystemRestart should be triggered by wifi HAL
when subsystem restart happened.

Add log to debug why this callback function was not trigger at
unexpected corner case.

Bug: 201330066
Test: Manual test
Change-Id: I160adc6006d078fcc72c1768927e87e378fd675e
Merged-In: I160adc6006d078fcc72c1768927e87e378fd675e
2021-10-08 20:56:37 +00:00
Emilian Peev
6621c1ad05 Merge "Camera: Add static metadata that can map device state to orientation" into sc-v2-dev 2021-10-07 22:53:25 +00:00
Emilian Peev
3387f1c84e Camera: Add static metadata that can map device state to orientation
Allow camera providers to advertise the mapping between device state
and camera orientation.

Bug: 201005727
Test: VtsHalCameraProviderV2_4TargetTest
--gtest_filter=PerInstance/CameraHidlTest.getCameraCharacteristics/0_internal_0

Change-Id: Ibb035f4dc3d8af1106ac08f86e43b953ddcbf55b
2021-10-06 16:42:25 -07:00
Tyler Trephan
8999b4da53 Updated WHEEL_TICK configArray documentation in VHAL. am: 0e6c4ce873
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15994748

Change-Id: I3ca2b382853d35a67fe00b31f3485e6ce055a887
2021-10-06 19:21:03 +00:00
Tyler Trephan
0e6c4ce873 Updated WHEEL_TICK configArray documentation in VHAL.
It now specifies that the micrometers-per-wheel-tick values are static
and approximations.

Test: None
Bug: 169364681
Change-Id: Ia002bdcf7c9a91d82d8f6d543d2476d227256046
Merged-In: Ia002bdcf7c9a91d82d8f6d543d2476d227256046
(cherry picked from commit c0653a4452)
2021-10-06 16:44:07 +00:00
Shuo Qian
8f5badb1e0 Skip slot 2 for other radio modules in single sim mode am: c6a7143b1d am: c8bf2210fa am: 64ad328378
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15953283

Change-Id: I43e91ce1084dc6f096f15fadac0e7a094a62ff26
2021-10-01 18:06:43 +00:00
Shuo Qian
64ad328378 Skip slot 2 for other radio modules in single sim mode am: c6a7143b1d am: c8bf2210fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15953283

Change-Id: I9f797546b818cbbf0d22d26ccd2d9b75f0737edb
2021-10-01 17:58:03 +00:00
Shuo Qian
c8bf2210fa Skip slot 2 for other radio modules in single sim mode am: c6a7143b1d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15953283

Change-Id: Ia04dea0e93424c28477e6ee65c75f9d2692a53e4
2021-10-01 17:43:09 +00:00
Shuo Qian
c6a7143b1d Skip slot 2 for other radio modules in single sim mode
Bug: 199986032
Test: atest
Change-Id: Idc115954c8ccb26a6127a80d466f22559be641d2
2021-10-01 00:22:55 +00:00
Kai Wang
773ed6ddd9 Merge "Add areaId for CRITICALLY_LOW_TIRE_PRESSURE" into sc-v2-dev 2021-09-28 22:22:17 +00:00
Shuo Qian
a720f2134e Config the number of live modems based on current multisim number. am: 400ce4ff76
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15924337

Change-Id: Ia9d077e3db491e5546d7899b4c757a6addd3d509
2021-09-28 17:53:51 +00:00
Shuo Qian
400ce4ff76 Config the number of live modems based on current multisim number.
Test: atest VtsHalRadioConfigV1_1TargetTest
Bug: 200889748
Change-Id: If2aca6add38b801be011797c1da4c8de32f1bef6
2021-09-27 19:27:39 +00:00
Aaron Tsai
0bb2544096 Sending SMS via 1.6 APIs in VTS 1.6 am: 121ff3c5ef am: f8bb1e244e am: f6999d4b7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15827214

Change-Id: I1c612f922733f7c3475e8f20534e6d103ae143b5
2021-09-25 02:33:33 +00:00