Commit graph

39 commits

Author SHA1 Message Date
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
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
Bob Badour
e0a9bb21d6 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  contexthub/aidl/Android.bp
  contexthub/aidl/vts/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I15a1336ba7f45039e0146f29f834f2b55c0def42
2021-09-13 16:08:07 -07:00
Arthur Ishiguro
4e916c3da5 Adds VTS test for Context Hub AIDL
Bug: 194285834
Test: Run test on device with Context Hub AIDL and verify pass
Change-Id: I1b38c4071ceaf30da77ad29b3b564bafe76ab2b8
2021-09-09 16:08:44 -07:00
Arthur Ishiguro
a257b78f60 Creates Context Hub AIDL
Bug: 194285834
Test: TreeHugger
Change-Id: Icc1e126816e2f8a11a9ef964d6889955d7827180
2021-08-19 09:47:17 -07:00