Migrated various apps under packages/inputmethods/LatinIME/ to androidx

Bug: 76692459
Test: mmma packages/inputmethods/LatinIME/
Change-Id: Ib76af6f6db1a0dd5cf64a06a4ea56151712e9692
This commit is contained in:
vineel sadineni 2018-05-15 14:55:43 -07:00
parent 0511b14a80
commit d256927b93
19 changed files with 28 additions and 28 deletions

View file

@ -29,7 +29,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
android-common inputmethod-common jsr305 latinime-common android-common inputmethod-common jsr305 latinime-common
LOCAL_STATIC_ANDROID_LIBRARIES := \ LOCAL_STATIC_ANDROID_LIBRARIES := \
android-support-v4 androidx.legacy_legacy-support-v4
LOCAL_USE_AAPT2 := true LOCAL_USE_AAPT2 := true

View file

@ -71,7 +71,7 @@
android:soundEffectsEnabled="false" android:soundEffectsEnabled="false"
android:contentDescription="@string/spoken_description_delete" /> android:contentDescription="@string/spoken_description_delete" />
</LinearLayout> </LinearLayout>
<android.support.v4.view.ViewPager <androidx.viewpager.widget.ViewPager
android:id="@+id/emoji_keyboard_pager" android:id="@+id/emoji_keyboard_pager"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />

View file

@ -21,7 +21,7 @@ import android.media.AudioManager;
import android.os.Build; import android.os.Build;
import android.os.SystemClock; import android.os.SystemClock;
import android.provider.Settings; import android.provider.Settings;
import android.support.v4.view.accessibility.AccessibilityEventCompat; import androidx.core.view.accessibility.AccessibilityEventCompat;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log; import android.util.Log;
import android.view.MotionEvent; import android.view.MotionEvent;

View file

@ -18,9 +18,9 @@ package com.android.inputmethod.accessibility;
import android.content.Context; import android.content.Context;
import android.os.SystemClock; import android.os.SystemClock;
import android.support.v4.view.AccessibilityDelegateCompat; import androidx.core.view.AccessibilityDelegateCompat;
import android.support.v4.view.ViewCompat; import androidx.core.view.ViewCompat;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
import android.util.Log; import android.util.Log;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.View; import android.view.View;

View file

@ -18,11 +18,11 @@ package com.android.inputmethod.accessibility;
import android.graphics.Rect; import android.graphics.Rect;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.view.ViewCompat; import androidx.core.view.ViewCompat;
import android.support.v4.view.accessibility.AccessibilityEventCompat; import androidx.core.view.accessibility.AccessibilityEventCompat;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
import android.support.v4.view.accessibility.AccessibilityNodeProviderCompat; import androidx.core.view.accessibility.AccessibilityNodeProviderCompat;
import android.support.v4.view.accessibility.AccessibilityRecordCompat; import androidx.core.view.accessibility.AccessibilityRecordCompat;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityEvent;

View file

@ -19,7 +19,7 @@ package com.android.inputmethod.compat;
import android.content.Context; import android.content.Context;
import android.os.Build; import android.os.Build;
import android.os.UserManager; import android.os.UserManager;
import android.support.annotation.IntDef; import androidx.annotation.IntDef;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.reflect.Method; import java.lang.reflect.Method;

View file

