Commit Graph

8369 Commits

Author SHA1 Message Date
Roshan Pius
220d98c193 Merge changes I017d3528,Ie5444041,Iff873784,I1049176a,I8575df02, ...
* changes:
  wifi(implementation): Load wifi driver on IWifi.start()
  wifi(implementation): Different names for concurrent ifaces
  wifi(implementation): Add iface combo for 2018
  wifi(implementation): Unit tests for V1 & V2 iface combos
  wifi(implementation): Add unit test framework
  wifi(implementation): Support multiple ifaces of same type
2017-12-15 04:02:13 +00:00
Steven Moreland
b325873134 Merge "Test for vec<union> vec<struct w/ union>." am: cd619af7bc am: bc3f5661c8
am: dc3e125f54

Change-Id: Ibb3cf3d695feacfa3fbf905f5cf2e55a51bd1241
2017-12-15 03:10:10 +00:00
Steven Moreland
dc3e125f54 Merge "Test for vec<union> vec<struct w/ union>." am: cd619af7bc
am: bc3f5661c8

Change-Id: Idaa4ac34c061cd59d829dd98426489328046d968
2017-12-15 03:06:41 +00:00
Steven Moreland
bc3f5661c8 Merge "Test for vec<union> vec<struct w/ union>."
am: cd619af7bc

Change-Id: I870a5a3421199e4bbdec8ec66cd9ed4e01e3c349
2017-12-15 03:02:22 +00:00
Treehugger Robot
cd619af7bc Merge "Test for vec<union> vec<struct w/ union>." 2017-12-15 02:51:37 +00:00
Nathan Harold
a26880319a Fix a typo in Enhanced Network Scan Request am: 9acbfc2e6b am: ba596a7181
am: 8070739edc

Change-Id: I44bbf0f3e5b3df2b5bcdd19f79a80c759d22a591
2017-12-15 01:56:17 +00:00
Nathan Harold
8070739edc Fix a typo in Enhanced Network Scan Request am: 9acbfc2e6b
am: ba596a7181

Change-Id: I248d668d8578d33b1dde549f128dbf4ded5b32ab
2017-12-15 01:52:38 +00:00
Nathan Harold
ba596a7181 Fix a typo in Enhanced Network Scan Request
am: 9acbfc2e6b

Change-Id: I088778cc917c8a53cf75b7a16449016d73e900c6
2017-12-15 01:50:41 +00:00
Steven Moreland
3bcfa475e2 Test for vec<union> vec<struct w/ union>.
Bug: 31973802
Test: hidl_test
Change-Id: I4367f1f525caa8d1edb95b7bfdac78f21b234576
2017-12-14 16:02:46 -08:00
Nathan Harold
9acbfc2e6b Fix a typo in Enhanced Network Scan Request
Change RADIO_ACCESS_SPEFICIER_MAX_SIZE to
RADIO_ACCESS_SPECIFIER_MAX_SIZE

Bug: 63865942
Test: compliation
Change-Id: Idabac6ab42c90353a83d32483be46c77a85b7f1d
2017-12-14 13:13:22 -08:00
Peng Xu
b7c67a68a6 Merge "Fix flakiness of sensor VTS test cases" into oreo-dev am: 863c52448e -s ours am: 8b12cc9fe6 -s ours am: 9732e2b7bf -s ours am: ca1cd6b141 -s ours
am: f4e1aeb602  -s ours

Change-Id: I94e40042f73c148576496262fce100f9fafb5fc7
2017-12-14 20:52:32 +00:00
Mikhail Naganov
2264d527e7 Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae am: 896830ff6f am: ac8d483030 -s ours am: 57895f9993 -s ours
am: de4bbb4577  -s ours

Change-Id: I96d9c596bda55199e4d2dc92a609667c092b45c3
2017-12-14 20:51:54 +00:00
Chia-I Wu
c1d6239256 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf am: ca8ced7a5c am: 7b332605c2 am: df93992df7
am: ca064e776f

Change-Id: I9245a1a4d54e1fe5b32af3e91359c42343dffb71
2017-12-14 20:51:05 +00:00
Peng Xu
f4e1aeb602 Merge "Fix flakiness of sensor VTS test cases" into oreo-dev am: 863c52448e -s ours am: 8b12cc9fe6 -s ours am: 9732e2b7bf -s ours
am: ca1cd6b141  -s ours

Change-Id: Ie1eb9e0d1e02545f536261fd15c2c1fbdf672bc0
2017-12-14 20:48:42 +00:00
Mikhail Naganov
de4bbb4577 Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae am: 896830ff6f am: ac8d483030 -s ours
am: 57895f9993  -s ours

Change-Id: Ic984ea3460996ecf83c6c8f400f514432690346c
2017-12-14 20:47:59 +00:00
Chia-I Wu
ca064e776f graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf am: ca8ced7a5c am: 7b332605c2
am: df93992df7

Change-Id: Ib101eb80dda1d8091169368d37e14e400c987951
2017-12-14 20:46:44 +00:00
Peng Xu
ca1cd6b141 Merge "Fix flakiness of sensor VTS test cases" into oreo-dev am: 863c52448e -s ours am: 8b12cc9fe6 -s ours
am: 9732e2b7bf  -s ours

Change-Id: Ie9b8dcefbeb2afe64016d191c6578b7ace5b3be3
2017-12-14 20:45:32 +00:00
Mikhail Naganov
57895f9993 Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae am: 896830ff6f
am: ac8d483030  -s ours

Change-Id: I708545d9e0cc9abb2408f0180320e99842d5c021
2017-12-14 20:44:56 +00:00
Chia-I Wu
df93992df7 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf am: ca8ced7a5c
am: 7b332605c2

Change-Id: Ie80f0e4e60cdd608968c8e9cef5506ceb69140dd
2017-12-14 20:44:10 +00:00
Peng Xu
9732e2b7bf Merge "Fix flakiness of sensor VTS test cases" into oreo-dev am: 863c52448e -s ours
am: 8b12cc9fe6  -s ours

Change-Id: I20fffea408fe668f959480ce6376dcde77897d9b
2017-12-14 20:42:41 +00:00
Mikhail Naganov
ac8d483030 Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits am: c5103e68ae
am: 896830ff6f

Change-Id: If183286271444b625b33cf5a70132c2bd954bd71
2017-12-14 20:42:11 +00:00
Chia-I Wu
7b332605c2 graphics: ignore/reduce spurious vsync in VTS am: 353cc075bf
am: ca8ced7a5c

Change-Id: I62dd91f412581d871d4f1e8b569731d6a901b7fd
2017-12-14 20:41:37 +00:00
Peng Xu
8b12cc9fe6 Merge "Fix flakiness of sensor VTS test cases" into oreo-dev
am: 863c52448e  -s ours

Change-Id: I1796b301d8cfdd2edcc03d3150c34ae08d2fe84c
2017-12-14 20:40:04 +00:00
Mikhail Naganov
896830ff6f Audio VTS: Allow 4GB buffer prepareToWrite/Read to succeed on 64 bits
am: c5103e68ae

Change-Id: I9d55c73cd61f954b271d89044a96a18c1fde98f1
2017-12-14 20:39:35 +00:00
Chia-I Wu
ca8ced7a5c graphics: ignore/reduce spurious vsync in VTS
am: 353cc075bf

Change-Id: I27381f1e34191e4af28f79ce035458165ca845b3
2017-12-14 20:39:06 +00:00
TreeHugger Robot
58983cb2b2 Merge "cas: manually clear strong ref before callback" 2017-12-14 08:46:11 +00:00
TreeHugger Robot
6658796be0 Merge "Reland "Remove conditional vndbinder usage in CAS."" 2017-12-14 04:01:11 +00:00
Jiyong Park
943bce2c34 android.hardware.graphics.allocator@2.0 is no longer VNDK-SP am: e514a4b8a8 -s ours am: 8c20d2002a -s ours
am: 1b9a4ba3d6  -s ours

Change-Id: I13f60eea09debef84b4074ff05438d3a527d0dde
2017-12-14 03:18:53 +00:00
Jiyong Park
1b9a4ba3d6 android.hardware.graphics.allocator@2.0 is no longer VNDK-SP am: e514a4b8a8 -s ours
am: 8c20d2002a  -s ours

Change-Id: I9d2dc8ca1e0706f15dc1f21d3d5f0b30d0e37809
2017-12-14 03:13:01 +00:00
Jiyong Park
8c20d2002a android.hardware.graphics.allocator@2.0 is no longer VNDK-SP
am: e514a4b8a8  -s ours

Change-Id: I80e1d11e964e14b95f48d8e7f389139253ae2d02
2017-12-14 03:06:54 +00:00
Yifan Hong
0b5e40c874 Merge changes from topic "fcm_version"
* changes:
  Specify FCM Version in compatibility matrices.
  Rename 26.xml=>1.xml, 27.xml=>2.xml
  Revert old matrices back to DR / MR1.
