Commit Graph

7 Commits

Author SHA1 Message Date
Sohani Rao
708ae27dd0 Offload HAL Service: Reset Nano app upon Error
Offload HAL service reports all errors to the client. To bring Wifi Nano
app to a known state, also send a RESET command to the Nano app.

Bug: 32842314
Test: VTS
Change-Id: Ie5834b80e545e9099e3492b0354fefc2bc82ef8c
Merged-In: Ie5834b80e545e9099e3492b0354fefc2bc82ef8c
2017-08-28 14:01:18 -07:00
Sohani Rao
0619a41f5d Offload HAL Service: Handle messages from Nano app
The following messages from Nano app
- Error, Scan stats, Scan Results

Also invoke the appropriate callback to the client.

Bug: 32842314
Test: VTS
Change-Id: I562b2bcf149f8eab1cddc094a7b976aa56bdb9c8
Merged-In: I562b2bcf149f8eab1cddc094a7b976aa56bdb9c8
2017-08-28 14:01:11 -07:00
Sohani Rao
75e7db3fc3 Offload HAL Service: Send messages to CHRE
The following messages are to be sent to the nano app in response to
invocation of the Offload HAL APIs from the client
- subscribe, unsubsuscribe, configure scans

CHRE interface will send the following commands to context hub
- Get hub info and nano app list requests
The callbacks from the socket will handle responses to these requests

Bug: 32842314
Test: VTS
Change-Id: I441522f5014317b7ac625742ab9782eeba5d78c8
Merged-In: I441522f5014317b7ac625742ab9782eeba5d78c8
2017-08-28 14:01:03 -07:00
Sohani Rao
c153f88441 Offload HAL service: Handle callback binder death
Callback object binder death handling

Bug: 32842314
Test: VTS
Change-Id: I5b6138542819a3b5df8d64a7508b769947b163c9
2017-06-08 15:47:06 -07:00
Sohani Rao
cb1e31a067 Offload HAL Service: Implement returning values in APIs
Implementation of HIDL APIs for Offload HAL returning status information.

Bug: 32842314
Test: VTS
Change-Id: Idb11e5188dc53511ce0ca252cc711c5aefd2b714
2017-06-08 13:45:58 -07:00
Sohani Rao
2724a99e3c Offload HAL Service: Invoke Server implementation
Offload HAL service implementation to invoke the OffloadServer API.

Bug: 32842314
Test: VTS
Change-Id: Iacb77317cc6bdcc453a93e395403cb649eab28b4
2017-05-23 18:36:11 -07:00
Sohani Rao
5b1d1672ea Offload HAL Service: Implements Offload HAL
Define OffloadServer class that implements the Offload HAL service and
the callback interface to the CHRE platform. This is where the
communication to the CHRE interface will take place and this class is
created to be testable for unit testing.

Bug: 32842314
Test: VTS
Change-Id: I9c259ab2b721d7d1ac8cb16083c464002c237a16
2017-05-22 14:23:37 -07:00