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

Commit 97598664 authored by Tim Lin's avatar Tim Lin
Browse files

dump last response of setRadioPower

Bug: 170938075
Test: make. bugreport from Cuttlefish.
Change-Id: Idba97d6fa6d3552ac651248a89a66c6b35d19027
parent 65f1142b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -236,6 +236,8 @@ public class RIL extends BaseCommands implements CommandsInterface {

    Object[] mLastNITZTimeInfo;

    int mLastRadioPowerResult = RadioError.NONE;

    // When we are testing emergency calls using ril.test.emergencynumber, this will trigger test
    // ECbM when the call is ended.
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
@@ -6606,6 +6608,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
            }
        }
        pw.println(" mLastNITZTimeInfo=" + Arrays.toString(mLastNITZTimeInfo));
        pw.println(" mLastRadioPowerResult=" + mLastRadioPowerResult);
        pw.println(" mTestingEmergencyCall=" + mTestingEmergencyCall.get());
        mClientWakelockTracker.dumpClientRequestTracker(pw);
    }
+3 −0
Original line number Diff line number Diff line
@@ -480,6 +480,7 @@ public class RadioResponse extends IRadioResponse.Stub {
     */
    public void setRadioPowerResponse(RadioResponseInfo responseInfo) {
        responseVoid(responseInfo);
        mRil.mLastRadioPowerResult = responseInfo.error;
    }

    /**
@@ -2658,6 +2659,7 @@ public class RadioResponse extends IRadioResponse.Stub {
     */
    public void setRadioPowerResponse_1_5(RadioResponseInfo info) {
        responseVoid(info);
        mRil.mLastRadioPowerResult = info.error;
    }

    /**
@@ -2665,6 +2667,7 @@ public class RadioResponse extends IRadioResponse.Stub {
     */
    public void setRadioPowerResponse_1_6(android.hardware.radio.V1_6.RadioResponseInfo info) {
        responseVoid_1_6(info);
        mRil.mLastRadioPowerResult = info.error;
    }

    /**