Skip to content
Snippets Groups Projects
  1. Nov 29, 2023
    • Makoto Onuki's avatar
      HostStubGen: Write verbose/debug log to a file · 623cffb0
      Makoto Onuki authored
      See below for the log filename.
      
      Also disable an unimplemented flag.
      
      Bug: 311174191
      Test: ./scripts/run-all-tests.sh
      Test: m framework-minus-apex.ravenwood
          and examine console output and
          out/soong/.intermediates/frameworks/base/framework-minus-apex.ravenwood-base/android_common/gen/hoststubgen_framework-minus-apex.log
      Change-Id: I9997370c93e2fe90276d5f3e657d45d440ca0a59
      623cffb0
    • Jeff Sharkey's avatar
      Verify `android.test.mock` under Ravenwood. · de344710
      Jeff Sharkey authored
      Even though developers are encouraged to use Mockito, existing tests
      may still be using this old library for their mocking.
      
      We'll circle back later to consider support for components such as
      ContentProvider, Service, etc.
      
      Clean up OWNERS.
      
      Bug: 310268946
      Test: atest android.test.mock.ravenwood.tests
      Change-Id: Ie3f4ccea9cf6719d61cff277a627825868edc992
      de344710
  2. Nov 21, 2023
    • Makoto Onuki's avatar
      HostStubGen: Stub generation is now optional, etc · c8a04dca
      Makoto Onuki authored
      - Now both --out-stub-jar and --out-impl-jar are optional
      - Disable --enable-non-stub-method-check by default
        (it's not fully implemented anyway)
      - Delete the script `run-ravenwood-test` since now atest
        just works.
      
      Test: run-all-tests.sh
      Bug: 292141694
      Change-Id: I3b7d63600139425e5fffc12930ee860edf2acd7f
      c8a04dca
  3. Nov 16, 2023
    • Jeff Sharkey's avatar
      Build `ravenwood-junit` against `test_current`. · 41cfbb3f
      Jeff Sharkey authored
      Some CTS tests desire to link against `test_current` to prove to
      themselves that they're not touching hidden APIs.  This means if they
      also want to use our `ravenwood-junit` rules, that dependency also
      needs to link against `test_current`.
      
      Since we're reaching down into plenty of hidden details when we're
      actually running on a Ravenwood runtime, we split into a `stub` and
      an `impl` library, so that we give a cleanly compiling library to
      to clients, which is then replaced under the Ravenwood runtime.
      
      Bug: 292141694
      Test: atest-dev CtsTextTestCasesRavenwood CtsTextTestCases
      Change-Id: I96dbc9643324a7853a992e97b51a88f70eb721f3
      41cfbb3f
  4. Nov 15, 2023
    • Jeff Sharkey's avatar
      [1/?] Support android.content for Ravenwood. · 73067713
      Jeff Sharkey authored
      Initial pass at foundational classes under android.content, along
      with CTS to verify consistency.
      
      Methods that interface to broader parts of OS remain marked as
      "throw" for the moment, such as cross-process work and StrictMode.
      
      Bug: 292141694
      Test: atest-dev CtsOsTestCasesRavenwood CtsOsTestCases
      Test: atest-dev CtsContentTestCasesRavenwood CtsContentTestCases
      Change-Id: Ic3deafb1f4058fcc104882a3508728994669f7d2
      73067713
  5. Nov 10, 2023
  6. Nov 08, 2023
    • Jeff Sharkey's avatar
      Support Parcel, Bundle under Ravenwood, with CTS. · 91f414e4
      Jeff Sharkey authored
      We have baseline implementations of the Parcel and Bundle, so we're
      ready to support them under the Ravenwood environment.  Brings along
      the relevant CTS to prove that it works consistently on both devices
      and Ravenwood.  Make a few test-driven bug fixes to Parcel code.
      
      Currently does not support FDs or Binders.
      
      Add new `@IgnoreUnderRavenwood` annotation that is respected by a
      new `RavenwoodRule`, letting the same test code be shared to run
      under both devices and Ravenwood.  Currently packaged under our own
      area of the tree, but named to match layout of `platform_testing`
      for future migration.
      
      Add "ThrowClass" policy.
      
      Bug: 292141694
      Test: atest-dev CtsOsTestCasesRavenwood CtsOsTestCases:ParcelTest CtsOsTestCases:BundleTest
      Change-Id: I88d19afff47fbea6557e922a10e8555ee0f70ba3
      91f414e4
  7. Nov 03, 2023
    • Makoto Onuki's avatar
      Add `android_ravenwood_test` build rule · c69a84e4
      Makoto Onuki authored
      Since we're unable to compile libcore classes for the device,
      we temporarily pivot usages to our own copy of EmptyArray.
      
      Bug: 292141694
      Test: m nothing --no-skip-soong-tests
      Test: m hoststubgen ravenwood-runtime tradefed atest && atest-dev HostStubGenTest-framework-test
      Change-Id: I9d4ff559924e47725eb3e897aaf2cc93e9b1a193
      c69a84e4
  8. Oct 16, 2023
  9. Oct 09, 2023
    • Makoto Onuki's avatar
      Start adding build rules for ravenwood · 3aefe338
      Makoto Onuki authored
      - Add "framework-minus-apex.ravenwood".
      - Update the behavior of: --default-throw:
        - Now this will "keep" the subject classes and fields.
      - When a 'throw' directive is specified on a static initializer,
        it's now handled as 'keep', because otherwise the class
        wouldn't be usable.
      
      Test: ./scripts/run-all-tests.sh
      Test: m framework-minus-apex.ravenwood
      Bug: 292141694
      Change-Id: If4d650dc175a5a78cf8844dfed2217c19f2d5790
      3aefe338
Loading