Commit graph

12885 commits

Author SHA1 Message Date
Henry Fang
ec76614f65 Tuner HAL for ATV
Initialize Tuner HAL review from Tuner and Frontend Interface.

Bug: 135709729
Test: Manual
Change-Id: Ibfc18049ea471a1cfec6fb9f5b71f8a92cf89045
Merged-In: Ibfc18049ea471a1cfec6fb9f5b71f8a92cf89045
2019-08-23 00:46:49 +00:00
Treehugger Robot
a5e28d6abf Merge "Keymaster should be developed in AOSP" 2019-08-02 16:32:24 +00:00
Janis Danisevskis
11d910b6a4 Keymaster should be developed in AOSP
This patch adds notifications for internal contributors of
confirmationui, gatekeeper, and keymaster, indicating that these HALS
are developed in AOSP.

Test: N/A
Bug: 118491737
Change-Id: I7f6d5da663026c3cd2124cc3a025a08835585a1c
2019-08-01 15:52:53 -07:00
Daniel Norman
5bb99e24ad Merge "Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'." 2019-07-31 21:12:12 +00:00
Daniel Norman
fb4aadf622 Replaces 'oneshot' and 'interface' with 'onrestart restart audioserver'.
This default service should still restart on audioserver restart because
audioserver uses 'onrestart restart vendor.audio-hal-2-0' for restarts.

Bug: 138114550
Bug: 80227481
Test: for i in {0..100}; do \
      adb shell 'ps|grep audio;killall audioserver;ps|grep audio' \
      && sleep 2; \
      done
Test: Ran steps mentioned in http://b/80227481#comment1, device did not
get stuck in boot animation. Killing either audioserver or audio-hal
caused both to restart (just once) and the device booted correctly after
the sleep finished.
Change-Id: Ice128b51f79d3a9de22a719e6d897c8dca915e28
2019-07-31 21:08:02 +00:00
sqian
c8a08c1816 Verify there are no more current calls
After disconnect calls, we want to verify there are no more current calls
by calling IRadio.getCurrenctCalls

Test: run vts
Bug: 138413412
Change-Id: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
Merged-In: Iacca49abff11fbdfb4ae6dd060a5f150e9e4a74d
(cherry picked from commit 5f68117e87)
2019-07-30 16:29:33 -07:00
Michael Butler
3835f61986 NNAPI VTS fix from NNAPI CL: Cleanup HalInterfaces.h
Prior to this CL, HalInterfaces.h polluted the global namespace through
the "using" declarations. To fix b/72880287, those names were put in a
new ::android::nn::hal namespace. This CL fixes the compilation errors
that occur due to this cleanup.

Bug: 72880287
Test: mma
Change-Id: Idb228e37615af7c0343a09f9a51de378e63bdb5a
Merged-In: Idb228e37615af7c0343a09f9a51de378e63bdb5a
(cherry picked from commit 4745a3d96e)
2019-07-26 13:55:25 +01:00
Xusong Wang
ee7fe25e99 Move strided_slice_invalid_output_dims to spec directory.
Bug: 132155416
Test: 1.2 VTS
Change-Id: I0479b8172c55e5e290f3fc8530a428ac5f54998f
Merged-In: I0479b8172c55e5e290f3fc8530a428ac5f54998f
(cherry picked from commit c99ced161c)
2019-07-26 13:55:24 +01:00
Treehugger Robot
42d10ce6ee Merge "Adding default HDMI CEC impl" 2019-07-22 20:45:43 +00:00
Treehugger Robot
5faecb3e7d Merge "Add localization string for confirmationui." 2019-07-22 20:06:11 +00:00
Janis Danisevskis
54243610c7 Add localization string for confirmationui.
Bug: 118818420
Test: ConfirmationUITranslations-test.c
Change-Id: I45d96dcce1d459dd889fd48c0724092e642278c2
2019-07-19 15:55:23 -07:00
Michael Butler
051cf39f99 Update NN VTS callback objects
The VTS Callback files are a subset of the Callback files in
frameworks/ml/nn/runtime/Callbacks.*. This CL syncs the implementations,
removing the functionality that is not needed in VTS.

Fixes: 132322149
Test: mma
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: VtsHalNeuralnetworksV1_1TargetTest
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I114ce7f3b6c3d58de0196e9508209614d0a73e11
Merged-In: I114ce7f3b6c3d58de0196e9508209614d0a73e11
(cherry picked from commit 23d0e562e0)
2019-07-19 14:00:40 +01:00
Xusong Wang
e108bc15e6 Remove compiler flag for dynamic output shape tests.
Having separate VTS models and tests for difference HAL version. This
compiler flag is no longer needed.

