Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0843775 authored by Meng Wang's avatar Meng Wang Committed by Automerger Merge Worker
Browse files

Merge "Rename Phone#getCellIdentity to getCurrentCellIdentity" am: c230d42e...

Merge "Rename Phone#getCellIdentity to getCurrentCellIdentity" am: c230d42e am: a2d6fa18 am: 039e2d71 am: d0c82ed4 am: 8e5fc6f8

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1360819

Change-Id: I39348aaff31741b41e09f4a3d050d9b243a8af17
parents 524a005d 8e5fc6f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1546,7 +1546,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) {
+2 −2
Original line number Diff line number Diff line
@@ -1968,9 +1968,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();
    }

+1 −1
Original line number Diff line number Diff line
@@ -3800,7 +3800,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) {
+2 −2
Original line number Diff line number Diff line
@@ -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();
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,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