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

Commit fe3867e7 authored by Nathan Harold's avatar Nathan Harold Committed by android-build-merger
Browse files

Merge "Set the CellInfo Timestamp in the HAL" am: dbd5e56f

am: 9efb9095

Change-Id: I052bb7f77e1e6bb7e40245e1a0440f31c2f566f4
parents ae114502 9efb9095
Loading
Loading
Loading
Loading
+6 −1
Original line number 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<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));
        }

@@ -5675,7 +5677,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;
@@ -5691,8 +5695,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;
    }