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

Commit 343a9574 authored by Luke Huang's avatar Luke Huang Committed by android-build-merger
Browse files

Merge "Covert list<String> into String[] in INetd" am: d274332a am: 8fd6b592

am: b7f2831b

Change-Id: I17f7cac90c57f811cea87107ffd7f4472f25e79b
parents e533100d b7f2831b
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -164,8 +164,6 @@ public class NetworkManagementService extends INetworkManagementService.Stub

    private static final int MAX_UID_RANGES_PER_COMMAND = 10;

    private static final  String[] EMPTY_STRING_ARRAY = new String[0];

    /**
     * Name representing {@link #setGlobalAlert(long)} limit when delivered to
     * {@link INetworkManagementEventObserver#limitReached(String, String)}.
@@ -959,8 +957,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub
    public String[] listInterfaces() {
        mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);
        try {
            final List<String> result = mNetdService.interfaceGetList();
            return result.toArray(EMPTY_STRING_ARRAY);
            return mNetdService.interfaceGetList();
        } catch (RemoteException | ServiceSpecificException e) {
            throw new IllegalStateException(e);
        }
@@ -1252,8 +1249,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub
    public String[] listTetheredInterfaces() {
        mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);
        try {
            final List<String> result = mNetdService.tetherInterfaceList();
            return result.toArray(EMPTY_STRING_ARRAY);
            return mNetdService.tetherInterfaceList();
        } catch (RemoteException | ServiceSpecificException e) {
            throw new IllegalStateException(e);
        }
@@ -1276,8 +1272,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub
    public String[] getDnsForwarders() {
        mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG);
        try {
            final List<String> result = mNetdService.tetherDnsList();
            return result.toArray(EMPTY_STRING_ARRAY);
            return mNetdService.tetherDnsList();
        } catch (RemoteException | ServiceSpecificException e) {
            throw new IllegalStateException(e);
        }