Commit graph

15016 commits

Author SHA1 Message Date
Roshan Pius
444473fbc0 wifi(implementation): Simplify getFirstActiveWlanIfaceName
Get rid of the unnecessary looping inside the method which was causing a
bunch of unnecessary selinux denial logs.

Bug: 130384921
Test: ./data/android.hardware.wifi@1.0-service-tests
Test: Manually verified the property name after wifi on/off & softap
on/off.

Change-Id: Ia9f61749b2017234851d67b027deb685cb8b539e
2019-04-22 08:58:46 -07:00
TreeHugger Robot
2684365a73 Merge "hostapd: fix hostapd vts fail" into qt-dev 2019-04-20 07:13:24 +00:00
TreeHugger Robot
756c68e0b6 Merge "vibrator: vts: Add Bad Effect/Strength Checks" into qt-dev 2019-04-19 09:28:13 +00:00
Valerie Hau
c88c624e2e Deprecate Mapper 2.0 from Q launching devices
Bug: 130669566, 62535446
Test: build, boot
Change-Id: I1bd576d5a8e8b8fef50a81eae1de18898fe895dd
2019-04-18 12:19:45 -07:00
Viet Dang
014dd02f6e Merge "BidirectionalSequenceLSTM op: Fixes VTS test for merge_outputs" into qt-dev 2019-04-18 10:22:13 +00:00
lesl
ce4a7cce2c hostapd: fix hostapd vts fail
If wpa_supplicant is running during hostapd vts and there are some
configuration in wpa_supplicant. It will happen both of hostapd and
wpa_supplicant are working with wlan0 interface.

Stop wpa_supplicant before running hostapd vts.

Reproduce step:
1. Connect to Wifi before execute hostapd vts.
2. Run hostapd vts.

Bug: 130207248
Test: vts with below commands
vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiHostapdV1_0Target -l INFO
vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiHostapdV1_1Target -l INFO

Change-Id: Id91463c2eab3c8c348a91bd978d7ea4aa8d42e85
2019-04-18 10:18:22 +08:00
TreeHugger Robot
eeb449016d Merge "p2p: fix vts fail due to 5g go init fail with 00 country code" into qt-dev 2019-04-18 02:14:03 +00:00
Yifan Hong
3e39fed7a7 Merge "Rename kernel config modules from current to Q." into qt-dev 2019-04-17 22:48:53 +00:00
hayun.kim
eb73bff276 Fix VtsHalWifiV1_0Host#WifiStaIfaceHidlTest.SetScanningMacOui fail
1. snip the VtsHalWifiV1_0Host#WifiStaIfaceHidlTest.SetScanningMacOui test
    if SCAN_RAND capability is not supported on dut device

Test: execute VtsHalWifiV1_0TargetTest of VTS test

Bug: 129735587
Change-Id: I825e1df11c958b3b2476880c6c6f7b8ee7b292bf
Signed-off-by: hayun Kim <hayun.kim.lge.corp-partner.google.com>
2019-04-17 20:44:03 +00:00
Peiyong Lin
ea21df0c88 Merge "Deprecate getDisplayBrightnessSupport." into qt-dev 2019-04-17 20:13:42 +00:00
Viet Dang
ea551fd12a BidirectionalSequenceLSTM op: Fixes VTS test for merge_outputs
Bug: 123644584

Test: VtsHalNeuralnetworksV1_xTargetTest
Change-Id: I8829fd47094ca4af05e5d60da917499ce61acc5e
Merged-In: I8829fd47094ca4af05e5d60da917499ce61acc5e
(cherry picked from commit a8f33f7dbf)
2019-04-17 15:49:05 +00:00
lesl
72132c4feb p2p: fix vts fail due to 5g go init fail with 00 country code
The force 5GHz Go will cause fail when country code is 00 or chip
doesn't support 5GHz.
Change test parameter to force 0 which means driver decide GO channel.

