Commit graph

26834 commits

Author SHA1 Message Date
Roshan Pius
3e6084c05d Merge "wifi: Prevent returning an invalid factory MAC address" am: 6119f16921
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1496341

Change-Id: Ic8ad496bdee5d96f46bf3de63e1131bf84ee7581
2020-12-03 20:05:19 +00:00
Jack Nudelman
3f76554417 Change setDataThrottling window parameter to a long millisecond.
As requested by Android Council review of API.

Test: vts

Change-Id: I1f633856c31623ef95f459b2195743f53b5d85fc
Merged-In: I1f633856c31623ef95f459b2195743f53b5d85fc
2020-12-03 19:41:36 +00:00
Treehugger Robot
2b8f95789e Merge "Camera: fix HAL1 removeCamera crash" 2020-12-03 19:23:46 +00:00
Mingming Cai
a0e7918d8a Merge "Add CQI and CQI Table Index to Hal 1.6" 2020-12-03 19:13:21 +00:00
Roshan Pius
6119f16921 Merge "wifi: Prevent returning an invalid factory MAC address" 2020-12-03 18:51:08 +00:00
Ady Abraham
93de2043a8 composer: fix 2.4 vts for multi-display
Fix the way the test handles multi-displays by caching
all the hotplug events received when registering the callback

Test: VTS on Pixel 4
Bug: 174174253
Change-Id: I9a69b18bcef0722e603f2ca58cfbd176ea60f5f2
Merged-In: I9a69b18bcef0722e603f2ca58cfbd176ea60f5f2
2020-12-03 18:21:40 +00:00
Yin-Chia Yeh
357e1dea20 Camera: fix HAL1 removeCamera crash
Test: partner testing
Bug: 173511749
Change-Id: Ifd5fc7c63e3835945194291d161b491bd5acb342
2020-12-03 10:07:34 -08:00
Hsin-Yi Chen
eac1775c01 Set default value for pressure sensor
This commit fixes the following CTS failures:
CtsSensorTestCases:android.hardware.cts.SensorBatchingTests#testPressure*
CtsSensorTestCases:android.hardware.cts.SingleSensorTests#testPressure*

Test: atest VtsHalSensorsV2_0TargetTest
Test: atest VtsHalSensorsV2_1TargetTest
Test: atest CtsSensorTestCases
Bug: 169548171
Change-Id: I2e8ab93d6174c6191497436bf7e7c6a43d34de3f
2020-12-03 18:45:56 +08:00
Xin Li
8ac301f5f1 Merge "Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855" into stage-aosp-master 2020-12-03 03:19:13 +00:00
Mingming Cai
da0d98305d Add CQI and CQI Table Index to Hal 1.6
LteSignalStrength, NrSignalStrength, LteSignalStrength, NrSignalStrength,
CellInfo, and NetworkScanResult are updated accordingly.

Bug: 170771377
Test: make VtsHalRadioV1_6Target, aosp_cf_x86_64_phone-userdebug
Change-Id: If966d5e0c6f505c64cf523c032f6e282c2d24424
2020-12-02 17:17:45 -08:00
Hui Wang
61a2c1237d Merge "Add VoNR network feature support information" am: f14d297d7c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1498118

Change-Id: I33c6405ed4e4adc313f946561860c410c9659808
2020-12-03 00:35:29 +00:00
Treehugger Robot
08d21abcb4 Merge "audio: Align lists of enum values between framework and HAL" am: bc4f84565a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1515239

Change-Id: Idc8ebe079d46544debd19293ad82d9918b227fe1
2020-12-03 00:34:17 +00:00
Hui Wang
f14d297d7c Merge "Add VoNR network feature support information" 2020-12-03 00:26:55 +00:00
Treehugger Robot
bc4f84565a Merge "audio: Align lists of enum values between framework and HAL" 2020-12-02 23:51:08 +00:00
Treehugger Robot
ddbd5158df Merge "DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE" am: 0ff72f5f4b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507216

Change-Id: If2ab293489079b62e8196cd629b18af78ddd8f9c
2020-12-02 20:25:45 +00:00
Ye Jiao
47327fe826 DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE am: bf8f310071
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507216

Change-Id: I969109793122417e0091b24c84c5b6fe90bca6d0
2020-12-02 20:25:03 +00:00
Hui Wang
fb202506bb Add VoNR network feature support information
Define data structures for VoNR network feature support information,
and update RegStateResult to allow the information to be reported
through the response of getVoiceRegistrationStateResponse and
getDataRegistrationStateResponse.

Bug: 167991878
Test: make, VTS
Change-Id: I098bd1b6c86cd38be6fbc086b8ebd7b1bb2408fa
2020-12-02 20:10:39 +00:00
Treehugger Robot
0ff72f5f4b Merge "DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE" 2020-12-02 19:21:59 +00:00
Slava Shklyaev
5908f73645 Fix a bug where 1.3 Device ignores 1.3 capabilities am: 77e06d8691
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1513803

