Commit graph

219 commits

Author SHA1 Message Date
Rocky Fang
7efa3c930a Remove Arthur from owner's file
Change-Id: Idb9e891c9b391133d7f5604be0bf921783e27f41
2024-04-08 17:32:45 +00:00
Treehugger Robot
74dc4cc5d7 Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2950589

Change-Id: Ie4f36b193820490e606e7f5100ca29200f832fa2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-07 01:45:21 +00:00
Aditya Choudhary
ad2ba1b851 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: Ic8c4bd6ac246e7efa98bbdaf822d12ae8e1230a5
2024-02-05 15:45:22 +00:00
Xin Li
763c473c3d Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: I976f80006aeb88bde2ae34ca4f9be72cea727d9e
Change-Id: Id94b25af52bd2e2847b6858697ab21cc6ce27aa3
2024-01-30 10:36:50 -08:00
Arthur Ishiguro
1cd53aeb50 Update hardware/interfaces contexthub OWNERS
Test: None
Change-Id: I1b487dc0a5d5ae512c70c6f5f3c4b33889552562
2024-01-26 19:44:46 +00:00
Matthew Sedam
88eb9d992f Merge "Add HAL support for CHRE reliable messages" into main 2023-12-13 21:45:32 +00:00
Matthew Sedam
adfd557903 Add HAL support for CHRE reliable messages
The original author of this change was
Victor Berchet <berchet@google.com>.

Bug: 312417087
Test: atest VtsAidlHalContextHubTargetTest
Test: Presubmits
Change-Id: Iedc4ac99b1ae08e15fdce66e94f5c01d4f64de20
2023-12-13 20:08:36 +00:00
Lei Ju
b42ccc4de8 Update doc for IContextHub.registerCallback
Test: Presubmit
Bug: 247124878
Change-Id: I94d869f0f8d1f7a04cea918794aebd03bf505971
2023-12-11 15:39:58 -08:00
Lei Ju
5b2ded4fa7 Add an API to get the name of the HAL client
Bug: 315039707
Test: manual test by
      1) run VTS context hub test and pass on pixel;
      2) call the API in HAL and verify the string name returned.

Change-Id: I6a42482ea5232b8664849821ba4ef63c49484086
2023-12-07 13:55:19 -08:00
Jooyung Han
5c62ddae7d Merge "Add contexthub HAL APEX" into main am: cf81ef375b am: 1e0aac1ae6 am: 60ea692592 am: d8357cfe77 am: 6f17c319c3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2756125

Change-Id: Icb453045f90ca970500eac44959f7d36ec7b027c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 07:03:26 +00:00
Jooyung Han
1e0aac1ae6 Merge "Add contexthub HAL APEX" into main am: cf81ef375b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2756125

Change-Id: I2380bd8e87d15f08f31bd1a7025bf4a7328848db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 03:26:44 +00:00
Jooyung Han
798af3b38d Add contexthub HAL APEX
It's typical to make the HAL binary to link its dependencies statically
to make the resulting APEX smaller. Will do it as a follow-up.

Bug: 297467264
Test: VtsAidlHalContextHubTargetTest
Change-Id: Icbc558d81a473b5ea01d2d0b5f7090fcb5365085
2023-09-19 15:43:37 +09:00
Xin Li
879960bdce Merge Android U (ab/10368041)
Bug: 291102124
Merged-In: I7b6fffac2ada0e039f79bad8cc9b4d954e9c3460
Change-Id: I9466127d8d0fa38df36ca99f704853b2db871e67
2023-08-25 13:29:30 -07:00
Lei Ju
8787afa9e6 Introduce a new callback function to get client's UUID
Bug: 247124878
Test: compilation and manual test
Change-Id: I96b386fc232c4f65615858cf9b65317ae5bdc499
2023-06-30 10:28:54 -07:00
Austin Foxley
b1c1facca3 Merge "contexthub: Enable rust bindings" am: de20b45a51 am: 8ab843feb5 am: e65070afb6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2580931

Change-Id: I5db24174687e74127366e1696c659798045b5272
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-23 16:55:39 +00:00
Rocky Fang
781409825d Ignore NanSessionStateChange test for old HAL
Test: Tested on V1 HAL, before this change, it failed. After this
change, it showed ignored.
Bug: 287400067

Change-Id: I171cfd08da97d0b5830d241a9cd6ce2fa1f899dc
2023-06-16 00:42:41 +00:00
Austin Foxley
4f3a09d4eb contexthub: Enable rust bindings
To unblock writing IContextHub clients in rust

Change-Id: I0c0631b54f36faf69730e9005b03c92cd7bf3b3e
2023-05-05 22:00:55 +00:00
Lei Ju
d8a69b8b83 Merge "Update CHRE HAL VTS test" into udc-dev 2023-04-25 21:58:26 +00:00
Lei Ju
e6b1f319c0 Update CHRE HAL VTS test
Remove the tests related to null callbacks and the restriction of
nonempty preloaded nanoapps.

