Commit graph

29440 commits

Author SHA1 Message Date
Steven Moreland
32f937623c support lib for libcutils<->NDK AIDL handle am: 74e043ba2d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1528750

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib1afc2964856efcb4f2121a0943771313a03b7a0
2020-12-15 17:00:22 +00:00
Treehugger Robot
8e4e5639c9 Merge "Use safe_union correctly" am: baf61434fd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1510995

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I89dac63df8547d9609a547cc8081de374505f4eb
2020-12-15 16:59:38 +00:00
Steven Moreland
74e043ba2d support lib for libcutils<->NDK AIDL handle
The native_handle API is notoriously tricky to work with, and this is
expected to be very common. So, adding a small helper library.

Fixes: 175432703
Test: atest libaidlcommonsupport_test
Change-Id: I4a00d2b14fefe6c979ee656e353e117661a1a483
2020-12-15 16:45:20 +00:00
Mikhail Naganov
89a54ddc16 Merge "HidlUtils: remove temporary conversion functions" 2020-12-15 16:36:01 +00:00
Thiébaud Weksteen
0e1699591d [automerger skipped] Merge "Add getAllowedNetworkTypesBitmap HAL API" am: a07d055654 am: 3196c429e0 am: 9f0ca6fac5 -s ours
am skip reason: Change-Id Ib8f0075dda41d4876a14f7223a067e34626a4675 with SHA-1 5cc53bacea is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526541

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If072c87742bfd4b19c2bb64fd73318a1d87bf59c
2020-12-15 16:30:53 +00:00
Treehugger Robot
baf61434fd Merge "Use safe_union correctly" 2020-12-15 16:30:44 +00:00
Thiébaud Weksteen
9f0ca6fac5 Merge "Add getAllowedNetworkTypesBitmap HAL API" am: a07d055654 am: 3196c429e0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526541

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ce4ed340cb791ed5e8c0eb5d87eaa0de09af013
2020-12-15 16:15:51 +00:00
Thiébaud Weksteen
3196c429e0 Merge "Add getAllowedNetworkTypesBitmap HAL API" am: a07d055654
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526541

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I19bcdf6899fa5929e2d5e90ec16c5de42e669334
2020-12-15 15:50:52 +00:00
Thiébaud Weksteen
a07d055654 Merge "Add getAllowedNetworkTypesBitmap HAL API" 2020-12-15 12:39:51 +00:00
Les Lee
66e513d52b Merge "wifi: Fix bridged interface property and allociation" 2020-12-15 12:36:53 +00:00
Grzegorz Kołodziejczyk
0f0c5d17d2 Use safe_union correctly
As described in source.android.com/devices/architecture/hidl/safe_union
value must be assigned through generated getter, rather than assigning it directly.

Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Sponsor: jpawlowski@
Bug: 150670922
Change-Id: Iefc7ee98163ec2b3387fc01c3d69c1dcd15e94bc
2020-12-15 11:08:16 +00:00
Michael Butler
6e46896d0f Merge "Add HIDL lifetime and protecting callback info to NN README" 2020-12-15 04:37:50 +00:00
Mikhail Naganov
35a3a77811 HidlUtils: remove temporary conversion functions
Remove temporary conversion functions and update
the code that was using them.

Bug: 142480271
Test: m
Change-Id: Idf36dbac398efbc03bd6da68c79f6fb1ddc24e9c
2020-12-14 23:18:30 +00:00
Michael Butler
7a655bb3d4 Add HIDL lifetime and protecting callback info to NN README
This CL copies information from
packages/modules/NeuralNetworks/runtime/VersionedInterfaces.cpp and
modifies the description to be more appropriate for the NN HAL utility
code.

Specific sections added to the README:
* "HIDL Interface Lifetimes across Processes"
* "Protecting Asynchronous Calls across HIDL"

Bug: 170289677
Test: mma
Change-Id: Id381895535d708b627f4746687b4d12e16560639
2020-12-14 14:46:09 -08:00
Michael Butler
2288f9735a Merge "Change NN canonical timings to nanoseconds -- hal" 2020-12-14 22:37:18 +00:00
Michael Butler
ca11420785 Change NN canonical timings to nanoseconds -- hal
A sibling CL to this CL changes the definition of nn::TimePoint to the
same type as std::chrono::steady_clock::time_point but has changed the
underlying duration representation to use uint64_t. That sibling CL also
renames nn::OptionalTimeoutDuration to nn::OptionalDuration, and changes
the definition to the same type as std::nanoseconds except the
underlying duration representation now uses uint64_t.

This CL makes changes to the NN HAL utility code in response to the
changes in the sibling CL.

