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

Commit 152ec067 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Convert unsigned uint8 fields in RIL interface to unsigned int.

Conversion is via byte which loses the unsigned-ness by default.

Test: basic telephony sanity
Bug: 37911659
Change-Id: I39312e8c280450d68aff016d9c582e24ecc43a0c
parent ee5c35e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4815,7 +4815,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
    static ArrayList<Integer> convertHalLceData(LceDataInfo lce, RIL ril) {
        final ArrayList<Integer> capacityResponse = new ArrayList<Integer>();
        final int capacityDownKbps = lce.lastHopCapacityKbps;
        final int confidenceLevel = lce.confidenceLevel;
        final int confidenceLevel = Byte.toUnsignedInt(lce.confidenceLevel);
        final int lceSuspended = lce.lceSuspended ? 1 : 0;

        ril.riljLog("LCE capacity information received:" +
+1 −1
Original line number Diff line number Diff line
@@ -1699,7 +1699,7 @@ public class RadioResponse extends IRadioResponse.Stub {
        if (rr != null) {
            ArrayList<Integer> ret = new ArrayList<Integer>();
            ret.add(statusInfo.lceStatus);
            ret.add((int) statusInfo.actualIntervalMs);
            ret.add(Byte.toUnsignedInt(statusInfo.actualIntervalMs));
            if (responseInfo.error == RadioError.NONE) {
                sendMessageResponse(rr.mResult, ret);
            }