Commit graph

837 commits

Author SHA1 Message Date
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Dan Shi
55d110bcd0 Rename vts-core to vts am: ba894f81db
Change-Id: Ifb5d31470ee6d3b29b2f1af4be54b1fbdd888a7c
2020-04-07 23:45:55 +00:00
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Automerger Merge Worker
4eaa7205f8 Merge "Remove reference of VtsHalHidlTargetTestBase" am: badb75e309 am: 88b5b44f89
Change-Id: I8f0ee727d4370aae80a44a016dbc12e8cda079bd
2020-02-05 00:06:24 +00:00
Automerger Merge Worker
88b5b44f89 Merge "Remove reference of VtsHalHidlTargetTestBase" am: badb75e309
Change-Id: Ia1b74f69ff92f57117e5e9510896b6c4b6730548
2020-02-04 23:54:32 +00:00
Dan Shi
9910d38aa7 Remove reference of VtsHalHidlTargetTestBase
Bug: 147894326
Test: m -j VtsHalWifiHostapdV1_0TargetTestUtil \
  VtsHalSensorsTargetTestUtils
Change-Id: If11f23db93333ddd702ce5ebf7c5c0b9583c57fa
2020-02-04 03:29:50 +00:00
Automerger Merge Worker
478ad5c96a wifi(implementation): Clear wifi event callback objects while stopping am: 4c1b6780b4
Change-Id: Ibd07d9585b3048c175888296b2bef570ba14ee4b
2020-01-29 21:34:10 +00:00
Kyounghan Lee
4c1b6780b4 wifi(implementation): Clear wifi event callback objects while stopping
This fixes a deadlock between WifiNative and HalDeviceManager
because it removes about 30 times callbacks of
IWifiEventCallback#onFailure() or onStop(). Such excessive callbacks
within a short period tend to make high probabilities of the deadlock.

Note: This is a side effect of how the framework is registering multiple
callbacks. But, unfortunately there is no HAL API to unregister
callback. So, this is somewhat of a workaround fix.

Bug: 144137870
Test: Verified that the HAL no longer accumulates callbacks from
framework.
Test: Device boots up and connects to wifi networks.
Change-Id: I441e2f815a0a49c3936615f06a65a6ed5366a628
Merged-In: I441e2f815a0a49c3936615f06a65a6ed5366a628
2020-01-29 11:09:41 -08:00
Automerger Merge Worker
2406c41f21 Merge "Wifi: fix p2p vts failure on no p2p support devices" am: 189894129c am: 96643ab05c
Change-Id: I4134c6c97d1a8338fc0ba8c0cf0973e3479523ab
2019-12-19 02:39:27 +00:00
Automerger Merge Worker
d719d5726e [AWARE] Protect string copy against buffer overflow am: 5039b6099e
Change-Id: If36fa8b7de6f0b9092e9c7c7f50f6fd8111f6cb3
2019-12-19 01:38:38 +00:00
Etan Cohen
5039b6099e [AWARE] Protect string copy against buffer overflow
Fixes: 143789898
Test: (Unit) atest com.android.server.wifi
Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib
Test: (VTS) atest VtsHalWifiApV1_4TargetTest
Change-Id: I5b8aa1d9a6388fe20cb7e1cd6a76d5e59e14d099
2019-12-18 15:08:00 -08:00
Jimmy Chen
87b62f142d Wifi: fix p2p vts failure on no p2p support devices
P2P vts tests should be omitted if p2p
is not supported.

Bug: 145315660
Test: atest VtsHalWifiSupplicantP2pV1_0TargetTest

Change-Id: Ia4cda22a2fce22335f8f230dbd7fd3418b1b3890
2019-12-18 15:43:05 +08:00
Dan Shi
b2193ac0d0 Merge "Convert VtsHalWifiSupplicantV1_0TargetTest to be parameterized test" 2019-11-15 23:37:19 +00:00
Treehugger Robot
2bba1b3211 Merge "Bug fix in wifi_hidl_test_utils" 2019-11-15 03:03:11 +00:00
Dan Shi
59c749595f Convert VtsHalWifiSupplicantV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
  VtsHalWifiSupplicantP2pV1_0TargetTest

Change-Id: I0cba2c29d90018d8248c583dec2354f9d3feba47
2019-11-13 14:33:25 -08:00
Roshan Pius
958dee87b8 wifi(vts): Set the iface up as a part of setup
Attempts to fix a VTS test failure reported by OEM's on devices
supporting concurrent AP iface.

