Skip to content
Snippets Groups Projects
  1. May 05, 2017
  2. May 04, 2017
    • Roozbeh Pournader's avatar
      Hyphenate text in CheckedTextView · 2c5af959
      Roozbeh Pournader authored
      CheckedTextView style defaults are not derived from TextView, so they
      were not getting hyphenated at all. Now they are hyphenated the same
      way a normal TextView is hyphenated.
      
      Test: Manual
      Bug: 37763646
      Change-Id: I3d14e5a1764561cc2922eea569d124c77cb53631
      2c5af959
    • Jean-Michel Trivi's avatar
      Audio service: only duck started players + refactor · cb84fc01
      Jean-Michel Trivi authored
      Refactor management of list of ducked players:
        DuckingManager has a list of DuckedApps, which reference
        the ducked players per uid.
      Only consider ducking a player when it is in STARTED state.
      When a player is released, remove it from the list of ducked players.
      
      Test: play audio in GPM while having driving directions, music ducks
      Bug: 37433811
      Change-Id: I038a963432c0df6c9470a3a4fb80049d55e8719c
      cb84fc01
    • Yohei Yukawa's avatar
      Avoid unnecessary ULocale.addLikelySubtags() · dce7df3e
      Yohei Yukawa authored
      This CL gets rid of unnecessary operations from
      LocaleUtils.filterByLanguage() to speed it up, especially for the case
      where there is an IME that has many subtypes.
      
      ULocale.addLikelySubtags(ULocale) is known to be slow. Given an IME
      that has N IME subtypes, LocaleUtils.filterByLanguage() calls it no
      less than N times even when the only one system language is selected.
      This has contributed to device boot time (Bug 32343335) time and user
      switching time (Bug 28750507) since Android N where IME support
      started taking multi-locale into account.
      
      With this CL, LocaleUtils.filterByLanguage() no longer calls it
      for a subtype unless its language part of the locale matches one of
      user-selected system locales.
      
      The only assumption we made here is
      
       for any Locale objects l1 and l2
         TextUtils.equals(l1.getLanguage(), l2.getLanguage())
       and
         TextUtils.equals(ul1.getLanguage(), ul2.getLanguage())
       are equivalent, where
         ul1 = ULocale.addLikelySubtags(ULocale.forLocale(l1)) and
         ul2 = ULocale.addLikelySubtags(ULocale.forLocale(l2))
      
      This should be reasonable assumption, at least for locales we want to
      care about for IMEs. Under this assumption there is no behavior
      change at all.
      
      Test: bit FrameworksCoreTests:com.android.internal.inputmethod.LocaleUtilsTest
      Bug: 37647204
      Change-Id: Ic96900fcaf3db8b7046a50b3fe6ad65aceada369
      dce7df3e
    • TreeHugger Robot's avatar
Loading