Change-Id: I5e8918b937ccaedf89ec3fa54cd0072aa2fd5bbe
2020-12-02 19:01:23 +00:00
Ye Jiao
bf8f310071 DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE
On a low-end device which does not support STA-SAP concurrency, if STA
is currently enabled and user/app tries to enable SAP, then Wi-Fi needs
to reconfigure and stop Wi-Fi HAL first. Among other stopping actions,
HAL needs to set global_handle_ to nullptr and send "Exit" to
wifi_event_loop then waits no more than kMaxStopCompleteWaitMs. If the
wait times out, then reconfiguration fails and causes Wi-Fi controller
returns to STA mode and creates new STA iface indirectly. In this
process, HAL needs to access global_handle_, but since it was cleared,
we can only get a Native Exception.

Because there is no proper error recovery for UNKNOWN errors, I suggest
to simply set kMaxStopCompleteWaitMs to a higher value to circumvent
this timing issue.

Bug: 173760638
Change-Id: I1b5a0a7a554409704c017ffaf52a767b9424c61e
2020-12-02 17:44:49 +00:00
Slava Shklyaev
77e06d8691 Fix a bug where 1.3 Device ignores 1.3 capabilities
Bug: 170289677
Test: NNT_static --gtest_filter=PartitioningTest.Perf
Change-Id: I476c7ab6ae807b4fd3ed27ec4d63aa6c04d0c7e1
Merged-In: I476c7ab6ae807b4fd3ed27ec4d63aa6c04d0c7e1
(cherry picked from commit d594cd0a4d)
2020-12-02 16:13:33 +00:00
Xin Li
c026d3a0b6 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: If5afd00334e8b09250df1ae97dec9285e39ad930
Change-Id: Ic66bb1389f1bbecfdaa641e1fcdbf79044f55d23
2020-12-02 00:32:27 -08:00
Treehugger Robot
e814075692 Merge "Support waiting for surfaceflinger service to stop before test starts" am: 1d8b9fc0b7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1486339

Change-Id: Id416ca6960f6acddd34a3e4e2bfe2da8b19544b5
2020-12-02 08:20:42 +00:00
Treehugger Robot
1d8b9fc0b7 Merge "Support waiting for surfaceflinger service to stop before test starts" 2020-12-02 07:43:07 +00:00
Treehugger Robot
5aac849a64 Merge "vibrator: example for how to get ID" am: 6eaf0cf502
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1513139

Change-Id: If3c73d1d031120f27dfe658951f7ac1b54afa3b1
2020-12-02 03:44:25 +00:00
Treehugger Robot
6eaf0cf502 Merge "vibrator: example for how to get ID" 2020-12-02 03:01:40 +00:00
Steven Moreland
412a7fe234 vibrator: example for how to get ID
Since someone asked, and I was still confused, after discussion, this
is the way things work.

Bug: 173817747
Test: N/A
Change-Id: I2c4e062672a2f2d998479d4f9ae11b7749c2aca6
2020-12-02 01:35:02 +00:00
Mikhail Naganov
c9dbca51e6 audio: Align lists of enum values between framework and HAL
Enum values defined in the XSD now correspond to the
"no system definitions" lists of enums in
system/media/audio/audio-hal-enums.h.

Added channel masks that used to be in s/m/a/audio-base-utils.h.
Removed use of "vectors of vectors" for channel masks
since individual channels are not allowed to be used
in the APM config and at the HAL transport level.

Fixed definition of the gain mode of audio ports:

1. Since it's a bit mask in the framework, it must be a list in
   the audio policy configuration XML file. Note that the old
   definition is compatible with the new one as one element is a
   valid list.
2. As gain mode is defined in the XSD file, it shouldn't be
   defined again in types.hal.

Bug: 122858783
Bug: 142480271
Test: audio smoke tests
Change-Id: I2df5eb4bc4a393611d3adb0ee30583767197591b
Merged-In: I2df5eb4bc4a393611d3adb0ee30583767197591b
2020-12-01 23:37:53 +00:00
Jordan Liu
eada45e9a6 Merge "Add VTS for setSimCardPower_1_6" am: fb4367c319
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1493663

Change-Id: I5f3301e3bb0ddaf214e4f6f1a05ab8358edfdef8
2020-12-01 22:38:48 +00:00
Jordan Liu
fb4367c319 Merge "Add VTS for setSimCardPower_1_6" 2020-12-01 22:23:25 +00:00
Sarah Chin
e92e5a06b6 Merge "Create getSystemSelectionChannel API" am: 4a5f4e5ab2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1504053

Change-Id: Ibd06334e2b478578fe9081fd09065fdf6ea57dbe
2020-12-01 20:16:56 +00:00
Sarah Chin
4a5f4e5ab2 Merge "Create getSystemSelectionChannel API" 2020-12-01 20:08:10 +00:00
Treehugger Robot
935aef6d78 Merge "Convert mask types from uint32_t to enum type" am: 1f551d879a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1510239

