auto import from //depot/cupcake/@132589

This commit is contained in:
The Android Open Source Project
2009-03-03 14:04:24 -08:00
parent 3dec7d563a
commit 076357b856
310 changed files with 4072 additions and 18131 deletions

View File

@@ -168,8 +168,15 @@ public class CellState {
}
}
public void updateRadioType(int radioType) {
mRadioType = radioType;
public void updateRadioType(TelephonyManager telephonyManager) {
// Get radio type
int radioType = telephonyManager.getNetworkType();
if (radioType == TelephonyManager.NETWORK_TYPE_GPRS ||
radioType == TelephonyManager.NETWORK_TYPE_EDGE) {
mRadioType = RADIO_TYPE_GPRS;
} else if (radioType == TelephonyManager.NETWORK_TYPE_UMTS) {
mRadioType = RADIO_TYPE_WCDMA;
}
if (Log.isLoggable(TAG, Log.VERBOSE)) {
Log.d(TAG, "updateRadioType(): " + mLac +"," + mCid + "," + mMnc +"," + mMcc + "," +

View File

@@ -28,7 +28,7 @@ public interface INetworkLocationManager {
/* callback to allow installation to occur in Location Manager's thread */
public interface InstallCallback {
void installNetworkLocationProvider(INetworkLocationManager manager);
void installNetworkLocationProvider(Context context, INetworkLocationManager manager);
}
void setInstallCallback(InstallCallback callback);