Commit graph

20725 commits

Author SHA1 Message Date
felipeal
4dda37e0d0 Fixed USER_IDENTIFICATION_ASSOCIATION structs and documentation.
Bug: 150409351
Test: m
Test: atest UserHalServiceTest UserHalHelperTest

Change-Id: I121b47f1cc0889259210de96007c3c0f82985e8c
2020-05-06 12:34:47 -07:00
TreeHugger Robot
7b938e3471 Merge "Camera: move preCorrectionActiveArraySize override to cameraserver" into rvc-dev 2020-05-04 05:28:39 +00:00
Suren Baghdasaryan
05a93f3573 Merge "Replace direct pid writes with setting task profiles for camera interfaces" into rvc-dev 2020-05-02 06:20:05 +00:00
Suren Baghdasaryan
397f324c11 Merge "Replace direct pid writes with setting task profiles for audio interfaces" into rvc-dev 2020-05-02 06:19:52 +00:00
Suren Baghdasaryan
bbf2704c16 Merge "Replace direct pid writes with setting task profiles for bluetooth interfaces" into rvc-dev 2020-05-02 06:19:34 +00:00
Jimmy Chen
503f786f11 Merge "wifi: stop running supplicant before tests" into rvc-dev 2020-05-02 04:41:28 +00:00
David Gross
12ab6c57cc More tests for graph validation.
- detect cycle (CycleTest)
- detect bad execution order (mutateExecutionOrderTest)
- detect lifetime inconsistent with whether operand is written (mutateOperandLifeTimeTest)
- detect lifetime inconsistent with Model inputIndexes/outputIndexes (mutateOperandInputOutputTest)
- detect incorrect number of consumers (mutateOperandNumberOfConsumersTest)
- detect operand written multiple times (mutateOperandAddWriterTest)
- detect operand never written (mutateOperationRemoveWriteTest)

Bug: 66478689
Test: VtsHalNeuralnetworksV1_*TargetTest

Change-Id: Id4ba19660bbd31a16f8a675f7b6437f4d779e8da
Merged-In: Id4ba19660bbd31a16f8a675f7b6437f4d779e8da
(cherry picked from commit af51663e99)
2020-05-02 02:34:30 +00:00
TreeHugger Robot
358db3b106 Merge "Search for subhal .so files in additional directories" into rvc-dev 2020-05-02 02:30:18 +00:00
Suren Baghdasaryan
608059a6bc Replace direct pid writes with setting task profiles for camera interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I2732f7365351f132dbf0566319e3969c2a25b3e4
Merged-In: I2732f7365351f132dbf0566319e3969c2a25b3e4
2020-05-02 00:34:24 +00:00
Suren Baghdasaryan
b74f6423f5 Replace direct pid writes with setting task profiles for audio interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
Merged-In: Ide373c283359cf4b73af4cb0813d8c0306942595
2020-05-02 00:34:04 +00:00
Suren Baghdasaryan
b5b1621fbc Replace direct pid writes with setting task profiles for bluetooth interfaces
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ie81da380a9343e098362f5fee5026799c4486e7e
Merged-In: Ie81da380a9343e098362f5fee5026799c4486e7e
2020-05-02 00:33:52 +00:00
TreeHugger Robot
11c711a434 Merge "Update FrontendInfo for CTS" into rvc-dev 2020-05-02 00:27:09 +00:00
Stan Rokita
c786dfc5b1 Search for subhal .so files in additional directories
Fixes: 154634207
Test: Load onto flame and confirm that subhal .so
android.hardware.sensors@2.X-fakesubhal-config3.so loads when it is
living in the /vendor/lib64/hw directory using
adb shell lshal debug android.hardware.sensors@2.0::ISensors/default

Change-Id: I8a676b97f6f6992e8937ecf31c3b7af06e676ebb
2020-05-02 00:03:27 +00:00
Kai Wang
89fe540104 Merge "Duplicate setting when generate fake data" into rvc-dev 2020-05-01 22:25:37 +00:00
Amy Zhang
a3f9fae571 Merge "Fix issues in Tuner VTS Dvr testing" into rvc-dev 2020-05-01 20:04:39 +00:00
Shuzhen Wang
75b0f0288c Camera: move preCorrectionActiveArraySize override to cameraserver
This is to handle the case where HAL isn't using the hidl shim.

