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

Commit 0c5d5ba2 authored by Chris Lei's avatar Chris Lei
Browse files

Telephony: Update Permanent Fail and Event Loggable Types

- Updating isPermanentFail() and isEventLoggable() to better
  comply with "no retry" requirements in ril.h

Change-Id: I377eba7ec0203e41ae7689192a41f6b260a8775a
parent 89558696
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -163,9 +163,11 @@ public abstract class DataConnection extends StateMachine {
        public boolean isPermanentFail() {
            return (this == OPERATOR_BARRED) || (this == MISSING_UNKNOWN_APN) ||
                   (this == UNKNOWN_PDP_ADDRESS_TYPE) || (this == USER_AUTHENTICATION) ||
                   (this == SERVICE_OPTION_NOT_SUPPORTED) ||
                   (this == ACTIVATION_REJECT_GGSN) || (this == SERVICE_OPTION_NOT_SUPPORTED) ||
                   (this == SERVICE_OPTION_NOT_SUBSCRIBED) || (this == NSAPI_IN_USE) ||
                   (this == PROTOCOL_ERRORS);
                   (this == ONLY_IPV4_ALLOWED) || (this == ONLY_IPV6_ALLOWED) ||
                   (this == PROTOCOL_ERRORS) || (this == SIGNAL_LOST) ||
                   (this == RADIO_POWER_OFF) || (this == TETHERED_CALL_ACTIVE);
        }

        public boolean isEventLoggable() {
@@ -175,7 +177,9 @@ public abstract class DataConnection extends StateMachine {
                    (this == SERVICE_OPTION_NOT_SUBSCRIBED) ||
                    (this == SERVICE_OPTION_NOT_SUPPORTED) ||
                    (this == SERVICE_OPTION_OUT_OF_ORDER) || (this == NSAPI_IN_USE) ||
                    (this == PROTOCOL_ERRORS) ||
                    (this == ONLY_IPV4_ALLOWED) || (this == ONLY_IPV6_ALLOWED) ||
                    (this == PROTOCOL_ERRORS) || (this == SIGNAL_LOST) ||
                    (this == RADIO_POWER_OFF) || (this == TETHERED_CALL_ACTIVE) ||
                    (this == UNACCEPTABLE_NETWORK_PARAMETER);
        }