• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

OWNERSD14-Jan-202452 21

README.mdD14-Jan-20241.7 KiB2926

README.md

1ExtServices module - TextClassifier
2=============================
3
4### TextClassifierService
5The TextClassifierService provides text classification related features for the system. It backs
6TextClassifier APIs and Android features such as smart text selection and smart suggestions in
7notifications. The ExtServices module contains the default text classifier implementation, the
8vendors can configure a custom TextClassifierService by specifying the
9config_defaultTextClassifierPackage in config.xml
10
11### Test
12- MTS
13- Manual test (TextClassifier infra)
14  - Select a text (e.g. phone number) and shows a popup menu to make sure the "Call" menu is shown.
15- Manual test (Model downloader)
16  1. Run: adb shell cmd device_config put textclassifier model_download_backoff_delay_in_millis 1
17  && adb shell cmd device_config put textclassifier model_download_manager_enabled true
18  && adb shell cmd device_config put textclassifier textclassifier_service_package_override
19  com.google.android.ext.services && adb shell cmd device_config put textclassifier
20  manifest_url_annotator_en
21  https://www.gstatic.com/android/text_classifier/r/experimental/v999999999/en.fb.manifest
22  && adb logcat | grep androidtc
23  2. Select any text several times on screen and observe the printed log. You should see "androidtc:
24     Loading ModelFile { type=annotator
25     path=/data/user/0/com.google.android.ext.services/files/textclassifier/downloads/models/https___www_gstatic_com_android_text_classifier_r_experimental_v999999999_en_fb.model
26     version=999999999 locales=en isAsset=false}".
27
28### Other resources
29- [Android 11 release text classifier](https://source.android.com/docs/core/display/textclassifier#11-release)