Test: dumpsys on Pixel 2
Bug: 145300768
Change-Id: I74874a025904887cc27ec00518f4261dd24e291a
2020-05-01 11:59:10 -07:00
David Anderson
e67a810cc0 Merge "boot: Relax getSnapshotMergeStatus test." into rvc-dev 2020-05-01 01:58:52 +00:00
Ahmed ElArabawy
c4c9da2f0b Merge "Wifi: Optionally avoid interface down/up when doing setMacAddress" into rvc-dev 2020-05-01 01:41:39 +00:00
Kai Wang
a5b75ddfb2 Merge "Revise documentation for tire pressure and max_defrost" into rvc-dev 2020-05-01 00:47:47 +00:00
TreeHugger Robot
d70d66aa65 Merge "Allow tethering name config" into rvc-dev 2020-04-30 23:15:34 +00:00
Ahmed ElArabawy
3ee519be3a Wifi: Optionally avoid interface down/up when doing setMacAddress
Some vendors implementation will reset wifi chip when doing interface
down.
Accordingly, We need to avoid the interface down/up when doing
setMacAddress to avoid loss of sync between framework and firmware.

This commit uses a BOARD_WIFI_AVOID_IFACE_RESET_MAC_CHANGE macro to
check if it is needed to avoid interface down/up at setMacAddress.

Bug: 153771961
Test: VTS Test
Test: atest VtsHalWifiV1_2TargetTest
Change-Id: I971764f1c272ebfd245959974fa0d1b10ba7c39b
2020-04-30 15:07:58 -07:00
Roshan Pius
78cb59913a Allow tethering name config
Test: manual

Bug: 155110247
Test: Compiles
Test: Verified that SAP is working

Change-Id: I6f0fd5b891dd6e6c2f0ceab05f6830b56f6474b1
2020-04-30 21:43:29 +00:00
Kai
bb780f4875 Revise documentation for tire pressure and max_defrost
Use the max/min in areaConfig to indicate the recommended tire
pressure.
Explain areaId for HVAC_MAX_DEFROST

Bug: 153906683
Test: make and flash
Change-Id: Ie71279dba4e87efdec75934dcac1c86e22fffaa3
2020-04-30 18:56:27 +00:00
Anthony Stange
7a21c53268 V2: Update tests for multihal to test HAL 2.1
Updates tests and fake subhals to support Multi-HAL 2.1 to make
on-device testing feasible.

Bug: 149758467
Test: Verify that the new unit tests and subhals in this topic load and
run on a Pixel device

Change-Id: I7a9d7c1678826bb1956119e8b76f591c7bc213e1
2020-04-30 08:45:19 -04:00
Anthony Stange
199b5ff96a V2: Create Multi-HAL 2.1 service
Bug: 149758467
Test: Verify that the new unit tests and subhals in this topic load and
run on a Pixel device

Change-Id: I275274659816b3a00374fb0b7a93f199874afdcd
2020-04-30 08:45:19 -04:00
Anthony Stange
33acf9fb3a V2: Set up Multi-HAL for Sensors HAL 2.1
Bug: 149758467
Test: Load onto device and verify VTS passes
Test: Verify new fake subhals load properly and that unit tests pass
that have been updated in this topic

Change-Id: Ie73458b3447dab80f6b692e55832ef562636bfdb
2020-04-30 08:45:19 -04:00
Jimmy Chen
c633302a86 wifi: stop running supplicant before tests
The first test would always fail because it tries to
use system-initiating supplicant process.

