Lines Matching refs:mode
278 private boolean isTimeBasedMode(int mode) { in isTimeBasedMode() argument
279 return (mode == BUFFERING_MODE_TIME_ONLY || mode == BUFFERING_MODE_TIME_THEN_SIZE); in isTimeBasedMode()
282 private boolean isSizeBasedMode(int mode) { in isSizeBasedMode() argument
283 return (mode == BUFFERING_MODE_SIZE_ONLY || mode == BUFFERING_MODE_TIME_THEN_SIZE); in isSizeBasedMode()
294 public Builder setInitialBufferingMode(@BufferingMode int mode) { in setInitialBufferingMode() argument
295 switch (mode) { in setInitialBufferingMode()
300 mInitialBufferingMode = mode; in setInitialBufferingMode()
303 throw new IllegalArgumentException("Illegal buffering mode " + mode); in setInitialBufferingMode()
316 public Builder setRebufferingMode(@BufferingMode int mode) { in setRebufferingMode() argument
317 switch (mode) { in setRebufferingMode()
322 mRebufferingMode = mode; in setRebufferingMode()
325 throw new IllegalArgumentException("Illegal buffering mode " + mode); in setRebufferingMode()