Commit graph

9 commits

Author SHA1 Message Date
Andreas Huber
40d3a9bd8c Convert all comments into "doxygen-ready" comments.
Bug: 36453077
Test: mma
Change-Id: I0b1f77dfae5d2258969e33d85ecf45401ffbdfaa
2017-03-29 08:53:58 -07:00
Brian Duddie
c6d2fd4953 contexthub: Explicitly pass nanoapp binary header data
Parse the nanoapp binary header in the framework and pass the relevant
data to the HAL explicitly in the NanoAppBinary structure. Note that not
all fields from the header are carried forward into NanoAppBinary, as
they are either implied by the HAL API (version, magic), or inherent in
the implementation-specific data (hwHubType), or unused and will only be
added via a future HAL version bump (second reserved field).

Also, convert the flags field in struct MemRange to a bitmask, which is
the proper representation for its use.

Bug: 34182159
Test: run hello world context hub GTS test
Change-Id: I13da9883b851e978d760548ec4265094ce81510a
2017-01-17 16:27:44 -08:00
Brian Duddie
9e8ffba9e3 Merge "contexthub: Expose CHRE version information" 2017-01-13 21:41:52 +00:00
Brian Duddie
188552e83f contexthub: Expose CHRE version information
Add chrePlatformId and chreVersion fields to context hub metadata
returned by getHubs(). This information will be used to make
compatibility decisions at runtime. Also, add a brief description of
CHRE to the IContexthub documentation to help clarify the
relationship between the HAL and these concepts in the CHRE API.

Bug: 31402693
Test: compile test only, this only adds fields to HIDL structures
Change-Id: Iea2436ccc23b47c4cf06040bebe1c550fe58ccb7
2017-01-12 00:03:23 +00:00
Ashutosh Joshi
0d0b6833f6 Merge "Remove context hub reboot method." 2017-01-11 18:08:37 +00:00
Brian Duddie
c21ff099ec contexthub: Clarify nanoapp persistence
Add documentation to loadNanoApp() detailing the expected behavior
surrounding persistence of nanoapps across context hub reboots.

Test: none, documentation change only
Change-Id: I17db7d024cf7486749aff3816cc58b50f2f44fac
2017-01-11 01:02:49 +00:00
Ashutosh Joshi
1abbee3fd7 Remove context hub reboot method.
Remove context hub reboot method.
This was an unutilized method in the HAL definition.

Test: update makefiles.
Change-Id: I5d14966d6105b406e7177019e18ec06de0e04f53
2017-01-09 23:33:03 -08:00
Ashutosh Joshi
69e3aa3b1f Modify ContextHubHAL
Change the loadNanoApp signature to take the nanoapp binary as a vector.
Add some clarifications about timing.
Remove redundant parameter hubId from callbacks.

Test: update_makefiles.sh
Change-Id: I48cc0ba0001ac80329ac83148ebefdaa7deaa8bf
2016-12-19 16:52:48 -08:00
Ashutosh Joshi
6104b27d6a Initial commit for the HIDL Context Hub HAL
Initial commit for the context hub Hal. At this point it is
largely a refactoring of the older HAL with some new abstractions.

Test: Make completes successfully
Change-Id: Ieac4b20403e6e0b3966a4f5570fbbba7151e783b
2016-11-14 16:19:38 -08:00