OSDN Git Service

Use the textclassifier library for smart selection
authorAbodunrinwa Toki <toki@google.com>
Thu, 2 Mar 2017 20:43:01 +0000 (20:43 +0000)
committerAbodunrinwa Toki <toki@google.com>
Sat, 11 Mar 2017 00:20:02 +0000 (00:20 +0000)
Test: cts-tradefed run cts-dev -m CtsViewTestCases -t android.view.textclassifier.cts.TextClassificationManagerTest
Bug: 34780447
Change-Id: I090654f266a214cba9346f954e14d8878146e343

core/java/android/view/textclassifier/LangId.java
core/java/android/view/textclassifier/SmartSelection.java
core/jni/Android.mk

index ada3c37..23c7842 100644 (file)
@@ -22,7 +22,7 @@ package android.view.textclassifier;
 final class LangId {
 
     static {
-        System.loadLibrary("smart-selection_jni");
+        System.loadLibrary("textclassifier");
     }
 
     private final long mModelPtr;
index c48cd06..9397a41 100644 (file)
@@ -23,7 +23,7 @@ package android.view.textclassifier;
 final class SmartSelection {
 
     static {
-        System.loadLibrary("smart-selection_jni");
+        System.loadLibrary("textclassifier");
     }
 
     private final long mCtx;
@@ -92,4 +92,3 @@ final class SmartSelection {
         }
     }
 }
-
index c9f9d6f..5665807 100644 (file)
@@ -287,6 +287,7 @@ LOCAL_SHARED_LIBRARIES := \
     libhwbinder \
     libvintf \
     libnativewindow \
+    libtextclassifier \
 
 LOCAL_SHARED_LIBRARIES += \
     libhwui \