Home
last modified time | relevance | path

Searched refs:Spannable (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java58 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend()
77 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel()
79 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel()
81 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel()
83 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel()
115 private void checkPriority(Spannable s) { in checkPriority()
116 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
117 (5 << Spannable.SPAN_PRIORITY_SHIFT)); in checkPriority()
118 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority()
119 (10 << Spannable.SPAN_PRIORITY_SHIFT)); in checkPriority()
[all …]
DSpannableTest.java37 protected abstract Spannable newSpannableWithText(String text); in newSpannableWithText()
41 Spannable spannable = newSpannableWithText("abcdef"); in testGetSpans()
64 Spannable spannable = newSpannableWithText("abcdef"); in testRemoveSpanWithIntermediateFlag()
73 public void onSpanAdded(Spannable text, Object what, int start, int end) {} in testRemoveSpanWithIntermediateFlag()
76 public void onSpanRemoved(Spannable text, Object what, int start, int end) { in testRemoveSpanWithIntermediateFlag()
81 public void onSpanChanged(Spannable text, Object what, int ostart, int oend, int nstart, in testRemoveSpanWithIntermediateFlag()
/frameworks/base/core/java/android/text/method/
DScrollingMovementMethod.java20 import android.text.Spannable;
30 protected boolean left(TextView widget, Spannable buffer) { in left()
35 protected boolean right(TextView widget, Spannable buffer) { in right()
40 protected boolean up(TextView widget, Spannable buffer) { in up()
45 protected boolean down(TextView widget, Spannable buffer) { in down()
50 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp()
55 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown()
60 protected boolean top(TextView widget, Spannable buffer) { in top()
65 protected boolean bottom(TextView widget, Spannable buffer) { in bottom()
70 protected boolean lineStart(TextView widget, Spannable buffer) { in lineStart()
[all …]
DBaseMovementMethod.java20 import android.text.Spannable;
36 public void initialize(TextView widget, Spannable text) { in initialize()
40 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event) { in onKeyDown()
51 public boolean onKeyOther(TextView widget, Spannable text, KeyEvent event) { in onKeyOther()
74 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event) { in onKeyUp()
79 public void onTakeFocus(TextView widget, Spannable text, int direction) { in onTakeFocus()
83 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event) { in onTouchEvent()
88 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event) { in onTrackballEvent()
93 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event) { in onGenericMotionEvent()
136 protected int getMovementMetaState(Spannable buffer, KeyEvent event) { in getMovementMetaState()
[all …]
DMovementMethod.java19 import android.text.Spannable;
36 public void initialize(TextView widget, Spannable text); in initialize()
37 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyDown()
38 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyUp()
45 public boolean onKeyOther(TextView view, Spannable text, KeyEvent event); in onKeyOther()
47 public void onTakeFocus(TextView widget, Spannable text, int direction); in onTakeFocus()
48 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event); in onTrackballEvent()
49 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event); in onTouchEvent()
50 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event); in onGenericMotionEvent()
DArrowKeyMovementMethod.java22 import android.text.Spannable;
33 private static boolean isSelecting(Spannable buffer) { in isSelecting()
38 private static int getCurrentLineTop(Spannable buffer, Layout layout) { in getCurrentLineTop()
51 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, in handleMovementKey()
69 protected boolean left(TextView widget, Spannable buffer) { in left()
79 protected boolean right(TextView widget, Spannable buffer) { in right()
89 protected boolean up(TextView widget, Spannable buffer) { in up()
99 protected boolean down(TextView widget, Spannable buffer) { in down()
109 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp()
133 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown()
[all …]
DPasswordTransformationMethod.java27 import android.text.Spannable;
40 if (source instanceof Spannable) { in getTransformation()
41 Spannable sp = (Spannable) source; in getTransformation()
58 Spannable.SPAN_POINT_POINT); in getTransformation()
79 if (s instanceof Spannable) { in onTextChanged()
80 Spannable sp = (Spannable) s; in onTextChanged()
110 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onTextChanged()
125 if (sourceText instanceof Spannable) { in onFocusChanged()
126 Spannable sp = (Spannable) sourceText; in onFocusChanged()
133 private static void removeVisibleSpans(Spannable sp) { in removeVisibleSpans()
[all …]
DMultiTapKeyListener.java24 import android.text.Spannable;
114 & Spannable.SPAN_USER) >>> Spannable.SPAN_USER_SHIFT; in onKeyDown()
194 Spannable.SPAN_MARK_MARK); in onKeyDown()
206 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown()
210 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in onKeyDown()
211 (rec << Spannable.SPAN_USER_SHIFT)); in onKeyDown()
228 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in onKeyDown()
237 public void onSpanChanged(Spannable buf, in onSpanChanged()
245 private static void removeTimeouts(Spannable buf) { in removeTimeouts()
264 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in Timeout()
[all …]
DLinkMovementMethod.java24 import android.text.Spannable;
49 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, in handleMovementKey()
66 protected boolean up(TextView widget, Spannable buffer) { in up()
75 protected boolean down(TextView widget, Spannable buffer) { in down()
84 protected boolean left(TextView widget, Spannable buffer) { in left()
93 protected boolean right(TextView widget, Spannable buffer) { in right()
101 private boolean action(int what, TextView widget, Spannable buffer) { in action()
205 public boolean onTouchEvent(TextView widget, Spannable buffer, in onTouchEvent()
255 public void initialize(TextView widget, Spannable text) { in initialize()
261 public void onTakeFocus(TextView view, Spannable text, int dir) { in onTakeFocus()
[all …]
DMetaKeyKeyListener.java22 import android.text.Spannable;
145 public static void resetMetaState(Spannable text) { in resetMetaState()
273 public static void adjustMetaAfterKeypress(Spannable content) { in adjustMetaAfterKeypress()
296 private static void adjust(Spannable content, Object what) { in adjust()
309 protected static void resetLockedMeta(Spannable content) { in resetLockedMeta()
316 private static void resetLock(Spannable content, Object what) { in resetLock()
366 public static void startSelecting(View view, Spannable content) { in startSelecting()
376 public static void stopSelecting(View view, Spannable content) { in stopSelecting()
642 Spannable.SPAN_MARK_MARK | (1 << Spannable.SPAN_USER_SHIFT);
649 Spannable.SPAN_MARK_MARK | (2 << Spannable.SPAN_USER_SHIFT);
[all …]
DQwertyKeyListener.java23 import android.text.Spannable;
213 Spannable.SPAN_MARK_MARK | flags); in onKeyDown()
217 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in onKeyDown()
226 Spannable.SPAN_MARK_MARK); in onKeyDown()
236 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown()
241 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown()
277 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown()
341 en, en, Spannable.SPAN_POINT_POINT); in onKeyDown()
348 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown()
421 public static void markAsReplaced(Spannable content, int start, int end, in markAsReplaced()
[all …]
DTouch.java22 import android.text.Spannable;
88 public static boolean onTouchEvent(TextView widget, Spannable buffer, in onTouchEvent()
102 0, 0, Spannable.SPAN_MARK_MARK); in onTouchEvent()
184 public static int getInitialScrollX(TextView widget, Spannable buffer) { in getInitialScrollX()
193 public static int getInitialScrollY(TextView widget, Spannable buffer) { in getInitialScrollY()
/frameworks/base/core/java/android/text/
DSelection.java77 public static void setSelection(Spannable text, int start, int stop) { in setSelection()
85 private static void setSelection(Spannable text, int start, int stop, int memory) { in setSelection()
106 private static void updateMemory(Spannable text, int memory) { in updateMemory()
122 private static void removeMemory(Spannable text) { in removeMemory()
152 public static final void setSelection(Spannable text, int index) { in setSelection()
159 public static final void selectAll(Spannable text) { in selectAll()
166 public static final void extendSelection(Spannable text, int index) { in extendSelection()
173 private static void extendSelection(Spannable text, int index, int memory) { in extendSelection()
183 public static final void removeSelection(Spannable text) { in removeSelection()
198 public static boolean moveUp(Spannable text, Layout layout) { in moveUp()
[all …]
DSpannable.java24 public interface Spannable interface
68 private static Spannable.Factory sInstance = new Spannable.Factory();
73 public static Spannable.Factory getInstance() { in getInstance()
81 public Spannable newSpannable(CharSequence source) { in newSpannable()
DSpanWatcher.java29 public void onSpanAdded(Spannable text, Object what, int start, int end); in onSpanAdded()
34 public void onSpanRemoved(Spannable text, Object what, int start, int end); in onSpanRemoved()
40 public void onSpanChanged(Spannable text, Object what, int ostart, int oend, in onSpanChanged()
/frameworks/base/core/java/android/content/res/
DStringBlock.java25 import android.text.Spannable;
221 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
225 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
229 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
233 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
237 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
241 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
245 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
249 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
253 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles()
[all …]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerUtils.java22 import android.text.Spannable;
23 import android.text.Spannable.Factory;
37 private static final Factory mSpannableFactory = Spannable.Factory.getInstance();
107 Spannable spannableText = mSpannableFactory.newSpannable(sb); in buildGmtDisplayName()
110 gmtStart, gmtEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in buildGmtDisplayName()
114 symbolStart, symbolEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in buildGmtDisplayName()
DTimeZoneInfo.java20 import android.text.Spannable;
21 import android.text.Spannable.Factory;
44 private static final Factory mSpannableFactory = Spannable.Factory.getInstance();
175 Spannable spannableText = mSpannableFactory.newSpannable(mSB); in getGmtDisplayName()
177 gmtStart, gmtEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getGmtDisplayName()
181 symbolStart, symbolEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getGmtDisplayName()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewPropertyAlphaActivity.java27 import android.text.Spannable;
83 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate()
85 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate()
87 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate()
89 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate()
91 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onCreate()
/frameworks/base/core/java/android/text/util/
DLinkify.java27 import android.text.Spannable;
253 public static final boolean addLinks(@NonNull Spannable text, @LinkifyMask int mask) { in addLinks()
269 public static final boolean addLinks(@NonNull Spannable text, @LinkifyMask int mask, in addLinks()
286 private static boolean addLinks(@NonNull Spannable text, @LinkifyMask int mask, in addLinks()
381 if (t instanceof Spannable) { in addLinks()
382 if (addLinks((Spannable) t, mask, context, null)) { in addLinks()
488 public static final boolean addLinks(@NonNull Spannable text, @NonNull Pattern pattern, in addLinks()
509 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks()
534 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks()
559 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks()
[all …]
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestBasic.java23 import android.text.Spannable;
87 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in useSpans()
93 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in useSpans()
99 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in useSpans()
/frameworks/base/core/tests/coretests/src/android/text/util/
DLinkifyTest.java26 import android.text.Spannable;
111 Spannable spannable = new SpannableString("any https://android.com any android.com any"); in testAddLinks_addsLinksWhenDefaultSchemeIsNull()
122 Spannable spannable = new SpannableString("any https://android.com any android.com any"); in testAddLinks_addsLinksWhenSchemesArrayIsNull()
134 Spannable spannable = new SpannableString("any android.com any"); in testAddLinks_prependsDefaultSchemeToBeginingOfLink()
145 Spannable spannable = new SpannableString("any https://android.com any"); in testAddLinks_doesNotPrependSchemeIfSchemeExists()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
DSpanHelper.java19 import android.text.Spannable;
30 public static void replaceSpan(Spannable spannable, Object oldSpan, Object newSpan) { in replaceSpan()
DLinkSpan.java25 import android.text.Spannable;
99 if (text instanceof Spannable) { in onClick()
100 Selection.setSelection((Spannable) text, 0); in onClick()
/frameworks/base/core/java/android/view/textclassifier/
DTextLinksParams.java21 import android.text.Spannable;
104 public int apply(@NonNull Spannable text, @NonNull TextLinks textLinks) { in apply()
135 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in apply()
140 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in apply()

1234