Bug: 155257934
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I79b69ec04faab5e8f2af0e5e3a9b1cc4c3aa0c36
2020-04-30 15:37:29 +08:00
shubang
f809faed3c Update FrontendInfo for CTS
Bug: 155342902
Test: atest android.media.tv.tuner.cts.TunerFrontendTest
Change-Id: Iacc0eb09499a14cbbb6cc605c91fa404361a073c
2020-04-29 18:16:39 -07:00
Amy Zhang
5a49885b8c Merge "Refactoring the Dvr data flow tests in the Tuner VTS" into rvc-dev 2020-04-29 23:58:12 +00:00
Nick Chalko
7a63ec7734 Merge changes from topic "revert-10501254-multihal_2_1-FNHFKNQMKB" into rvc-dev
* changes:
  Revert "Set up Multi-HAL for Sensors HAL 2.1"
  Revert "Create Multi-HAL 2.1 service"
  Revert "Update tests for multihal to test HAL 2.1"
2020-04-29 22:46:09 +00:00
Nick Chalko
cd5d437ae9 Revert "Set up Multi-HAL for Sensors HAL 2.1"
Revert submission 10501254-multihal_2_1



Reason for revert: Droidcop: Potential culprit for b/155328660 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Bug: 155328660
Reverted Changes:
I2be51568b:Update tests for multihal to test HAL 2.1
Id5ab7b606:Create Multi-HAL 2.1 service
Icefae8c12:Set up Multi-HAL for Sensors HAL 2.1

Change-Id: I21176759d45972cde3221cb462934fc1d7bd88c2
2020-04-29 22:21:25 +00:00
Nick Chalko
6691d85d0b Revert "Create Multi-HAL 2.1 service"
Revert submission 10501254-multihal_2_1



Reason for revert: Droidcop: Potential culprit for b/155328660 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Bug: 155328660
Reverted Changes:
I2be51568b:Update tests for multihal to test HAL 2.1
Id5ab7b606:Create Multi-HAL 2.1 service
Icefae8c12:Set up Multi-HAL for Sensors HAL 2.1

Change-Id: I5e828d1dfd4f9ede5cbd38ff8bc4cc5dc48e4d76
2020-04-29 22:20:59 +00:00
Nick Chalko
f4b5b40b4a Revert "Update tests for multihal to test HAL 2.1"
Revert submission 10501254-multihal_2_1

Reason for revert: Droidcop: Potential culprit for b/155328660 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Bug: 155328660
Reverted Changes:
I2be51568b:Update tests for multihal to test HAL 2.1
Id5ab7b606:Create Multi-HAL 2.1 service
Icefae8c12:Set up Multi-HAL for Sensors HAL 2.1

Change-Id: I8b97eb29633cf24f464d742770256791108c27dd
2020-04-29 22:13:29 +00:00
David Anderson
3dd5281351 boot: Relax getSnapshotMergeStatus test.
The SNAPSHOTTED state is allowed to be NONE if the slot hasn't changed,
to avoid needing extra snapshot cancels in the bootloader.

Bug: 154449745
Test: vts
Change-Id: Ibcb9f18f535cdcb5aae7e2c9c01e03681dbfff13
Merged-In: Ibcb9f18f535cdcb5aae7e2c9c01e03681dbfff13
2020-04-29 14:00:29 -07:00
TreeHugger Robot
89b216690c Merge changes from topic "multihal_2_1" into rvc-dev
* changes:
  Update tests for multihal to test HAL 2.1
  Create Multi-HAL 2.1 service
  Set up Multi-HAL for Sensors HAL 2.1
2020-04-29 20:56:30 +00:00
TreeHugger Robot
24087f1219 Merge "Remove non-test ScopedWakelock dependency" into rvc-dev 2020-04-29 20:46:46 +00:00
Hayden Gomes
331370012d Merge "Fix AudioControl@2.0 fade check" into rvc-dev 2020-04-29 17:27:32 +00:00
Anthony Stange
67888489ce Update tests for multihal to test HAL 2.1
Updates tests and fake subhals to support Multi-HAL 2.1 to make
on-device testing feasible.

Bug: 149758467
Test: Verify that the new unit tests and subhals in this topic load and
run on a Pixel device