Bug: 122740334
Test: All VTS 1.x and 1.xCompat1.y
Change-Id: Idbd96a954da9bd5a0e0e66afd9120d84a1efc784
Merged-In: Idbd96a954da9bd5a0e0e66afd9120d84a1efc784
(cherry picked from commit 7763d53545)
2019-07-19 14:00:38 +01:00
Slava Shklyaev
cac83eefa5 Update paths to NNAPI VTS models
See change If3bfbdfa016cd32a39b8a63028481da7318d6e02

Bug: 124040454
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: VtsHalNeuralnetworksV1_1TargetTest
Test: VtsHalNeuralnetworksV1_1CompatV1_0TargetTest
Test: VtsHalNeuralnetworksV1_2TargetTest
Test: VtsHalNeuralnetworksV1_2CompatV1_0TargetTest
Test: VtsHalNeuralnetworksV1_2CompatV1_1TargetTest
Change-Id: I17dd4377ee5110ac10ae8142fa7403329eda067c
Merged-In: I17dd4377ee5110ac10ae8142fa7403329eda067c
(cherry picked from commit 8226861489)
2019-07-19 14:00:35 +01:00
Slava Shklyaev
73ee79dafa Refactor NNAPI VTS to remove unreasonable dependence between versions
To make it easier to create the next version of NNAPI, this change
removes the following nonsensical dependence:
- NNAPI 1.0 VTS depends on NNAPI 1.1 and 1.2
- NNAPI 1.1 VTS depends on NNAPI 1.2

In particular, I made the following changes:
- split GeneratedTestHarness.cpp into three separate implementations,
- created a restricted version of Callbacks.h for 1.0 and 1.1,
- removed the dependency on frameworks/ml/nn/HalInterfaces.h,
- refactored Android.bp files for more autonomy between 1.0, 1.1, and 1.2,
- consolidated some common code into Utils.h,
- created structure for sharing code between VTS versions (VtsHalNeuralNetworksV1_0_utils).

Bug: 74827824
Bug: 124462414
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: VtsHalNeuralnetworksV1_1TargetTest
Test: VtsHalNeuralnetworksV1_1CompatV1_0TargetTest
Test: VtsHalNeuralnetworksV1_2TargetTest
Test: VtsHalNeuralnetworksV1_2CompatV1_0TargetTest
Test: VtsHalNeuralnetworksV1_2CompatV1_1TargetTest
Change-Id: I4243d0b5e574255cef1070850f4d0a284f65f54e
Merged-In: I4243d0b5e574255cef1070850f4d0a284f65f54e
(cherry picked from commit 1d6b465997)
2019-07-19 14:00:29 +01:00
Amy
e4ddc0d522 Adding default HDMI CEC impl
Test: manual
Bug: 135684678
Change-Id: I10769731cdc28a3da1cd7c41f97d8215c86f0d60
2019-07-17 11:13:29 -07:00
Treehugger Robot
c158dbcd7e Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master" 2019-07-11 03:52:58 +00:00
Xin Li
1942f9edaa DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master
Bug: 136196576
Change-Id: I58505f104075c7c210612eda8e266df9e3ecfeda
2019-07-09 15:22:03 -07:00
Robin Lee
3aa02c5d87 Add default to IConsumerIr interface's initrc
Fixes build for devices using this interface.

$ ./out/host/linux-x86/bin/host_init_verifier
      -p $OUT/obj/ETC/passwd_intermediates/passwd
      -k out/soong/.intermediates/known_hidl_interfaces.txt
    hardware/interfaces/ir/1.0/default/android.hardware.ir@1.0-service.rc

  >> host_init_verifier:
  >>>> hardware/interfaces/ir/1.0/default/android.hardware.ir@1.0-service.rc:
  >>>> 2: interface requires 2 arguments

  >> host_init_verifier: Failed to parse init script

  >> 'hardware/interfaces/ir/1.0/default/android.hardware.ir@1.0-service.rc'
  >>>> with 1 errors

