auto import from //depot/cupcake/@132589
This commit is contained in:
@@ -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 + "," +
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user