Bug: 174297663
Test: mma
Test: NeuralNetworksTest_static
Change-Id: If44d9aefadb2c78b632ff289b5ff5a49f766525c
2020-12-14 22:06:42 +00:00
Treehugger Robot
335317f9a8 Merge "Memtrack HAL: Add stable AIDL implementation" am: e5d68ba29c am: be07fd2de6 am: 8f356a5035
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1518666

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I764c5e2075d271321c5f55589ab9ad6057edc683
2020-12-14 20:09:30 +00:00
Treehugger Robot
8f356a5035 Merge "Memtrack HAL: Add stable AIDL implementation" am: e5d68ba29c am: be07fd2de6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1518666

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c17a00485554becde5863be2b6cb0a0d337b850
2020-12-14 19:52:37 +00:00
Treehugger Robot
be07fd2de6 Merge "Memtrack HAL: Add stable AIDL implementation" am: e5d68ba29c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1518666

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ida1cbb3f3533182814b867660e25c8b3d0f67089
2020-12-14 19:29:18 +00:00
Mikhail Naganov
0e8e65c47c Merge changes I72389c8d,I0e42fe12,I93c482ee
* changes:
  audio: Update default effect HAL wrapper to support V7
  audio: Update default wrapper to support V7
  audio: Extend HidlUtils for the default wrapper needs
2020-12-14 19:20:39 +00:00
Treehugger Robot
e5d68ba29c Merge "Memtrack HAL: Add stable AIDL implementation" 2020-12-14 18:36:10 +00:00
Treehugger Robot
7fae6c355c Merge "Remove authorization set serialization." am: 4d13d0027c am: 61d27ba878 am: f90da60cc6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1520081

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id387106dc12440789f29d8aa2a31282920ed14f1
2020-12-14 16:03:10 +00:00
Treehugger Robot
f0453a0851 Merge "Move tag type comments where they belong." am: dd9d98c339 am: 482d670ff6 am: da30da4fad
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1520080

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibe8e9077570db1715c11dce3fbbc2d935d6eb781
2020-12-14 16:03:02 +00:00
Treehugger Robot
4e59bf430c Merge "Various cleanups" am: 5fb746bc9f am: 5684571ed3 am: 4cbf9772c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1522457

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I824d28adf2ffecadf6e4ad2629c00c09f7681191
2020-12-14 16:01:49 +00:00
Treehugger Robot
f90da60cc6 Merge "Remove authorization set serialization." am: 4d13d0027c am: 61d27ba878
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1520081

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I49f690f63d5b6e473e0fb61dbafe7b3111dc0f26
2020-12-14 15:47:35 +00:00
Treehugger Robot
da30da4fad Merge "Move tag type comments where they belong." am: dd9d98c339 am: 482d670ff6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1520080

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I12f34f8ab58ccdb135fff6451ba2a948ab660ad7
2020-12-14 15:47:29 +00:00
Treehugger Robot
4cbf9772c8 Merge "Various cleanups" am: 5fb746bc9f am: 5684571ed3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1522457

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I011bd57c095507cf1e5e8c3e3853a0a1062de090
2020-12-14 15:46:53 +00:00
Treehugger Robot
61d27ba878 Merge "Remove authorization set serialization." am: 4d13d0027c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1520081

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I387ad00c35d8fd9ccba7e7eae3d2128f44cfa7de
2020-12-14 14:50:00 +00:00
Treehugger Robot
482d670ff6 Merge "Move tag type comments where they belong." am: dd9d98c339
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1520080

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I00227cd2c0119c8f290d71eec04931b9d77895e5
2020-12-14 14:49:50 +00:00
Treehugger Robot
5684571ed3 Merge "Various cleanups" am: 5fb746bc9f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1522457

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia2d8b8d72716aa0e25480f2bbb842d53f13578f2
2020-12-14 14:48:46 +00:00
Treehugger Robot
4d13d0027c Merge "Remove authorization set serialization." 2020-12-14 14:30:52 +00:00
Treehugger Robot
dd9d98c339 Merge "Move tag type comments where they belong." 2020-12-14 14:30:15 +00:00
Treehugger Robot
5fb746bc9f Merge "Various cleanups" 2020-12-14 14:30:10 +00:00
Treehugger Robot
d189dcb77a [automerger skipped] Merge changes from topic "aosp-default-wrapper" am: 6c1dd66442 am: 14e3969067 am: 01d8352de2 -s ours
am skip reason: Change-Id Id5e36e7a42e2600ab69612819f8260110871c711 with SHA-1 8e85d1f5a5 is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526845

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I64242dee604d72765fe1364dad851611123c0042
2020-12-14 10:19:08 +00:00
Mikhail Naganov
2f27bf1895 [automerger skipped] Implement a.h.audio.common@7.0-util module am: 1b444a5332 am: 117af81896 am: 222368f33b -s ours
am skip reason: Change-Id Ib883f1c246fce78c004846516699aa724d4b5d44 with SHA-1 5b8a144d8c is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526844

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibf4409ba2acd63cc8becaaf8c02e41cb11e7599f
2020-12-14 10:19:07 +00:00
Mikhail Naganov
4922a5e5d6 [automerger skipped] Move UUID conversions into their own class am: 4122f6328a am: 1183e86887 am: dac7bf0e72 -s ours
am skip reason: Change-Id Ic5333ba32dc293f32c5562d0ef05bde8e5f9b302 with SHA-1 95e4fe64de is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iac49846ccb671851f0f4f86ee1aa7a8c59d71e31
2020-12-14 10:19:04 +00:00
Treehugger Robot
01d8352de2 Merge changes from topic "aosp-default-wrapper" am: 6c1dd66442 am: 14e3969067
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526845

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I971746b28abcda6f555696f8453603c983153442
2020-12-14 09:43:31 +00:00
Mikhail Naganov
222368f33b Implement a.h.audio.common@7.0-util module am: 1b444a5332 am: 117af81896
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526844

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I82d05a7be2b3145d3e1467c30be658aa06ca1a6e
2020-12-14 09:43:28 +00:00
Mikhail Naganov
dac7bf0e72 Move UUID conversions into their own class am: 4122f6328a am: 1183e86887
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I06119c38489e3a638872b734b9c2c978f5383cad
2020-12-14 09:43:26 +00:00
Treehugger Robot
14e3969067 Merge changes from topic "aosp-default-wrapper" am: 6c1dd66442
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526845

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9d3825f29120e38398d4343f4b9d469438a63f7a
2020-12-14 09:28:03 +00:00
Mikhail Naganov
117af81896 Implement a.h.audio.common@7.0-util module am: 1b444a5332
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526844

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1a6e957ad7772bc3b91e13ead896d5ff16dd798a
2020-12-14 09:28:00 +00:00
Mikhail Naganov
1183e86887 Move UUID conversions into their own class am: 4122f6328a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1526843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3e1e91851ea559855720a178bbe75df8ae4d8f60
2020-12-14 09:27:07 +00:00
lesl
5a46c958e2 wifi: Fix bridged interface property and allociation
1. The concurrent property name over the limitation.
Rename the property name.

