Add HandwritingModelLoader for loading HandwritingLibrary.
(1) The HandwritingModel is loaded based on commandline flag "ondevice_handwriting" which is passed from chromeos USE flag. (2) "use_rootfs" means loading HandwritingModel from rootfs, which will simply pass the call to chromeos. (3) "use_dlc" means loading from dlc; which will take 3 steps: (a) verify that dlc already exists on device, return error otherwise. (b) mount the dlc, return error if mount fails. (c) pass LoadHandwritingModel to chromeos. (4) unit tests are added to test the Loader behaviour as described. Bug: 1054628 Change-Id: I3e06fd748573632a7207dc7d9de560f754598466 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2367257 Commit-Queue: Charles . <charleszhao@chromium.org> Reviewed-by:Andrew Moylan <amoylan@chromium.org> Reviewed-by:
Xinglong Luan <alanlxl@chromium.org> Reviewed-by:
Charles . <charleszhao@chromium.org> Cr-Commit-Position: refs/heads/master@{#806074}
Showing
Please register or sign in to comment