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

Commit 0bb4162f authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by Automerger Merge Worker
Browse files

Merge "Remove unused buildNetworkIdentity" am: f182642b am: eef71ecf am:...

Merge "Remove unused buildNetworkIdentity" am: f182642b am: eef71ecf am: b61beb57 am: fe73dc1f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1622670

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic735f723821b448f032d19ec0a55aa568a58d6b8
parents 7006a6e7 fe73dc1f
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -178,21 +178,6 @@ public class NetworkIdentity implements Comparable<NetworkIdentity> {
        return mOemManaged;
    }

    /**
     * Build a {@link NetworkIdentity} from the given {@link NetworkState} and
     * {@code subType}, assuming that any mobile networks are using the current IMSI.
     * The subType if applicable, should be set as one of the TelephonyManager.NETWORK_TYPE_*
     * constants, or {@link android.telephony.TelephonyManager#NETWORK_TYPE_UNKNOWN} if not.
     */
    // TODO: Delete this function after NetworkPolicyManagerService finishes the migration.
    public static NetworkIdentity buildNetworkIdentity(Context context,
            NetworkState state, boolean defaultNetwork, @NetworkType int subType) {
        final NetworkStateSnapshot snapshot = new NetworkStateSnapshot(state.network,
                state.networkCapabilities, state.linkProperties, state.subscriberId,
                state.legacyNetworkType);
        return buildNetworkIdentity(context, snapshot, defaultNetwork, subType);
    }

    /**
     * Build a {@link NetworkIdentity} from the given {@link NetworkStateSnapshot} and
     * {@code subType}, assuming that any mobile networks are using the current IMSI.