2. When allocate bridged iface name, it needs to increase the idx to
avoid two ifaces use the same name.

Bug: 162686273
Test: atest -c VtsHalWifiApV1_0TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Test: atest -c VtsHalWifiApV1_5TargetTest
Change-Id: I388cdd812bd0448c03ad5ae982547629c1e5eff9
2020-12-14 17:17:44 +08:00
Treehugger Robot
6c1dd66442 Merge changes from topic "aosp-default-wrapper"
* changes:
  audio: Use docstrings instead of comments in types.hal files
  Implement a.h.audio.common@7.0-util module
  Move UUID conversions into their own class
2020-12-14 08:55:22 +00:00
Amit Mahajan
0ca7a795c4 Merge "Receive forwarded number from Modem" am: d35457c922 am: 131389f6ab am: efe5ac8aa4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/813457

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4a4f04086ff23fbd95aeb0a7b274f84737d549c7
2020-12-14 08:52:56 +00:00
Amit Mahajan
efe5ac8aa4 Merge "Receive forwarded number from Modem" am: d35457c922 am: 131389f6ab
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/813457

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id59e0b5c8a2863218b08edb0a743c21b7da5579e
2020-12-14 08:21:16 +00:00
Amit Mahajan
131389f6ab Merge "Receive forwarded number from Modem" am: d35457c922
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/813457

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib042e9210a197382a926b2c38e325f9cc6dad957
2020-12-14 08:05:09 +00:00
Amit Mahajan
d35457c922 Merge "Receive forwarded number from Modem" 2020-12-14 07:48:41 +00:00
Shawn Willden
747eeaea28 Remove authorization set serialization.
This is no longer needed in KeyMint. Keystore2 implements similar
functionality in Rust.

Test: Build
Change-Id: Ia43716449756935619fb22ef5aba113e420c2687
2020-12-13 23:48:10 -07:00
Shawn Willden
09b5826c68 Move tag type comments where they belong.
Because AIDL doesn't allow tag values to be constructed the way we
did in HIDL (and before), each tag definition carries a comment
specifying what the "magic" tag type value used in its construction
means.  This CL moves those comments so they're adjacent to the value
they're documenting.

Test: Build
Change-Id: I30b037f9ddf6bf2b07326a53959d490e045c891a
2020-12-13 23:48:10 -07:00