Change-Id: I2be51568ba8dd99aa0588b8945d3d41bda7d9941
2020-04-29 11:25:26 -04:00
Amy Zhang
6e8163a241 Fix issues in Tuner VTS Dvr testing
This CL fixes the following issues:
1. Modified some unnecessary or not proper debug msg in the VTS/Default
impl
2. Some incorrect VTS testing order
3. Added a flush test on Dvr status
4. Used a ts from Android aosp cts for testing
5. Changed the configuration to run with the new ts on cf
6. Fixed some deadlock and logic issues in the VTS/Default
implementation

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150989084
Bug: 153366959
Bug: 153367094
Change-Id: If7eb8534caff4fc11ac4e166ef5391e8f543408d
2020-04-28 19:06:09 -07:00
Stan Rokita
99a9a529ba Remove non-test ScopedWakelock dependency
Unit tests were depending on a non test library unecesarrily and it was
causing unit test build failure.

Fixes: 155239061
Test: atest android.hardware.sensors@2.0-halproxy-unit-tests
Change-Id: I057a432fdbef93680a67558c27ed7adc7fedfbbc
2020-04-28 18:31:46 -07:00
Hayden Gomes
908a0a2d6b Fix AudioControl@2.0 fade check
Fade now checks isValidValue rather than !isValidValue

Bug: 155225937
Test: built ran and adjusted fade
Change-Id: I21b0dee8ebd677217b037c38cc744a77cf145709
2020-04-28 15:12:19 -07:00
Amy Zhang
a305c1c58c Refactoring the Dvr data flow tests in the Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150989084
Change-Id: I496dccd9dddcf6043c05faee6fbe1f0418586bc4
2020-04-28 15:00:38 -07:00
Anthony Stange
82f8d46691 Create Multi-HAL 2.1 service
Bug: 149758467
Test: Verify that the new unit tests and subhals in this topic load and
run on a Pixel device

Change-Id: Id5ab7b606f91764a456d8e3a16f7f0f2cf9b4fef
2020-04-28 17:49:02 -04:00
Anthony Stange
bc20e5c2a3 Set up Multi-HAL for Sensors HAL 2.1
Bug: 149758467
Test: Load onto device and verify VTS passes
Test: Verify new fake subhals load properly and that unit tests pass
that have been updated in this topic

Change-Id: Icefae8c1261b29d704beedd51de5b3f53b374cc4
2020-04-28 17:48:59 -04:00
TreeHugger Robot
253be8a6b4 Merge "vts camera characteristtics: add tests for system camera restrictions." into rvc-dev 2020-04-28 19:18:34 +00:00
Jayant Chowdhary
7612f161a7 vts camera characteristtics: add tests for system camera restrictions.
The system camera kind of physical cameras which are public, should be the same as the
system camera kind of the logical cameras they back.

The system camera kinds of all logical cameras that share the same
hidden physical cameras must be the same.

Bug: 152053830

Test: VtsHalCameraProviderV2_4TargetTest
      --gtest_filter=PerInstance/CameraHidlTest.getCameraCharacter*

Test: VtsHalCameraProviderV2_4TargetTest
      --gtest_filter=PerInstance/CameraHidlTest.systemCamera*

Change-Id: Iba07a6aa4a5fb465e9e0c4d0adedf6becaba7d14
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-04-28 10:32:06 -07:00
Devin Moore
5254086ccc Merge "Convert Python OMX VTS test to Gtest" into rvc-dev 2020-04-28 15:36:56 +00:00
Devin Moore
5bd2a350ad Convert Python OMX VTS test to Gtest
Moving the extra tests from
test/vts-testcase/hal/media/omx/V1_0/host_omxstore/VtsHalMediaOmxStoreV1_0HostTest.py
to the OMX Gtest in VtsHalMediaOmxV1_0TargetMasterTest.

This is mostly validating the RoleInfo and NodeInfo data obtained from
IOmxStore interface.

Bug: 152237762
Test: atest VtsHalMediaOmxV1_0TargetMasterTest on cf and pixel devices
Change-Id: I8174b8953ee5e484777afb21b2d170cec0159edc
2020-04-27 18:42:59 -07:00
TreeHugger Robot
17c8d7c043 Merge "Identity Credential: Restrict AccessControlProfile identifiers to 32." into rvc-dev 2020-04-27 21:47:01 +00:00
Hall Liu
6fa742d6c5 Merge "Allow android.hardware.radio 1.4 for R" into rvc-dev 2020-04-27 20:56:02 +00:00