Lines Matching refs:tolerance
52 * <p> <strong>tolerance:</strong> specifies the amount of allowed playback rate
73 * surface that directly renders to a display, and tolerance is non zero (e.g. not
99 * When using this mode, the tolerance should be set to greater than 0 (e.g. at least
104 * better playback experience on most devices. In this case the tolerance should be
230 * Sets the tolerance. The default tolerance is platform specific, but is never more than 1/24.
231 * @param tolerance A non-negative number representing
235 * @throws InvalidArgumentException if the tolerance is negative, or not less than one
237 public SyncParams setTolerance(float tolerance) {
238 if (tolerance < 0.f || tolerance >= 1.f) {
239 throw new IllegalArgumentException("tolerance must be less than one and non-negative");
241 mTolerance = tolerance;
247 * Retrieves the tolerance factor.
248 * @return tolerance factor. A non-negative number representing
251 * @throws IllegalStateException if tolerance is not set.
255 throw new IllegalStateException("tolerance not set");