Skip to content
Snippets Groups Projects
  1. Sep 30, 2019
  2. Sep 28, 2019
  3. Sep 27, 2019
    • Stan Iliev's avatar
      Merge changes from topic "textureview_readback" · 7b5a8dfe
      Stan Iliev authored
      am: fc733e1d
      
      Change-Id: Ic1308ec895badad285cc90a370de8d844cad4250
      7b5a8dfe
    • Treehugger Robot's avatar
      Merge changes from topic "textureview_readback" · fc733e1d
      Treehugger Robot authored
      * changes:
        Improve integer aligned coordinate detection
        Improve logic when to use filtering in readback and TextureView
      fc733e1d
    • Tobias Thierer's avatar
      MimeMapImpl.createDefaultInstance() -> DefaultMimeMapFactory.create(). · af0cef98
      Tobias Thierer authored
      The class no longer implements MimeMap, so the name MimeMapImpl
      no longer made sense.
      
      Test: Treehugger
      Bug: 136256059
      Change-Id: I2cbc70a7769232b704a9bdfde2def832c1e292b8
      af0cef98
    • Nataniel Borges's avatar
      Merge changes from topic "flicker-rotation" · 7b5f4f12
      Nataniel Borges authored
      am: f2a739d5
      
      Change-Id: I189755fcce0f1576870d252dbe1f4f30a7aa6ea4
      7b5f4f12
    • Nataniel Borges's avatar
      New FlickerTests: Start app warm and cold at both 0 and 90 degrees · 4a77093a
      Nataniel Borges authored
      am: d051c3b7
      
      Change-Id: Ie1e7143488dcd4a29287b5802d32359c0c3f0839
      4a77093a
    • Nataniel Borges's avatar
      New FlickerTests: Start IME alongside the app (0 and 90 degrees) · af3a5e49
      Nataniel Borges authored
      am: 4bfe8160
      
      Change-Id: Ia0c5764de88d26e8bf5df5e8b09108f610845821
      af3a5e49
    • Nataniel Borges's avatar
      New FlickerTests: Start IME tests with app rotated by 90 degrees · 679b4f29
      Nataniel Borges authored
      am: 89888bf1
      
      Change-Id: I751551f28763adf691d64c17362c79c0061baa94
      679b4f29
    • Anna Trostanetski's avatar
      Merge "Rate limit non statsd logs." · c1abc259
      Anna Trostanetski authored
      am: e8e63908
      
      Change-Id: Ib6ef1c746f26ceb384f7ed586bfc769a05da271c
      c1abc259
    • Tobias Thierer's avatar
      Make MimeMap final and introduce MimeMap.Builder. · fd9657d0
      Tobias Thierer authored
      This CL topic introduces a new @CorePlatformApi MimeMap.Builder
      and uses it to make MimeMap a concrete, final, immutable type.
      
      This has the following advantages:
      
       - Consistency of behavior of MimeMap implementations with regards
         to lower-casing and treatment of null is trivial to guarantee
         because there is only one implementation.
       - The @CorePlatformApi surface now makes more sense. The responsibility
         for lower-casing and treatment of null was previously split between
         MimeMap in libcore and  MimeMapImpl in frameworks/base, which is why
         MimeMap.toLowerCase() and MimeMap.isNullOrEmpty() were in the
         @CorePlatformApi.
       - Most of the logic now lives in libcore / ART module.
         frameworks/base now has minimal logic. This makes it easier to write
         (in a follow-up CL) a CTS test that asserts all the default mappings,
         because that test can now duplicate that small amount of logic in
         order to read from a copy of the same data files.
      
      Note: The semantics of the @CorePlatformApi Builder.put(String, List<String>)
      are fairly complex, which isn't great. This was done because:
       - By following the semantics of the *mime.types file format, it allows
         us to minimize the logic in frameworks/base.
       - It's simpler than having multiple overloads of put() for
         mimeType -> file extension mapping and vice versa,
         and for whether or not any existing mapping should be overwritten.
         If we had named classes for MimeType and FileExtension with
         appropriate case-insensitive equals and hashCode semantics, then
         we could instead have API such as
            builder.asMimeToExtensionMap().put(...)
         but existing API (e.g. Intent.getType(), android.webkit.MimeTypeMap)
         has set precedent for treating these as Strings.
      
      Bug: 136256059
      Test: atest CtsLibcoreTestCases
      Test: atest CtsMimeMapTestCases
      
      Change-Id: I9a185a689745726dd79b15117892001461fa4a0d
      fd9657d0
    • Tobias Thierer's avatar
      Move default MimeMap implementation to frameworks. · 878c77b7
      Tobias Thierer authored
      This is the second attempt to submit this CL. The first attempt
      regressed on app startup because RuntimeInit installed the
      custom MimeMap from commonInit() which runs post-fork of the zygote,
      but that was fixed by installing it pre-fork.
      
      This CL topic moves the default MimeMap implementation to frameworks.
      Libcore starts with a minimal implementation sufficient to pass
      CtsLibcoreTestCases,  but frameworks can inject the real implementation.
      Before this CL topic, the data files and logic (MimeMapImpl) were part of
      core-*.jar on device; after this CL, they instead live in framework.jar.
      
      Tests from MimeMapTest that check behavior of that default
      implementation also move to a non-libcore CTS test.
      
      Planned work for follow-up CL:
       1. Make CTS more opinionated, with a plan to assert that all of
          the default mappings are present. How exactly the expectated
          mapping will be bundled in CTS is still TBD.
       2. Add a vendor.mime.types file (defaults to empty) where vendors
          can add additional mappings; I plan to make it such that mappings
          in that file are parsed last but never override any earlier
          mappings, as if each mime type / file extension was prefixed
          with '?'.
       3. Perhaps enforce that public APIs android.webkit.MimeTypeMap
          and java.net.URLConnection.getFileNameMap() behave consistently
          with MimeMap.getDefault().
      
      Test: atest CtsLibcoreTestCases
      Test: atest CtsMimeMapTestCases
      Test: Checked that CtsLibcoreTestCases still passes on a build that
            is missing the MimeMap.setDefault() call from RuntimeInit.java.
      Test: Checked that app startup time does not regress as part of this
            CL topic - see http://b/136256059#comment17
      Bug: 136256059
      
      Change-Id: I716914bf1a7e6205e539f0551f010615dacb17a8
      878c77b7
    • Treehugger Robot's avatar
      Merge changes from topic "flicker-rotation" · f2a739d5
      Treehugger Robot authored
      * changes:
        New FlickerTests: Run split screen tests at 0 and 90 degrees
        New FlickerTests: Start app warm and cold at both 0 and 90 degrees
        New FlickerTests: Start IME alongside the app (0 and 90 degrees)
        New FlickerTests: Start IME tests with app rotated by 90 degrees
      f2a739d5
    • Anna Trostanetski's avatar
      Merge "Rate limit non statsd logs." · e8e63908
      Anna Trostanetski authored
      e8e63908
    • atrost's avatar
      Rate limit non statsd logs. · a8f3c484
      atrost authored
      Limit 1 log per app launch as the statd logs as this is spamming logs.
      Consider increasing in the future to once every x minutes/seconds if
      needed.
      
      Bug: 138374585
      Bug: 141714588
      Test: flash device
      Change-Id: I3ed696fb557527d807d03aecc64c0207d7b93f08
      a8f3c484
    • Lorenzo Colitti's avatar
      Merge "Properly test TrafficController permissions on package updates." · e21f0cf1
      Lorenzo Colitti authored
      am: 0e45bfab
      
      Change-Id: Ia6d480739fadaa7b3277d9b6e9abc303b8e551b4
      e21f0cf1
    • Treehugger Robot's avatar
  4. Sep 26, 2019
Loading