Commit Graph

13 Commits

Author SHA1 Message Date
Sohani Rao
f82c395cfc 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
2017-08-21 16:48:37 -07:00
Sohani Rao
137a0c6542 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
2017-08-21 16:48:10 -07:00
Sohani Rao
8204f74378 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
2017-08-21 16:47:46 -07:00
Sohani Rao
45adb85309 Revert "Offload HAL Service: Send messages to CHRE"
This reverts commit db6fa29a16.

Change-Id: Ida6d40f543c1498320a6d5c5b9f10e3877056f61
2017-08-15 12:10:59 -07:00
Sohani Rao
ccfa7a2807 Revert "Offload HAL Service: Handle messages from Nano app"
This reverts commit 6445f68be6.

Change-Id: Ic34b12752bbbb5957d7b929a3b6b7d6552a7d596
2017-08-15 12:10:45 -07:00
Sohani Rao
77b000c666 Revert "Offload HAL Service: Reset Nano app upon Error"
This reverts commit 0b8ea9dd76.

Change-Id: I8c85259925ea969f43707e321cf261c162d78858
2017-08-15 12:10:25 -07:00
Sohani Rao
0b8ea9dd76 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: I18a2988ebbd7ef8ba1919837db6a539acd3a81fc
2017-08-14 14:48:38 -07:00
Sohani Rao
6445f68be6 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: Ie69ef82fa21ccd87160c18c89e7504c08606610c
2017-08-14 14:42:57 -07:00
Sohani Rao
db6fa29a16 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: I1e75cbbe5ad2f7c4908dfba0f56bc04e1af31776
2017-08-14 14:42:35 -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