@ -20,7 +20,7 @@ import android.view.View;
import java.lang.reflect.Method; import java.lang.reflect.Method;
// TODO: Use {@link android.support.v4.view.ViewCompat} instead of this utility class. // TODO: Use {@link androidx.core.view.ViewCompat} instead of this utility class.
// Currently {@link #getPaddingEnd(View)} and {@link #setPaddingRelative(View,int,int,int,int)} // Currently {@link #getPaddingEnd(View)} and {@link #setPaddingRelative(View,int,int,int,int)}
// are missing from android-support-v4 static library in KitKat SDK. // are missing from android-support-v4 static library in KitKat SDK.
public final class ViewCompatUtils { public final class ViewCompatUtils {

View file

@ -17,7 +17,7 @@
package com.android.inputmethod.keyboard.emoji; package com.android.inputmethod.keyboard.emoji;
import android.content.res.Resources; import android.content.res.Resources;
import android.support.v4.view.ViewPager; import androidx.viewpager.widget.ViewPager;
import android.view.View; import android.view.View;
import android.widget.LinearLayout; import android.widget.LinearLayout;

View file

@ -16,7 +16,7 @@
package com.android.inputmethod.keyboard.emoji; package com.android.inputmethod.keyboard.emoji;
import android.support.v4.view.PagerAdapter; import androidx.viewpager.widget.PagerAdapter;
import android.util.Log; import android.util.Log;
import android.util.SparseArray; import android.util.SparseArray;
import android.view.LayoutInflater; import android.view.LayoutInflater;

View file

@ -23,7 +23,7 @@ import android.content.res.Resources;
import android.content.res.TypedArray; import android.content.res.TypedArray;
import android.graphics.Color; import android.graphics.Color;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.support.v4.view.ViewPager; import androidx.viewpager.widget.ViewPager;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.util.Pair; import android.util.Pair;
import android.util.TypedValue; import android.util.TypedValue;

View file

@ -16,7 +16,7 @@
package com.android.inputmethod.latin.accounts; package com.android.inputmethod.latin.accounts;
import android.support.annotation.NonNull; import androidx.annotation.NonNull;
import javax.annotation.Nullable; import javax.annotation.Nullable;

View file

@ -21,8 +21,8 @@ import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.NonNull; import androidx.annotation.NonNull;
import android.support.v4.app.ActivityCompat; import androidx.core.app.ActivityCompat;
/** /**
* An activity to help request permissions. It's used when no other activity is available, e.g. in * An activity to help request permissions. It's used when no other activity is available, e.g. in

View file

@ -20,9 +20,9 @@ import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.os.Build; import android.os.Build;
import android.support.annotation.NonNull; import androidx.annotation.NonNull;
import android.support.v4.app.ActivityCompat; import androidx.core.app.ActivityCompat;
import android.support.v4.content.ContextCompat; import androidx.core.content.ContextCompat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View file

@ -26,7 +26,7 @@ import android.os.Bundle;
import android.preference.Preference; import android.preference.Preference;
import android.preference.PreferenceFragment; import android.preference.PreferenceFragment;
import android.preference.PreferenceGroup; import android.preference.PreferenceGroup;
import android.support.v4.view.ViewCompat; import androidx.core.view.ViewCompat;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Log; import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;

View file

@ -25,7 +25,7 @@ import android.app.ActionBar;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.preference.PreferenceActivity; import android.preference.PreferenceActivity;
import android.support.v4.app.ActivityCompat; import androidx.core.app.ActivityCompat;
import android.view.MenuItem; import android.view.MenuItem;
public final class SettingsActivity extends PreferenceActivity public final class SettingsActivity extends PreferenceActivity

View file

@ -21,7 +21,7 @@ import android.content.res.ColorStateList;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Paint; import android.graphics.Paint;
import android.graphics.Path; import android.graphics.Path;
import android.support.v4.view.ViewCompat; import androidx.core.view.ViewCompat;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;

View file

@ -20,7 +20,7 @@ import android.content.Context;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Paint; import android.graphics.Paint;
import android.graphics.Path; import android.graphics.Path;
import android.support.v4.view.ViewCompat; import androidx.core.view.ViewCompat;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.View; import android.view.View;

View file

@ -24,7 +24,7 @@ import android.content.Intent;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.preference.PreferenceActivity; import android.preference.PreferenceActivity;
import android.support.v4.app.ActivityCompat; import androidx.core.app.ActivityCompat;
/** /**
* Spell checker preference screen. * Spell checker preference screen.

View file

@ -21,7 +21,7 @@ import android.content.res.Resources;
import android.content.res.TypedArray; import android.content.res.TypedArray;
import android.graphics.Color; import android.graphics.Color;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.support.v4.view.ViewCompat; import androidx.core.view.ViewCompat;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.util.TypedValue; import android.util.TypedValue;