Remove unused api.

bug:15595155
Change-Id: Ifd79365bd45f20f531782244f471a4cfc32a4135
This commit is contained in:
Robert Greenwalt
2014-07-02 09:59:16 -07:00
parent c8e3a7176f
commit e0b0051472
3 changed files with 5 additions and 30 deletions

View File

@@ -1549,28 +1549,6 @@ public class ConnectivityManager {
}
}
/**
* Try to ensure the device stays awake until we connect with the next network.
* Actually just holds a wakelock for a number of seconds while we try to connect
* to any default networks. This will expire if the timeout passes or if we connect
* to a default after this is called. For internal use only.
*
* @param forWhom the name of the network going down for logging purposes
* @return {@code true} on success, {@code false} on failure
*
* <p>This method requires the call to hold the permission
* {@link android.Manifest.permission#CONNECTIVITY_INTERNAL}.
* {@hide}
*/
public boolean requestNetworkTransitionWakelock(String forWhom) {
try {
mService.requestNetworkTransitionWakelock(forWhom);
return true;
} catch (RemoteException e) {
return false;
}
}
/**
* Report network connectivity status. This is currently used only
* to alter status bar UI.

View File

@@ -99,8 +99,6 @@ interface IConnectivityManager
int setUsbTethering(boolean enable);
void requestNetworkTransitionWakelock(in String forWhom);
void reportInetCondition(int networkType, int percentage);
void reportBadNetwork(in Network network);