Commit graph

22 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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