summaryrefslogtreecommitdiff
path: root/core/jni/LayoutlibLoader.cpp
AgeCommit message (Collapse)Author
2020-11-02Add SQLite to libandroid_runtime for linux hostJerome Gaillard
This allows the possibility to use it with Layoutlib/Helium. Test: lunch sdk && m libandroid_runtime Change-Id: I93b1ebec968566aeb9209da607ce8a80489ed060
2020-09-15Use English locale for number format in layoutlibJerome Gaillard
Vector drawable path parsing relies on the locale numeric format using '.' as the decimal point. This sets the locale numeric format to English, in case the host locale breaks this assumption. Bug: 167164437 Test: checked manually Change-Id: Iad43f29a1c2b00039f5056f6244b9cf46f89b68c
2020-02-20Remove dependencies on headers outside UI moduleDerek Sollenberger
This includes AndroidRuntime and core_jni_helper.h Bug: 137655431 Test: CtsUiRenderingTestCases Change-Id: If3d26f41eaf4981505ee47634097f3645fd563fd
2020-02-13Move RenderNodeAnimator to android.graphics.animation packageDerek Sollenberger
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-12Build StrictJarFile for host.Brett Chabot
(cherry pick from I6c85c3b1e3d02c480a11ef3a3ba3df82ec01553c) Bug: 138449617 Test: m libandroid_runtime Change-Id: I969801d431e985d8f33ff5cb76ba67571cc6c8c9
2020-02-10Build native Interpolator for host.Brett Chabot
Test: make libandroid_runtime Change-Id: I36b714f929ae7087b667983ebe707a51ad24fe82
2020-02-05Remove debug printf from LayoutlibLoader.Brett Chabot
The output is confusing the simulated device result parser. Test: tools/test/simulated_device/run_all_tests_host.sh Change-Id: I55c997d2f07ec50c11485d27e1918484c8eb7e5a
2020-02-05Compile more jni classes for hostJerome Gaillard
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-05Build more native code for WindowsJerome Gaillard
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
2019-08-29Build native FileObserver for host.Brett Chabot
Test: ctesque/run_tests_host.sh Test: ctesque/run_cts_tests_host.sh Change-Id: Idfcee3edc08e5c98aa670cf45db7c5bb2f461593 (cherry picked from commit 0ccc1ce74ca5108c315cfa48846957c51a754a70)
2019-07-02Some JNI classes can only be compiled for LinuxJerome Gaillard
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-06-27Build native EventLog and XmlBlock for host linux.Brett Chabot
Test: tools/test/simulated_device/ctesque/run_tests_host.sh Change-Id: Icc5b8563b62e601ff6f5b49e4c7b6493cd41d85b
2019-06-27Build native AssetManager and friends for host linux.Brett Chabot
Test: tools/test/simulated_device/ctesque/run_tests_host.sh Change-Id: I4298502eea67a1676d97f84bf879c363fa926678
2019-06-27Build and potentially register Trace for host.Brett Chabot
Test: tools/test/simulated_device/ctesque/run_tests_host.sh Change-Id: If8b715f49752bf0aedb0287a271e9f6d9f8a35e1
2019-06-27Build and register native MessageQueue for host.Brett Chabot
Test: tools/test/simulated_device/ctesque/run_tests_host.sh Change-Id: If46d741e6727c012e69571c2a2441d0a06887030
2019-06-27Build native Log for host.Brett Chabot
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-27Build and register SystemProperties for hostBrett Chabot
Test: tools/test/simulated_device/ctesque/run_tests_host.sh Change-Id: I8cd4a377766a36549aebeba1094a71fcbb0c7e61
2019-06-27Compile SystemClock.cpp for host.Brett Chabot
Test: frameworks/layoutlib/bridge/tests/run_tests.sh Change-Id: If0e3eadbb4b576d11d408cffffa4f1a36d623435
2019-06-26Enable RenderNode and RecordingCanvas for layoutlibFedor Kudasov
Bug: 117921091 Test: all tests should pass Change-Id: I574b12a5f7a6a54cbbcb17c35a3884368fd404e6
2019-06-24Layoutlib native: make list of classes to register configurable.Jerome Gaillard
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-18Allow LayoutLibLoader customization.Brett Chabot
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-05-29Build native android graphics library for desktopJerome Gaillard
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