Merge "Tethering: remove redundant source code"
This commit is contained in:
@@ -741,8 +741,7 @@ public class Tethering {
|
|||||||
.setContentIntent(pi);
|
.setContentIntent(pi);
|
||||||
mLastNotificationId = id;
|
mLastNotificationId = id;
|
||||||
|
|
||||||
notificationManager.notify(null, mLastNotificationId,
|
notificationManager.notify(null, mLastNotificationId, mTetheredNotificationBuilder.build());
|
||||||
mTetheredNotificationBuilder.buildInto(new Notification()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
|||||||
@@ -24,9 +24,7 @@ import android.net.ip.IpServer;
|
|||||||
import android.net.util.SharedLog;
|
import android.net.util.SharedLog;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.os.INetworkManagementService;
|
|
||||||
import android.os.Looper;
|
import android.os.Looper;
|
||||||
import android.os.ServiceManager;
|
|
||||||
|
|
||||||
import com.android.internal.util.StateMachine;
|
import com.android.internal.util.StateMachine;
|
||||||
|
|
||||||
@@ -95,16 +93,6 @@ public abstract class TetheringDependencies {
|
|||||||
return new TetheringConfiguration(ctx, log, subId);
|
return new TetheringConfiguration(ctx, log, subId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a reference to INetworkManagementService to registerTetheringStatsProvider from
|
|
||||||
* OffloadController. Note: This should be removed soon by Usage refactor work in R
|
|
||||||
* development cycle.
|
|
||||||
*/
|
|
||||||
public INetworkManagementService getINetworkManagementService() {
|
|
||||||
return INetworkManagementService.Stub.asInterface(
|
|
||||||
ServiceManager.getService(Context.NETWORKMANAGEMENT_SERVICE));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a reference to INetd to be used by tethering.
|
* Get a reference to INetd to be used by tethering.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ import android.content.res.Resources;
|
|||||||
import android.hardware.usb.UsbManager;
|
import android.hardware.usb.UsbManager;
|
||||||
import android.net.ConnectivityManager;
|
import android.net.ConnectivityManager;
|
||||||
import android.net.INetd;
|
import android.net.INetd;
|
||||||
import android.net.INetworkPolicyManager;
|
|
||||||
import android.net.ITetheringEventCallback;
|
import android.net.ITetheringEventCallback;
|
||||||
import android.net.InetAddresses;
|
import android.net.InetAddresses;
|
||||||
import android.net.InterfaceConfigurationParcel;
|
import android.net.InterfaceConfigurationParcel;
|
||||||
@@ -103,7 +102,6 @@ import android.net.wifi.p2p.WifiP2pInfo;
|
|||||||
import android.net.wifi.p2p.WifiP2pManager;
|
import android.net.wifi.p2p.WifiP2pManager;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.INetworkManagementService;
|
|
||||||
import android.os.Looper;
|
import android.os.Looper;
|
||||||
import android.os.PersistableBundle;
|
import android.os.PersistableBundle;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
@@ -157,9 +155,7 @@ public class TetheringTest {
|
|||||||
|
|
||||||
@Mock private ApplicationInfo mApplicationInfo;
|
@Mock private ApplicationInfo mApplicationInfo;
|
||||||
@Mock private Context mContext;
|
@Mock private Context mContext;
|
||||||
@Mock private INetworkManagementService mNMService;
|
|
||||||
@Mock private NetworkStatsManager mStatsManager;
|
@Mock private NetworkStatsManager mStatsManager;
|
||||||
@Mock private INetworkPolicyManager mPolicyManager;
|
|
||||||
@Mock private OffloadHardwareInterface mOffloadHardwareInterface;
|
@Mock private OffloadHardwareInterface mOffloadHardwareInterface;
|
||||||
@Mock private Resources mResources;
|
@Mock private Resources mResources;
|
||||||
@Mock private TelephonyManager mTelephonyManager;
|
@Mock private TelephonyManager mTelephonyManager;
|
||||||
@@ -342,11 +338,6 @@ public class TetheringTest {
|
|||||||
return new MockTetheringConfiguration(ctx, log, subId);
|
return new MockTetheringConfiguration(ctx, log, subId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public INetworkManagementService getINetworkManagementService() {
|
|
||||||
return mNMService;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public INetd getINetd(Context context) {
|
public INetd getINetd(Context context) {
|
||||||
return mNetd;
|
return mNetd;
|
||||||
|
|||||||
Reference in New Issue
Block a user