Loading src/java/com/android/internal/telephony/GsmCdmaCallTracker.java +1 −1 Original line number Diff line number Diff line Loading @@ -1544,7 +1544,7 @@ public class GsmCdmaCallTracker extends CallTracker { causeCode == CallFailCause.BEARER_NOT_AVAIL || causeCode == CallFailCause.ERROR_UNSPECIFIED) { CellLocation loc = mPhone.getCellIdentity().asCellLocation(); CellLocation loc = mPhone.getCurrentCellIdentity().asCellLocation(); int cid = -1; if (loc != null) { if (loc instanceof GsmCellLocation) { Loading src/java/com/android/internal/telephony/Phone.java +2 −2 Original line number Diff line number Diff line Loading @@ -1947,9 +1947,9 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { } /** * @return the current cell location if known * Returns the current CellIdentify if known */ public CellIdentity getCellIdentity() { public CellIdentity getCurrentCellIdentity() { return getServiceStateTracker().getCellIdentity(); } Loading src/java/com/android/internal/telephony/dataconnection/DcTracker.java +1 −1 Original line number Diff line number Diff line Loading @@ -3883,7 +3883,7 @@ public class DcTracker extends Handler { private int getCellLocationId() { int cid = -1; CellLocation loc = mPhone.getCellIdentity().asCellLocation(); CellLocation loc = mPhone.getCurrentCellIdentity().asCellLocation(); if (loc != null) { if (loc instanceof GsmCellLocation) { Loading src/java/com/android/internal/telephony/vendor/dataconnection/VendorDataResetEventTracker.java +2 −2 Original line number Diff line number Diff line Loading @@ -127,9 +127,9 @@ public class VendorDataResetEventTracker { mContext.registerReceiver(mSimStateReceiver, new IntentFilter( TelephonyIntents.ACTION_SIM_STATE_CHANGED)); CellLocation currentCellLocation = mPhone.getCellIdentity().asCellLocation(); CellLocation currentCellLocation = mPhone.getCurrentCellIdentity().asCellLocation(); if (currentCellLocation instanceof GsmCellLocation) { mPreviousLocation = (GsmCellLocation) mPhone.getCellIdentity().asCellLocation(); mPreviousLocation = (GsmCellLocation) currentCellLocation; if (DBG) log("DataConnection mPreviousLocation : " + mPreviousLocation); } int ddsSubId = SubscriptionManager.getDefaultDataSubscriptionId(); Loading tests/telephonytests/src/com/android/internal/telephony/DefaultPhoneNotifierTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ public class DefaultPhoneNotifierTest extends TelephonyTest { // mock gsm cell location CellIdentityGsm mGsmCellLocation = new CellIdentityGsm( 2, 3, 0, 0, null, null, null, null, Collections.emptyList()); doReturn(mGsmCellLocation).when(mPhone).getCellIdentity(); doReturn(mGsmCellLocation).when(mPhone).getCurrentCellIdentity(); ArgumentCaptor<CellIdentityGsm> cellLocationCapture = ArgumentCaptor.forClass(CellIdentityGsm.class); Loading Loading
src/java/com/android/internal/telephony/GsmCdmaCallTracker.java +1 −1 Original line number Diff line number Diff line Loading @@ -1544,7 +1544,7 @@ public class GsmCdmaCallTracker extends CallTracker { causeCode == CallFailCause.BEARER_NOT_AVAIL || causeCode == CallFailCause.ERROR_UNSPECIFIED) { CellLocation loc = mPhone.getCellIdentity().asCellLocation(); CellLocation loc = mPhone.getCurrentCellIdentity().asCellLocation(); int cid = -1; if (loc != null) { if (loc instanceof GsmCellLocation) { Loading
src/java/com/android/internal/telephony/Phone.java +2 −2 Original line number Diff line number Diff line Loading @@ -1947,9 +1947,9 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { } /** * @return the current cell location if known * Returns the current CellIdentify if known */ public CellIdentity getCellIdentity() { public CellIdentity getCurrentCellIdentity() { return getServiceStateTracker().getCellIdentity(); } Loading
src/java/com/android/internal/telephony/dataconnection/DcTracker.java +1 −1 Original line number Diff line number Diff line Loading @@ -3883,7 +3883,7 @@ public class DcTracker extends Handler { private int getCellLocationId() { int cid = -1; CellLocation loc = mPhone.getCellIdentity().asCellLocation(); CellLocation loc = mPhone.getCurrentCellIdentity().asCellLocation(); if (loc != null) { if (loc instanceof GsmCellLocation) { Loading
src/java/com/android/internal/telephony/vendor/dataconnection/VendorDataResetEventTracker.java +2 −2 Original line number Diff line number Diff line Loading @@ -127,9 +127,9 @@ public class VendorDataResetEventTracker { mContext.registerReceiver(mSimStateReceiver, new IntentFilter( TelephonyIntents.ACTION_SIM_STATE_CHANGED)); CellLocation currentCellLocation = mPhone.getCellIdentity().asCellLocation(); CellLocation currentCellLocation = mPhone.getCurrentCellIdentity().asCellLocation(); if (currentCellLocation instanceof GsmCellLocation) { mPreviousLocation = (GsmCellLocation) mPhone.getCellIdentity().asCellLocation(); mPreviousLocation = (GsmCellLocation) currentCellLocation; if (DBG) log("DataConnection mPreviousLocation : " + mPreviousLocation); } int ddsSubId = SubscriptionManager.getDefaultDataSubscriptionId(); Loading
tests/telephonytests/src/com/android/internal/telephony/DefaultPhoneNotifierTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ public class DefaultPhoneNotifierTest extends TelephonyTest { // mock gsm cell location CellIdentityGsm mGsmCellLocation = new CellIdentityGsm( 2, 3, 0, 0, null, null, null, null, Collections.emptyList()); doReturn(mGsmCellLocation).when(mPhone).getCellIdentity(); doReturn(mGsmCellLocation).when(mPhone).getCurrentCellIdentity(); ArgumentCaptor<CellIdentityGsm> cellLocationCapture = ArgumentCaptor.forClass(CellIdentityGsm.class); Loading