87352c973719ca3c8a51839f550ef6d4abafae9f |
|
17-Mar-2018 |
Siyamed Sinir <siyamed@google.com> |
Enable developers to manually start metadata load This CL enables developers to configure EmojiCompat so that init() function would not call MetadataLoader.load(). Instead they can EmojiCompat.load anytime they want from any thread to initiate metadata loading. Starting the thread, and waiting for Handler to be constructed was the main cost for metadata load. Next 5X, N MR2: 0.24ms (previously 1.3ms) Pixel2 XL, P: 0.22ms Test: Added related configuration and behavior tests Test: ./gradlew emoji:connectedAndroidTest (API 18, and 26) Bug: 74617363 Change-Id: I3b125a881d38575cfdd4a0d5d073c5292f5a5c2a (cherry picked from commit bada358432bc32f482f9088dcb358f0a8032a624)
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/widget/EmojiTransformationMethodTest.java
|