Commit graph

28 commits

Author SHA1 Message Date
Brian Duddie
cd3a43f51f contexthub: Add VTS target tests
Introduce target-side VTS tests covering the Context Hub HAL.

Bug: 32021659
Test: make vts -j42 && \
      vts-tradefed run commandAndExit vts --primary-abi-only \
        --skip-all-system-status-check \
	--module ContexthubHidlTargetTest
Change-Id: I387ad0cccbfa824d292e2364f175dcec21134be1
2017-01-24 19:45:52 -08: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
Ashutosh Joshi
a8105da355 Merge "Add a callback to signal nanoApp abort." 2017-01-12 23:48:04 +00:00
Ashutosh Joshi
9dc48d4fba Add an identifier for the contexthub service endpoint.
Add a parameter that identifies the endpoint for the context hub service
end point. This represents a client at the Android API interface.

Test: Update makefiles.
Change-Id: Ib63c7b71dd70803c87f544643cf6a6f2666c7a31
2017-01-12 19:15:35 +00:00
TreeHugger Robot
2cfe8fcb2b Merge "liblog: use log/log.h when utilizing ALOG macros" 2017-01-12 18:58:25 +00:00
Ashutosh Joshi
4c48e652f7 Merge "Add new CHRE sensor types." 2017-01-12 17:50:23 +00:00
Ashutosh Joshi
19345474eb Add new CHRE sensor types.
Add new CHRE sensor types:
      i) Stationay detect sensor.
     ii) Instant motion detect sensor.
    iii) Reserved space for WWAN sensor types

Test: Run update makefiles.
Change-Id: I1e96b8614f88653d918d8cfa5fa86170e1a5dac3
2017-01-11 17:01:45 -08: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
Mark Salyzyn
3ff5260601 liblog: use log/log.h when utilizing ALOG macros
Test: compile
Bug: 30465923
Change-Id: I67046a75be057e7905570748a1ed6bfd03c0e1c8
2017-01-11 15:47:40 -08:00
TreeHugger Robot
a8d358fb63 Merge changes from topic 'bphwfoo'
* changes:
  Bp/nFoo -> Bp/nHwFoo.
  Bp/nFoo -> Bp/nHwFoo
2017-01-11 23:43:16 +00:00
Ashutosh Joshi
8b26825308 Add a callback to signal nanoApp abort.
Adding a callback to indicate that a nanoApp has aborted.

Test: ran update-makefiles.
Change-Id: I4fdaf312c40e0e44f9e6326f37104c02da356999
2017-01-11 15:17:18 -08:00
Yifan Hong
a18049ad13 Bp/nFoo -> Bp/nHwFoo.
Test: mma
Bug: 33554989
Change-Id: I4b3f852d20fdfc49f2da671dd3c12d618ffb4140
2017-01-11 13:14:59 -08: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
Brian Duddie
730c95b6ae contexthub: Expose nanoapp enabled/disabled state
Add a flag to HubAppInfo that identifies whether an app is enabled and
running, or loaded but disabled. Also, make comments for structure
fields consistently start with a capital letter, and do some minor
comment cleanup.

Test: compile test only, adding a new field to an existing structure
Change-Id: Ia033afd3903d24e45235c70da21681669a53f4bf
2017-01-09 12:12:44 -08:00
Ashutosh Joshi
ff40e1f5e8 Merge "Modify ContextHubHAL" 2016-12-20 06:55:08 +00:00
Ashutosh Joshi
1bec86a185 Contexthub HAL default implementation and service.
Adds the default context hub hal implementation and service.

Test: Context Hub GTS tests still pass.
Change-Id: I7416ce9ec8efca7f98d2bb63606f030f4e8c8ead
2016-12-19 21:22:27 -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
Yifan Hong
f35ee3b192 Revert "Revert "Update makefiles for Java package path.""
This reverts commit a8789f27cb.

Change-Id: I69980b580a556188ba868bb096ae1590b01759f5
2016-12-13 22:20:16 +00:00
Yifan Hong
a8789f27cb Revert "Update makefiles for Java package path."
This reverts commit ab0792ccdc.

Change-Id: I47fc272d9fa8875e3d7ccb10cb748c738fbf8135
2016-12-13 22:18:34 +00:00
Yifan Hong
ab0792ccdc Update makefiles for Java package path.
use V1_0 instead of 1.0.

Bug: 33554192

Test: hidl_test_java
Change-Id: Ic2d95265df10914a60a5bb743d75e839948838c3
2016-12-13 11:32:56 -08:00
Yifan Hong
501839495f Update makefiles for hidlizing IBase.
A new dependency android.hidl.base@1.0 is added for
all projects.

Test: mma

Change-Id: Ia70d0eb0d74de06475a339698386d383d491a43a
2016-12-03 01:01:14 -08:00
Steven Moreland
d26dc50abb Always specify underlying enum type.
Bug: 33197891
Test: compiles
Change-Id: I3d4822ea9a665708302d3bd1460425fddf1dcda9
2016-11-29 14:22:10 -08:00
Steven Moreland
f8d68ec855 Update makefiles for logging.
Bug: 32943424
Test: pass
Change-Id: Ic88ce6adf04e0e36db53e4cc06ac2ec5a90c011c
2016-11-21 16:28:54 -08:00
Yifan Hong
6b920e43d3 Split libhidl into base and transport.
Bug: 32756130

Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
2016-11-18 00:00:54 -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