Bug: 130208180
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantP2pV1_2Target -l INFO
Change-Id: I0d2a8fcba4ece616ddeccbae36146329e9043157
2019-04-17 16:44:02 +08:00
Michael Butler
248eaba9c1 Fix IBurstCallback.hal typo
Test: mma
Bug: 126892442
Change-Id: If753c6618c31a11672c4449f798fb57aa4bb7831
(cherry picked from commit f1ca6754a8)
2019-04-17 01:23:46 +00:00
Peiyong Lin
65c7b60c65 Deprecate getDisplayBrightnessSupport.
Brightness is already a per display capability, we don't need this API.

BUG: 130313275
Test: build
Change-Id: I0a669aca19a2873df41bee82bd0e5e2775af8101
2019-04-15 14:04:10 -07:00
Yifan Hong
c0cbe539f3 Rename kernel config modules from current to Q.
Test: builds
Bug: 130295628
Change-Id: I4f519d9c67a983df15423f556ecc68586c6a100b
2019-04-15 10:33:10 -07:00
Cheney Ni
b1a144041e Remove bluetooth.a2dp from matrix as deprecated HAL
Bug: 129121468
Test: Manually play A2DP with presubmit build
Change-Id: Id1ddd780361110f6e944a095ce1f8ae7ae86b9e9
2019-04-16 01:11:17 +08:00
Steven Moreland
86eb7fc62b Compatibility_matrix: s/current/4/
To indicate frozen state/development shouldn't occur here.

Bug: 126892442
Test: TH (build checks compatibility matrices)
Change-Id: I3daf93d750462bf7dcb698a353801bc55a459d45
2019-04-16 01:10:31 +08:00
TreeHugger Robot
0407cfedac Merge "Expanding VTS test coverage" into qt-dev 2019-04-15 16:11:31 +00:00
Lev Proleev
6d13ba258b Fix docs: clarify usage of float16 scalars in operations
Update the docs for ops:
- LOG_SOFTMAX
- LOCAL_RESPONSE_NORMALIZATION

The docs mentioned possibility to use float16 as an input type but
didn't specify that other inputs must be float16 as well in that case.

Fix: 123500722
Test: mma
Change-Id: I9028c4a109c80f0b8571fab45555818e9e4bc783
2019-04-12 17:49:54 +01:00
Slava Shklyaev
d6e605985b Clarify NNAPI documentation for MEAN
Bug: 113673389
Test: mma
Change-Id: Icd1ce2fb9054ab9ac6f660dce84823c73563ddb8
2019-04-12 17:49:54 +01:00
Slava Shklyaev
5f5d5f9a54 Clarify NNAPI documentation for RESHAPE
Bug: 117176461
Test: mma
Change-Id: I620873536ed99ac79b7eced286a8f2621524290b
2019-04-12 17:49:54 +01:00
Harpreet "Eli" Sangha
834def17c9 vibrator: vts: Add Bad Effect/Strength Checks
Bug: 130265348
Test: vts-tradefed run singleCommand vts-hal -m VtsHalVibratorV1_0Target
      vts-tradefed run singleCommand vts-hal -m VtsHalVibratorV1_1Target
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>

Change-Id: Icc8e0d7bc81bef7141be69c23a797140fddb7295
2019-04-12 02:56:40 +00:00
Harpreet "Eli" Sangha
15d5202fa7 vibrator: example: Enforce API-Specific Effect Range
Bug: 130265348
Test: vts-tradefed run singleCommand vts-hal -m VtsHalVibratorV1_2Target
Change-Id: I45cc2ad64295d6a63ef3280d4d5b869e19786ce3
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
2019-04-12 02:56:26 +00:00
TreeHugger Robot
7ffb10cd86 Merge "Camera: require torch API support for Android Q" into qt-dev 2019-04-11 22:04:52 +00:00
TreeHugger Robot
16b5d8a94a Merge "Fix composer@2.3 VTS tests." into qt-dev 2019-04-11 21:02:19 +00:00
Yin-Chia Yeh
51ea7c984b Camera: require torch API support for Android Q
Torch API was mandated on legacy libhardware camera module 2.4.
We kept the option of not supporting this API because the first
HIDL legacy wrapper needs to also support libhardware camera
module 1.0 + HAL1.0. Now that HAL 1.0 is no longer supported,
we can reenforce the torch API being supported by camera HAL as
this is critical to power usage of flashlight usecase.

