diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-07-29 15:20:21 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-07-29 15:20:21 -0700 |
commit | 0e3de6cacaffcfeda4d6353be61e2f1f9ed80705 (patch) | |
tree | a3ff442ca1aa810866d9a8ba5524764f5150246e /core/java/android/view | |
parent | eda1cc50cead674287616e6a852f8f281b70b9f5 (diff) | |
download | frameworks_base-0e3de6cacaffcfeda4d6353be61e2f1f9ed80705.zip frameworks_base-0e3de6cacaffcfeda4d6353be61e2f1f9ed80705.tar.gz frameworks_base-0e3de6cacaffcfeda4d6353be61e2f1f9ed80705.tar.bz2 |
Change MNC codename to just M.
Change-Id: I4281d200ff6560791c47cf9073ceea1cb509361e
Diffstat (limited to 'core/java/android/view')
-rw-r--r-- | core/java/android/view/View.java | 23 | ||||
-rw-r--r-- | core/java/android/view/ViewGroup.java | 12 | ||||
-rw-r--r-- | core/java/android/view/ViewRootImpl.java | 3 | ||||
-rw-r--r-- | core/java/android/view/inputmethod/EditorInfo.java | 8 |
4 files changed, 23 insertions, 23 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index de61c31..5e3a96a 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -56,7 +56,6 @@ import android.graphics.Shader; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.hardware.display.DisplayManagerGlobal; -import android.os.Build; import android.os.Build.VERSION_CODES; import android.os.Bundle; import android.os.Handler; @@ -3802,14 +3801,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // of whether a layout was requested on that View. sIgnoreMeasureCache = targetSdkVersion < KITKAT; - Canvas.sCompatibilityRestore = targetSdkVersion < MNC; + Canvas.sCompatibilityRestore = targetSdkVersion < M; - // In MNC and newer, our widgets can pass a "hint" value in the size + // In M and newer, our widgets can pass a "hint" value in the size // for UNSPECIFIED MeasureSpecs. This lets child views of scrolling containers // know what the expected parent size is going to be, so e.g. list items can size // themselves at 1/3 the size of their container. It breaks older apps though, // specifically apps that use some popular open source libraries. - sUseZeroUnspecifiedMeasureSpec = targetSdkVersion < MNC; + sUseZeroUnspecifiedMeasureSpec = targetSdkVersion < M; sCompatibilityDone = true; } @@ -4277,27 +4276,27 @@ public class View implements Drawable.Callback, KeyEvent.Callback, PROVIDER_BACKGROUND)); break; case R.styleable.View_foreground: - if (targetSdkVersion >= VERSION_CODES.MNC || this instanceof FrameLayout) { + if (targetSdkVersion >= VERSION_CODES.M || this instanceof FrameLayout) { setForeground(a.getDrawable(attr)); } break; case R.styleable.View_foregroundGravity: - if (targetSdkVersion >= VERSION_CODES.MNC || this instanceof FrameLayout) { + if (targetSdkVersion >= VERSION_CODES.M || this instanceof FrameLayout) { setForegroundGravity(a.getInt(attr, Gravity.NO_GRAVITY)); } break; case R.styleable.View_foregroundTintMode: - if (targetSdkVersion >= VERSION_CODES.MNC || this instanceof FrameLayout) { + if (targetSdkVersion >= VERSION_CODES.M || this instanceof FrameLayout) { setForegroundTintMode(Drawable.parseTintMode(a.getInt(attr, -1), null)); } break; case R.styleable.View_foregroundTint: - if (targetSdkVersion >= VERSION_CODES.MNC || this instanceof FrameLayout) { + if (targetSdkVersion >= VERSION_CODES.M || this instanceof FrameLayout) { setForegroundTintList(a.getColorStateList(attr)); } break; case R.styleable.View_foregroundInsidePadding: - if (targetSdkVersion >= VERSION_CODES.MNC || this instanceof FrameLayout) { + if (targetSdkVersion >= VERSION_CODES.M || this instanceof FrameLayout) { if (mForegroundInfo == null) { mForegroundInfo = new ForegroundInfo(); } @@ -11417,10 +11416,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * strongly recommended for performance reasons to either override * {@link #hasOverlappingRendering()} to return <code>false</code> if appropriate, or setting a * {@link #setLayerType(int, android.graphics.Paint) layer type} on the view for the duration - * of the animation. On versions {@link android.os.Build.VERSION_CODES#MNC} and below, + * of the animation. On versions {@link android.os.Build.VERSION_CODES#M} and below, * the default path for rendering an unlayered View with alpha could add multiple milliseconds * of rendering cost, even for simple or small views. Starting with - * {@link android.os.Build.VERSION_CODES#MNC}, {@link #LAYER_TYPE_HARDWARE} is automatically + * {@link android.os.Build.VERSION_CODES#M}, {@link #LAYER_TYPE_HARDWARE} is automatically * applied to the view at the rendering level.</p> * * <p>If this view overrides {@link #onSetAlpha(int)} to return true, then this view is @@ -11431,7 +11430,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * associated with a {@link #setLayerPaint(android.graphics.Paint) layer paint}, setting an * alpha value less than 1.0 will supersede the alpha of the layer paint.</p> * - * <p>Starting with {@link android.os.Build.VERSION_CODES#MNC}, setting a translucent alpha + * <p>Starting with {@link android.os.Build.VERSION_CODES#M}, setting a translucent alpha * value will clip a View to its bounds, unless the View returns <code>false</code> from * {@link #hasOverlappingRendering}.</p> * diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index 6dca26b..fab81a4 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -5467,7 +5467,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * @see #setAnimationCacheEnabled(boolean) * @see View#setDrawingCacheEnabled(boolean) * - * @deprecated As of {@link android.os.Build.VERSION_CODES#MNC}, this property is ignored. + * @deprecated As of {@link android.os.Build.VERSION_CODES#M}, this property is ignored. * Caching behavior of children may be controlled through {@link View#setLayerType(int, Paint)}. */ public boolean isAnimationCacheEnabled() { @@ -5485,7 +5485,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * @see #isAnimationCacheEnabled() * @see View#setDrawingCacheEnabled(boolean) * - * @deprecated As of {@link android.os.Build.VERSION_CODES#MNC}, this property is ignored. + * @deprecated As of {@link android.os.Build.VERSION_CODES#M}, this property is ignored. * Caching behavior of children may be controlled through {@link View#setLayerType(int, Paint)}. */ public void setAnimationCacheEnabled(boolean enabled) { @@ -5502,7 +5502,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * @see #setChildrenDrawnWithCacheEnabled(boolean) * @see View#setDrawingCacheEnabled(boolean) * - * @deprecated As of {@link android.os.Build.VERSION_CODES#MNC}, this property is ignored. + * @deprecated As of {@link android.os.Build.VERSION_CODES#M}, this property is ignored. * Child views may no longer have their caching behavior disabled by parents. */ public boolean isAlwaysDrawnWithCacheEnabled() { @@ -5526,7 +5526,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * @see View#setDrawingCacheEnabled(boolean) * @see View#setDrawingCacheQuality(int) * - * @deprecated As of {@link android.os.Build.VERSION_CODES#MNC}, this property is ignored. + * @deprecated As of {@link android.os.Build.VERSION_CODES#M}, this property is ignored. * Child views may no longer have their caching behavior disabled by parents. */ public void setAlwaysDrawnWithCacheEnabled(boolean always) { @@ -5542,7 +5542,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * @see #setAlwaysDrawnWithCacheEnabled(boolean) * @see #setChildrenDrawnWithCacheEnabled(boolean) * - * @deprecated As of {@link android.os.Build.VERSION_CODES#MNC}, this property is ignored. + * @deprecated As of {@link android.os.Build.VERSION_CODES#M}, this property is ignored. * Child views may no longer be forced to cache their rendering state by their parents. * Use {@link View#setLayerType(int, Paint)} on individual Views instead. */ @@ -5563,7 +5563,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * @see #setAlwaysDrawnWithCacheEnabled(boolean) * @see #isChildrenDrawnWithCacheEnabled() * - * @deprecated As of {@link android.os.Build.VERSION_CODES#MNC}, this property is ignored. + * @deprecated As of {@link android.os.Build.VERSION_CODES#M}, this property is ignored. * Child views may no longer be forced to cache their rendering state by their parents. * Use {@link View#setLayerType(int, Paint)} on individual Views instead. */ diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index c22c0ef..928fe93 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -79,7 +79,6 @@ import android.widget.Scroller; import com.android.internal.R; import com.android.internal.os.SomeArgs; import com.android.internal.policy.PhoneFallbackEventHandler; -import com.android.internal.util.ScreenShapeHelper; import com.android.internal.view.BaseSurfaceHolder; import com.android.internal.view.RootViewSurfaceTaker; @@ -5923,7 +5922,7 @@ public final class ViewRootImpl implements ViewParent, } private void adjustInputEventForCompatibility(InputEvent e) { - if (mTargetSdkVersion < Build.VERSION_CODES.MNC && e instanceof MotionEvent) { + if (mTargetSdkVersion < Build.VERSION_CODES.M && e instanceof MotionEvent) { MotionEvent motion = (MotionEvent) e; final int mask = MotionEvent.BUTTON_STYLUS_PRIMARY | MotionEvent.BUTTON_STYLUS_SECONDARY; diff --git a/core/java/android/view/inputmethod/EditorInfo.java b/core/java/android/view/inputmethod/EditorInfo.java index 76c8fbd..6130fd5 100644 --- a/core/java/android/view/inputmethod/EditorInfo.java +++ b/core/java/android/view/inputmethod/EditorInfo.java @@ -303,10 +303,12 @@ public class EditorInfo implements InputType, Parcelable { * {@link android.os.Build.VERSION_CODES#LOLLIPOP_MR1} and prior, do not trust this package * name. The system had not verified the consistency between the package name here and * application's uid. Consider to use {@link InputBinding#getUid()}, which is trustworthy. - * Starting from Android MNC, the system verifies the consistency between this package name - * and application uid before {@link EditorInfo} is passed to the input method.</p> + * Starting from {@link android.os.Build.VERSION_CODES#M}, the system verifies the consistency + * between this package name and application uid before {@link EditorInfo} is passed to the + * input method.</p> * - * <p><strong>Editor authors:</strong> Starting from Android MNC, the application is no longer + * <p><strong>Editor authors:</strong> Starting from {@link android.os.Build.VERSION_CODES#M}, + * the application is no longer * able to establish input connections if the package name provided here is inconsistent with * application's uid.</p> */ |