Test: make dist # fails before change, passes after
Change-Id: Ia23b855424905c465fa4ee13f8910aa47d194899
2019-07-09 12:14:31 +00:00
android-build-team Robot
0ef08c828d Snap for 5622519 from b095226d92 to pi-platform-release
Change-Id: Ica34e89bfee2be3a58c1a0a251bd43ed9adf534b
2019-07-08 23:25:45 +00:00
Treehugger Robot
98d0f4d52c Merge "Add interface info to .rc files" 2019-07-08 18:56:33 +00:00
Jordan Liu
fbd3b6cec4 Merge "Add radio config 1.2 VTS tests" 2019-07-03 17:07:58 +00:00
sqian
8c9947de8d Hang up EmergencyDial after Trigger in VTS
The whole test case run emergencyDial.RadioHidlTest_v1_4 first and then
 come after startNetworkScan.RadioHidlTest_v1_4 test case immediately
 (within ~3 secs) the NWscan failure is device in emergency call in
 progress/connected while doing emergencyDial.RadioHidlTest_v1_4 test

Although emergencyDial.RadioHidlTest_v1_4 only care about command/response
 is successful or not and don't care call is established or not, modem do
 care about call condition is in idle/progress/connected state before it
 can do NWscan

When there's dedicated channel established, modem can not perform AP
 request NWscan in parallel as we are single HW modem restriction.

Test: run vts
Bug: 135595082
Change-Id: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
Merged-In: Iecba54b93b96d33b57bc59e00f082ff133d2e57b
(cherry picked from commit 07a53471c4)
2019-07-01 17:37:24 -07:00
Treehugger Robot
15afbba38a Merge "android.hardware.tests.libbinder static" 2019-07-01 23:13:53 +00:00
Steven Moreland
f4ad670671 android.hardware.tests.libbinder static
So that the test doesn't require modifying the system partition.

Still creating a shared version of this library since some things
downstream still depend on this.

Bug: 136111641
Test: libbinder_benchmark
Change-Id: I636f53c2a2bc4705804ca36d124102eba55c23e6
2019-07-01 21:49:19 +00:00
Janis Danisevskis
7350a53137 Merge "Added HIDL based software implementation of gatekeeper" 2019-06-28 00:43:10 +00:00
Jordan Liu
306c56e678 Add radio config 1.2 VTS tests
Bug: 122730535
Test: run vts -m VtsHalRadioConfigV1_2Target
Change-Id: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
Merged-In: Ib4fc17ea9f76caaf0cb0d4a2914595b7cfb7b041
2019-06-26 10:28:37 -07:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
Treehugger Robot
0104792162 Merge "health storage hal vts test: add more tolerance." 2019-06-24 18:22:38 +00:00
Janis Danisevskis
43773f6c42 Added HIDL based software implementation of gatekeeper
This patch adds a HIDL based software implementation of gatekeeper based
on libgatekeeper.

Also adds OWNER files to the vts test and default implementation
directories.

Test: Manually tested in emulator. Changing passwords and login worked.
      VtsHalGatekeeperV1_0TargetTest
      gatekeeper-software-device-unit-tests
Change-Id: I632aeb6677640c133ec1b79e72568840adbc0550
Merged-In: I632aeb6677640c133ec1b79e72568840adbc0550
2019-06-23 11:15:05 -07:00
Yifan Hong
ae3d61c2c3 health storage hal vts test: add more tolerance.
Test: run on blueline
Bug: 135631007
Change-Id: Ie1770a4a152a045e5f40eaf9cd7b551fe391a0b1
2019-06-21 15:51:40 -07:00
David Gross
b575cedd74 Merge "Improve documentation related to execution." 2019-06-21 18:40:03 +00:00
David Gross
f406bf9b1e Improve documentation related to execution.
Bug: 121347610 document that NNAPI Execution inputs/outputs and HAL Request inputs/outputs must not be modified

Test: cd hardware/interfaces/neuralnetworks/1.0/vts/functional ; mma
Test: cd hardware/interfaces/neuralnetworks/1.2/vts/functional ; mma

Change-Id: Iac71d6d5ad92a90afd1b6babb7cfa128d7484c64
2019-06-21 11:28:19 -07:00
Treehugger Robot
102e02fbae Merge "Fix leaks in wifi_chip.cpp." 2019-06-20 21:06:20 +00:00
Josh Gao
a20a499819 Fix leaks in wifi_chip.cpp.
Use closedir on DIR*, instead of close(dirfd(DIR*)).

Bug: http://b/109702699
Test: mma
Change-Id: I827d3a414761bb836d5360221296823fcb34cd6b
Merged-In: I827d3a414761bb836d5360221296823fcb34cd6b
2019-06-20 12:49:14 -07:00
Slava Shklyaev
95a5978983 Ensure that drivers return an error if STRIDED_SLICE parameters are invalid
We don't have a framework for handcrafting tests resulting in execution
failure. To produce this test, I created
strided_slice_invalid_output_dims.mod.py and used our VTS test generator
to create the corresponding example.cpp and model.cpp files. I put those
under the new directory neuralnetworks/1.2/vts/functional/generated to
distinguish them from the streamlined generated tests.

