Merge "Hide RTL related APIs"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b6e43268f9
@@ -8899,7 +8899,6 @@ package android.graphics.drawable {
|
||||
method public int getMinimumWidth();
|
||||
method public abstract int getOpacity();
|
||||
method public boolean getPadding(android.graphics.Rect);
|
||||
method public int getResolvedLayoutDirectionSelf();
|
||||
method public int[] getState();
|
||||
method public android.graphics.Region getTransparentRegion();
|
||||
method public void inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
|
||||
@@ -8934,10 +8933,6 @@ package android.graphics.drawable {
|
||||
method public abstract void unscheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable);
|
||||
}
|
||||
|
||||
public static abstract interface Drawable.Callback2 implements android.graphics.drawable.Drawable.Callback {
|
||||
method public abstract int getResolvedLayoutDirection(android.graphics.drawable.Drawable);
|
||||
}
|
||||
|
||||
public static abstract class Drawable.ConstantState {
|
||||
ctor public Drawable.ConstantState();
|
||||
method public abstract int getChangingConfigurations();
|
||||
@@ -22669,7 +22664,7 @@ package android.view {
|
||||
method public void recycle();
|
||||
}
|
||||
|
||||
public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback2 android.view.KeyEvent.Callback {
|
||||
public class View implements android.view.accessibility.AccessibilityEventSource android.view.KeyEvent.Callback {
|
||||
ctor public View(android.content.Context);
|
||||
ctor public View(android.content.Context, android.util.AttributeSet);
|
||||
ctor public View(android.content.Context, android.util.AttributeSet, int);
|
||||
@@ -22686,7 +22681,6 @@ package android.view {
|
||||
method public void buildDrawingCache();
|
||||
method public void buildDrawingCache(boolean);
|
||||
method public void buildLayer();
|
||||
method protected boolean canResolveLayoutDirection();
|
||||
method public boolean canScrollHorizontally(int);
|
||||
method public boolean canScrollVertically(int);
|
||||
method public void cancelLongPress();
|
||||
@@ -22798,7 +22792,6 @@ package android.view {
|
||||
method public final android.view.ViewParent getParent();
|
||||
method public float getPivotX();
|
||||
method public float getPivotY();
|
||||
method public int getResolvedLayoutDirection(android.graphics.drawable.Drawable);
|
||||
method public android.content.res.Resources getResources();
|
||||
method public final int getRight();
|
||||
method protected float getRightFadingEdgeStrength();
|
||||
@@ -22863,7 +22856,6 @@ package android.view {
|
||||
method public boolean isHovered();
|
||||
method public boolean isInEditMode();
|
||||
method public boolean isInTouchMode();
|
||||
method protected static boolean isLayoutDirectionRtl(java.util.Locale);
|
||||
method public boolean isLayoutRequested();
|
||||
method public boolean isLongClickable();
|
||||
method public boolean isOpaque();
|
||||
@@ -22949,10 +22941,8 @@ package android.view {
|
||||
method public void requestLayout();
|
||||
method public boolean requestRectangleOnScreen(android.graphics.Rect);
|
||||
method public boolean requestRectangleOnScreen(android.graphics.Rect, boolean);
|
||||
method protected void resetResolvedTextDirection();
|
||||
method public static int resolveSize(int, int);
|
||||
method public static int resolveSizeAndState(int, int, int);
|
||||
method protected void resolveTextDirection();
|
||||
method public void restoreHierarchyState(android.util.SparseArray<android.os.Parcelable>);
|
||||
method public void saveHierarchyState(android.util.SparseArray<android.os.Parcelable>);
|
||||
method public void scheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable, long);
|
||||
@@ -23053,7 +23043,6 @@ package android.view {
|
||||
method public boolean willNotCacheDrawing();
|
||||
method public boolean willNotDraw();
|
||||
field public static android.util.Property ALPHA;
|
||||
field protected static int DEFAULT_TEXT_DIRECTION;
|
||||
field public static final int DRAWING_CACHE_QUALITY_AUTO = 0; // 0x0
|
||||
field public static final int DRAWING_CACHE_QUALITY_HIGH = 1048576; // 0x100000
|
||||
field public static final int DRAWING_CACHE_QUALITY_LOW = 524288; // 0x80000
|
||||
@@ -23382,6 +23371,7 @@ package android.view {
|
||||
method public boolean requestSendAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent);
|
||||
method public void requestTransparentRegion(android.view.View);
|
||||
method protected void resetResolvedLayoutDirection();
|
||||
method protected void resetResolvedTextDirection();
|
||||
method public void scheduleLayoutAnimation();
|
||||
method public void setAddStatesFromChildren(boolean);
|
||||
method public void setAlwaysDrawnWithCacheEnabled(boolean);
|
||||
@@ -27179,6 +27169,7 @@ package android.widget {
|
||||
method protected void resetResolvedDrawables();
|
||||
method protected void resetResolvedLayoutDirection();
|
||||
method protected void resolveDrawables();
|
||||
method protected void resolveTextDirection();
|
||||
method public void setAllCaps(boolean);
|
||||
method public final void setAutoLinkMask(int);
|
||||
method public void setCompoundDrawablePadding(int);
|
||||
|
||||
@@ -2583,6 +2583,8 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
|
||||
/**
|
||||
* Default text direction is inherited
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
protected static int DEFAULT_TEXT_DIRECTION = TEXT_DIRECTION_INHERIT;
|
||||
|
||||
@@ -9294,6 +9296,11 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
recomputePadding();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if layout direction resolution can be done
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
protected boolean canResolveLayoutDirection() {
|
||||
switch (getLayoutDirection()) {
|
||||
case LAYOUT_DIRECTION_INHERIT:
|
||||
@@ -9322,6 +9329,8 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
*
|
||||
* @param locale Locale to check
|
||||
* @return true if a Locale is corresponding to a RTL script.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
protected static boolean isLayoutDirectionRtl(Locale locale) {
|
||||
return (LocaleUtil.TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE ==
|
||||
@@ -13294,6 +13303,8 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
|
||||
/**
|
||||
* Resolve the text direction.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
protected void resolveTextDirection() {
|
||||
if (mTextDirection != TEXT_DIRECTION_INHERIT) {
|
||||
@@ -13309,6 +13320,8 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
|
||||
|
||||
/**
|
||||
* Reset resolved text direction. Will be resolved during a call to getResolvedTextDirection().
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
protected void resetResolvedTextDirection() {
|
||||
mResolvedTextDirection = TEXT_DIRECTION_INHERIT;
|
||||
|
||||
@@ -290,6 +290,8 @@ public abstract class Drawable {
|
||||
|
||||
/**
|
||||
* Implement this interface if you want to create an drawable that is RTL aware
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static interface Callback2 extends Callback {
|
||||
/**
|
||||
@@ -379,6 +381,8 @@ public abstract class Drawable {
|
||||
/**
|
||||
* Use the current {@link android.graphics.drawable.Drawable.Callback2} implementation to get
|
||||
* the resolved layout direction of this Drawable.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public int getResolvedLayoutDirectionSelf() {
|
||||
final Callback callback = getCallback();
|
||||
|
||||
Reference in New Issue
Block a user