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

Commit fab2e799 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Update sendSatelliteDatagram API.

The following changes are made in this CL:
- Added needFullScreenPointingUI boolean as parameter in
  sendSatelliteDatagram()
- Updated satellite datagram state enum.

Bug: 267826133
Test: atest SatelliteManagerTest
Change-Id: I00fb07f1af8c2746a1cc5297c16350a13a13310c
parent 3fc95a40
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -5491,8 +5491,11 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
     * Send datagram over satellite.
     * @param result The Message to send the result of the operation to.
     * @param datagram Datagram to send over satellite.
     * @param needFullScreenPointingUI this is used to indicate pointingUI app to open in
     *                                 full screen mode.
     */
    public void sendSatelliteDatagram(Message result, SatelliteDatagram datagram) {
    public void sendSatelliteDatagram(Message result, SatelliteDatagram datagram,
            boolean needFullScreenPointingUI) {
        //mCi.sendSatelliteDatagram(result, datagram);
    }

+3 −1
Original line number Diff line number Diff line
@@ -883,10 +883,12 @@ public class SatelliteServiceController {
     *
     * @param datagram Datagram to send in byte format.
     * @param isEmergency Whether this is an emergency datagram.
     * @param needFullScreenPointingUI this is used to indicate pointingUI app to open in
     *                                 full screen mode.
     * @param message The Message to send to result of the operation to.
     */
    public void sendSatelliteDatagram(@NonNull SatelliteDatagram datagram, boolean isEmergency,
            @NonNull Message message) {
            boolean needFullScreenPointingUI, @NonNull Message message) {
        if (mSatelliteService != null) {
            try {
                mSatelliteService.sendSatelliteDatagram(