Package org.robolectric.shadows
Class RangingResultBuilder
java.lang.Object
org.robolectric.shadows.RangingResultBuilder
- Direct Known Subclasses:
ShadowRangingResult.Builder
A builder for creating ShadowRangingResults. Status, macAddress, distance [mm] and timestamp are
all mandatory fields. Additional fields can be specified by setters. Use build() to return the
ShadowRangingResult object.
TODO:org/robolectric/shadows/ShadowLegacyTypeface Remove after V is generally available.
-
Constructor Summary
ConstructorDescriptionRangingResultBuilder
(int status, MacAddress mac, long timestampMillis, int distanceMm) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setDistanceStandardDeviation
(int stddev) setIs80211mcMeasurement
(boolean is80211mcMeasurement) setLci
(byte[] lci) setLcr
(byte[] lcr) setNumAttemptedMeasurements
(int num) setNumSuccessfulMeasurements
(int num) setRssi
(int rssi) setUnverifiedResponderLocation
(ResponderLocation unverifiedResponderLocation)
-
Constructor Details
-
RangingResultBuilder
-
-
Method Details
-
setDistanceStandardDeviation
-
setRssi
-
setNumAttemptedMeasurements
-
setNumSuccessfulMeasurements
-
setLci
-
setLcr
-
setUnverifiedResponderLocation
public RangingResultBuilder setUnverifiedResponderLocation(ResponderLocation unverifiedResponderLocation) -
setIs80211mcMeasurement
-
build
-