2017-12-14 01:26:59 +00:00
Steven Moreland
11a8a0e183 Reland "Remove conditional vndbinder usage in CAS."
Fugu kernels have been updated.
Bug: 70393284
Test: fugu boots

This reverts commit e9fb979b1e.

Change-Id: I976a0df6279e6ae7d334fa22e3c2c83bb3e285b7
2017-12-13 21:35:44 +00:00
TreeHugger Robot
f6fb84e0a5 Merge "Move android.hardware.health@2.0-impl to hardware/interfaces" 2017-12-13 20:56:31 +00:00
Tomasz Wasilczyk
c961f613c3 Merge "Try to fix some builds." 2017-12-13 19:31:45 +00:00
Yifan Hong
2b012dfbf3 Specify FCM Version in compatibility matrices.
FCM Version should not be tied to the name of the file.

Test: boots
Bug: 69636193
Change-Id: Ic199f3f479dfdc3a2309a28dc546d4a79fba2d52
2017-12-13 11:26:20 -08:00
Yifan Hong
3a353e73bb Rename 26.xml=>1.xml, 27.xml=>2.xml
FCM Version uses a different set of numbers than the SDK level.
This is to decouple the connection between them; it is not required
to have one FCM Version per SDK level.

Test: build test
Test: boots

Bug: 69636193
Change-Id: I62a29b702271d8a7ca8ae80e545a6d2e3b46fdcf
2017-12-13 11:24:35 -08:00
Yifan Hong
ef8eaf4a77 Revert old matrices back to DR / MR1.
legacy/26/27.xml ("old matrices") should not be changed once
published.

The requirements / HAL usage information are now encompassed in
multiple matrices (instead of a single compatibility_matrix.V.xml).
For example, the usage of HALs on Shipping FCM Version 26 is:
* Required HALs in 26.xml
* Using all required + optional HALs in 26.xml/27.xml/...

In particular,

* Starting at 26.xml (diff legacy 26), gatekeeper is required.
* Starting at 27.xml (diff 26 27),
   - broadcastradio@1.0 => 1.0-1
   - introduce cas@1.0
   - introduce oemlock@1.0
   - power@1.0 => 1.0-1
   - radio@1.0 => 1.0-1
   - introduce tetheroffload.config@1.0
   - introduce tetheroffload.control@1.0
   - thermal@1.0 => 1.0-1
   - usb@1.0 => 1.0-1
   - vibrator@1.0 => 1.0-1
   - wifi@1.0 => 1.0-1
   - introduce weaver@1.0
   - introduce wifi.offload@1.0

health@2.0 and configstore@1.1 is not specified
in legacy/26/27.xml, but framework can still use them, since they
are introduced in current.xml.

Test: boot test

Bug: 69861676
Change-Id: I897df6952245a8ce33e1c63264c3970b0483c2f7
2017-12-13 11:15:04 -08:00
Etan Cohen
d4020eaa27 Merge "[AWARE] Add legacy code wrapper for NDP channel indication" 2017-12-13 18:38:05 +00:00
Roshan Pius
8fc6d17071 wifi(implementation): Load wifi driver on IWifi.start()
The current implementation loads the wifi driver only when the chip is
configured, but the HAL is initialized on IWifi.start(). This seems to
be wrong semantically. The driver needs to be loaded before the HAL is
initialized.

This may have worked previously because the driver was loaded in
init.rc, but may stop working when we move to proper DLKM model in 2018.

Bug: 65671875
Test: Device boots up and connects to wifi networks.
Change-Id: I017d3528bf0b42a6a59af43203ecc9d0d027f60d
2017-12-13 10:35:50 -08:00
Roshan Pius
8e3c7ef134 wifi(implementation): Different names for concurrent ifaces
Allocate different iface names (wlan0, wlan1) for concurrent ifaces.

Bug: 65671875
Test: ./hardware/interfaces/wifi/1.2/default/tests/runtests.sh
Change-Id: Ie544404183dbb616a20f88f4fb3ce71795cf89af
2017-12-13 10:35:50 -08:00
Roshan Pius
cc338202ef wifi(implementation): Add iface combo for 2018
Changes in the CL:
a) Added iface combo for 2018 using a new feature flag.
b) Added a generic algorithm to determine if an iface can be created or
not based on the iface combos supported. This is needed because we now
have to support 3 different combos (2016, 2017, 2018) in the HAL.
The current iface creation logic is hard to adapt to these 3 varying combos.

