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

Commit 6eef6227 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add GnssMeasurement AIDL HAL (frameworks/base)"

parents 087a5215 0abe943c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -16,8 +16,8 @@

package com.android.server.location.gnss;

import static android.hardware.gnss.IGnss.ELAPSED_REALTIME_HAS_TIMESTAMP_NS;
import static android.hardware.gnss.IGnss.ELAPSED_REALTIME_HAS_TIME_UNCERTAINTY_NS;
import static android.hardware.gnss.ElapsedRealtime.HAS_TIMESTAMP_NS;
import static android.hardware.gnss.ElapsedRealtime.HAS_TIME_UNCERTAINTY_NS;

import com.android.internal.util.Preconditions;

@@ -57,12 +57,12 @@ class GnssPowerStats {

    /** Returns true if {@link #getElapsedRealtimeNanos()} is available. */
    public boolean hasElapsedRealtimeNanos() {
        return (mElapsedRealtimeFlags & ELAPSED_REALTIME_HAS_TIMESTAMP_NS) != 0;
        return (mElapsedRealtimeFlags & HAS_TIMESTAMP_NS) != 0;
    }

    /** Returns true if {@link #getElapsedRealtimeUncertaintyNanos()} is available. */
    public boolean hasElapsedRealtimeUncertaintyNanos() {
        return (mElapsedRealtimeFlags & ELAPSED_REALTIME_HAS_TIME_UNCERTAINTY_NS) != 0;
        return (mElapsedRealtimeFlags & HAS_TIME_UNCERTAINTY_NS) != 0;
    }

    /**