shadows/framework/src/main/java/org/robolectric/shadows/ShadowWifiRttManager.java
@Implementation(minSdk = P)
  protected void startRanging(
      RangingRequest request, Executor executor, RangingResultCallback callback) {
    if (!rangingResults.isEmpty()) {
      executor.execute(() -> callback.onRangingResults(this.rangingResults));
    } else {
      executor.execute(() -> callback.onRangingFailure(RangingResultCallback.STATUS_CODE_FAIL));
    }
  }
@Implementation(minSdk = P)
  protected void startRanging(
      RangingRequest request, Executor executor, RangingResultCallback callback) {
    if (!rangingResults.isEmpty()) {
      executor.execute(() -> callback.onRangingResults(this.rangingResults));
    } else {
      executor.execute(() -> callback.onRangingFailure(RangingResultCallback.STATUS_CODE_FAIL));
    }
  }
@ Implementation ( minSdk = P ) protected void startRanging ( RangingRequest request , Executor executor , RangingResultCallback callback ) { if ( ! rangingResults . isEmpty ( ) ) { executor . execute ( ( ) -> callback . onRangingResults ( this . rangingResults ) ) ; } else { executor . execute ( ( ) -> callback . onRangingFailure ( RangingResultCallback . STATUS_CODE_FAIL ) ) ; } }
If there are RangingResults set by the setRangeResults method of this shadow class, this method
will call the onRangingResults method of the callback on the executor thread and pass the list
of RangingResults. If there are no ranging results set, it will pass
RangingResultCallback.STATUS_CODE_FAIL to the onRangingFailure method of the callback, also
called on the executor thread.
If there are RangingResults set by the setRangeResults method of this shadow class this method will call the onRangingResults method of the callback on the executor thread and pass the list of RangingResults . If there are no ranging results set it will pass RangingResultCallback . STATUS_CODE_FAIL to the onRangingFailure method of the callback also called on the executor thread .