/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 48 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testAppend() 67 s.setSpan(mark, 1, 2, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 69 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 71 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 73 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testWrapParcel() 105 private void checkPriority(Spannable s) { in checkPriority() 106 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 107 (5 << Spannable.SPAN_PRIORITY_SHIFT)); in checkPriority() 108 s.setSpan(new Object(), 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in checkPriority() 109 (10 << Spannable.SPAN_PRIORITY_SHIFT)); in checkPriority() [all …]
|
D | HtmlTest.java | 161 s.setSpan(new QuoteSpan(), 0, s.length(), Spannable.SPAN_PARAGRAPH); in testBlockquote() 165 s.setSpan(new QuoteSpan(), 0, 7, Spannable.SPAN_PARAGRAPH); in testBlockquote() 189 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 194 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 199 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 204 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 209 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 214 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 219 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup() 224 Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testMarkup()
|
D | SpannableTest.java | 22 import android.text.Spannable; 26 protected abstract Spannable newSpannableWithText(String text); in newSpannableWithText() 30 Spannable spannable = newSpannableWithText("abcdef"); in testGetSpans()
|
D | SpannableStringBuilderTest.java | 19 import android.text.Spannable; 24 protected Spannable newSpannableWithText(String text) { in newSpannableWithText()
|
D | SpannableStringTest.java | 19 import android.text.Spannable; 24 protected Spannable newSpannableWithText(String text) { in newSpannableWithText()
|
D | TextUtilsTest.java | 47 foo.setSpan("foo", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 50 bar.setSpan("bar", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 53 baz.setSpan("baz", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic() 157 template.setSpan("before", 0, 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 158 template.setSpan("during", 1, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 159 template.setSpan("after", 3, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 160 template.setSpan("during+after", 1, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testTemplateSpan() 272 Spannable s3 = new SpannableString(s1); in testEllipsize() 273 s3.setSpan(new StyleSpan(0), 5, 10, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in testEllipsize()
|
/frameworks/base/core/java/android/text/method/ |
D | ScrollingMovementMethod.java | 29 protected boolean left(TextView widget, Spannable buffer) { in left() 34 protected boolean right(TextView widget, Spannable buffer) { in right() 39 protected boolean up(TextView widget, Spannable buffer) { in up() 44 protected boolean down(TextView widget, Spannable buffer) { in down() 49 protected boolean pageUp(TextView widget, Spannable buffer) { in pageUp() 54 protected boolean pageDown(TextView widget, Spannable buffer) { in pageDown() 59 protected boolean top(TextView widget, Spannable buffer) { in top() 64 protected boolean bottom(TextView widget, Spannable buffer) { in bottom() 69 protected boolean lineStart(TextView widget, Spannable buffer) { in lineStart() 74 protected boolean lineEnd(TextView widget, Spannable buffer) { in lineEnd() [all …]
|
D | BaseMovementMethod.java | 20 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 …]
|
D | ArrowKeyMovementMethod.java | 22 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 …]
|
D | MovementMethod.java | 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()
|
D | PasswordTransformationMethod.java | 30 import android.text.Spannable; 39 if (source instanceof Spannable) { in getTransformation() 40 Spannable sp = (Spannable) source; in getTransformation() 57 Spannable.SPAN_POINT_POINT); in getTransformation() 78 if (s instanceof Spannable) { in onTextChanged() 79 Spannable sp = (Spannable) s; in onTextChanged() 109 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onTextChanged() 124 if (sourceText instanceof Spannable) { in onFocusChanged() 125 Spannable sp = (Spannable) sourceText; in onFocusChanged() 132 private static void removeVisibleSpans(Spannable sp) { in removeVisibleSpans() [all …]
|
D | MultiTapKeyListener.java | 111 & Spannable.SPAN_USER) >>> Spannable.SPAN_USER_SHIFT; in onKeyDown() 191 Spannable.SPAN_MARK_MARK); in onKeyDown() 203 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 207 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in onKeyDown() 208 (rec << Spannable.SPAN_USER_SHIFT)); in onKeyDown() 225 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in onKeyDown() 234 public void onSpanChanged(Spannable buf, in onSpanChanged() 242 private static void removeTimeouts(Spannable buf) { in removeTimeouts() 261 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in Timeout() 267 Spannable buf = mBuffer; in run() [all …]
|
D | MetaKeyKeyListener.java | 21 import android.text.Spannable; 141 public static void resetMetaState(Spannable text) { in resetMetaState() 213 public static void adjustMetaAfterKeypress(Spannable content) { in adjustMetaAfterKeypress() 236 private static void adjust(Spannable content, Object what) { in adjust() 249 protected static void resetLockedMeta(Spannable content) { in resetLockedMeta() 256 private static void resetLock(Spannable content, Object what) { in resetLock() 305 public static void startSelecting(View view, Spannable content) { in startSelecting() 314 public static void stopSelecting(View view, Spannable content) { in stopSelecting() 580 Spannable.SPAN_MARK_MARK | (1 << Spannable.SPAN_USER_SHIFT); 587 Spannable.SPAN_MARK_MARK | (2 << Spannable.SPAN_USER_SHIFT); [all …]
|
D | LinkMovementMethod.java | 22 import android.text.Spannable; 39 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, in handleMovementKey() 56 protected boolean up(TextView widget, Spannable buffer) { in up() 65 protected boolean down(TextView widget, Spannable buffer) { in down() 74 protected boolean left(TextView widget, Spannable buffer) { in left() 83 protected boolean right(TextView widget, Spannable buffer) { in right() 91 private boolean action(int what, TextView widget, Spannable buffer) { in action() 189 public boolean onTouchEvent(TextView widget, Spannable buffer, in onTouchEvent() 229 public void initialize(TextView widget, Spannable text) { in initialize() 235 public void onTakeFocus(TextView view, Spannable text, int dir) { in onTakeFocus() [all …]
|
D | QwertyKeyListener.java | 207 Spannable.SPAN_MARK_MARK | flags); in onKeyDown() 211 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE | in onKeyDown() 220 Spannable.SPAN_MARK_MARK); in onKeyDown() 230 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 235 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 271 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 335 en, en, Spannable.SPAN_POINT_POINT); in onKeyDown() 342 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in onKeyDown() 415 public static void markAsReplaced(Spannable content, int start, int end, in markAsReplaced() 427 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in markAsReplaced()
|
D | Touch.java | 22 import android.text.Spannable; 86 public static boolean onTouchEvent(TextView widget, Spannable buffer, in onTouchEvent() 100 0, 0, Spannable.SPAN_MARK_MARK); in onTouchEvent() 181 public static int getInitialScrollX(TextView widget, Spannable buffer) { in getInitialScrollX() 190 public static int getInitialScrollY(TextView widget, Spannable buffer) { in getInitialScrollY()
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 67 public static void setSelection(Spannable text, int start, int stop) { in setSelection() 86 public static final void setSelection(Spannable text, int index) { in setSelection() 93 public static final void selectAll(Spannable text) { in selectAll() 100 public static final void extendSelection(Spannable text, int index) { in extendSelection() 108 public static final void removeSelection(Spannable text) { in removeSelection() 121 public static boolean moveUp(Spannable text, Layout layout) { in moveUp() 162 public static boolean moveDown(Spannable text, Layout layout) { in moveDown() 204 public static boolean moveLeft(Spannable text, Layout layout) { in moveLeft() 229 public static boolean moveRight(Spannable text, Layout layout) { in moveRight() 252 public static boolean extendUp(Spannable text, Layout layout) { in extendUp() [all …]
|
D | Spannable.java | 24 public interface Spannable interface 53 private static Spannable.Factory sInstance = new Spannable.Factory(); 58 public static Spannable.Factory getInstance() { in getInstance() 66 public Spannable newSpannable(CharSequence source) { in newSpannable()
|
D | SpanWatcher.java | 29 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()
|
D | DynamicLayout.java | 172 if (base instanceof Spannable) { in DynamicLayout() 177 Spannable sp = (Spannable) base; in DynamicLayout() 183 Spannable.SPAN_INCLUSIVE_INCLUSIVE | in DynamicLayout() 184 (PRIORITY << Spannable.SPAN_PRIORITY_SHIFT)); in DynamicLayout() 622 else if (s instanceof Spannable) in reflow() 623 ((Spannable) s).removeSpan(this); in reflow() 638 public void onSpanAdded(Spannable s, Object o, int start, int end) { in onSpanAdded() 643 public void onSpanRemoved(Spannable s, Object o, int start, int end) { in onSpanRemoved() 648 public void onSpanChanged(Spannable s, Object o, int start, int end, int nstart, int nend) { in onSpanChanged()
|
/frameworks/base/core/java/android/content/res/ |
D | StringBlock.java | 176 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 180 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 184 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 188 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 192 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 196 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 200 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 204 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 208 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in applyStyles() 215 Spannable.SPAN_INCLUSIVE_INCLUSIVE); in applyStyles() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewPropertyAlphaActivity.java | 27 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/tests/BiDiTests/src/com/android/bidi/ |
D | BiDiTestBasic.java | 23 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/java/android/text/util/ |
D | Linkify.java | 22 import android.text.Spannable; 198 public static final boolean addLinks(Spannable text, int mask) { in addLinks() 259 if (t instanceof Spannable) { in addLinks() 260 if (addLinks((Spannable) t, mask)) { in addLinks() 342 public static final boolean addLinks(Spannable text, Pattern pattern, String scheme) { in addLinks() 360 public static final boolean addLinks(Spannable s, Pattern p, in addLinks() 388 private static final void applyLink(String url, int start, int end, Spannable text) { in applyLink() 425 Spannable s, Pattern pattern, String[] schemes, in gatherLinks() 446 private static final void gatherMapLinks(ArrayList<LinkSpec> links, Spannable s) { in gatherMapLinks()
|
/frameworks/base/core/java/android/widget/ |
D | DialerFilter.java | 24 import android.text.Spannable; 363 Spannable span = (Spannable)text; in setLettersWatcher() 369 Spannable span = (Spannable)text; in setDigitsWatcher() 382 Spannable text; in removeFilterWatcher()
|