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

Commit 1fab908b authored by Nathan Harold's avatar Nathan Harold
Browse files

Rename CellInfo Functions for Clarity

-Rename the async version of getAllCellInfo()
 to requestCellInfoUpdate() to reflect that it
 is now an asynchronous call.

Bug: 26569588
Test: wip
Change-Id: I3cdc448b7da67ceaf310fac94d1f27a877af73ca
parent fe1fdf59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ public class LocaleTracker extends Handler {
    public void handleMessage(Message msg) {
        switch (msg.what) {
            case EVENT_REQUEST_CELL_INFO:
                mPhone.getAllCellInfo(null, obtainMessage(EVENT_RESPONSE_CELL_INFO));
                mPhone.requestCellInfoUpdate(null, obtainMessage(EVENT_RESPONSE_CELL_INFO));
                break;

            case EVENT_UNSOL_CELL_INFO:
+1 −1
Original line number Diff line number Diff line
@@ -1723,7 +1723,7 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
     * @param workSource calling WorkSource
     * @param rspMsg the response message containing the cell info
     */
    public void getAllCellInfo(WorkSource workSource, Message rspMsg) {
    public void requestCellInfoUpdate(WorkSource workSource, Message rspMsg) {
        getServiceStateTracker().requestAllCellInfo(workSource, rspMsg);
    }

+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ public class LocaleTrackerTest extends TelephonyTest {
            Message m = invocation.getArgument(1);
            AsyncResult.forMessage(m, Arrays.asList(mCellInfo), null);
            m.sendToTarget();
            return null; }).when(mPhone).getAllCellInfo(any(), any());
            return null; }).when(mPhone).requestCellInfoUpdate(any(), any());

        logd("LocaleTrackerTest -Setup!");
    }