Files
frameworks_base/startop/view_compiler/dex_builder_test
Eric Holk 960a1a4bc9 [view compiler] Add test coverage for layouts compiled from APK
The existing LayoutCompilerTest only covered compiled layouts generated from
text XML files. It did not cover layouts that were extracted from the APK. This
is an important area to cover.

This test works by calling `pm compile --compile-layouts` on the test APK, and
then directly loads the `compiled_view.dex` file. From there, it pulls out the
compiled layouts and executes their inflater. This makes sure the generated DEX
files validate and execute without error.

Bug: 111895153
Change-Id: Ifc6719c2f438474b5474def02422ef68eee800b2
2019-08-28 13:59:40 -07:00
..