Bug: 79856511
Bug: 132155416
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: Ib331778605c2e3828195e1e7d1651091873985a0
Merged-In: Ib331778605c2e3828195e1e7d1651091873985a0
(cherry picked from commit 1a18c08052)
2019-06-19 11:16:48 +01:00
Treehugger Robot
6a0450a166 Merge "Align NFCEE ID range with NCI 1.0 in VtsNfcv1.2 test" 2019-06-11 09:01:24 +00:00
Elliott Hughes
18ea3d2d5e Remove -Wno-user-defined-warnings.
Doesn't seem to be necessary.

Bug: http://b/134716967
Test: treehugger
Change-Id: I9617cf82c816ef072005f7baf2fceee9628313f5
2019-06-07 08:46:26 -07:00
Treehugger Robot
c0fe0abfa0 Merge "Update OWNERS file" 2019-06-06 13:00:23 +00:00
Steven Moreland
46a6469a12 Merge "Remove ref<>." 2019-05-30 19:12:01 +00:00
Jack Yu
70a6d64fa2 Update OWNERS file
Update NFC VTS OWNERS

Test: None
Exempt-From-Owner-Approval: No owners
Change-Id: I71b8cb94c8b95fd32a4e42aca1a95f10182c05a3
2019-05-30 13:35:30 +00:00
Steven Moreland
13374bd7f2 Remove ref<>.
This type is unused and some parts of it has bitrot. In order to reduce
the complexity of new features, removing this.

Fixes: 131616631
Test: HIDL's test/run_all_device_tests.sh
Test: HIDL's test/run_all_host_tests.sh
Change-Id: Ib7f94053ab987ccb6858eec1cfd7e53fd7320ba3
2019-05-28 17:29:17 -07:00
Tao Bao
1ac8d95b9d Remove the support for PRODUCT_STATIC_BOOT_CONTROL_HAL.
Bug: 34254109
Test: TreeHugger
Change-Id: I99b94f8afe6027874439ac5f03440326af734d36
2019-05-28 17:26:51 -07:00
Nathan Harold
9821673626 Merge changes from topic "netscan-interval"
* changes:
  Enable incremental scans for interval checks
  Allow impls to ignore incremental scan interval
2019-05-23 20:38:01 +00:00
Nathan Harold
81c811b895 Enable incremental scans for interval checks
Currently tests that check for incremental scan interval
range-checking have incremental scans disabled.
This CL turns on incremental scans for tests where the
invalid interval range checks are being validated.

Bug: 112486807
Test: atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity1;
      atest RadioHidlTest_v1_2#startNetworkScan_InvalidPeriodicity2;
Merged-In: I94874f538d2df70a72913b489d9298f8d1cf9b56
Change-Id: I94874f538d2df70a72913b489d9298f8d1cf9b56
(cherry picked from commit f56b9a41dd)
2019-05-22 11:31:48 -07:00
Nathan Harold
beb15ccb08 Allow impls to ignore incremental scan interval
When incremental results are disabled for network scans,
update the API documentation to allow implementations to
ignore range checking for the incremental scan interval.

Bug: 112486807
Test: compilation - docstring-only change
Merged-In: I901335550b4b8c2cf75f91b39fd031f03ffae982
Change-Id: I901335550b4b8c2cf75f91b39fd031f03ffae982
(cherry picked from commit 944efca78d)
2019-05-22 11:31:33 -07:00
Steven Moreland
6c1e451691 Merge "Add current compatibility matrix for R." 2019-05-22 17:13:32 +00:00
Yifan Hong
5ec220664c Add current compatibility matrix for R.
Bug: 126892442
Test: builds
Merged-In: I1cccddf0736e0ffd5e3b5bb2da3bb5a32773f2f5
Change-Id: I1cccddf0736e0ffd5e3b5bb2da3bb5a32773f2f5
2019-05-21 20:00:09 +00:00
Treehugger Robot
c957851584 Merge "Add INVALID_STATE to list of errors for when there is only one modem available" 2019-05-21 15:27:12 +00:00
Nazanin Bakhshi
8aadb38c74 Add INVALID_STATE to list of errors for when there is only one modem
available

Bug: b/132818184
Test: VTS
Change-Id: I2b57ab99a376bcab26012d08f00284d65f915bc3
Merged-In: I2b57ab99a376bcab26012d08f00284d65f915bc3
(cherry picked from commit 52b3503064)
2019-05-20 20:34:38 -07:00