Bug: 143096362
Test: make vts && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Host
Test: Will need to ask OEM to verify the fix.
Change-Id: I0958d720411258761f4ac5bcccc823b06a55d518
Merged-In: I0958d720411258761f4ac5bcccc823b06a55d518
2019-11-13 12:55:53 -08:00
Dan Shi
beddeb4dc4 Bug fix in wifi_hidl_test_utils
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_0TargetTest
Change-Id: Idc1560fa83471f79a2302746815117ff60c46c77
2019-11-12 22:22:48 -08:00
Dan Shi
9361c70c9b Merge "Convert VtsHalWifiHostapdV1_*TargetTest to be parameterized test" 2019-11-08 22:21:51 +00:00
Les Lee
dab90bdb08 Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1" 2019-11-08 08:30:38 +00:00
lesl
c8a2e136ea hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1
If driver doesn't support the hotspot ACS feature.
It will cause ACS relate vts testcase failure.
Temp disable the vts test case and file b/140172237 to fix in R.

Bug: 135975451
Test: build - make vts
Test: atest VtsHalWifiHostapdV1_1Target / atest VtsHalWifiHostapdV1_0Target
Test: 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: I489d5f5c54f37f3603128e127a6c8b1ee62390d3
2019-11-08 11:49:55 +08:00
Dan Shi
3d4d496078 Convert VtsHalWifiHostapdV1_*TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiHostapdV1_0TargetTest \
VtsHalWifiHostapdV1_1TargetTest
Change-Id: I37ae0369daf145731eb6b00078b396e1a4415d3f
2019-11-07 14:41:16 -08:00
zhibo.chang
a9e726e2c9 Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2
From the log and case logic,when assertTrue isSupplicantRunning is not the real wpa_supplicant status.
So occasionally there will be a timeout when waiting for a callback in the waitForHidlService method.
Because this is a low memory version and it is gsi image, we can't modify the image, so we can solve it by extending the time.

Bug:[142585026]
Test:run vts of the VtsHalWifiSupplicantV1_2Host.
Change-Id: Ideef032d310165d956c3ca0967b26bc3e3f44c3b
2019-10-30 08:38:31 +00:00
Xin Li
69879436a5 Merge "Merge Coral/Flame into AOSP master" 2019-10-27 04:44:29 +00:00
Dan Shi
2fb877b69e Convert VtsHalWifiOffloadV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest
Change-Id: I5480743b5384684a27036d2e0999d0de423a7c20
2019-10-24 15:15:14 -07:00
Nick Desaulniers
7d36ef505c Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list"
am: d1785cb7f6

Change-Id: I43a36565bd9eb428e16384f5639328ac895ac71a
2019-10-15 22:05:23 -07:00
Nick Desaulniers
f5b16f32f5 [hardware][interfaces][wifi] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: If22be04df7d2d0aae9ed50fada53d0ccd4edc9d1
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:06:08 -07:00
TreeHugger Robot
7b2e2fe15c Merge "Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master" into stage-aosp-master 2019-09-11 20:31:38 +00:00
Colin Cross
5d81a5814b Remove unused libcrypto dependency.
libcrypto is unused, which causes problems when boringssl hash
injection is turned on as the code is all stripped and there is
nothing left to inject the hash into.

Bug: 137267623
Test: Ran the following together with the changes from
      http://r.android.com/q/topic:bug137267623_bsslselftest

      m VtsHalDrmV1_{0,1,2}TargetTest \
        VtsHalWifiHostapdV1_{0,1}TargetTest{,Util} \
        VtsHalWifiSupplicantV1_{0,1,2}TargetTest{,Util} \
        VtsHalWifiSupplicantP2pV1_{0,2}TargetTest

      (croot hardware/interfaces/confirmationui ; mma)
      (croot hardware/interfaces/drm ; mma)
      (croot hardware/interfaces/keymaster ; mma)

Change-Id: Ib0607671ef71d99becb483774f810aad9762f4f1
2019-09-10 00:05:33 +01:00
Xin Li
15be13ea71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: Ia07db5c8afeed7fe22a2b18d867a38390f910a81
Merged-In: Ibbd540dbb5baee46360d3fe9469212cfd8f550ba
2019-09-08 13:06:54 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
lesl
6919cf1a70 hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1
If driver doesn't support the hotspot ACS feature.
It will cause ACS relate vts testcase failure.
Temp disable the vts test case and file b/140172237 to fix in R.

