Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 06bdaec9 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Update datagram transfer state.

The following changes are made in this CL:
DatagramDispatcher: updates DatagramController about datagram send status.
- Datagram transfer state is initially set to SENDING when sendSatelliteDatagram() is called, then:
-- State changes to SEND_FAILED on error
-- State changes to SEND_SUCCESS if one datagram is sent successfully
-- State Changes to IDLE if pendingDatagramCount is 0

DatagramReceiver: updates DatagramController about datagram receive status.
- Datagram transfer state is initially set to RECEIVING when pollPendngSatelliteDatagrams() is called, then:
-- State changes to RECEIVE_NONE if pendingCount is 0 and received datagram is null
-- State changes to RECEIVE_SUCCESS if received datagram is not null
-- State changes to IDLE if pending count is 0

DatagramController:
- Stores all the variables needed to update onSendDatagramStateChanged(), onReceiveDatagramStateChanged() and calls PointingAppController where there is change in datagram transfer state.

Bug: 269637555
Test: atest SatelliteManagerTest, Flashed build on raven-userdebug: calls and SMS are working.
Change-Id: Iabb4c805380b0303c922b154817824758fad9dba
parent d638c8c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment