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

Commit cb7d263c authored by Nathan Harold's avatar Nathan Harold
Browse files

Set the CellInfo Timestamp in the HAL

The CellInfo timestamp should be set in the hal.
This patch fixes a regression caused by aosp/846756
that caused the HAL timestamp to no longer be set.

Bug: 126911026
Test: acts test_q_request_cell_info_update
Change-Id: I59f79b353fee86f6151b11b594da5bc26b889601
parent 30cdeeae
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -5615,7 +5615,9 @@ public class RIL extends BaseCommands implements CommandsInterface {
            ArrayList<android.hardware.radio.V1_0.CellInfo> records) {
        ArrayList<CellInfo> response = new ArrayList<CellInfo>(records.size());

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

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

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

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