Test: adb shell VtsHalCameraProviderV2_4TargetTest
--hal_service_instance=android.hardware.camera.provider@2.4::ICameraProvider/legacy/0
Bug: 113336515

Change-Id: I0dcf2e7a5cddadcd097caf6913625d8a607065f8
2019-04-11 10:35:17 -07:00
TreeHugger Robot
605a9f4da6 Merge "mapper: support new usage and format" into qt-dev 2019-04-11 16:26:21 +00:00
Max Bires
873d889730 Expanding VTS test coverage
Keymaster VTS test coverage on 4.0 was incomplete. This significantly
expands the coverage of the spec. The bugs listed are errors found that
these tests will cover, but are not indicative of the complete set of
things tested.

Test: atest VtsHalKeymasterV4_0TargetTest
Bug: 79953279
Bug: 119553313
Bug: 119541233
Bug: 119396995
Bug: 119542230
Bug: 119549128
Bug: 119549677
Bug: 122184852
Bug: 122261372
Change-Id: I42d78091b48398597bbebe1d9c91b806494ddf4c
(cherry picked from commit 8c0edf6c84)
2019-04-11 15:17:19 +00:00
TreeHugger Robot
092c9f5e80 Merge "NFC: Update OWNERS for default/" into qt-dev 2019-04-11 02:25:49 +00:00
Peiyong Lin
f13b305530 Fix composer@2.3 VTS tests.
Some required APIs must be implemented, and thus passthrough will always assume
the function pointers exist.

BUG: 130195295
Test: atest VtsHalGraphicsComposerV2_3Target
Change-Id: Ic2790363fcb116e66438697b1a2e64e71ffc8ac6
2019-04-10 16:25:05 -07:00
Raj Mojumder
0cd000e5ce NFC: Update OWNERS for default/
BUG: 0
Test: gerrit upload
Change-Id: Idd1f901f3a58b5646f620c676cada0de5af9fc89
Signed-off-by: Raj Mojumder <rmojumder@google.com>
Exempt-From-Owner-Approval: Invalid owners.
2019-04-10 22:39:48 +00:00
Marissa Wall
6952ddf596 mapper: support new usage and format
Update IMapper to use usage and format from
android.hardware.graphics.common@1.2. This enables support for
the usage HW_IMAGE_ENCODER and the format HSV_888 which is
already being defined and used.

Test: IMapper VTS tests
Bug: 79465976
Change-Id: I680beb6e5b1cd246c28d17f855f5c76a5831ce06
2019-04-10 12:29:05 -07:00
EdenSu
a83bb3a647 Revert "Fix the compatibility matrix with range"
This reverts commit 373a240386.

