Commit Graph

13 Commits

Author SHA1 Message Date
Brett Chabot
dcb31f21a6 Build native FileObserver for host.
Test: ctesque/run_tests_host.sh
Test: ctesque/run_cts_tests_host.sh

Change-Id: Idfcee3edc08e5c98aa670cf45db7c5bb2f461593
(cherry picked from commit 0ccc1ce74ca5108c315cfa48846957c51a754a70)
2019-08-29 13:31:48 +00:00
Jerome Gaillard
482d7559d5 Some JNI classes can only be compiled for Linux
Those classes are not used for layoutlib, so cross-platform is not
currently required.

Bug: N/A
Test: m libandroid_runtime on mac
Change-Id: I0e37c7b110cdce35fcb1348ba036e331e64f474b
2019-07-02 19:40:56 +01:00
Brett Chabot
6f014b469f Build native EventLog and XmlBlock for host linux.
Test: tools/test/simulated_device/ctesque/run_tests_host.sh

Change-Id: Icc5b8563b62e601ff6f5b49e4c7b6493cd41d85b
2019-06-27 18:02:52 +01:00
Brett Chabot
15c7bcd010 Build native AssetManager and friends for host linux.
Test: tools/test/simulated_device/ctesque/run_tests_host.sh

Change-Id: I4298502eea67a1676d97f84bf879c363fa926678
2019-06-27 18:02:03 +01:00
Brett Chabot
5ee1d66486 Build and potentially register Trace for host.
Test: tools/test/simulated_device/ctesque/run_tests_host.sh
Change-Id: If8b715f49752bf0aedb0287a271e9f6d9f8a35e1
2019-06-27 17:50:01 +01:00
Brett Chabot
e7612ba65c Build and register native MessageQueue for host.
Test: tools/test/simulated_device/ctesque/run_tests_host.sh

Change-Id: If46d741e6727c012e69571c2a2441d0a06887030
2019-06-27 17:49:32 +01:00
Brett Chabot
f6565d8936 Build native Log for host.
Test: tools/test/simulated_device/ctesque/run_tests_host.sh
Test: tools/test/simulated_device/ctesque/run_tests_device.sh
Change-Id: I702d547d4e84ac69b39d2652792b06dcdefda2da
2019-06-27 17:49:12 +01:00
Brett Chabot
96495db869 Build and register SystemProperties for host
Test: tools/test/simulated_device/ctesque/run_tests_host.sh
Change-Id: I8cd4a377766a36549aebeba1094a71fcbb0c7e61
2019-06-27 17:48:35 +01:00
Brett Chabot
78aaa0e787 Compile SystemClock.cpp for host.
Test: frameworks/layoutlib/bridge/tests/run_tests.sh

Change-Id: If0e3eadbb4b576d11d408cffffa4f1a36d623435
2019-06-27 17:47:51 +01:00
Fedor Kudasov
86bd214059 Enable RenderNode and RecordingCanvas for layoutlib
Bug: 117921091
Test: all tests should pass
Change-Id: I574b12a5f7a6a54cbbcb17c35a3884368fd404e6
2019-06-26 19:24:15 +00:00
Jerome Gaillard
a6885fd9c2 Layoutlib native: make list of classes to register configurable.
Test: frameworks/layoutlib/bridge/tests/run_tests.sh
Test: tools/test/simulated_device/ctesque/run_tests_host.sh
Change-Id: I1b2e13d03b78d085b14adfcf1aa5a8fc19d463cc
(cherry picked from commit 0fca16a8fae9f146a2bc7b6ab1fdb99bb3b7db18)
2019-06-24 11:00:12 +01:00
Brett Chabot
858c2e7eed Allow LayoutLibLoader customization.
Read NativeDelegates from a NativeConfig class instead of CreateInfo.
Read icu data dir from a System property.

Test: frameworks/layoutlib/bridge/tests/run_tests.sh
Change-Id: Ifbd5067aad36b2298c542031df9ccb950cfa0d28
(cherry picked from commit 2944f345a81a5bec2fa355fdf9556e0dbfb94cdd)
2019-06-18 14:54:53 +00:00
Jerome Gaillard
21e7e2d9b1 Build native android graphics library for desktop
The purpose of this is to be able to use the native graphics code from
the Android platform directly in Android Studio (running on desktop) to
do layout rendering.

This creates a host library that is a subset of libandroid_runtime
including only the JNI files relevant to Android graphics. It also
includes LayoutlibLoader.cpp which is used to load the JNI when using
it as part of layoutlib (the graphics library for Android Studio).

This also creates libhwui-host, a host library that is a subset of
libhwui.

Bug: 117921091
Test: lunch sdk && m libandroid_runtime
Change-Id: I3850020d2d4c13c85e377476bc463d3eb6a01c6d
2019-05-29 15:48:53 +01:00