Commit Graph

20 Commits

Author SHA1 Message Date
Derek Sollenberger
c5882c4eb6 Remove dependencies on headers outside UI module
This includes AndroidRuntime and core_jni_helper.h

Bug: 137655431
Test: CtsUiRenderingTestCases
Change-Id: If3d26f41eaf4981505ee47634097f3645fd563fd
2020-02-20 21:49:44 -05:00
Derek Sollenberger
8c2f6b6e15 Move RenderNodeAnimator to android.graphics.animation package
A wrapper still exists at android.view.RenderNode animator
as it needs access to internals of the view that would violate
the package layering if moved into android.graphics.animation.

This CL also moves the Java and cpp files associated with creating
a native interpolator that can be run directly on the RenderThread.

Bug: 149293249
Test: CtsViewTestCases
Change-Id: I5260331fedbd634cf2f6d6d392941e7284527420
2020-02-13 16:14:06 -05:00
Brett Chabot
7484c6c83c Build StrictJarFile for host.
(cherry pick from I6c85c3b1e3d02c480a11ef3a3ba3df82ec01553c)
Bug: 138449617
Test: m libandroid_runtime

Change-Id: I969801d431e985d8f33ff5cb76ba67571cc6c8c9
2020-02-12 11:01:52 -08:00
Brett Chabot
e5ba00a44a Build native Interpolator for host.
Test: make libandroid_runtime
Change-Id: I36b714f929ae7087b667983ebe707a51ad24fe82
2020-02-10 15:56:07 +00:00
Brett Chabot
9923f37845 Remove debug printf from LayoutlibLoader.
The output is confusing the simulated device result parser.

Test: tools/test/simulated_device/run_all_tests_host.sh
Change-Id: I55c997d2f07ec50c11485d27e1918484c8eb7e5a
2020-02-05 17:32:28 +00:00
Jerome Gaillard
0e4893bb3a Compile more jni classes for host
This adds android_text_AndroidCharacter.cpp and
android_view_RenderNodeAnimator.cpp to the list of classes compiled for
host target.

Bug: 117921091
Test: lunch sdk && m libandroid_runtime
Change-Id: I3f9dc5af4ecf5ae4b6f336a5c95d043222f72c38
2020-02-05 17:30:53 +00:00
Jerome Gaillard
84d3814981 Build more native code for Windows
Build android_os_Trace.cpp, android_util_StringBlock.cpp and
android_util_XmlBlock.cpp on Windows as well.

Bug: 117921091
Test: layoutlib tests
Change-Id: I9c676aa1f2fb3ba6b78b1a6cbd9c8c25cfab0958
2020-02-05 17:28:45 +00:00
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