Bug: 123249760
Test: Both of P19 & P20 build pass, basic functions work and HAL 1.4 works.
Change-Id: I69f794f25d7c87c65df749c39ed29b1e0f476b03
2019-04-10 16:39:58 +00:00
Steven Moreland
61f233dffb Merge "current FCM: broadcastradio@2.0::IBroadcastRadio/*" into qt-dev 2019-04-09 21:04:11 +00:00
TreeHugger Robot
fc192d58ce Merge "Update documentation for MAXIMUM and MINIMUM" into qt-dev 2019-04-09 17:36:31 +00:00
Slava Shklyaev
901ac77a69 Update documentation for MAXIMUM and MINIMUM
Bug: 130029167
Test: mma
Change-Id: Ieb0c3327a85331243af5e20a1f29f1be316267ee
2019-04-09 09:34:18 +00:00
Steven Moreland
a04e949c4f current FCM: broadcastradio@2.0::IBroadcastRadio/*
This was added to the PI (3) compatibility matrix but not to the
current matrix.

Bug: 126892442
Test: diff between 3 and current FCM only reflects intentional changes
Change-Id: Ib6d243d2015cb847afad63075387945a74c30f13
2019-04-08 17:18:51 -07:00
Steven Moreland
7986bd66ad compatibility_matrix: restore P graphics.composer
graphics.composer 2.3 was added in Android Q, so it is in the
compatibility matrix for target-level 4. Devices updating from P
to Q will automatically have this option applies. However, for
sanity, we try to keep the P compatibility matrix between releases.

This change should have no functional difference except minimizing
the delta in this file between P/Q branches.

Bug: 126892442
Test: diff compatibility matrix files
Test: these matrices are verified at build time
Change-Id: I8514c7b6ce4c2670ce7926fb31b09ed783d17dca
2019-04-08 17:02:28 -07:00
TreeHugger Robot
8d40b379fa Merge "Check temperature and cooling device name not empty" into qt-dev 2019-04-05 21:12:26 +00:00
Wei Wang
dd62969e33 Check temperature and cooling device name not empty
Bug: 116540200
Test: atest VtsHalThermalV2_0TargetTest
Change-Id: I61bfb32ed6115d711dfcc82c2c3ff6eb29951ef2
2019-04-05 11:11:52 -07:00
Jayant Chowdhary
80bed174b2 Merge "Allow android.hardware.camera.common@1.0-helper to access vendor tags" into qt-dev 2019-04-05 16:39:16 +00:00
Anil Admal
39baf7c11e Merge "Restore gnss@1.1 HAL capability bits removed in gnss@2.0 (hal)" into qt-dev 2019-04-05 06:15:35 +00:00
TreeHugger Robot
52f5328bd3 Merge "IMapper: change an error message" into qt-dev 2019-04-05 03:29:22 +00:00
TreeHugger Robot
5cdddf2a6b Merge "Revert "Revert "Mark layers with color transform client composition if not implemented.""" into qt-dev 2019-04-05 02:34:30 +00:00
TreeHugger Robot
b902095897 Merge "Camera: Avoid using an uninitialized physical camera id" into qt-dev 2019-04-05 01:45:21 +00:00
TreeHugger Robot
94dd578b02 Merge "Camera: Set buffer request stream id" into qt-dev 2019-04-05 00:58:12 +00:00
Valerie Hau
7ae8af54b3 Revert "Revert "Mark layers with color transform client composition if not implemented.""
This reverts commit 6f5a48f7af.

Reason for revert: Reinstating with fix
Below is the original commit message:
SET_LAYER_COLOR_TRANSFORM is an optional API, and thus when it's not
implemented. we want to make sure we follow the spec to mark those layers as
client composition and add them into changed layers list proactively.

BUG: 115554640
Test: Verify with setting color transform manually.
Change-Id: Ia2e8634b01ee1b5c99893e86ef451f90337ef90f
2019-04-04 16:17:27 -07:00
Marissa Wall
4de153cd21 IMapper: change an error message
Change the error message that prints when IMapper 3.0 isn't present.
The old warning was causing unnecessary concerns.

Bug: 128013727
Test: compile
Change-Id: I197cd953d08a8e9f3bdee92cede973bf1b97dfe2
(cherry picked from commit ccbd24f633)
2019-04-04 23:05:51 +00:00
Pawin Vongmasa
2dcd353f7f Add Codec2 entry; make Codec2 and Omx optional
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 112362730
Bug: 121132171
Bug: 128320274
Change-Id: I4ee174bb434935bdf923a30bab40ed3024f45cbe
2019-04-04 21:27:55 +00:00
Jayant Chowdhary
661f4410f4 Allow android.hardware.camera.common@1.0-helper to access vendor tags
This allows vendor camera clients to access provider specific vendor
tags. No expected behavior changes to camera HAL process(es).

Also fixes OWNERS file.

Bug: 129688550

Test: AImageReaderTest modified to set a vendor tag in CaptureRequest
Test: Take still pictures / record video (sanity)
Test: camera CTS tests

Change-Id: I18b678e7e0db7f1b29c3de0b762cb65e25842fa8
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2019-04-04 14:24:06 -07:00