Skip to content
Snippets Groups Projects
  1. Feb 21, 2018
    • Paul Duffin's avatar
      Build android.test.base/legacy against SDK · 4cdec674
      Paul Duffin authored
      android.test.legacy is now build against SDK, thus available to apps
      build with SDK.
      
      In doing so, android.test.mock.stubs had to be built with SDK (because
      it is used by android.test.legacy). However, this wasn't trivial.
      
      The problem was that some classes in test-mock implemented abstract
      methods of platform classes. Even though they are marked as @hide,
      doclava automatically emit them to the stub file because otherwise the
      class in the stub file does not implement some abstract methods from its
      parent class, which in turn makes the stub file non-compilable.
      
      This CL solves the problem by introducing an adapter class in between
      the class in test-mock and the class in the framework. The adapter class
      implements abstract methods which are @hide and having reference to
      types that aren't available to SDK. The abstract methods are removed
      from the original class. Then doclava does not emit the abstract
      methods.
      
      Also by @hide'ing the adapter classes, they are not compiled when
      building the stub library.
      
      Bug: 30188076
      Bug: 73339598
      Test: m -j android.test.base
      Test: m -j android.test.legacy
      Test: m -j android.test.mock.stubs
      are successful and do not show link-check warning
      Merged-In: I8e432950e693ee3c6f0240852e62da6133d31571
      Change-Id: I8e432950e693ee3c6f0240852e62da6133d31571
      4cdec674
  2. Feb 18, 2018
    • Paul Duffin's avatar
      Fix visibility issues with android.test.mock.stubs · d89c7790
      Paul Duffin authored
      This ensures that the API definitions for the android.test.mock package
      matches the definitions in the api/current.txt file.
      
      Bug: 30188076
      Test: make update-api
      (cherry-picked from commit bd97e3dd)
      
      Merged-In: Id325b8cf2f189117ac4cfe7634095ab710eee004
      Change-Id: Id325b8cf2f189117ac4cfe7634095ab710eee004
      d89c7790
  3. Feb 17, 2018
  4. Feb 16, 2018
  5. Feb 15, 2018
  6. Feb 14, 2018
Loading