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

Commit dbd5e56f authored by Nathan Harold's avatar Nathan Harold Committed by Gerrit Code Review
Browse files

Merge "Set the CellInfo Timestamp in the HAL"

parents cf40db40 cb7d263c
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -5658,7 +5658,9 @@ public class RIL extends BaseCommands implements CommandsInterface {
            ArrayList<android.hardware.radio.V1_0.CellInfo> records) {
            ArrayList<android.hardware.radio.V1_0.CellInfo> records) {
        ArrayList<CellInfo> response = new ArrayList<CellInfo>(records.size());
        ArrayList<CellInfo> response = new ArrayList<CellInfo>(records.size());


        final long nanotime = SystemClock.elapsedRealtimeNanos();
        for (android.hardware.radio.V1_0.CellInfo record : records) {
        for (android.hardware.radio.V1_0.CellInfo record : records) {
            record.timeStamp = nanotime;
            response.add(CellInfo.create(record));
            response.add(CellInfo.create(record));
        }
        }


@@ -5675,7 +5677,9 @@ public class RIL extends BaseCommands implements CommandsInterface {
            ArrayList<android.hardware.radio.V1_2.CellInfo> records) {
            ArrayList<android.hardware.radio.V1_2.CellInfo> records) {
        ArrayList<CellInfo> response = new ArrayList<CellInfo>(records.size());
        ArrayList<CellInfo> response = new ArrayList<CellInfo>(records.size());


        final long nanotime = SystemClock.elapsedRealtimeNanos();
        for (android.hardware.radio.V1_2.CellInfo record : records) {
        for (android.hardware.radio.V1_2.CellInfo record : records) {
            record.timeStamp = nanotime;
            response.add(CellInfo.create(record));
            response.add(CellInfo.create(record));
        }
        }
        return response;
        return response;
@@ -5691,8 +5695,9 @@ public class RIL extends BaseCommands implements CommandsInterface {
            ArrayList<android.hardware.radio.V1_4.CellInfo> records) {
            ArrayList<android.hardware.radio.V1_4.CellInfo> records) {
        ArrayList<CellInfo> response = new ArrayList<CellInfo>(records.size());
        ArrayList<CellInfo> response = new ArrayList<CellInfo>(records.size());


        final long nanotime = SystemClock.elapsedRealtimeNanos();
        for (android.hardware.radio.V1_4.CellInfo record : records) {
        for (android.hardware.radio.V1_4.CellInfo record : records) {
            response.add(CellInfo.create(record));
            response.add(CellInfo.create(record, nanotime));
        }
        }
        return response;
        return response;
    }
    }