code: public GlobalizationPreferences setLocales(String acceptLanguageString) {
          if (isFrozen()) {
              throw new UnsupportedOperationException("Attempt to modify immutable object");
          }
          ULocale[] acceptLocales = null;
          try {
              acceptLocales = ULocale.parseAcceptLanguage(acceptLanguageString, true);
          } catch (ParseException pe) {
              //TODO: revisit after 3.8
              throw new IllegalArgumentException("Invalid Accept-Language string");
          }
          return setLocales(acceptLocales);
      }
docs: Convenience routine for setting the locale priority list from
  an Accept-Language string.
  @see #setLocales(List locales)
  @param acceptLanguageString Accept-Language list, as defined by
  Section 14.4 of the RFC 2616 (HTTP 1.1)
  @return this, for chaining
  @hide draft / provisional / internal are hidden on Android