private CharSequence getFallbackText( Context context, AccessibilityNodeInfoCompat node) { // Order is important below because of class inheritance. if (matchesAny(context, node, Button.class, ImageButton.class)) { return context.getString(R.string.type_button); } if (matchesAny(context, node, QuickContactBadge.class)) { return context.getString(R.string.type_quickcontact); } if (matchesAny(context, node, ImageView.class)) { return context.getString(R.string.type_image); } if (matchesAny(context, node, EditText.class)) { return context.getString(R.string.type_edittext); } if (matchesAny(context, node, AbsSeekBar.class)) { return context.getString(R.string.type_seekbar); } return ""; }
@Override public EnvUIChanger<AbsSeekBar, XAbsSeekBarCall> ensureEnvUIChanger(EnvResBridge bridge, boolean allowSysRes) { if (mEnvUIChanger == null) { mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(getContext(), bridge, allowSysRes); } return mEnvUIChanger; }
@Override @SuppressWarnings("NewApi") public Drawable getThumb() { if (VersionUtils.hasApi16()) { return super.getThumb(); } else { try { Field f = AbsSeekBar.class.getDeclaredField("mThumb"); f.setAccessible(true); return (Drawable) f.get(this); } catch (Exception e) { Timber.e(e, "CompatSeekBar.getThumb() API=%d", Build.VERSION.SDK_INT); return null; } } }
public AbsSeekBarHelper(AbsSeekBar view) { super(view); }
public AbsSeekBar getView(){ return mView; }
public AbsSeekBarWrapper(AbsSeekBar view) { super(view); mView = view; }
public static AbsSeekBarHelper absSeekBar(@NonNull Activity activity, @IdRes int viewId) { return new AbsSeekBarHelper((AbsSeekBar) findView(activity, viewId)); }
public static AbsSeekBarHelper absSeekBar(@NonNull View view, @IdRes int viewId) { return new AbsSeekBarHelper((AbsSeekBar) findView(view, viewId)); }
RealMoveSeekBarOp(ACInstrumentation instrumentation, double prob, View target) { super(instrumentation, prob); this.target = (AbsSeekBar)target; }
MoveSeekBarOp(ACInstrumentation instrumentation, double prob, View target) { super(instrumentation, prob); this.target = (AbsSeekBar)target; }
public CompatSeekBar(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(context); mEnvUIChanger.applyStyle(context, attrs, defStyle, 0, ALLOW_SYSRES, isInEditMode()); }
public CompatRatingBar(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); mEnvUIChanger = new EnvAbsSeekBarChanger<AbsSeekBar, XAbsSeekBarCall>(context); mEnvUIChanger.applyStyle(context, attrs, defStyle, 0, ALLOW_SYSRES, isInEditMode()); }
public static ShadowAbsSeekBar shadowOf(AbsSeekBar instance) { return (ShadowAbsSeekBar) shadowOf_(instance); }
public AbsSeekBarAssert(AbsSeekBar actual) { super(actual, AbsSeekBarAssert.class); }