Bug: 135975451
Test: build - make vts
Test: atest VtsHalWifiHostapdV1_1Target / atest VtsHalWifiHostapdV1_0Target
Test: 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: I489d5f5c54f37f3603128e127a6c8b1ee62390d3
2019-08-29 11:01:50 +08:00
Peter Kalauskas
05d36f94c2 Convert LazyServiceRegistrar usage to singleton
am: caed24ba9b

Change-Id: Id1a200b248b30209e8481a617bdfccefc5080134
2019-08-20 12:14:42 -07:00
Peter Kalauskas
caed24ba9b Convert LazyServiceRegistrar usage to singleton
Test: lshal
Bug: 139376253
Change-Id: I32cb803fb73aa15b52676847b6e7eb09b86657dc
2019-08-19 21:15:30 +00:00
Les Lee
29a52adadc Merge "WifiHal: Correct typo for code comment" am: 12ca95ccc4
am: 2ad166a35b

Change-Id: I56f8779232716fa51f9d7c3d649712fa6f0afe32
2019-08-13 01:35:38 -07:00
Les Lee
2ad166a35b Merge "WifiHal: Correct typo for code comment"
am: 12ca95ccc4

Change-Id: I97adbb5087c950df99af8962ff400978d5ad64af
2019-08-13 01:28:57 -07:00
lesl
83530c7fe9 WifiHal: Correct typo for code comment
Test: full build
Change-Id: Ia457f39d1d68527c2bdfaa700d45ead3d2064a52
2019-08-06 12:03:28 +08:00
Roshan Pius
39502371dd hostapd(vts): Use the correct syntax for vendor prop
am: 4335de4cac

Change-Id: I1e89831588dd3eec16e6e04cf2ac9446cac2ce65
2019-07-30 07:58:44 -07:00
Roshan Pius
4335de4cac hostapd(vts): Use the correct syntax for vendor prop
Change the prop to add "ro.vendor." prefix for the new vendor prop.

Bug: 136645414
Change-Id: I5edfdc98991068eac279975397b6a29313bf31da
2019-07-29 11:16:56 -07:00
Roshan Pius
3e01cbd710 Merge "hostapd(vts): Add a property for SAP interface" into qt-dev
am: 896c71a7d2

Change-Id: I6b1857fc92a3f42c5e82ed565f4fb38695934556
2019-07-18 18:18:57 -07:00
TreeHugger Robot
896c71a7d2 Merge "hostapd(vts): Add a property for SAP interface" into qt-dev 2019-07-19 00:57:14 +00:00
Roshan Pius
9a8538b4ee hostapd(vts): Add a property for SAP interface
Changes to the VTS test to support OEM's who use a separate
dedicated SAP interface.

Note: This is a VTS test change only. The default implementation does
not still support a dedicated SAP interface (OEM's can obviously
customize the default implementation for their devices).

Bug: 136645414
Test: None (verified by partner OEM)
Change-Id: I42b87bf90cfa90c7c218309164ab2b77f3685f9e
2019-07-18 14:38:41 +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
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00
Jimmy Chen
d49f3424c5 Merge "p2p: skip MAC randomization vts test if not supported" into qt-dev
am: 33723f56b5

Change-Id: Ib6779515fb13d25b1f712f5bb32981a7980d79f4
2019-06-26 23:11:18 -07:00
Jimmy Chen
7af5384d2d p2p: skip MAC randomization vts test if not supported
Bug: 135247522
Test: atest VtsHalWifiSupplicantP2pV1_2TargetTest
Change-Id: I1aafcdbe88f93dbf73069d24ae90cad0d395df6e
2019-06-26 14:40:10 +08: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
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
Steven Moreland
0dc5f389f9 Merge "libhidltransport users user libhidlbase" into qt-dev
am: a27c627f51

Change-Id: I379a04a52e60260e0a73dc7720d3e315038a52ff
2019-06-14 16:18:47 -07:00
Steven Moreland
085a82ecb1 libhidltransport users user libhidlbase
libhidltransport symbols are being moved into libhidlbase in order to
optimize linking/memory usage. libhidltransport will no longer be
required in the future (however removing references to it will come
separately).

Bug: 134961554
Test: boot
Change-Id: Ibcc2db32d3bec1a786b60e11d4820ecd0605f403
2019-06-12 13:49:19 -07:00