Change-Id: I5a49cd9e90e5d3cd09f522c545fd4d1001937b42
2020-12-01 17:42:20 +00:00
Treehugger Robot
1f551d879a Merge "Convert mask types from uint32_t to enum type" 2020-12-01 17:06:51 +00:00
Sarah Chin
f69abcf78e Create getSystemSelectionChannel API
Test: atest TelephonyManagerTest
Test: atest VtsHalRadioV1_6TargetTest
Bug: 152813408
Change-Id: I6f3f70b7ff1b876ec98086431ed5c557875fca85
Merged-In: I6f3f70b7ff1b876ec98086431ed5c557875fca85
2020-11-30 14:40:01 -08:00
Janis Danisevskis
1b990bc7dc KeyMint 1.0: Fix tag type of USER_SECURE_ID. am: 375f7d743d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1513473

Change-Id: I14cd6576cb393e8eacca0f6d1540ad876237a62c
2020-11-30 18:00:28 +00:00
Janis Danisevskis
375f7d743d KeyMint 1.0: Fix tag type of USER_SECURE_ID.
Test: None
Bug: 174445211
Change-Id: Ic8f346c58db875ee9fe4131f87de8c1bc5e9ec18
2020-11-30 00:29:22 -08:00
Treehugger Robot
47c899b6c8 Merge "vibrator: vts: correct the checking flag when testing on() interfaces" am: 321618f711
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1505756

Change-Id: I6bf86bbcc31f9f7e3d3c176c8c742f6933884858
2020-11-30 06:24:07 +00:00
Treehugger Robot
321618f711 Merge "vibrator: vts: correct the checking flag when testing on() interfaces" 2020-11-30 05:49:55 +00:00
Jordan Liu
8ca952efb9 Add VTS for setSimCardPower_1_6
Bug: 171433370
Test: make vts
Change-Id: I94e265d31c4077f0c06bc9bb47471e1a838f48d4
2020-11-24 13:13:17 -08:00
Michael Butler
7623d457bf Merge "Invalidate NN interface objects on cache mismatch" am: 4cdcadf70c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1508322

Change-Id: I77446ec7fb4d8b6c2f7c3581b58b015032b75ae4
2020-11-24 19:59:29 +00:00
Michael Butler
4cdcadf70c Merge "Invalidate NN interface objects on cache mismatch" 2020-11-24 19:32:27 +00:00
Shawn Willden
4c8b056838 Update to support keymaster's configurable version. am: 66b1cfaac0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507156

Change-Id: I0d27cd1d5d244c9cc7fc34ffe59133fa58b391f7
2020-11-24 18:42:51 +00:00
Michael Butler
376005883c Invalidate NN interface objects on cache mismatch
Currently, if an IDevice object is a DEAD_OBJECT, the runtime attempts
to re-retrieve the handle to the rebooted IDevice service. If an update
occurs after the IDevice was originally created, the rebooted IDevice
object may have different metadata and behavior. This is problematic
because the original metadata is cached in the runtime. Further, an
application might have made decisions based on that metadata and
behavior. (Note that a driver service that is functionally the same but
has a different underlying implementation such as having more optimized
code will have different `getVersionString` metadata.) Instead, this CL
invalidates the IDevice object on cache mismatch, and always returns an
error if it is used.

Bug: 173081926
Test: mma
Change-Id: I805987361c627c32d45e1b7c7aed230376fc66ad
Merged-In: I805987361c627c32d45e1b7c7aed230376fc66ad
(cherry picked from commit 5a74c0fb0f)
2020-11-24 10:42:45 -08:00
Shawn Willden
66b1cfaac0 Update to support keymaster's configurable version.
Test: VtsHalIdentityTargetTest
Bug: b/173577355
Change-Id: Ia7c1a46edec12047c51ed4888788386dcfe11ca9
2020-11-23 23:11:52 -07:00
Mikhail Naganov
12776a1b3d Convert mask types from uint32_t to enum type
This applies to the following types:

- audio_gain_mode_t;
- audio_flags_mask_t;
- audio_channel_representation_t;
- audio_channel_mask_t;
- audio_devices_t.

Enum types are distinct thus proper overloading on the type
is possible in C++. Also, assignments to enum types are
less prone to errors.

Bug: 169889714
Test: basic audio functionality
Change-Id: I07e96ae99724f38fe0b40194f4feab7ff68418e7
Merged-In: I07e96ae99724f38fe0b40194f4feab7ff68418e7
2020-11-24 03:44:08 +00:00
Steven Moreland
14741dedcf Merge changes from topic "hidl-clear-buf" am: c86759a16b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1506836

Change-Id: I77b25a52e35e49cb25f2b4673a6e8c02b1f52a88
2020-11-23 22:20:22 +00:00
Steven Moreland
21ae5952d9 HIDL: IFoo mark @SensitiveData am: 312bf0e65e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1506418

Change-Id: I439a1e8dfdae930f36d6f63dd59f5663c915a0c5
2020-11-23 22:19:35 +00:00
Steven Moreland
c86759a16b Merge changes from topic "hidl-clear-buf"
* changes:
  HIDL HALs mark sensitive data
  HIDL: IFoo mark @SensitiveData
2020-11-23 21:31:47 +00:00
Treehugger Robot
06821f258b Merge changes from topic "nullzero-hal-v7" am: 8d93e3a8d3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1507221

Change-Id: I4ace30bfcb61da281c6d5f0f19df4e319a4639c8
2020-11-23 19:47:56 +00:00