Bug: 65671875
Bug: 69863101
Test: ./hardware/interfaces/wifi/1.2/default/tests/runtests.sh
Change-Id: Iff8737843abee3d03567930e9faba775eaa82e07
2017-12-13 10:35:50 -08:00
Roshan Pius
3312801aa5 wifi(implementation): Unit tests for V1 & V2 iface combos
Unit tests for all the iface combos supported in V1 (2016 devices) & V2
(2017 devices).

Bug: 68775880
Test: ./hardware/interfaces/wifi/1.2/default/tests/runtests.sh
Change-Id: I1049176aabdf936d442d022b5915129010ce7387
2017-12-13 10:35:37 -08:00
Tomasz Wasilczyk
28ca7e9740 Try to fix some builds.
Broken builds: aosp_x86, docs, full, sdk_phone_armv7.

I cannot reproduce the break locally, so making my best guess on the fix.

Test: it still builds
Change-Id: Icf86c3502fede66dba815458b66f2ebdf33afe91
2017-12-13 10:09:22 -08:00
Tomasz Wasilczyk
6f6509f96b Merge "Implement broadcast radio HAL 2.0 VTS tests." 2017-12-13 17:05:42 +00:00
Tomasz Wasilczyk
b464e47977 Merge "Implement broadcast radio HAL 2.0 default implementation." 2017-12-13 15:21:12 +00:00
Chong Zhang
ea3f07b614 cas: manually clear strong ref before callback
Hidl doesn't guarantee the server side method goes out of scope
before the client side returns. Even when client calls on the
same thread, the next method could overlap the previous call.
Next call can come in as soon as the hidl callback is called.

In case of openSession and release, there is a rare chance that
release call comes in before previous openSession is returned.
If this happens, the cas plugin object destructor is delayed to
the point when openSession goes out of scope (thus let go its
strong ref to the plugin). This violates our contract that the
plugin object and all associated sessions are released by the
time release() returns.

Manually clean up the strong ref before calling hidl callback
in openSession would fix this.

bug: 70544685
Change-Id: Id89a00591a354c8a46def3cc691dd8e28b4c971b
2017-12-12 22:09:20 -08:00
Jiyong Park
e514a4b8a8 android.hardware.graphics.allocator@2.0 is no longer VNDK-SP
The interface lib has been in VNDK-SP because
android.hardware.graphics.mapper@1.0 was using it. However, since the
dependency has gone [1], there is no need keep it in VNDK-SP. The
VNDK-SP set should be kept as small as possible because libs in VNDK-SP
are subject to double-loading.

Unmark the 'support_system_process' property to exclude the lib from
VNDK-SP.

This commit re-lands I8722c1ac15ddf56a627a12a0c649b4d734e5e5cd because
it was reverted during O-MR1 push to AOSP-master.

Bug: 69480083
Test: walleye boots to the UI
Change-Id: I0af8115dceb9711c6c451ffaeedda6c823ec2905
Merged-In: I8722c1ac15ddf56a627a12a0c649b4d734e5e5cd
(cherry picked from commit ec44d18dbe)
2017-12-13 11:58:24 +08:00
Hridya Valsaraju
d3e3d72cf8 Move android.hardware.health@2.0-impl to hardware/interfaces
Move android.hardware.health@2.0-impl to hardware/interfaces
from system/core/healthd.

Bug: 70533363 63702641
Test: make -j32

Change-Id: I0e4468f2183a273b4f73606b04faff88dd7afb72
2017-12-12 17:19:01 -08:00
Etan Cohen
1bf15f1c57 [AWARE] Add legacy code wrapper for NDP channel indication
Integrate legacy HAL code mods to add an NDP channel indication.

Note: This CL is just the integration - not the HIDL usage of the
new API.

Bug: 37007030
Test: builds + integration tests passing
Change-Id: I59da1fb7e225a5038e436b793bc66b892786c238
2017-12-12 16:15:16 -08:00
Roshan Pius
200a17db77 wifi(implementation): Add unit test framework
We're going to add some non-trivial logic in wifi chip to handle
multiple chip configurations (to support devices with different
capabilities). So, adding a unit test framework in preparation
for testing those changes.

The mocks only mock legacy HAL methods which are in use during chip
configuration & interface creation/deletion.

Bug: 68775880
Test: Compiles
Change-Id: I8575df02f54656f77077d14ac9535ccc974bdff3
2017-12-12 15:01:15 -08:00