7ba3fd45461b2140ba291466e9420097aa8926cc
Issue: TextClassifierService failed to invoke the callback to send the result back to client occasionally because the callback object may be GCed. And thus smart selection failed occasionally, as the client doesn't get a response back when it hits this issue. It won't fallback to local textclassifier due to the timeout specified in TextView. Cause: We thought that ITextClassifierCallback is a "cross process" reference, and so we only store a weak reference of it to avoid leak. And it turns out that it is wrong. As soon as the weak ref gets GCed in the service, that counts as dropping the callback. The service doesn't know about any strong references the client has. Bug: 138865849 Test: Try smart selection over 30 times, make sure smart action is shown for every single time. Merged-In: Ia9218cf67e8d67697a0fdff22c7918a55efc39ca Change-Id: I4d89518dfff777ba5d999d9ba89d7f4cf7598e75
…
…
…
Merge "Switch android.test and junit classes to use UnsupportedAppUsage" am:
7bb0bcd305 am: b5ccf0e21c
…
Description
No description provided
Languages
Java
73.7%
Kotlin
14%
PowerBuilder
5.8%
C++
5.2%
AIDL
1%