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

Commit 9c617f56 authored by Victor Chang's avatar Victor Chang
Browse files

Make the GnssStatus constructor public and mark as hidden.

Android Things user-driver model for GNSS requires that the GNSS driver
to be implemented by the developer in Java and have its updates
forwarded down to the GNSS framework. This means that the developer will
need to be able to create GnssStatus objects.

A GnssStatusBuilder class is being added in ag/3726284, intended to be
used to create GnssStatus objects. We do not intend for the developer to
construct a GnssStatus object directly, so while this constructor is
being made public, it's also being marked as hidden.

Test: Builds.
Change-Id: Ie8e75e2bc264fe8b1981afebb3f4d10fadd89915
parent 8bde24cf
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -104,7 +104,10 @@ public final class GnssStatus {
    final int mSvCount;
    final float[] mCarrierFrequencies;

    GnssStatus(int svCount, int[] svidWithFlags, float[] cn0s, float[] elevations,
    /**
     * @hide
     */
    public GnssStatus(int svCount, int[] svidWithFlags, float[] cn0s, float[] elevations,
            float[] azimuths, float[] carrierFrequencies) {
        mSvCount = svCount;
        mSvidWithFlags = svidWithFlags;