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

Commit a83418ca authored by Sooraj Sasindran's avatar Sooraj Sasindran
Browse files

Update satellite modem transfer states

Update satellite modem transfer states to include
seperate end state for sending and receiving

Bug: 269637555
Test: cts and system boot up
Change-Id: I9e741641f4f01fcfc67e8bd452167437473b59ea
parent d8f0e76d
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -45,10 +45,8 @@ import android.util.Pair;
import com.android.internal.telephony.ExponentialBackoff;
import com.android.internal.telephony.IBooleanConsumer;
import com.android.internal.telephony.IIntegerConsumer;
import com.android.internal.telephony.Phone;

import java.util.Arrays;
import java.util.function.Consumer;

/**
 * Satellite modem interface to manage connections with the satellite service and HAL interface.
@@ -129,8 +127,8 @@ public class SatelliteModemInterface {
                            SatelliteManager.SATELLITE_DATAGRAM_TRANSFER_STATE_SENDING;
                    break;
                case SatelliteManager.SATELLITE_MODEM_STATE_DATAGRAM_RETRYING:
                    datagramTransferState =
                            SatelliteManager.SATELLITE_DATAGRAM_TRANSFER_STATE_RETRYING;
                    // keep previous state as this could be retrying sending or receiving
                    break;
            }
            // TODO: properly notify the rest of the datagram transfer state changed parameters
            mDatagramTransferStateChangedRegistrants.notifyResult(datagramTransferState);