Change package for LangId and SmartSelection.

Package change from android.text to android.view.textclassifier.
This change was delayed until the native library code was updated
to reflect this package change.

Test: cts-tradefed run cts-dev -m CtsViewTestCases -t android.view.textclassifier.cts.TextClassificationManagerTest
Bug: 34777495
Change-Id: I723aaf79f8fbed4758bb4ee6727dfb6a8e35bf99
This commit is contained in:
Abodunrinwa Toki
2017-02-09 22:41:58 +00:00
parent 5706614868
commit f67f0a584e
4 changed files with 6 additions and 14 deletions

View File

@@ -13,16 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.text;
package android.view.textclassifier;
/**
* Java wrapper for LangId native library interface.
* This class is used to detect languages in text.
* @hide
*/
public final class LangId {
// TODO: Move this to android.view.textclassifier and make it package-private.
// We'll have to update the native library code to do this.
final class LangId {
static {
System.loadLibrary("smart-selection_jni");
@@ -33,7 +30,7 @@ public final class LangId {
/**
* Creates a new instance of LangId predictor, using the provided model image.
*/
public LangId(int fd) {
LangId(int fd) {
mModelPtr = nativeNew(fd);
}

View File

@@ -14,16 +14,13 @@
* limitations under the License.
*/
package android.text;
package android.view.textclassifier;
/**
* Java wrapper for SmartSelection native library interface.
* This library is used for detecting entities in text.
* @hide
*/
public final class SmartSelection {
// TODO: Move this to android.view.textclassifier and make it package-private.
// We'll have to update the native library code to do this.
final class SmartSelection {
static {
System.loadLibrary("smart-selection_jni");
@@ -35,7 +32,7 @@ public final class SmartSelection {
* Creates a new instance of SmartSelect predictor, using the provided model image,
* given as a file descriptor.
*/
public SmartSelection(int fd) {
SmartSelection(int fd) {
mCtx = nativeNew(fd);
}

View File

@@ -19,7 +19,6 @@ package android.view.textclassifier;
import android.annotation.NonNull;
import android.content.Context;
import android.os.ParcelFileDescriptor;
import android.text.LangId;
import android.util.Log;
import com.android.internal.util.Preconditions;

View File

@@ -27,7 +27,6 @@ import android.graphics.drawable.Drawable;
import android.icu.text.BreakIterator;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.text.SmartSelection;
import android.text.Spannable;
import android.text.TextUtils;
import android.text.method.WordIterator;