Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/location/GnssClock#inhconstants) \| [Fields](https://developer.android.com/reference/android/location/GnssClock#lfields) \| [Methods](https://developer.android.com/reference/android/location/GnssClock#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/location/GnssClock#inhmethods)

# GnssClock

*** ** * ** ***

` public final class GnssClock `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/os/Parcelable `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.location.GnssClock |

<br />

*** ** * ** ***

A class containing a GNSS clock timestamp.

It represents a measurement of the GNSS receiver's clock.

## Summary

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/location/GnssClock>` | `https://developer.android.com/reference/android/location/GnssClock#CREATOR` <br /> |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/location/GnssClock#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` double` | ` https://developer.android.com/reference/android/location/GnssClock#getBiasNanos()() ` Gets the clock's sub-nanosecond bias. |
| ` double` | ` https://developer.android.com/reference/android/location/GnssClock#getBiasUncertaintyNanos()() ` Gets the clock's Bias Uncertainty (1-Sigma) in nanoseconds. |
| ` double` | ` https://developer.android.com/reference/android/location/GnssClock#getDriftNanosPerSecond()() ` Gets the clock's Drift in nanoseconds per second. |
| ` double` | ` https://developer.android.com/reference/android/location/GnssClock#getDriftUncertaintyNanosPerSecond()() ` Gets the clock's Drift Uncertainty (1-Sigma) in nanoseconds per second. |
| ` long` | ` https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeNanos()() ` Returns the elapsed real-time of this clock since system boot, in nanoseconds. |
| ` double` | ` https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeUncertaintyNanos()() ` Gets the estimate of the relative precision of the alignment of the `https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeNanos()` timestamp, with the reported measurements in nanoseconds (68% confidence). |
| ` long` | ` https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()() ` Gets the difference between hardware clock (`https://developer.android.com/reference/android/location/GnssClock#getTimeNanos()`) inside GPS receiver and the true GPS time since 0000Z, January 6, 1980, in nanoseconds. |
| ` int` | ` https://developer.android.com/reference/android/location/GnssClock#getHardwareClockDiscontinuityCount()() ` Gets count of hardware clock discontinuities. |
| ` int` | ` https://developer.android.com/reference/android/location/GnssClock#getLeapSecond()() ` Gets the leap second associated with the clock's time. |
| ` double` | ` https://developer.android.com/reference/android/location/GnssClock#getReferenceCarrierFrequencyHzForIsb()() ` Returns the reference carrier frequency in Hz for inter-signal bias. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/GnssClock#getReferenceCodeTypeForIsb()() ` Returns the reference code type for inter-signal bias. |
| ` int` | ` https://developer.android.com/reference/android/location/GnssClock#getReferenceConstellationTypeForIsb()() ` Returns the reference constellation type for inter-signal bias. |
| ` long` | ` https://developer.android.com/reference/android/location/GnssClock#getTimeNanos()() ` Gets the GNSS receiver internal hardware clock value in nanoseconds. |
| ` double` | ` https://developer.android.com/reference/android/location/GnssClock#getTimeUncertaintyNanos()() ` Gets the clock's time Uncertainty (1-Sigma) in nanoseconds. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasBiasNanos()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getBiasNanos()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasBiasUncertaintyNanos()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getBiasUncertaintyNanos()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasDriftNanosPerSecond()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getDriftNanosPerSecond()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasDriftUncertaintyNanosPerSecond()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getDriftUncertaintyNanosPerSecond()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasElapsedRealtimeNanos()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeNanos()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasElapsedRealtimeUncertaintyNanos()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeUncertaintyNanos()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasFullBiasNanos()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasLeapSecond()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getLeapSecond()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasReferenceCarrierFrequencyHzForIsb()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getReferenceCarrierFrequencyHzForIsb()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasReferenceCodeTypeForIsb()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getReferenceCodeTypeForIsb()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasReferenceConstellationTypeForIsb()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getReferenceConstellationTypeForIsb()` is available, `false` otherwise. |
| ` boolean` | ` https://developer.android.com/reference/android/location/GnssClock#hasTimeUncertaintyNanos()() ` Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getTimeUncertaintyNanos()` is available, `false` otherwise. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/location/GnssClock#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/location/GnssClock#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel parcel, int flags) ` Flatten this object in to a Parcel. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/os/Parcelable ` ` abstract int` ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() `

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
` abstract void` ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) `

Flatten this object in to a Parcel.

## Fields

### CREATOR

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<GnssClock> CREATOR
```