Bug: 279220092
Test: VTS test and manual test

Change-Id: Iaa8918f398e71ba25d47c64bd36e73746bf09b84
2023-04-25 09:42:34 -07:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
Matthew Sedam
d70f84d7da Pass the context hub ID to getPreloadedNanoappIds in the HAL
Bug: 271846335
Test: m, flash, boot # normal
Test: logs # normal
Test: Dump context hub service and AIDL HAL # normal
Test: atest VtsAidlHalContextHubTargetTest
Change-Id: I8268bdab0aaf58863d71c7d065aa89223368199b
2023-03-06 23:13:17 +00:00
Anthony Stange
7fba100202 Refine ContextHub HAL API updates
Makes the NAN session request / state updates a parceable to make it
easier to add parameters to the APIs that use them over time.

Fixes: 271435739
Test: presubmits
Change-Id: I96592742095fd01a45c9fc245516304249b7434f
2023-03-02 22:46:22 +00:00
TreeHugger Robot
76aadb3796 Merge "Populate host endpoint type in VTS test" 2023-02-10 19:36:22 +00:00
Arthur Ishiguro
16f4062d18 Populate host endpoint type in VTS test
Bug: 268222729
Test: Run test and verify pass
Change-Id: I5acbab30b05ad7ef9a6693aee74dcf1eb378320d
2023-02-10 18:11:12 +00:00
Lei Ju
1cf817fd00 Add an endpoint type for native program
Test: compilation
Bug: 267197197
Change-Id: Ice7df84065bf9c5acc73e21232e2ccd3d63a8bbe
2023-01-30 15:28:16 -08:00
Matthew Sedam
121b6d6b54 Use GTEST_SKIP when a function is not supported on older HAL versions
Bug: 258074235
Test: atest VtsAidlHalContextHubTargetTest
Change-Id: Ibf25b63d4f5a6a822318a131ebfacbf2fb5d622c
2023-01-19 19:05:38 +00:00
Matthew Sedam
c8ce4d5c33 Add setTestMode to Context Hub AIDL definition
Bug: 258074235
Test: make android.hardware.contexthub-update-api
Test: atest VtsAidlHalContextHubTargetTest
Test: m
Change-Id: I276857a2a2254cdf41bc8767ab972436a9015418
2023-01-11 18:56:28 +00:00
Treehugger Robot
93e218783d Merge "contexthub: cleanup OWNERS" am: f6571bf854 am: a4b5931d3f am: cce493cd0b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2379008

Change-Id: Id320550dc6830e13deb539c268c54479740253e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 18:50:38 +00:00
Anthony Stange
583a014187 contexthub: cleanup OWNERS
Bug: N/A
Change-Id: I367eca8f6928e4927a0e79b38c2b1e34c1b49e63
Test: N/A
2023-01-09 15:00:20 +00:00
Anthony Stange
7344af9e11 Add support for new APIs in default/vts code
Bug: 229888878
Test: presubmits
Change-Id: Ifc1ce761cc211d165b2f2f9315beffbb47f8fb85
2023-01-05 16:11:21 +00:00
Anthony Stange
84f02c1346 Add APIs for Contexthub NAN support
With current hardware limitations, WiFi chips are unable to support NAN
session initialization without assistance of the WiFi framework.

Update the Contexthub HAL APIs to allow Contexthubs to request the
framework enable a NAN session on their behalf so they can make low
power NAN requests to the initialized session without waking the main
CPU.

Bug: 229888878
Test: Update Contexthub HAL
Change-Id: I47a6a1b0512099727c7343542c2aff814dc0d59a
2022-12-28 22:00:22 +00:00
Arthur Ishiguro
fd5e65c7c1 Adds a HAL API to get the list of preloaded nanoapp
Bug: 258074235
Test: make android.hardware.contexthub-update-api
Test: atest VtsAidlHalContextHubTargetTest
Change-Id: Ifdb849d3ccb6a9303c6f561e941c5be9aa13661f
2022-12-02 17:17:18 +00:00
Arthur Ishiguro
d90c46cc07 Modify onHostEndpointDisconnected to always return OK
Update the default HAL to reflect the API definition, which says that
the HAL should silently ignore incorrect values.

Bug: 233853737
Bug: 241339296
Test: Compile only
Change-Id: Iae541e29706dddc6c9acb0563a2b484b75b549b5
(cherry picked from commit bb1d8bfc93)
2022-08-08 14:20:28 +00:00
Arthur Ishiguro
bb1d8bfc93 Modify onHostEndpointDisconnected to always return OK
Update the default HAL to reflect the API definition, which says that
the HAL should silently ignore incorrect values.

Bug: 233853737
Test: Compile only
Change-Id: Iae541e29706dddc6c9acb0563a2b484b75b549b5
2022-07-06 16:10:46 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Victor Berchet
b32b544106 Make contexthub aidl available host side
Bug: 158007175
Test: running atest --host event_logger_test
Change-Id: I9f5f50ebc07d500dd4ffc51af8f1d39e9576e1db
2022-02-02 14:54:27 -08:00
Arthur Ishiguro
5dba921320 Remove use of ILLEGAL_ARGUMENT in hostEndpointDisconnected
Since an invalid argument to hostEndpointDisconnected should
be ignored by the HAL (and the Context Hub service), remove
the EX_ILLEGAL_ARGUMENT requirement in the Context Hub AIDL
HAL.

Bug: 216798253
Test: Compile
Change-Id: I83f08ccb998e6b494307de51f8709f3e0fbd2c99
2022-02-01 17:32:04 +00:00
Anthony
a6b6500609 Add VTS test for new settings enums
Bug: 215574482
Test: Run VTS
Change-Id: Idc817611156c0f0efd7562c176e9765266576fa0
2022-01-20 20:49:10 +00:00
Anthony
88c6269a58 Add enum value for BT main / scanning toggle states
Bug: 215574482
Test: compile
Change-Id: Ic8160375f79acf4fb8b69e90478e86cb1cbf32d4
2022-01-20 20:46:58 +00:00
Arthur Ishiguro
070f47dd7f Make return values of IContextHub.aidl more consistent
Follow the pattern of using well-defined AIDL error codes as
return values for methods.

Bug: 213474931
Test: Compile, run VTS
Change-Id: If04d989cf504161638ec47b2302e60cbf32db502
2022-01-07 16:58:59 +00:00
Arthur Ishiguro
7ae4255438 Adjust Context Hub AIDL based on feedback
- Add additional documentation of ContextHubMessage.aidl.
- Remove redundant TYPE_ specifier in HostEndpointInfo.aidl.

Bug: 213474931
Test: Compile
Change-Id: Ice1ac925a8b977abee8a9fa376ad40b33f315a3f
2022-01-06 19:44:54 +00:00
Arthur Ishiguro
08103076ed Add NanoappRpcService to Context Hub HAL
Bug: 194287786
Test: Run VTS
Change-Id: I8c100f73571f8f0c8689766328a430d0e457dc55
2021-12-13 17:44:18 +00:00
Arthur Ishiguro
ed9e12378d Fix typo in HostEndpointInfo definition
Package name/attribution tag should be a single String.

Bug: 194287786
Test: Compile
Change-Id: I6747add3254eef9f7fd0a0b291ad374096979e11
2021-11-22 21:36:01 +00:00
Arthur Ishiguro
065a9a5aac Adds additional host info exchanges in Context Hub HAL
Bug: 194287786
Test: Run VTS
Change-Id: I5459e44f752cd04bc1bec3b5e99f398be9f4ce11
2021-11-22 17:16:12 +00:00
Arthur Ishiguro
e6b540d3bd Define empty callback in Context Hub AIDL VTS
Current implementation results in registering a nullptr.

Bug: 194285834
Test: Run VTS
Change-Id: I68c75011a377013e2ee02ef0fc088d78af896e09
2021-10-29 16:04:32 +00:00
TreeHugger Robot
4c46fb83b9 Merge "Update AIDL Context Hub default impl" 2021-10-28 23:43:33 +00:00
Arthur Ishiguro
6471f61325 Fix Context Hub AIDL VTS CHRE version validation
Test check is too strict, since major/minor/patch version can be
zero independently.

Bug: 194285834
Test: Run test
Change-Id: I42bb1ae72312e7a10b16830306129f270199da18
2021-10-28 22:05:47 +00:00
Arthur Ishiguro
94e1aa21e5 Update AIDL Context Hub default impl
Functionality matches default HIDL impl.

Bug: 194285834
Test: Presubmit
Change-Id: Ia84fe1eea93eea27a4c047360cc2a79a4decdbab
2021-10-28 19:50:42 +00:00
Treehugger Robot
af8ca75272 Merge "Update OWNERS for VtsHalContexthub tests." am: 46753c42c2 am: 3a160584e0 am: dfad79e668 am: 44d17161b4 am: eacb2b9cff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1861819

Change-Id: Ib3b0da8857f46474a63fa4cc7655151742387aa8
2021-10-19 19:46:49 +00:00
Yiming Pan
97f2192a92 Update OWNERS for VtsHalContexthub tests.
Added a bug component where issues seen on this test are triaged.

Test: Tree Hugger
Bug: 143903671
Change-Id: Id0dd876c00206c372e7fa608fdd731be3d4d72bb
2021-10-18 17:18:04 -07:00