<br />

<br />

## Public methods

### describeContents

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`, the return value of this method must include the `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### getBiasNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getBiasNanos ()
```

Gets the clock's sub-nanosecond bias.

See the description of how this field is part of converting from hardware clock time, to GPS time, in `https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()`.

The error estimate for the sum of this field and `https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()` is `https://developer.android.com/reference/android/location/GnssClock#getBiasUncertaintyNanos()`.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasBiasNanos()` is `true`.

<br />

| Returns ||
|---|---|
| `double` | <br /> |

### getBiasUncertaintyNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getBiasUncertaintyNanos ()
```

Gets the clock's Bias Uncertainty (1-Sigma) in nanoseconds.

See the description of how this field provides the error estimate in the conversion from hardware clock time, to GPS time, in `https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()`.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasBiasUncertaintyNanos()` is `true`.

<br />

| Returns ||
|---|---|
| `double` | Value is 0.0f or greater <br /> |

### getDriftNanosPerSecond

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getDriftNanosPerSecond ()
```

Gets the clock's Drift in nanoseconds per second.

This value is the instantaneous time-derivative of the value provided by the sum of `https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()` and `https://developer.android.com/reference/android/location/GnssClock#getBiasNanos()`.

A positive value indicates that the frequency is higher than the nominal (e.g. GPS master clock) frequency. The error estimate for this reported drift is `https://developer.android.com/reference/android/location/GnssClock#getDriftUncertaintyNanosPerSecond()`.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasDriftNanosPerSecond()` is `true`.

<br />

| Returns ||
|---|---|
| `double` | <br /> |

### getDriftUncertaintyNanosPerSecond

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getDriftUncertaintyNanosPerSecond ()
```

Gets the clock's Drift Uncertainty (1-Sigma) in nanoseconds per second.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasDriftUncertaintyNanosPerSecond()` is `true`.

<br />

| Returns ||
|---|---|
| `double` | Value is 0.0f or greater <br /> |

### getElapsedRealtimeNanos

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getElapsedRealtimeNanos ()
```

Returns the elapsed real-time of this clock since system boot, in nanoseconds.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasElapsedRealtimeNanos()` is `true`.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

### getElapsedRealtimeUncertaintyNanos

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getElapsedRealtimeUncertaintyNanos ()
```

Gets the estimate of the relative precision of the alignment of the `https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeNanos()` timestamp, with the reported measurements in nanoseconds (68% confidence).

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasElapsedRealtimeUncertaintyNanos()` is `true`.

<br />

| Returns ||
|---|---|
| `double` | Value is 0.0f or greater <br /> |

### getFullBiasNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getFullBiasNanos ()
```

Gets the difference between hardware clock (`https://developer.android.com/reference/android/location/GnssClock#getTimeNanos()`) inside GPS receiver and the true GPS time since 0000Z, January 6, 1980, in nanoseconds.

This value is available if the receiver has estimated GPS time. If the computed time is for a non-GPS constellation, the time offset of that constellation to GPS has to be applied to fill this value. The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasFullBiasNanos()` is `true`.

The error estimate for the sum of this field and `https://developer.android.com/reference/android/location/GnssClock#getBiasNanos()` is `https://developer.android.com/reference/android/location/GnssClock#getBiasUncertaintyNanos()`.

The sign of the value is defined by the following equation:

```
    local estimate of GPS time = TimeNanos - (FullBiasNanos + BiasNanos)
```

<br />

<br />

| Returns ||
|---|---|
| `long` | <br /> |

### getHardwareClockDiscontinuityCount

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getHardwareClockDiscontinuityCount ()
```

Gets count of hardware clock discontinuities.

When this value stays the same, vs. a value in a previously reported `https://developer.android.com/reference/android/location/GnssClock`, it can be safely assumed that the `TimeNanos` value has been derived from a clock that has been running continuously - e.g. a single continuously powered crystal oscillator, and thus the `(FullBiasNanos + BiasNanos)` offset can be modelled with traditional clock bias \& drift models.

Each time this value changes, vs. the value in a previously reported `https://developer.android.com/reference/android/location/GnssClock`, that suggests the hardware clock may have experienced a discontinuity (e.g. a power cycle or other anomaly), so that any assumptions about modelling a smoothly changing `(FullBiasNanos + BiasNanos)` offset, and a smoothly growing `(TimeNanos)` between this and the previously reported `GnssClock`, should be reset.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getLeapSecond

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getLeapSecond ()
```

Gets the leap second associated with the clock's time.

The sign of the value is defined by the following equation:

```
    UtcTimeNanos = TimeNanos - (FullBiasNanos + BiasNanos) - LeapSecond * 1,000,000,000
```

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasLeapSecond()` is `true`.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getReferenceCarrierFrequencyHzForIsb

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getReferenceCarrierFrequencyHzForIsb ()
```

Returns the reference carrier frequency in Hz for inter-signal bias.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasReferenceCarrierFrequencyHzForIsb()` is `true`.

<br />

| Returns ||
|---|---|
| `double` | Value is 0.0f or greater <br /> |

### getReferenceCodeTypeForIsb

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getReferenceCodeTypeForIsb ()
```

Returns the reference code type for inter-signal bias.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasReferenceCodeTypeForIsb()` is `true`.

The return value is one of those constants defined in `https://developer.android.com/reference/android/location/GnssMeasurement#getCodeType()`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | This value cannot be `null`. <br /> |

### getReferenceConstellationTypeForIsb

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getReferenceConstellationTypeForIsb ()
```

Returns the reference constellation type for inter-signal bias.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasReferenceConstellationTypeForIsb()` is `true`.

The return value is one of those constants with `CONSTELLATION_` prefix in `https://developer.android.com/reference/android/location/GnssStatus`.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_UNKNOWN` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_GPS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_SBAS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_GLONASS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_QZSS` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_BEIDOU` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_GALILEO` - `https://developer.android.com/reference/android/location/GnssStatus#CONSTELLATION_IRNSS` |

### getTimeNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getTimeNanos ()
```

Gets the GNSS receiver internal hardware clock value in nanoseconds.

This value is expected to be monotonically increasing while the hardware clock remains powered on. For the case of a hardware clock that is not continuously on, see the `https://developer.android.com/reference/android/location/GnssClock#getHardwareClockDiscontinuityCount()` field. The GPS time can be derived by subtracting the sum of `https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()` and `https://developer.android.com/reference/android/location/GnssClock#getBiasNanos()` (when they are available) from this value. Sub-nanosecond accuracy can be provided by means of `https://developer.android.com/reference/android/location/GnssClock#getBiasNanos()`.

The error estimate for this value (if applicable) is `https://developer.android.com/reference/android/location/GnssClock#getTimeUncertaintyNanos()`.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

### getTimeUncertaintyNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public double getTimeUncertaintyNanos ()
```

Gets the clock's time Uncertainty (1-Sigma) in nanoseconds.

The uncertainty is represented as an absolute (single sided) value.

The value is only available if `https://developer.android.com/reference/android/location/GnssClock#hasTimeUncertaintyNanos()` is `true`.

This value is often effectively zero (it is the reference clock by which all other times and time uncertainties are measured), and thus this field may often be 0, or not provided.

<br />

| Returns ||
|---|---|
| `double` | Value is 0.0f or greater <br /> |

### hasBiasNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasBiasNanos ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getBiasNanos()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasBiasUncertaintyNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasBiasUncertaintyNanos ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getBiasUncertaintyNanos()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasDriftNanosPerSecond

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasDriftNanosPerSecond ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getDriftNanosPerSecond()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasDriftUncertaintyNanosPerSecond

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasDriftUncertaintyNanosPerSecond ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getDriftUncertaintyNanosPerSecond()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasElapsedRealtimeNanos

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasElapsedRealtimeNanos ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeNanos()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasElapsedRealtimeUncertaintyNanos

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasElapsedRealtimeUncertaintyNanos ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getElapsedRealtimeUncertaintyNanos()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasFullBiasNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasFullBiasNanos ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getFullBiasNanos()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasLeapSecond

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasLeapSecond ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getLeapSecond()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasReferenceCarrierFrequencyHzForIsb

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasReferenceCarrierFrequencyHzForIsb ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getReferenceCarrierFrequencyHzForIsb()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasReferenceCodeTypeForIsb

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasReferenceCodeTypeForIsb ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getReferenceCodeTypeForIsb()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasReferenceConstellationTypeForIsb

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasReferenceConstellationTypeForIsb ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getReferenceConstellationTypeForIsb()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### hasTimeUncertaintyNanos

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasTimeUncertaintyNanos ()
```

Returns `true` if `https://developer.android.com/reference/android/location/GnssClock#getTimeUncertaintyNanos()` is available, `false` otherwise.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### toString

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel parcel, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `parcel` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |